isaacscript-common 39.2.0 → 39.2.2
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/index.rollup.d.ts +5 -5
- package/dist/isaacscript-common.lua +1 -1
- package/dist/src/functions/cards.d.ts +4 -4
- package/dist/src/functions/cards.d.ts.map +1 -1
- package/dist/src/functions/cards.lua +4 -4
- package/dist/src/functions/doors.d.ts +1 -1
- package/dist/src/functions/doors.lua +1 -1
- package/package.json +1 -1
- package/src/functions/cards.ts +4 -4
- package/src/functions/doors.ts +1 -1
package/dist/index.rollup.d.ts
CHANGED
|
@@ -6592,7 +6592,7 @@ export declare function getRedHearts(): EntityPickupHeart[];
|
|
|
6592
6592
|
|
|
6593
6593
|
/**
|
|
6594
6594
|
* Helper function to get the door that leads to the "secret exit" off-grid room that takes you to
|
|
6595
|
-
* the Repentance floor.
|
|
6595
|
+
* the Repentance floor or to the version of Depths 2 that has Dad's Key.
|
|
6596
6596
|
*
|
|
6597
6597
|
* Returns undefined if the room has no Repentance doors.
|
|
6598
6598
|
*/
|
|
@@ -9046,7 +9046,7 @@ export declare function isRoomType(roomData: RoomConfig, ...roomTypes: RoomType[
|
|
|
9046
9046
|
*/
|
|
9047
9047
|
export declare function isRoomVisible(roomGridIndexOrRoomDescriptor: int | RoomDescriptor, minimapAPI?: boolean): boolean;
|
|
9048
9048
|
|
|
9049
|
-
/** Returns true for cards that have `
|
|
9049
|
+
/** Returns true for cards that have `ItemConfigCardType.RUNE`. */
|
|
9050
9050
|
export declare function isRune(cardType: CardType): boolean;
|
|
9051
9051
|
|
|
9052
9052
|
/** For `PickupVariant.SACK` (69). */
|
|
@@ -9155,7 +9155,7 @@ export declare function isSlot(entity: Entity): entity is EntitySlot;
|
|
|
9155
9155
|
/** Returns true for the specific variants of `EntityType.SLOT` that are machines. */
|
|
9156
9156
|
export declare function isSlotMachine(entity: Entity): boolean;
|
|
9157
9157
|
|
|
9158
|
-
/** Returns true for cards that have `
|
|
9158
|
+
/** Returns true for cards that have `ItemConfigCardType.SPECIAL`. */
|
|
9159
9159
|
export declare function isSpecialCard(cardType: CardType): boolean;
|
|
9160
9160
|
|
|
9161
9161
|
/** Helper function to detect if a variable is of type `GridEntitySpikes`. */
|
|
@@ -9225,7 +9225,7 @@ export declare function isStoryBoss(entityType: EntityType): boolean;
|
|
|
9225
9225
|
|
|
9226
9226
|
export declare function isString(variable: unknown): variable is string;
|
|
9227
9227
|
|
|
9228
|
-
/** Returns true for cards that have `
|
|
9228
|
+
/** Returns true for cards that have `ItemConfigCardType.SUIT`. */
|
|
9229
9229
|
export declare function isSuitCard(cardType: CardType): boolean;
|
|
9230
9230
|
|
|
9231
9231
|
export declare function isTable(variable: unknown): variable is LuaMap<AnyNotNil, unknown>;
|
|
@@ -9239,7 +9239,7 @@ export declare function isTainted(player: EntityPlayer): boolean;
|
|
|
9239
9239
|
/** Helper function for detecting when a player is Tainted Lazarus or Dead Tainted Lazarus. */
|
|
9240
9240
|
export declare function isTaintedLazarus(player: EntityPlayer): boolean;
|
|
9241
9241
|
|
|
9242
|
-
/** Returns true for cards that have `
|
|
9242
|
+
/** Returns true for cards that have `ItemConfigCardType.TAROT`. */
|
|
9243
9243
|
export declare function isTarotCard(cardType: CardType): boolean;
|
|
9244
9244
|
|
|
9245
9245
|
/** Helper function to detect if a variable is of type `EntityTear`. */
|
|
@@ -42,13 +42,13 @@ export declare function isModdedCardType(cardType: CardType): boolean;
|
|
|
42
42
|
export declare function isPocketItemObject(cardType: CardType): boolean;
|
|
43
43
|
/** Returns true for cards that have `ItemConfigCardType.TAROT_REVERSE`. */
|
|
44
44
|
export declare function isReverseTarotCard(cardType: CardType): boolean;
|
|
45
|
-
/** Returns true for cards that have `
|
|
45
|
+
/** Returns true for cards that have `ItemConfigCardType.RUNE`. */
|
|
46
46
|
export declare function isRune(cardType: CardType): boolean;
|
|
47
|
-
/** Returns true for cards that have `
|
|
47
|
+
/** Returns true for cards that have `ItemConfigCardType.SPECIAL`. */
|
|
48
48
|
export declare function isSpecialCard(cardType: CardType): boolean;
|
|
49
|
-
/** Returns true for cards that have `
|
|
49
|
+
/** Returns true for cards that have `ItemConfigCardType.SUIT`. */
|
|
50
50
|
export declare function isSuitCard(cardType: CardType): boolean;
|
|
51
|
-
/** Returns true for cards that have `
|
|
51
|
+
/** Returns true for cards that have `ItemConfigCardType.TAROT`. */
|
|
52
52
|
export declare function isTarotCard(cardType: CardType): boolean;
|
|
53
53
|
/** Returns true for any vanilla card or rune. */
|
|
54
54
|
export declare function isVanillaCardType(cardType: CardType): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../../src/functions/cards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAW,MAAM,8BAA8B,CAAC;AAe3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgB7D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgBtD;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,GACjB,kBAAkB,GAAG,SAAS,CAOhC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,QAAQ,EAAE,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAOlD;AAED,uFAAuF;AACvF,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAET;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE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ED,kEAAkE;AAClE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,mEAAmE;AACnE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEvD;AAED,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE7D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAG1E"}
|
|
@@ -97,19 +97,19 @@ end
|
|
|
97
97
|
function ____exports.isReverseTarotCard(self, cardType)
|
|
98
98
|
return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT_REVERSE)
|
|
99
99
|
end
|
|
100
|
-
--- Returns true for cards that have `
|
|
100
|
+
--- Returns true for cards that have `ItemConfigCardType.RUNE`.
|
|
101
101
|
function ____exports.isRune(self, cardType)
|
|
102
102
|
return ____exports.isCardType(nil, cardType, ItemConfigCardType.RUNE)
|
|
103
103
|
end
|
|
104
|
-
--- Returns true for cards that have `
|
|
104
|
+
--- Returns true for cards that have `ItemConfigCardType.SPECIAL`.
|
|
105
105
|
function ____exports.isSpecialCard(self, cardType)
|
|
106
106
|
return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL)
|
|
107
107
|
end
|
|
108
|
-
--- Returns true for cards that have `
|
|
108
|
+
--- Returns true for cards that have `ItemConfigCardType.SUIT`.
|
|
109
109
|
function ____exports.isSuitCard(self, cardType)
|
|
110
110
|
return ____exports.isCardType(nil, cardType, ItemConfigCardType.SUIT)
|
|
111
111
|
end
|
|
112
|
-
--- Returns true for cards that have `
|
|
112
|
+
--- Returns true for cards that have `ItemConfigCardType.TAROT`.
|
|
113
113
|
function ____exports.isTarotCard(self, cardType)
|
|
114
114
|
return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT)
|
|
115
115
|
end
|
|
@@ -75,7 +75,7 @@ export declare function getDoorsToRoomIndex(...roomGridIndex: int[]): GridEntity
|
|
|
75
75
|
export declare function getOppositeDoorSlot(doorSlot: DoorSlot): DoorSlot | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* Helper function to get the door that leads to the "secret exit" off-grid room that takes you to
|
|
78
|
-
* the Repentance floor.
|
|
78
|
+
* the Repentance floor or to the version of Depths 2 that has Dad's Key.
|
|
79
79
|
*
|
|
80
80
|
* Returns undefined if the room has no Repentance doors.
|
|
81
81
|
*/
|
|
@@ -250,7 +250,7 @@ function ____exports.getOppositeDoorSlot(self, doorSlot)
|
|
|
250
250
|
return OPPOSITE_DOOR_SLOTS[doorSlot]
|
|
251
251
|
end
|
|
252
252
|
--- Helper function to get the door that leads to the "secret exit" off-grid room that takes you to
|
|
253
|
-
-- the Repentance floor.
|
|
253
|
+
-- the Repentance floor or to the version of Depths 2 that has Dad's Key.
|
|
254
254
|
--
|
|
255
255
|
-- Returns undefined if the room has no Repentance doors.
|
|
256
256
|
function ____exports.getRepentanceDoor(self)
|
package/package.json
CHANGED
package/src/functions/cards.ts
CHANGED
|
@@ -126,22 +126,22 @@ export function isReverseTarotCard(cardType: CardType): boolean {
|
|
|
126
126
|
return isCardType(cardType, ItemConfigCardType.TAROT_REVERSE);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
/** Returns true for cards that have `
|
|
129
|
+
/** Returns true for cards that have `ItemConfigCardType.RUNE`. */
|
|
130
130
|
export function isRune(cardType: CardType): boolean {
|
|
131
131
|
return isCardType(cardType, ItemConfigCardType.RUNE);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
/** Returns true for cards that have `
|
|
134
|
+
/** Returns true for cards that have `ItemConfigCardType.SPECIAL`. */
|
|
135
135
|
export function isSpecialCard(cardType: CardType): boolean {
|
|
136
136
|
return isCardType(cardType, ItemConfigCardType.SPECIAL);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
/** Returns true for cards that have `
|
|
139
|
+
/** Returns true for cards that have `ItemConfigCardType.SUIT`. */
|
|
140
140
|
export function isSuitCard(cardType: CardType): boolean {
|
|
141
141
|
return isCardType(cardType, ItemConfigCardType.SUIT);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
/** Returns true for cards that have `
|
|
144
|
+
/** Returns true for cards that have `ItemConfigCardType.TAROT`. */
|
|
145
145
|
export function isTarotCard(cardType: CardType): boolean {
|
|
146
146
|
return isCardType(cardType, ItemConfigCardType.TAROT);
|
|
147
147
|
}
|
package/src/functions/doors.ts
CHANGED
|
@@ -240,7 +240,7 @@ export function getOppositeDoorSlot(doorSlot: DoorSlot): DoorSlot | undefined {
|
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Helper function to get the door that leads to the "secret exit" off-grid room that takes you to
|
|
243
|
-
* the Repentance floor.
|
|
243
|
+
* the Repentance floor or to the version of Depths 2 that has Dad's Key.
|
|
244
244
|
*
|
|
245
245
|
* Returns undefined if the room has no Repentance doors.
|
|
246
246
|
*/
|