isaacscript-common 31.7.2 → 31.8.0
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 +215 -153
- package/dist/isaacscript-common.lua +144 -14
- package/dist/lualib_bundle.lua +99 -3
- package/dist/src/classes/ModFeature.d.ts +2 -2
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostUsePillFilter.d.ts +2 -2
- package/dist/src/classes/callbacks/PostUsePillFilter.lua +2 -2
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts +1 -1
- package/dist/src/classes/features/other/CustomItemPools.d.ts +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts +2 -2
- package/dist/src/classes/features/other/DebugDisplay.d.ts +18 -18
- package/dist/src/classes/features/other/ModdedElementSets.d.ts +2 -2
- package/dist/src/classes/features/other/RunInNFrames.d.ts +14 -14
- package/dist/src/classes/features/other/SaveDataManager.d.ts +2 -2
- package/dist/src/classes/features/other/SpawnRockAltRewards.d.ts +1 -1
- package/dist/src/classes/features/other/StageHistory.d.ts +2 -2
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +1 -1
- package/dist/src/functions/array.d.ts +4 -4
- package/dist/src/functions/array.lua +4 -4
- package/dist/src/functions/cards.d.ts +1 -1
- package/dist/src/functions/cards.d.ts.map +1 -1
- package/dist/src/functions/cards.lua +1 -1
- package/dist/src/functions/charge.d.ts +1 -1
- package/dist/src/functions/charge.lua +1 -1
- package/dist/src/functions/collectibles.d.ts +3 -3
- package/dist/src/functions/collectibles.lua +3 -3
- package/dist/src/functions/debugFunctions.d.ts +2 -2
- package/dist/src/functions/debugFunctions.lua +2 -2
- package/dist/src/functions/deepCopy.d.ts +2 -2
- package/dist/src/functions/deepCopy.lua +2 -2
- package/dist/src/functions/globals.d.ts +1 -1
- package/dist/src/functions/globals.lua +1 -1
- package/dist/src/functions/gridEntities.d.ts +6 -6
- package/dist/src/functions/gridEntities.lua +6 -6
- package/dist/src/functions/gridEntitiesSpecific.d.ts +22 -22
- package/dist/src/functions/gridEntitiesSpecific.lua +22 -22
- package/dist/src/functions/input.d.ts +4 -4
- package/dist/src/functions/input.lua +4 -4
- package/dist/src/functions/logEntities.d.ts +1 -1
- package/dist/src/functions/logEntities.lua +1 -1
- package/dist/src/functions/minimap.d.ts +17 -20
- package/dist/src/functions/minimap.d.ts.map +1 -1
- package/dist/src/functions/minimap.lua +17 -20
- package/dist/src/functions/nextStage.d.ts +2 -2
- package/dist/src/functions/nextStage.lua +2 -2
- package/dist/src/functions/pills.d.ts +2 -2
- package/dist/src/functions/pills.lua +2 -2
- package/dist/src/functions/playerHealth.d.ts +4 -4
- package/dist/src/functions/playerHealth.lua +4 -4
- package/dist/src/functions/playerIndex.d.ts +2 -3
- package/dist/src/functions/playerIndex.d.ts.map +1 -1
- package/dist/src/functions/playerIndex.lua +2 -3
- package/dist/src/functions/players.d.ts +5 -5
- package/dist/src/functions/players.lua +5 -5
- package/dist/src/functions/pocketItems.d.ts +5 -5
- package/dist/src/functions/pocketItems.lua +5 -5
- package/dist/src/functions/revive.d.ts +3 -3
- package/dist/src/functions/revive.lua +3 -3
- package/dist/src/functions/rooms.d.ts +7 -7
- package/dist/src/functions/rooms.lua +7 -7
- package/dist/src/functions/run.d.ts +1 -1
- package/dist/src/functions/run.lua +1 -1
- package/dist/src/functions/set.d.ts +1 -1
- package/dist/src/functions/set.lua +1 -1
- package/dist/src/functions/stage.d.ts +64 -7
- package/dist/src/functions/stage.d.ts.map +1 -1
- package/dist/src/functions/stage.lua +80 -16
- package/dist/src/functions/trinkets.d.ts +1 -1
- package/dist/src/functions/trinkets.lua +1 -1
- package/package.json +2 -2
- package/src/classes/ModFeature.ts +2 -2
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +1 -1
- package/src/classes/callbacks/PostUsePillFilter.ts +2 -2
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +1 -1
- package/src/classes/features/other/CustomItemPools.ts +1 -1
- package/src/classes/features/other/CustomTrapdoors.ts +2 -2
- package/src/classes/features/other/DebugDisplay.ts +18 -18
- package/src/classes/features/other/DisableInputs.ts +2 -2
- package/src/classes/features/other/ModdedElementSets.ts +2 -2
- package/src/classes/features/other/RunInNFrames.ts +15 -15
- package/src/classes/features/other/SaveDataManager.ts +2 -2
- package/src/classes/features/other/SpawnRockAltRewards.ts +1 -1
- package/src/classes/features/other/StageHistory.ts +2 -2
- package/src/classes/features/other/extraConsoleCommands/commands.ts +1 -1
- package/src/functions/array.ts +4 -4
- package/src/functions/cards.ts +1 -1
- package/src/functions/charge.ts +1 -1
- package/src/functions/collectibles.ts +3 -3
- package/src/functions/debugFunctions.ts +2 -2
- package/src/functions/deepCopy.ts +3 -3
- package/src/functions/globals.ts +1 -1
- package/src/functions/gridEntities.ts +6 -6
- package/src/functions/gridEntitiesSpecific.ts +22 -22
- package/src/functions/input.ts +4 -4
- package/src/functions/logEntities.ts +1 -1
- package/src/functions/minimap.ts +17 -20
- package/src/functions/nextStage.ts +2 -2
- package/src/functions/pills.ts +2 -2
- package/src/functions/playerHealth.ts +4 -4
- package/src/functions/playerIndex.ts +2 -3
- package/src/functions/players.ts +5 -5
- package/src/functions/pocketItems.ts +5 -5
- package/src/functions/revive.ts +3 -3
- package/src/functions/rooms.ts +7 -7
- package/src/functions/run.ts +1 -1
- package/src/functions/set.ts +1 -1
- package/src/functions/stage.ts +139 -33
- package/src/functions/trinkets.ts +1 -1
|
@@ -29,8 +29,8 @@ export declare class RunInNFrames extends Feature {
|
|
|
29
29
|
*
|
|
30
30
|
* @param func The function to run.
|
|
31
31
|
* @param numGameFrames The amount of game frames to wait before running the function.
|
|
32
|
-
* @param cancelIfRoomChanges Optional. Whether
|
|
33
|
-
*
|
|
32
|
+
* @param cancelIfRoomChanges Optional. Whether to cancel running the function if a new room is
|
|
33
|
+
* loaded in the interim. Default is false.
|
|
34
34
|
*/
|
|
35
35
|
runInNGameFrames(func: () => void, numGameFrames: int, cancelIfRoomChanges?: boolean): void;
|
|
36
36
|
/**
|
|
@@ -47,8 +47,8 @@ export declare class RunInNFrames extends Feature {
|
|
|
47
47
|
*
|
|
48
48
|
* @param func The function to run.
|
|
49
49
|
* @param numRenderFrames The amount of render frames to wait before running the function.
|
|
50
|
-
* @param cancelIfRoomChanges Optional. Whether
|
|
51
|
-
*
|
|
50
|
+
* @param cancelIfRoomChanges Optional. Whether to cancel running the function if a new room is
|
|
51
|
+
* loaded in the interim. Default is false.
|
|
52
52
|
*/
|
|
53
53
|
runInNRenderFrames(func: () => void, numRenderFrames: int, cancelIfRoomChanges?: boolean): void;
|
|
54
54
|
/**
|
|
@@ -82,8 +82,8 @@ export declare class RunInNFrames extends Feature {
|
|
|
82
82
|
* In order to use this function, you must upgrade your mod with `ISCFeature.RUN_IN_N_FRAMES`.
|
|
83
83
|
*
|
|
84
84
|
* @param func The function to run.
|
|
85
|
-
* @param cancelIfRoomChanges Optional. Whether
|
|
86
|
-
*
|
|
85
|
+
* @param cancelIfRoomChanges Optional. Whether to cancel running the function if a new room is
|
|
86
|
+
* loaded in the interim. Default is false.
|
|
87
87
|
*/
|
|
88
88
|
runNextGameFrame(func: () => void, cancelIfRoomChanges?: boolean): void;
|
|
89
89
|
/**
|
|
@@ -97,8 +97,8 @@ export declare class RunInNFrames extends Feature {
|
|
|
97
97
|
* In order to use this function, you must upgrade your mod with `ISCFeature.RUN_IN_N_FRAMES`.
|
|
98
98
|
*
|
|
99
99
|
* @param func The function to run.
|
|
100
|
-
* @param cancelIfRoomChanges Optional. Whether
|
|
101
|
-
*
|
|
100
|
+
* @param cancelIfRoomChanges Optional. Whether to cancel running the function if a new room is
|
|
101
|
+
* loaded in the interim. Default is false.
|
|
102
102
|
*/
|
|
103
103
|
runNextRenderFrame(func: () => void, cancelIfRoomChanges?: boolean): void;
|
|
104
104
|
/**
|
|
@@ -116,10 +116,10 @@ export declare class RunInNFrames extends Feature {
|
|
|
116
116
|
*
|
|
117
117
|
* @param func The function to repeatedly run on an interval.
|
|
118
118
|
* @param numGameFrames The amount of game frames to wait between each run.
|
|
119
|
-
* @param runImmediately Whether
|
|
119
|
+
* @param runImmediately Whether to execute the function right now before waiting for the
|
|
120
120
|
* interval.
|
|
121
|
-
* @param cancelIfRoomChanges Optional. Whether
|
|
122
|
-
*
|
|
121
|
+
* @param cancelIfRoomChanges Optional. Whether to cancel running the function if a new room is
|
|
122
|
+
* loaded in the interim. Default is false.
|
|
123
123
|
*/
|
|
124
124
|
setIntervalGameFrames(func: () => boolean, numGameFrames: int, runImmediately: boolean, cancelIfRoomChanges?: boolean): void;
|
|
125
125
|
/**
|
|
@@ -137,10 +137,10 @@ export declare class RunInNFrames extends Feature {
|
|
|
137
137
|
*
|
|
138
138
|
* @param func The function to repeatedly run on an interval.
|
|
139
139
|
* @param numRenderFrames The amount of game frames to wait between each run.
|
|
140
|
-
* @param runImmediately Whether
|
|
140
|
+
* @param runImmediately Whether to execute the function right now before waiting for the
|
|
141
141
|
* interval.
|
|
142
|
-
* @param cancelIfRoomChanges Optional. Whether
|
|
143
|
-
*
|
|
142
|
+
* @param cancelIfRoomChanges Optional. Whether to cancel running the function if a new room is
|
|
143
|
+
* loaded in the interim. Default is false.
|
|
144
144
|
*/
|
|
145
145
|
setIntervalRenderFrames(func: () => boolean, numRenderFrames: int, runImmediately: boolean, cancelIfRoomChanges?: boolean): void;
|
|
146
146
|
}
|
|
@@ -20,8 +20,8 @@ export declare class SaveDataManager extends Feature {
|
|
|
20
20
|
*/
|
|
21
21
|
private readonly saveDataDefaultsMap;
|
|
22
22
|
/**
|
|
23
|
-
* Each mod feature can optionally provide a function that can control whether
|
|
24
|
-
*
|
|
23
|
+
* Each mod feature can optionally provide a function that can control whether the save data is
|
|
24
|
+
* written to disk.
|
|
25
25
|
*/
|
|
26
26
|
private readonly saveDataConditionalFuncMap;
|
|
27
27
|
/**
|
|
@@ -36,7 +36,7 @@ export declare class SpawnRockAltRewards extends Feature {
|
|
|
36
36
|
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided,
|
|
37
37
|
* the `RNG.Next` method will be called. Default is `getRandomSeed()`. Normally,
|
|
38
38
|
* you should pass the `InitSeed` of the grid entity that was broken.
|
|
39
|
-
* @returns Whether
|
|
39
|
+
* @returns Whether this function spawned something.
|
|
40
40
|
*/
|
|
41
41
|
spawnRockAltReward(positionOrGridIndex: Vector | int, rockAltType: RockAltType, seedOrRNG?: Seed | RNG): boolean;
|
|
42
42
|
/**
|
|
@@ -13,8 +13,8 @@ export declare class StageHistory extends Feature {
|
|
|
13
13
|
*
|
|
14
14
|
* In order to use this function, you must upgrade your mod with `ISCFeature.STAGE_HISTORY`.
|
|
15
15
|
*
|
|
16
|
-
* @param upwards Whether
|
|
17
|
-
*
|
|
16
|
+
* @param upwards Whether the player should go up to Cathedral in the case of being on Womb 2.
|
|
17
|
+
* Default is false.
|
|
18
18
|
*/
|
|
19
19
|
getNextStageTypeWithHistory(upwards?: boolean): StageType;
|
|
20
20
|
/**
|
|
@@ -123,7 +123,7 @@ export declare function dd(): void;
|
|
|
123
123
|
export declare function devilRoom(): void;
|
|
124
124
|
/** Warps to the first Dirty Bedroom on the floor. */
|
|
125
125
|
export declare function dirtyBedroom(): void;
|
|
126
|
-
/** Toggles whether
|
|
126
|
+
/** Toggles whether curses can appear. */
|
|
127
127
|
export declare function disableCurses(): void;
|
|
128
128
|
/** Warps to the Dogma Boss Room. */
|
|
129
129
|
export declare function dogma(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AA6IA;;;;GAIG;AACH,wBAAgB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ED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAGrC;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA4B9C;AAED,0CAA0C;AAC1C,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE3C;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED,gDAAgD;AAChD,wBAAgB,UAAU,IAAI,IAAI,CAEjC;AAED,6CAA6C;AAC7C,wBAAgB,MAAM,IAAI,IAAI,CAG7B;AAED,oBAAoB;AACpB,wBAAgB,GAAG,IAAI,IAAI,CAG1B;AAED,mBAAmB;AACnB,wBAAgB,EAAE,IAAI,IAAI,CAGzB;AAED,oEAAoE;AACpE,wBAAgB,QAAQ,IAAI,IAAI,CAI/B;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB3C;AAED,2CAA2C;AAC3C,wBAAgB,QAAQ,IAAI,IAAI,CAG/B;AAED,qCAAqC;AACrC,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AA6IA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBA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gB,YAAY,IAAI,IAAI,CAInC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB1C;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
|
|
@@ -537,7 +537,7 @@ end
|
|
|
537
537
|
function ____exports.dirtyBedroom(self)
|
|
538
538
|
warpToRoomType(nil, RoomType.DIRTY_BEDROOM)
|
|
539
539
|
end
|
|
540
|
-
--- Toggles whether
|
|
540
|
+
--- Toggles whether curses can appear.
|
|
541
541
|
function ____exports.disableCurses(self)
|
|
542
542
|
v.persistent.disableCurses = not v.persistent.disableCurses
|
|
543
543
|
printEnabled(nil, not v.persistent.disableCurses, "curses")
|
|
@@ -71,7 +71,7 @@ export declare function arrayRemoveIndex<T>(originalArray: T[] | readonly T[], .
|
|
|
71
71
|
*
|
|
72
72
|
* This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
73
73
|
*
|
|
74
|
-
* @returns Whether
|
|
74
|
+
* @returns Whether any array elements were removed.
|
|
75
75
|
*/
|
|
76
76
|
export declare function arrayRemoveIndexInPlace<T>(array: T[], ...indexesToRemove: int[]): boolean;
|
|
77
77
|
export declare function arrayToString(array: unknown[]): string;
|
|
@@ -124,7 +124,7 @@ export declare function filterMap<OldT, NewT>(array: OldT[] | readonly OldT[], f
|
|
|
124
124
|
* From: https://github.com/firstandthird/combinations/blob/master/index.js
|
|
125
125
|
*
|
|
126
126
|
* @param array The array to get the combinations of.
|
|
127
|
-
* @param includeEmptyArray Whether
|
|
127
|
+
* @param includeEmptyArray Whether to include an empty array in the combinations.
|
|
128
128
|
* @param min Optional. The minimum number of elements to include in each combination. Default is 1.
|
|
129
129
|
* @param max Optional. The maximum number of elements to include in each combination. Default is
|
|
130
130
|
* the length of the array.
|
|
@@ -182,8 +182,8 @@ export declare function getRandomArrayIndex<T>(array: T[] | readonly T[], seedOr
|
|
|
182
182
|
* - the table has no keys (i.e. an "empty" table)
|
|
183
183
|
*
|
|
184
184
|
* @param object The object to analyze.
|
|
185
|
-
* @param ensureContiguousValues Optional. Whether
|
|
186
|
-
*
|
|
185
|
+
* @param ensureContiguousValues Optional. Whether the Lua table has to have all contiguous keys in
|
|
186
|
+
* order to be considered an array. Default is true.
|
|
187
187
|
*/
|
|
188
188
|
export declare function isArray(object: unknown, ensureContiguousValues?: boolean): object is unknown[];
|
|
189
189
|
/**
|
|
@@ -241,7 +241,7 @@ end
|
|
|
241
241
|
--
|
|
242
242
|
-- This function is variadic, meaning that you can specify N arguments to remove N elements.
|
|
243
243
|
--
|
|
244
|
-
-- @returns Whether
|
|
244
|
+
-- @returns Whether any array elements were removed.
|
|
245
245
|
function ____exports.arrayRemoveIndexInPlace(self, array, ...)
|
|
246
246
|
local indexesToRemove = {...}
|
|
247
247
|
local legalIndexes = __TS__ArrayFilter(
|
|
@@ -328,7 +328,7 @@ end
|
|
|
328
328
|
-- From: https://github.com/firstandthird/combinations/blob/master/index.js
|
|
329
329
|
--
|
|
330
330
|
-- @param array The array to get the combinations of.
|
|
331
|
-
-- @param includeEmptyArray Whether
|
|
331
|
+
-- @param includeEmptyArray Whether to include an empty array in the combinations.
|
|
332
332
|
-- @param min Optional. The minimum number of elements to include in each combination. Default is 1.
|
|
333
333
|
-- @param max Optional. The maximum number of elements to include in each combination. Default is
|
|
334
334
|
-- the length of the array.
|
|
@@ -431,8 +431,8 @@ end
|
|
|
431
431
|
-- - the table has no keys (i.e. an "empty" table)
|
|
432
432
|
--
|
|
433
433
|
-- @param object The object to analyze.
|
|
434
|
-
-- @param ensureContiguousValues Optional. Whether
|
|
435
|
-
--
|
|
434
|
+
-- @param ensureContiguousValues Optional. Whether the Lua table has to have all contiguous keys in
|
|
435
|
+
-- order to be considered an array. Default is true.
|
|
436
436
|
function ____exports.isArray(self, object, ensureContiguousValues)
|
|
437
437
|
if ensureContiguousValues == nil then
|
|
438
438
|
ensureContiguousValues = true
|
|
@@ -34,7 +34,7 @@ export declare function getVanillaCardTypes(): CardType[];
|
|
|
34
34
|
* - CardType.TAROT_REVERSE
|
|
35
35
|
*/
|
|
36
36
|
export declare function isCard(cardType: CardType): boolean;
|
|
37
|
-
/** Returns whether
|
|
37
|
+
/** Returns whether the given card type matches the specified item config card type. */
|
|
38
38
|
export declare function isCardType(cardType: CardType, itemConfigCardType: ItemConfigCardType): boolean;
|
|
39
39
|
/** Returns true for any card or rune added by a mod. */
|
|
40
40
|
export declare function isModdedCardType(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,EAAE,MAAM,8BAA8B,CAAC;AAclE;;;;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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,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEzD;AAED,wDAAwD;AACxD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,yDAAyD;AACzD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEvD;AAED,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE7D"}
|
|
@@ -78,7 +78,7 @@ function ____exports.isCard(self, cardType)
|
|
|
78
78
|
end
|
|
79
79
|
return ITEM_CONFIG_CARD_TYPES_FOR_CARDS_SET:has(itemConfigCardType)
|
|
80
80
|
end
|
|
81
|
-
--- Returns whether
|
|
81
|
+
--- Returns whether the given card type matches the specified item config card type.
|
|
82
82
|
function ____exports.isCardType(self, cardType, itemConfigCardType)
|
|
83
83
|
return itemConfigCardType == ____exports.getItemConfigCardType(nil, cardType)
|
|
84
84
|
end
|
|
@@ -107,7 +107,7 @@ export declare function isActiveSlotDoubleCharged(player: EntityPlayer, activeSl
|
|
|
107
107
|
/**
|
|
108
108
|
* Helper function to play the appropriate sound effect for a player after getting one or more
|
|
109
109
|
* charges on their active item. (There is a different sound depending on whether the item is fully
|
|
110
|
-
* charged
|
|
110
|
+
* charged.)
|
|
111
111
|
*
|
|
112
112
|
* @param player The player to play the sound effect for.
|
|
113
113
|
* @param activeSlot Optional. The slot that was just charged. Default is `ActiveSlot.PRIMARY`.
|
|
@@ -156,7 +156,7 @@ function ____exports.getTotalCharge(self, player, activeSlot)
|
|
|
156
156
|
end
|
|
157
157
|
--- Helper function to play the appropriate sound effect for a player after getting one or more
|
|
158
158
|
-- charges on their active item. (There is a different sound depending on whether the item is fully
|
|
159
|
-
-- charged
|
|
159
|
+
-- charged.)
|
|
160
160
|
--
|
|
161
161
|
-- @param player The player to play the sound effect for.
|
|
162
162
|
-- @param activeSlot Optional. The slot that was just charged. Default is `ActiveSlot.PRIMARY`.
|
|
@@ -104,9 +104,9 @@ export declare function isActiveCollectible(collectibleType: CollectibleType): b
|
|
|
104
104
|
*/
|
|
105
105
|
export declare function isBlindCollectible(collectible: EntityPickup): boolean;
|
|
106
106
|
/**
|
|
107
|
-
* Returns whether
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* Returns whether the given collectible is a "glitched" item. All items are replaced by glitched
|
|
108
|
+
* items once a player has TMTRAINER. However, glitched items can also "naturally" appear in secret
|
|
109
|
+
* rooms and I AM ERROR rooms if the "Corrupted Data" achievement is unlocked.
|
|
110
110
|
*/
|
|
111
111
|
export declare function isGlitchedCollectible(collectible: EntityPickup): boolean;
|
|
112
112
|
/**
|
|
@@ -353,9 +353,9 @@ function ____exports.isBlindCollectible(self, collectible)
|
|
|
353
353
|
questionMarkSprite:SetFrame(animation, frame)
|
|
354
354
|
return ____exports.collectibleSpriteEquals(nil, sprite, questionMarkSprite)
|
|
355
355
|
end
|
|
356
|
-
--- Returns whether
|
|
357
|
-
--
|
|
358
|
-
--
|
|
356
|
+
--- Returns whether the given collectible is a "glitched" item. All items are replaced by glitched
|
|
357
|
+
-- items once a player has TMTRAINER. However, glitched items can also "naturally" appear in secret
|
|
358
|
+
-- rooms and I AM ERROR rooms if the "Corrupted Data" achievement is unlocked.
|
|
359
359
|
function ____exports.isGlitchedCollectible(self, collectible)
|
|
360
360
|
return collectible.Variant == PickupVariant.COLLECTIBLE and collectible.SubType > GLITCHED_ITEM_THRESHOLD
|
|
361
361
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Helper function to get the current time for benchmarking / profiling purposes.
|
|
4
4
|
*
|
|
5
5
|
* The return value will either be in seconds or milliseconds, depending on if the "--luadebug" flag
|
|
6
|
-
* is turned on
|
|
6
|
+
* is turned on.
|
|
7
7
|
*
|
|
8
8
|
* If the "--luadebug" flag is present, then this function will use the `socket.gettime` method,
|
|
9
9
|
* which returns the epoch timestamp in seconds (e.g. "1640320492.5779"). This is preferable over
|
|
@@ -34,7 +34,7 @@ export declare function getTraceback(this: void): string;
|
|
|
34
34
|
* documented here: https://wofsauge.github.io/IsaacDocs/rep/Globals.html
|
|
35
35
|
*
|
|
36
36
|
* This function uses the `package` global variable as a proxy to determine if the "--luadebug" flag
|
|
37
|
-
* is enabled
|
|
37
|
+
* is enabled.
|
|
38
38
|
*
|
|
39
39
|
* Note that this function will return false if the Racing+ sandbox is enabled, even if the
|
|
40
40
|
* "--luadebug" flag is really turned on. If checking for this case is needed, check for the
|
|
@@ -9,7 +9,7 @@ local log = ____log.log
|
|
|
9
9
|
-- documented here: https://wofsauge.github.io/IsaacDocs/rep/Globals.html
|
|
10
10
|
--
|
|
11
11
|
-- This function uses the `package` global variable as a proxy to determine if the "--luadebug" flag
|
|
12
|
-
-- is enabled
|
|
12
|
+
-- is enabled.
|
|
13
13
|
--
|
|
14
14
|
-- Note that this function will return false if the Racing+ sandbox is enabled, even if the
|
|
15
15
|
-- "--luadebug" flag is really turned on. If checking for this case is needed, check for the
|
|
@@ -20,7 +20,7 @@ end
|
|
|
20
20
|
--- Helper function to get the current time for benchmarking / profiling purposes.
|
|
21
21
|
--
|
|
22
22
|
-- The return value will either be in seconds or milliseconds, depending on if the "--luadebug" flag
|
|
23
|
-
-- is turned on
|
|
23
|
+
-- is turned on.
|
|
24
24
|
--
|
|
25
25
|
-- If the "--luadebug" flag is present, then this function will use the `socket.gettime` method,
|
|
26
26
|
-- which returns the epoch timestamp in seconds (e.g. "1640320492.5779"). This is preferable over
|
|
@@ -37,8 +37,8 @@ import type { AnyClass } from "../types/AnyClass";
|
|
|
37
37
|
* user-defined TSTL classes when recursively iterating through the given
|
|
38
38
|
* object, it will use this map to instantiate a new class. Default is an
|
|
39
39
|
* empty Lua table.
|
|
40
|
-
* @param insideMap Optional. Tracks whether
|
|
41
|
-
*
|
|
40
|
+
* @param insideMap Optional. Tracks whether the deep copy function is in the process of recursively
|
|
41
|
+
* copying a TSTL Map. Default is false.
|
|
42
42
|
*/
|
|
43
43
|
export declare function deepCopy<T>(value: T, serializationType?: SerializationType.NONE, traversalDescription?: string, classConstructors?: LuaMap<string, AnyClass>, insideMap?: boolean): T;
|
|
44
44
|
export declare function deepCopy(value: unknown, serializationType: SerializationType, traversalDescription?: string, classConstructors?: LuaMap<string, AnyClass>, insideMap?: boolean): unknown;
|
|
@@ -79,8 +79,8 @@ local getTraversalDescription = ____utils.getTraversalDescription
|
|
|
79
79
|
-- user-defined TSTL classes when recursively iterating through the given
|
|
80
80
|
-- object, it will use this map to instantiate a new class. Default is an
|
|
81
81
|
-- empty Lua table.
|
|
82
|
-
-- @param insideMap Optional. Tracks whether
|
|
83
|
-
--
|
|
82
|
+
-- @param insideMap Optional. Tracks whether the deep copy function is in the process of recursively
|
|
83
|
+
-- copying a TSTL Map. Default is false.
|
|
84
84
|
function ____exports.deepCopy(self, value, serializationType, traversalDescription, classConstructors, insideMap)
|
|
85
85
|
if serializationType == nil then
|
|
86
86
|
serializationType = SerializationType.NONE
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Helper function to get a set containing all of the global variable names that are contained
|
|
4
4
|
* within the Isaac environment by default.
|
|
5
5
|
*
|
|
6
|
-
* Returns a slightly different set depending on whether the "--luadebug" flag is enabled
|
|
6
|
+
* Returns a slightly different set depending on whether the "--luadebug" flag is enabled.
|
|
7
7
|
*/
|
|
8
8
|
export declare function getDefaultGlobals(): ReadonlySet<string>;
|
|
9
9
|
/**
|
|
@@ -202,7 +202,7 @@ local RACING_PLUS_SANDBOX_ADDED_GLOBALS = __TS__New(ReadonlySet, {"sandboxTraceb
|
|
|
202
202
|
--- Helper function to get a set containing all of the global variable names that are contained
|
|
203
203
|
-- within the Isaac environment by default.
|
|
204
204
|
--
|
|
205
|
-
-- Returns a slightly different set depending on whether the "--luadebug" flag is enabled
|
|
205
|
+
-- Returns a slightly different set depending on whether the "--luadebug" flag is enabled.
|
|
206
206
|
function ____exports.getDefaultGlobals(self)
|
|
207
207
|
local defaultGlobals = copySet(nil, DEFAULT_GLOBALS)
|
|
208
208
|
if isLuaDebugEnabled(nil) then
|
|
@@ -171,7 +171,7 @@ export declare function removeEntitiesSpawnedFromGridEntity(entities: Entity[],
|
|
|
171
171
|
* Helper function to remove all of the grid entities in the supplied array.
|
|
172
172
|
*
|
|
173
173
|
* @param gridEntities The array of grid entities to remove.
|
|
174
|
-
* @param updateRoom Whether
|
|
174
|
+
* @param updateRoom Whether to update the room after the grid entities are removed. This is
|
|
175
175
|
* generally a good idea because if the room is not updated, you will be unable to
|
|
176
176
|
* spawn another grid entity on the same tile until a frame has passed. However,
|
|
177
177
|
* doing this is expensive, since it involves a call to `Isaac.GetRoomEntities`,
|
|
@@ -188,11 +188,11 @@ export declare function removeGridEntities<T extends AnyGridEntity>(gridEntities
|
|
|
188
188
|
* (`EffectVariant.DEVIL` (6) or `EffectVariant.ANGEL` (9), respectively.)
|
|
189
189
|
*
|
|
190
190
|
* @param gridEntityOrGridIndex The grid entity or grid index to remove.
|
|
191
|
-
* @param updateRoom Whether
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
191
|
+
* @param updateRoom Whether to update the room after the grid entity is removed. This is generally
|
|
192
|
+
* a good idea because if the room is not updated, you will be unable to spawn
|
|
193
|
+
* another grid entity on the same tile until a frame has passed. However, doing
|
|
194
|
+
* this is expensive, since it involves a call to `Isaac.GetRoomEntities`, so set
|
|
195
|
+
* this to false if you need to run this function multiple times.
|
|
196
196
|
*/
|
|
197
197
|
export declare function removeGridEntity(gridEntityOrGridIndex: GridEntity | int, updateRoom: boolean): void;
|
|
198
198
|
/**
|
|
@@ -86,11 +86,11 @@ end
|
|
|
86
86
|
-- (`EffectVariant.DEVIL` (6) or `EffectVariant.ANGEL` (9), respectively.)
|
|
87
87
|
--
|
|
88
88
|
-- @param gridEntityOrGridIndex The grid entity or grid index to remove.
|
|
89
|
-
-- @param updateRoom Whether
|
|
90
|
-
--
|
|
91
|
-
--
|
|
92
|
-
--
|
|
93
|
-
--
|
|
89
|
+
-- @param updateRoom Whether to update the room after the grid entity is removed. This is generally
|
|
90
|
+
-- a good idea because if the room is not updated, you will be unable to spawn
|
|
91
|
+
-- another grid entity on the same tile until a frame has passed. However, doing
|
|
92
|
+
-- this is expensive, since it involves a call to `Isaac.GetRoomEntities`, so set
|
|
93
|
+
-- this to false if you need to run this function multiple times.
|
|
94
94
|
function ____exports.removeGridEntity(self, gridEntityOrGridIndex, updateRoom)
|
|
95
95
|
local room = game:GetRoom()
|
|
96
96
|
local ____isNumber_result_0
|
|
@@ -514,7 +514,7 @@ end
|
|
|
514
514
|
--- Helper function to remove all of the grid entities in the supplied array.
|
|
515
515
|
--
|
|
516
516
|
-- @param gridEntities The array of grid entities to remove.
|
|
517
|
-
-- @param updateRoom Whether
|
|
517
|
+
-- @param updateRoom Whether to update the room after the grid entities are removed. This is
|
|
518
518
|
-- generally a good idea because if the room is not updated, you will be unable to
|
|
519
519
|
-- spawn another grid entity on the same tile until a frame has passed. However,
|
|
520
520
|
-- doing this is expensive, since it involves a call to `Isaac.GetRoomEntities`,
|
|
@@ -63,7 +63,7 @@ export declare function getTrapdoors(trapdoorVariant?: TrapdoorVariant | -1): Gr
|
|
|
63
63
|
*
|
|
64
64
|
* @param crawlSpaceVariant Optional. If specified, will only remove the crawl spaces that match
|
|
65
65
|
* this variant. Default is -1, which matches every variant.
|
|
66
|
-
* @param updateRoom Optional. Whether
|
|
66
|
+
* @param updateRoom Optional. Whether to update the room after the crawl spaces are removed.
|
|
67
67
|
* Default is false. For more information, see the description of the
|
|
68
68
|
* `removeGridEntities` helper function.
|
|
69
69
|
* @param cap Optional. If specified, will only remove the given amount of crawl spaces.
|
|
@@ -75,8 +75,8 @@ export declare function removeAllCrawlSpaces(crawlSpaceVariant?: CrawlSpaceVaria
|
|
|
75
75
|
*
|
|
76
76
|
* @param pitVariant Optional. If specified, will only remove the pits that match this variant.
|
|
77
77
|
* Default is -1, which matches every variant.
|
|
78
|
-
* @param updateRoom Optional. Whether
|
|
79
|
-
*
|
|
78
|
+
* @param updateRoom Optional. Whether to update the room after the pits are removed. Default is
|
|
79
|
+
* false. For more information, see the description of the `removeGridEntities`
|
|
80
80
|
* helper function.
|
|
81
81
|
* @param cap Optional. If specified, will only remove the given amount of pits.
|
|
82
82
|
* @returns The pits that were removed.
|
|
@@ -90,9 +90,9 @@ export declare function removeAllPits(pitVariant?: PitVariant | -1, updateRoom?:
|
|
|
90
90
|
*
|
|
91
91
|
* @param poopVariant Optional. If specified, will only remove the poops that match this variant.
|
|
92
92
|
* Default is -1, which matches every variant.
|
|
93
|
-
* @param updateRoom Optional. Whether
|
|
94
|
-
*
|
|
95
|
-
*
|
|
93
|
+
* @param updateRoom Optional. Whether to update the room after the poops are removed. Default is
|
|
94
|
+
* false. For more information, see the description of the `removeGridEntities`
|
|
95
|
+
* helper function.
|
|
96
96
|
* @param cap Optional. If specified, will only remove the given amount of poops.
|
|
97
97
|
* @returns The poops that were removed.
|
|
98
98
|
*/
|
|
@@ -102,8 +102,8 @@ export declare function removeAllPoops(poopVariant?: PoopGridEntityVariant | -1,
|
|
|
102
102
|
*
|
|
103
103
|
* @param pressurePlateVariant Optional. If specified, will only remove the pressure plates that
|
|
104
104
|
* match this variant. Default is -1, which matches every variant.
|
|
105
|
-
* @param updateRoom Optional. Whether
|
|
106
|
-
*
|
|
105
|
+
* @param updateRoom Optional. Whether to update the room after the pressure plates are removed.
|
|
106
|
+
* Default is false. For more information, see the description of the
|
|
107
107
|
* `removeGridEntities` helper function.
|
|
108
108
|
* @param cap Optional. If specified, will only remove the given amount of pressure plates.
|
|
109
109
|
* @returns The pressure plates that were removed.
|
|
@@ -116,9 +116,9 @@ export declare function removeAllPressurePlates(pressurePlateVariant?: PressureP
|
|
|
116
116
|
* Default is -1, which matches every variant. Note that this is not the same thing
|
|
117
117
|
* as the `RockVariant` enum, since that only applies to `GridEntityType.ROCK`, and
|
|
118
118
|
* other types of grid entities can be the `GridEntityRock` class.
|
|
119
|
-
* @param updateRoom Optional. Whether
|
|
120
|
-
*
|
|
121
|
-
*
|
|
119
|
+
* @param updateRoom Optional. Whether to update the room after the rocks are removed. Default is
|
|
120
|
+
* false. For more information, see the description of the `removeGridEntities`
|
|
121
|
+
* helper function.
|
|
122
122
|
* @param cap Optional. If specified, will only remove the given amount of rocks.
|
|
123
123
|
* @returns The rocks that were removed.
|
|
124
124
|
*/
|
|
@@ -128,9 +128,9 @@ export declare function removeAllRocks(variant?: number, updateRoom?: boolean, c
|
|
|
128
128
|
*
|
|
129
129
|
* @param variant Optional. If specified, will only remove the spikes that match this variant.
|
|
130
130
|
* Default is -1, which matches every variant.
|
|
131
|
-
* @param updateRoom Optional. Whether
|
|
132
|
-
*
|
|
133
|
-
*
|
|
131
|
+
* @param updateRoom Optional. Whether to update the room after the spikes are removed. Default is
|
|
132
|
+
* false. For more information, see the description of the `removeGridEntities`
|
|
133
|
+
* helper function.
|
|
134
134
|
* @param cap Optional. If specified, will only remove the given amount of spikes.
|
|
135
135
|
* @returns The spikes that were removed.
|
|
136
136
|
*/
|
|
@@ -140,8 +140,8 @@ export declare function removeAllSpikes(variant?: number, updateRoom?: boolean,
|
|
|
140
140
|
*
|
|
141
141
|
* @param variant Optional. If specified, will only remove the TNTs that match this variant. Default
|
|
142
142
|
* is -1, which matches every variant.
|
|
143
|
-
* @param updateRoom Optional. Whether
|
|
144
|
-
*
|
|
143
|
+
* @param updateRoom Optional. Whether to update the room after the TNTs are removed. Default is
|
|
144
|
+
* false. For more information, see the description of the `removeGridEntities`
|
|
145
145
|
* helper function.
|
|
146
146
|
* @param cap Optional. If specified, will only remove the given amount of TNTs.
|
|
147
147
|
* @returns The TNTs that were removed.
|
|
@@ -152,9 +152,9 @@ export declare function removeAllTNT(variant?: number, updateRoom?: boolean, cap
|
|
|
152
152
|
*
|
|
153
153
|
* @param variant Optional. If specified, will only remove the teleporters that match this variant.
|
|
154
154
|
* Default is -1, which matches every variant.
|
|
155
|
-
* @param updateRoom Optional. Whether
|
|
156
|
-
*
|
|
157
|
-
*
|
|
155
|
+
* @param updateRoom Optional. Whether to update the room after the teleporters are removed. Default
|
|
156
|
+
* is false. For more information, see the description of the `removeGridEntities`
|
|
157
|
+
* helper function.
|
|
158
158
|
* @param cap Optional. If specified, will only remove the given amount of teleporters.
|
|
159
159
|
* @returns The teleporters that were removed.
|
|
160
160
|
*/
|
|
@@ -164,9 +164,9 @@ export declare function removeAllTeleporters(variant?: number, updateRoom?: bool
|
|
|
164
164
|
*
|
|
165
165
|
* @param trapdoorVariant Optional. If specified, will only remove the trapdoors that match this
|
|
166
166
|
* variant. Default is -1, which matches every variant.
|
|
167
|
-
* @param updateRoom Optional. Whether
|
|
168
|
-
*
|
|
169
|
-
*
|
|
167
|
+
* @param updateRoom Optional. Whether to update the room after the trapdoors are removed. Default
|
|
168
|
+
* is false. For more information, see the description of the `removeGridEntities`
|
|
169
|
+
* helper function.
|
|
170
170
|
* @param cap Optional. If specified, will only remove the given amount of trapdoors.
|
|
171
171
|
* @returns The trapdoors that were removed.
|
|
172
172
|
*/
|