isaacscript-common 9.4.0 → 9.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/customStage/customStageGridEntities.d.ts +4 -4
- package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.lua +4 -4
- package/dist/functions/effects.d.ts +1 -1
- package/dist/functions/effects.d.ts.map +1 -1
- package/dist/functions/effects.lua +1 -1
- package/dist/functions/entityTypes.d.ts +1 -1
- package/dist/functions/entityTypes.d.ts.map +1 -1
- package/dist/functions/entityTypes.lua +1 -1
- package/dist/functions/pickupVariants.d.ts +11 -11
- package/dist/functions/pickupVariants.d.ts.map +1 -1
- package/dist/functions/pickupVariants.lua +11 -11
- package/dist/index.d.ts +13 -13
- package/package.json +2 -2
- package/src/features/customStage/customStageGridEntities.ts +4 -4
- package/src/functions/effects.ts +1 -1
- package/src/functions/entityTypes.ts +1 -1
- package/src/functions/pickupVariants.ts +11 -11
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
import { CustomStage } from "../../interfaces/private/CustomStage";
|
|
3
|
-
/** For `GridEntityType.DECORATION` (1) */
|
|
3
|
+
/** For `GridEntityType.DECORATION` (1). */
|
|
4
4
|
export declare function setCustomDecorationGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
5
|
-
/** For `GridEntityType.ROCK` (2) */
|
|
5
|
+
/** For `GridEntityType.ROCK` (2). */
|
|
6
6
|
export declare function setCustomRockGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
7
|
-
/** For `GridEntityType.PIT` (7) */
|
|
7
|
+
/** For `GridEntityType.PIT` (7). */
|
|
8
8
|
export declare function setCustomPitGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
9
|
-
/** For GridEntityType.DOOR (16) */
|
|
9
|
+
/** For `GridEntityType.DOOR` (16). */
|
|
10
10
|
export declare function setCustomDoorGraphics(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
11
11
|
export declare function convertVanillaTrapdoors(customStage: CustomStage, gridEntity: GridEntity): void;
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customStageGridEntities.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageGridEntities.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AASnE,
|
|
1
|
+
{"version":3,"file":"customStageGridEntities.d.ts","sourceRoot":"","sources":["../../../src/features/customStage/customStageGridEntities.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AASnE,2CAA2C;AAC3C,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwCN;AAED,qCAAqC;AACrC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAyDN;AAED,oCAAoC;AACpC,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwBN;AAED,sCAAsC;AACtC,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwBN;AAuDD,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAwBN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,GACrB,IAAI,CAsBN"}
|
|
@@ -155,7 +155,7 @@ function removeEntitiesSpawnedFromGridEntity(self, entities, gridEntity)
|
|
|
155
155
|
)
|
|
156
156
|
removeEntities(nil, entitiesFromGridEntity)
|
|
157
157
|
end
|
|
158
|
-
--- For `GridEntityType.DECORATION` (1)
|
|
158
|
+
--- For `GridEntityType.DECORATION` (1).
|
|
159
159
|
function ____exports.setCustomDecorationGraphics(self, customStage, gridEntity)
|
|
160
160
|
if customStage.decorationsPNGPath == nil and customStage.decorationsANM2Path == nil then
|
|
161
161
|
return
|
|
@@ -181,7 +181,7 @@ function ____exports.setCustomDecorationGraphics(self, customStage, gridEntity)
|
|
|
181
181
|
sprite:LoadGraphics()
|
|
182
182
|
end
|
|
183
183
|
end
|
|
184
|
-
--- For `GridEntityType.ROCK` (2)
|
|
184
|
+
--- For `GridEntityType.ROCK` (2).
|
|
185
185
|
function ____exports.setCustomRockGraphics(self, customStage, gridEntity)
|
|
186
186
|
if customStage.rocksPNGPath == nil and customStage.rocksANM2Path == nil then
|
|
187
187
|
return
|
|
@@ -224,7 +224,7 @@ function ____exports.setCustomRockGraphics(self, customStage, gridEntity)
|
|
|
224
224
|
end
|
|
225
225
|
until true
|
|
226
226
|
end
|
|
227
|
-
--- For `GridEntityType.PIT` (7)
|
|
227
|
+
--- For `GridEntityType.PIT` (7).
|
|
228
228
|
function ____exports.setCustomPitGraphics(self, customStage, gridEntity)
|
|
229
229
|
if customStage.pitsPNGPath == nil then
|
|
230
230
|
return
|
|
@@ -244,7 +244,7 @@ function ____exports.setCustomPitGraphics(self, customStage, gridEntity)
|
|
|
244
244
|
sprite:LoadGraphics()
|
|
245
245
|
end
|
|
246
246
|
end
|
|
247
|
-
--- For GridEntityType.DOOR (16)
|
|
247
|
+
--- For `GridEntityType.DOOR` (16).
|
|
248
248
|
function ____exports.setCustomDoorGraphics(self, customStage, gridEntity)
|
|
249
249
|
if customStage.doorPNGPaths == nil then
|
|
250
250
|
return
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/// <reference types="isaac-typescript-definitions" />
|
|
3
|
-
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76) */
|
|
3
|
+
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76). */
|
|
4
4
|
export declare const DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75;
|
|
5
5
|
/** Helper function to see if a player is close enough to activate a Dice Room floor. */
|
|
6
6
|
export declare function isCloseEnoughToTriggerDiceFloor(player: EntityPlayer, diceFloor: EntityEffect): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../src/functions/effects.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../src/functions/effects.ts"],"names":[],"mappings":";;AAEA,uEAAuE;AACvE,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAEjD,wFAAwF;AACxF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,YAAY,GACtB,OAAO,CAUT"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____math = require("functions.math")
|
|
3
3
|
local inRectangle = ____math.inRectangle
|
|
4
|
-
--- For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76)
|
|
4
|
+
--- For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76).
|
|
5
5
|
____exports.DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75
|
|
6
6
|
--- Helper function to see if a player is close enough to activate a Dice Room floor.
|
|
7
7
|
function ____exports.isCloseEnoughToTriggerDiceFloor(self, player, diceFloor)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityTypes.d.ts","sourceRoot":"","sources":["../../src/functions/entityTypes.ts"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"entityTypes.d.ts","sourceRoot":"","sources":["../../src/functions/entityTypes.ts"],"names":[],"mappings":";AAEA,iCAAiC;AACjC,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,UAAU,CAE3D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
4
|
-
--- For `EntityType.SLOT` (6)
|
|
4
|
+
--- For `EntityType.SLOT` (6).
|
|
5
5
|
function ____exports.isSlot(self, entity)
|
|
6
6
|
return entity.Type == EntityType.SLOT
|
|
7
7
|
end
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
|
-
/** For `PickupVariant.HEART` (10) */
|
|
2
|
+
/** For `PickupVariant.HEART` (10). */
|
|
3
3
|
export declare function isHeart(pickup: EntityPickup): pickup is EntityPickupHeart;
|
|
4
|
-
/** For `PickupVariant.COIN` (20) */
|
|
4
|
+
/** For `PickupVariant.COIN` (20). */
|
|
5
5
|
export declare function isCoin(pickup: EntityPickup): pickup is EntityPickupCoin;
|
|
6
|
-
/** For `PickupVariant.KEY` (30) */
|
|
6
|
+
/** For `PickupVariant.KEY` (30). */
|
|
7
7
|
export declare function isKey(pickup: EntityPickup): pickup is EntityPickupKey;
|
|
8
|
-
/** For `PickupVariant.BOMB` (40) */
|
|
8
|
+
/** For `PickupVariant.BOMB` (40). */
|
|
9
9
|
export declare function isBombPickup(pickup: EntityPickup): pickup is EntityPickupBomb;
|
|
10
|
-
/** For `PickupVariant.POOP` (42) */
|
|
10
|
+
/** For `PickupVariant.POOP` (42). */
|
|
11
11
|
export declare function isPoopPickup(pickup: EntityPickup): pickup is EntityPickupPoop;
|
|
12
|
-
/** For `PickupVariant.SACK` (69) */
|
|
12
|
+
/** For `PickupVariant.SACK` (69). */
|
|
13
13
|
export declare function isSack(pickup: EntityPickup): pickup is EntityPickupSack;
|
|
14
|
-
/** For `PickupVariant.PILL` (70) */
|
|
14
|
+
/** For `PickupVariant.PILL` (70). */
|
|
15
15
|
export declare function isPill(pickup: EntityPickup): pickup is EntityPickupPill;
|
|
16
|
-
/** For `PickupVariant.LIL_BATTERY` (90) */
|
|
16
|
+
/** For `PickupVariant.LIL_BATTERY` (90). */
|
|
17
17
|
export declare function isBattery(pickup: EntityPickup): pickup is EntityPickupBattery;
|
|
18
|
-
/** For `PickupVariant.COLLECTIBLE` (100) */
|
|
18
|
+
/** For `PickupVariant.COLLECTIBLE` (100). */
|
|
19
19
|
export declare function isCollectible(pickup: EntityPickup): pickup is EntityPickupCollectible;
|
|
20
|
-
/** For `PickupVariant.TAROT_CARD` (300) */
|
|
20
|
+
/** For `PickupVariant.TAROT_CARD` (300). */
|
|
21
21
|
export declare function isCardPickup(pickup: EntityPickup): pickup is EntityPickupCard;
|
|
22
|
-
/** For `PickupVariant.TRINKET` (350) */
|
|
22
|
+
/** For `PickupVariant.TRINKET` (350). */
|
|
23
23
|
export declare function isTrinket(pickup: EntityPickup): pickup is EntityPickupTrinket;
|
|
24
24
|
//# sourceMappingURL=pickupVariants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pickupVariants.d.ts","sourceRoot":"","sources":["../../src/functions/pickupVariants.ts"],"names":[],"mappings":";AAIA,
|
|
1
|
+
{"version":3,"file":"pickupVariants.d.ts","sourceRoot":"","sources":["../../src/functions/pickupVariants.ts"],"names":[],"mappings":";AAIA,sCAAsC;AACtC,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,iBAAiB,CAEzE;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAEvE;AAED,oCAAoC;AACpC,wBAAgB,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,eAAe,CAErE;AAED,qCAAqC;AACrC,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED,qCAAqC;AACrC,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAEvE;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAEvE;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,mBAAmB,CAE7E;AAED,6CAA6C;AAC7C,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,GACnB,MAAM,IAAI,uBAAuB,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,gBAAgB,CAE7E;AAED,yCAAyC;AACzC,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,IAAI,mBAAmB,CAE7E"}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
4
|
-
--- For `PickupVariant.HEART` (10)
|
|
4
|
+
--- For `PickupVariant.HEART` (10).
|
|
5
5
|
function ____exports.isHeart(self, pickup)
|
|
6
6
|
return pickup.Variant == PickupVariant.HEART
|
|
7
7
|
end
|
|
8
|
-
--- For `PickupVariant.COIN` (20)
|
|
8
|
+
--- For `PickupVariant.COIN` (20).
|
|
9
9
|
function ____exports.isCoin(self, pickup)
|
|
10
10
|
return pickup.Variant == PickupVariant.COIN
|
|
11
11
|
end
|
|
12
|
-
--- For `PickupVariant.KEY` (30)
|
|
12
|
+
--- For `PickupVariant.KEY` (30).
|
|
13
13
|
function ____exports.isKey(self, pickup)
|
|
14
14
|
return pickup.Variant == PickupVariant.KEY
|
|
15
15
|
end
|
|
16
|
-
--- For `PickupVariant.BOMB` (40)
|
|
16
|
+
--- For `PickupVariant.BOMB` (40).
|
|
17
17
|
function ____exports.isBombPickup(self, pickup)
|
|
18
18
|
return pickup.Variant == PickupVariant.BOMB
|
|
19
19
|
end
|
|
20
|
-
--- For `PickupVariant.POOP` (42)
|
|
20
|
+
--- For `PickupVariant.POOP` (42).
|
|
21
21
|
function ____exports.isPoopPickup(self, pickup)
|
|
22
22
|
return pickup.Variant == PickupVariant.POOP
|
|
23
23
|
end
|
|
24
|
-
--- For `PickupVariant.SACK` (69)
|
|
24
|
+
--- For `PickupVariant.SACK` (69).
|
|
25
25
|
function ____exports.isSack(self, pickup)
|
|
26
26
|
return pickup.Variant == PickupVariant.SACK
|
|
27
27
|
end
|
|
28
|
-
--- For `PickupVariant.PILL` (70)
|
|
28
|
+
--- For `PickupVariant.PILL` (70).
|
|
29
29
|
function ____exports.isPill(self, pickup)
|
|
30
30
|
return pickup.Variant == PickupVariant.PILL
|
|
31
31
|
end
|
|
32
|
-
--- For `PickupVariant.LIL_BATTERY` (90)
|
|
32
|
+
--- For `PickupVariant.LIL_BATTERY` (90).
|
|
33
33
|
function ____exports.isBattery(self, pickup)
|
|
34
34
|
return pickup.Variant == PickupVariant.LIL_BATTERY
|
|
35
35
|
end
|
|
36
|
-
--- For `PickupVariant.COLLECTIBLE` (100)
|
|
36
|
+
--- For `PickupVariant.COLLECTIBLE` (100).
|
|
37
37
|
function ____exports.isCollectible(self, pickup)
|
|
38
38
|
return pickup.Variant == PickupVariant.COLLECTIBLE
|
|
39
39
|
end
|
|
40
|
-
--- For `PickupVariant.TAROT_CARD` (300)
|
|
40
|
+
--- For `PickupVariant.TAROT_CARD` (300).
|
|
41
41
|
function ____exports.isCardPickup(self, pickup)
|
|
42
42
|
return pickup.Variant == PickupVariant.TAROT_CARD
|
|
43
43
|
end
|
|
44
|
-
--- For `PickupVariant.TRINKET` (350)
|
|
44
|
+
--- For `PickupVariant.TRINKET` (350).
|
|
45
45
|
function ____exports.isTrinket(self, pickup)
|
|
46
46
|
return pickup.Variant == PickupVariant.TRINKET
|
|
47
47
|
end
|
package/dist/index.d.ts
CHANGED
|
@@ -1748,7 +1748,7 @@ export declare function deserializeRNG(rng: SerializedRNG): RNG;
|
|
|
1748
1748
|
*/
|
|
1749
1749
|
export declare function deserializeVector(vector: SerializedVector): Vector;
|
|
1750
1750
|
|
|
1751
|
-
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76) */
|
|
1751
|
+
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76). */
|
|
1752
1752
|
export declare const DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75;
|
|
1753
1753
|
|
|
1754
1754
|
export declare function directionToDegrees(direction: Direction): int;
|
|
@@ -5559,7 +5559,7 @@ export declare function isArrayContiguous(array: int[]): boolean;
|
|
|
5559
5559
|
/** Checks if an array is in the provided 2-dimensional array. */
|
|
5560
5560
|
export declare function isArrayInArray<T>(arrayToMatch: T[] | readonly T[], parentArray: Array<T[] | readonly T[]>): boolean;
|
|
5561
5561
|
|
|
5562
|
-
/** For `PickupVariant.LIL_BATTERY` (90) */
|
|
5562
|
+
/** For `PickupVariant.LIL_BATTERY` (90). */
|
|
5563
5563
|
export declare function isBattery(pickup: EntityPickup): pickup is EntityPickupBattery;
|
|
5564
5564
|
|
|
5565
5565
|
/**
|
|
@@ -5578,7 +5578,7 @@ export declare function isBlindCollectible(collectible: EntityPickup): boolean;
|
|
|
5578
5578
|
/** Helper function to detect if a variable is of type `EntityBomb`. */
|
|
5579
5579
|
export declare function isBomb(variable: unknown): variable is EntityBomb;
|
|
5580
5580
|
|
|
5581
|
-
/** For `PickupVariant.BOMB` (40) */
|
|
5581
|
+
/** For `PickupVariant.BOMB` (40). */
|
|
5582
5582
|
export declare function isBombPickup(pickup: EntityPickup): pickup is EntityPickupBomb;
|
|
5583
5583
|
|
|
5584
5584
|
export declare function isBoolean(variable: unknown): variable is boolean;
|
|
@@ -5592,7 +5592,7 @@ export declare function isBoolean(variable: unknown): variable is boolean;
|
|
|
5592
5592
|
*/
|
|
5593
5593
|
export declare function isCard(cardType: CardType): boolean;
|
|
5594
5594
|
|
|
5595
|
-
/** For `PickupVariant.TAROT_CARD` (300) */
|
|
5595
|
+
/** For `PickupVariant.TAROT_CARD` (300). */
|
|
5596
5596
|
export declare function isCardPickup(pickup: EntityPickup): pickup is EntityPickupCard;
|
|
5597
5597
|
|
|
5598
5598
|
/** Returns whether or not the given card type matches the specified item config card type. */
|
|
@@ -5622,10 +5622,10 @@ export declare function isCircleIntersectingRectangle(circleCenter: Vector, circ
|
|
|
5622
5622
|
/** Helper function to see if a player is close enough to activate a Dice Room floor. */
|
|
5623
5623
|
export declare function isCloseEnoughToTriggerDiceFloor(player: EntityPlayer, diceFloor: EntityEffect): boolean;
|
|
5624
5624
|
|
|
5625
|
-
/** For `PickupVariant.COIN` (20) */
|
|
5625
|
+
/** For `PickupVariant.COIN` (20). */
|
|
5626
5626
|
export declare function isCoin(pickup: EntityPickup): pickup is EntityPickupCoin;
|
|
5627
5627
|
|
|
5628
|
-
/** For `PickupVariant.COLLECTIBLE` (100) */
|
|
5628
|
+
/** For `PickupVariant.COLLECTIBLE` (100). */
|
|
5629
5629
|
export declare function isCollectible(pickup: EntityPickup): pickup is EntityPickupCollectible;
|
|
5630
5630
|
|
|
5631
5631
|
/**
|
|
@@ -5840,7 +5840,7 @@ export declare function isGridEntityBreakableByExplosion(gridEntity: GridEntity)
|
|
|
5840
5840
|
*/
|
|
5841
5841
|
export declare function isGridEntityBroken(gridEntity: GridEntity): boolean;
|
|
5842
5842
|
|
|
5843
|
-
/** For `PickupVariant.HEART` (10) */
|
|
5843
|
+
/** For `PickupVariant.HEART` (10). */
|
|
5844
5844
|
export declare function isHeart(pickup: EntityPickup): pickup is EntityPickupHeart;
|
|
5845
5845
|
|
|
5846
5846
|
/**
|
|
@@ -5884,7 +5884,7 @@ export declare function isKColor(object: unknown): object is KColor;
|
|
|
5884
5884
|
*/
|
|
5885
5885
|
export declare function isKeeper(player: EntityPlayer): boolean;
|
|
5886
5886
|
|
|
5887
|
-
/** For `PickupVariant.KEY` (30) */
|
|
5887
|
+
/** For `PickupVariant.KEY` (30). */
|
|
5888
5888
|
export declare function isKey(pickup: EntityPickup): pickup is EntityPickupKey;
|
|
5889
5889
|
|
|
5890
5890
|
/**
|
|
@@ -5983,7 +5983,7 @@ export declare function isPickingUpItemTrinket(pickingUpItem: PickingUpItem): pi
|
|
|
5983
5983
|
/** Helper function to detect if a variable is of type `EntityPickup`. */
|
|
5984
5984
|
export declare function isPickup(variable: unknown): variable is EntityPickup;
|
|
5985
5985
|
|
|
5986
|
-
/** For `PickupVariant.PILL` (70) */
|
|
5986
|
+
/** For `PickupVariant.PILL` (70). */
|
|
5987
5987
|
export declare function isPill(pickup: EntityPickup): pickup is EntityPickupPill;
|
|
5988
5988
|
|
|
5989
5989
|
/** Helper function to detect if a variable is of type `GridEntityPit`. */
|
|
@@ -6004,7 +6004,7 @@ export declare function isPocketItemObject(cardType: CardType): boolean;
|
|
|
6004
6004
|
/** Helper function to detect if a variable is of type `GridEntityPoop`. */
|
|
6005
6005
|
export declare function isPoop(variable: unknown): variable is GridEntityPoop;
|
|
6006
6006
|
|
|
6007
|
-
/** For `PickupVariant.POOP` (42) */
|
|
6007
|
+
/** For `PickupVariant.POOP` (42). */
|
|
6008
6008
|
export declare function isPoopPickup(pickup: EntityPickup): pickup is EntityPickupPoop;
|
|
6009
6009
|
|
|
6010
6010
|
/**
|
|
@@ -6089,7 +6089,7 @@ export declare function isRoomShapeDoubleCharge(roomShape: RoomShape): boolean;
|
|
|
6089
6089
|
/** Returns true for cards that have `CardType.RUNE`. */
|
|
6090
6090
|
export declare function isRune(cardType: CardType): boolean;
|
|
6091
6091
|
|
|
6092
|
-
/** For `PickupVariant.SACK` (69) */
|
|
6092
|
+
/** For `PickupVariant.SACK` (69). */
|
|
6093
6093
|
export declare function isSack(pickup: EntityPickup): pickup is EntityPickupSack;
|
|
6094
6094
|
|
|
6095
6095
|
/**
|
|
@@ -6160,7 +6160,7 @@ export declare function isSin(npc: EntityNPC): boolean;
|
|
|
6160
6160
|
*/
|
|
6161
6161
|
export declare function isSingleUseCollectible(collectibleType: CollectibleType): boolean;
|
|
6162
6162
|
|
|
6163
|
-
/** For `EntityType.SLOT` (6) */
|
|
6163
|
+
/** For `EntityType.SLOT` (6). */
|
|
6164
6164
|
export declare function isSlot(entity: Entity): entity is EntitySlot;
|
|
6165
6165
|
|
|
6166
6166
|
/** Returns true for cards that have `CardType.SPECIAL`. */
|
|
@@ -6200,7 +6200,7 @@ export declare function isTNT(variable: unknown): variable is GridEntityTNT;
|
|
|
6200
6200
|
|
|
6201
6201
|
export declare function isTransformationFlying(playerForm: PlayerForm): boolean;
|
|
6202
6202
|
|
|
6203
|
-
/** For `PickupVariant.TRINKET` (350) */
|
|
6203
|
+
/** For `PickupVariant.TRINKET` (350). */
|
|
6204
6204
|
export declare function isTrinket(pickup: EntityPickup): pickup is EntityPickupTrinket;
|
|
6205
6205
|
|
|
6206
6206
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "dist/index",
|
|
23
23
|
"types": "dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^4.0.
|
|
25
|
+
"isaac-typescript-definitions": "^4.0.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import { DEFAULT_BASE_STAGE } from "./exports";
|
|
26
26
|
import v from "./v";
|
|
27
27
|
|
|
28
|
-
/** For `GridEntityType.DECORATION` (1) */
|
|
28
|
+
/** For `GridEntityType.DECORATION` (1). */
|
|
29
29
|
export function setCustomDecorationGraphics(
|
|
30
30
|
customStage: CustomStage,
|
|
31
31
|
gridEntity: GridEntity,
|
|
@@ -71,7 +71,7 @@ export function setCustomDecorationGraphics(
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
/** For `GridEntityType.ROCK` (2) */
|
|
74
|
+
/** For `GridEntityType.ROCK` (2). */
|
|
75
75
|
export function setCustomRockGraphics(
|
|
76
76
|
customStage: CustomStage,
|
|
77
77
|
gridEntity: GridEntity,
|
|
@@ -134,7 +134,7 @@ export function setCustomRockGraphics(
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
/** For `GridEntityType.PIT` (7) */
|
|
137
|
+
/** For `GridEntityType.PIT` (7). */
|
|
138
138
|
export function setCustomPitGraphics(
|
|
139
139
|
customStage: CustomStage,
|
|
140
140
|
gridEntity: GridEntity,
|
|
@@ -164,7 +164,7 @@ export function setCustomPitGraphics(
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
/** For GridEntityType.DOOR (16) */
|
|
167
|
+
/** For `GridEntityType.DOOR` (16). */
|
|
168
168
|
export function setCustomDoorGraphics(
|
|
169
169
|
customStage: CustomStage,
|
|
170
170
|
gridEntity: GridEntity,
|
package/src/functions/effects.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inRectangle } from "./math";
|
|
2
2
|
|
|
3
|
-
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76) */
|
|
3
|
+
/** For `EntityType.EFFECT` (1000), `EffectVariant.DICE_FLOOR` (76). */
|
|
4
4
|
export const DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75;
|
|
5
5
|
|
|
6
6
|
/** Helper function to see if a player is close enough to activate a Dice Room floor. */
|
|
@@ -2,59 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
import { PickupVariant } from "isaac-typescript-definitions";
|
|
4
4
|
|
|
5
|
-
/** For `PickupVariant.HEART` (10) */
|
|
5
|
+
/** For `PickupVariant.HEART` (10). */
|
|
6
6
|
export function isHeart(pickup: EntityPickup): pickup is EntityPickupHeart {
|
|
7
7
|
return pickup.Variant === PickupVariant.HEART;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
/** For `PickupVariant.COIN` (20) */
|
|
10
|
+
/** For `PickupVariant.COIN` (20). */
|
|
11
11
|
export function isCoin(pickup: EntityPickup): pickup is EntityPickupCoin {
|
|
12
12
|
return pickup.Variant === PickupVariant.COIN;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/** For `PickupVariant.KEY` (30) */
|
|
15
|
+
/** For `PickupVariant.KEY` (30). */
|
|
16
16
|
export function isKey(pickup: EntityPickup): pickup is EntityPickupKey {
|
|
17
17
|
return pickup.Variant === PickupVariant.KEY;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/** For `PickupVariant.BOMB` (40) */
|
|
20
|
+
/** For `PickupVariant.BOMB` (40). */
|
|
21
21
|
export function isBombPickup(pickup: EntityPickup): pickup is EntityPickupBomb {
|
|
22
22
|
return pickup.Variant === PickupVariant.BOMB;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/** For `PickupVariant.POOP` (42) */
|
|
25
|
+
/** For `PickupVariant.POOP` (42). */
|
|
26
26
|
export function isPoopPickup(pickup: EntityPickup): pickup is EntityPickupPoop {
|
|
27
27
|
return pickup.Variant === PickupVariant.POOP;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
/** For `PickupVariant.SACK` (69) */
|
|
30
|
+
/** For `PickupVariant.SACK` (69). */
|
|
31
31
|
export function isSack(pickup: EntityPickup): pickup is EntityPickupSack {
|
|
32
32
|
return pickup.Variant === PickupVariant.SACK;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/** For `PickupVariant.PILL` (70) */
|
|
35
|
+
/** For `PickupVariant.PILL` (70). */
|
|
36
36
|
export function isPill(pickup: EntityPickup): pickup is EntityPickupPill {
|
|
37
37
|
return pickup.Variant === PickupVariant.PILL;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/** For `PickupVariant.LIL_BATTERY` (90) */
|
|
40
|
+
/** For `PickupVariant.LIL_BATTERY` (90). */
|
|
41
41
|
export function isBattery(pickup: EntityPickup): pickup is EntityPickupBattery {
|
|
42
42
|
return pickup.Variant === PickupVariant.LIL_BATTERY;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
/** For `PickupVariant.COLLECTIBLE` (100) */
|
|
45
|
+
/** For `PickupVariant.COLLECTIBLE` (100). */
|
|
46
46
|
export function isCollectible(
|
|
47
47
|
pickup: EntityPickup,
|
|
48
48
|
): pickup is EntityPickupCollectible {
|
|
49
49
|
return pickup.Variant === PickupVariant.COLLECTIBLE;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
/** For `PickupVariant.TAROT_CARD` (300) */
|
|
52
|
+
/** For `PickupVariant.TAROT_CARD` (300). */
|
|
53
53
|
export function isCardPickup(pickup: EntityPickup): pickup is EntityPickupCard {
|
|
54
54
|
return pickup.Variant === PickupVariant.TAROT_CARD;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
/** For `PickupVariant.TRINKET` (350) */
|
|
57
|
+
/** For `PickupVariant.TRINKET` (350). */
|
|
58
58
|
export function isTrinket(pickup: EntityPickup): pickup is EntityPickupTrinket {
|
|
59
59
|
return pickup.Variant === PickupVariant.TRINKET;
|
|
60
60
|
}
|