isaacscript-common 6.11.2 → 6.14.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/callbacks/postGridEntityCustomRender.d.ts +2 -0
- package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
- package/dist/callbacks/postNewRoomEarly.lua +2 -2
- package/dist/callbacks/postPickupInitFirst.lua +1 -20
- package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
- package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
- package/dist/callbacks/reorderedCallbacks.lua +5 -5
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
- package/dist/constants.d.ts +1 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.lua +0 -7
- package/dist/constantsFirstLast.d.ts +5 -1
- package/dist/constantsFirstLast.d.ts.map +1 -1
- package/dist/constantsFirstLast.lua +6 -0
- package/dist/enums/ModCallbackCustom.d.ts +89 -66
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.lua +62 -58
- package/dist/enums/private/SerializationBrand.d.ts +1 -1
- package/dist/enums/private/SerializationBrand.lua +1 -1
- package/dist/features/collectibleItemPoolType.d.ts +2 -2
- package/dist/features/collectibleItemPoolType.lua +2 -2
- package/dist/features/customGridEntity.d.ts +11 -2
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +22 -2
- package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
- package/dist/features/customTrapdoor/blackSprite.lua +6 -6
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +2 -2
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
- package/dist/features/customTrapdoor/customTrapdoorConstants.lua +2 -2
- package/dist/features/customTrapdoor/init.d.ts.map +1 -1
- package/dist/features/customTrapdoor/init.lua +4 -3
- package/dist/features/customTrapdoor/touched.d.ts.map +1 -1
- package/dist/features/customTrapdoor/touched.lua +51 -33
- package/dist/features/deployJSONRoom.d.ts +2 -2
- package/dist/features/deployJSONRoom.lua +2 -2
- package/dist/features/extraConsoleCommands/exports.d.ts +4 -3
- package/dist/features/extraConsoleCommands/exports.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/exports.lua +4 -3
- package/dist/features/extraConsoleCommands/init.lua +12 -14
- package/dist/features/extraConsoleCommands/listCommands.d.ts +15 -19
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +34 -42
- package/dist/features/pause.d.ts +1 -1
- package/dist/features/pause.d.ts.map +1 -1
- package/dist/features/pause.lua +87 -8
- package/dist/features/persistentEntities.d.ts.map +1 -1
- package/dist/features/persistentEntities.lua +7 -7
- package/dist/features/pickupIndex.d.ts +19 -0
- package/dist/features/pickupIndex.d.ts.map +1 -0
- package/dist/features/pickupIndex.lua +197 -0
- package/dist/features/roomHistory.d.ts +24 -0
- package/dist/features/roomHistory.d.ts.map +1 -0
- package/dist/features/roomHistory.lua +89 -0
- package/dist/functions/collectibles.d.ts +26 -13
- package/dist/functions/collectibles.d.ts.map +1 -1
- package/dist/functions/collectibles.lua +26 -13
- package/dist/functions/color.d.ts +10 -0
- package/dist/functions/color.d.ts.map +1 -1
- package/dist/functions/color.lua +24 -0
- package/dist/functions/entities.d.ts +3 -3
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.lua +8 -3
- package/dist/functions/gridEntities.d.ts +4 -22
- package/dist/functions/gridEntities.d.ts.map +1 -1
- package/dist/functions/gridEntities.lua +4 -61
- package/dist/functions/isaacAPIClass.d.ts +64 -0
- package/dist/functions/isaacAPIClass.d.ts.map +1 -1
- package/dist/functions/isaacAPIClass.lua +84 -1
- package/dist/functions/kColor.d.ts +10 -0
- package/dist/functions/kColor.d.ts.map +1 -1
- package/dist/functions/kColor.lua +24 -0
- package/dist/functions/map.d.ts +2 -0
- package/dist/functions/map.d.ts.map +1 -1
- package/dist/functions/map.lua +7 -0
- package/dist/functions/npcs.d.ts +2 -2
- package/dist/functions/npcs.lua +2 -2
- package/dist/functions/pickupVariants.d.ts +2 -2
- package/dist/functions/pickupVariants.d.ts.map +1 -1
- package/dist/functions/pickupVariants.lua +2 -2
- package/dist/functions/playerCenter.lua +2 -2
- package/dist/functions/playerIndex.d.ts +0 -3
- package/dist/functions/playerIndex.d.ts.map +1 -1
- package/dist/functions/playerIndex.lua +4 -23
- package/dist/functions/random.d.ts +1 -1
- package/dist/functions/random.lua +1 -1
- package/dist/functions/rockAlt.d.ts +28 -0
- package/dist/functions/rockAlt.d.ts.map +1 -0
- package/dist/functions/rockAlt.lua +140 -0
- package/dist/functions/roomData.d.ts +3 -2
- package/dist/functions/roomData.d.ts.map +1 -1
- package/dist/functions/roomData.lua +3 -2
- package/dist/functions/rooms.d.ts +6 -6
- package/dist/functions/rooms.lua +6 -6
- package/dist/functions/set.d.ts +2 -0
- package/dist/functions/set.d.ts.map +1 -1
- package/dist/functions/set.lua +6 -0
- package/dist/functions/stage.d.ts +1 -0
- package/dist/functions/stage.d.ts.map +1 -1
- package/dist/functions/stage.lua +4 -0
- package/dist/functions/vector.d.ts +11 -0
- package/dist/functions/vector.d.ts.map +1 -1
- package/dist/functions/vector.lua +23 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +31 -0
- package/dist/initCustomCallbacks.d.ts.map +1 -1
- package/dist/initCustomCallbacks.lua +6 -0
- package/dist/initFeatures.d.ts.map +1 -1
- package/dist/initFeatures.lua +6 -0
- package/dist/interfaces/AddCallbackParameterCustom.d.ts +4 -0
- package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
- package/dist/interfaces/RoomDescription.d.ts +14 -0
- package/dist/interfaces/RoomDescription.d.ts.map +1 -0
- package/dist/interfaces/RoomDescription.lua +2 -0
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.lua +6 -0
- package/dist/types/CollectibleIndex.d.ts +1 -1
- package/dist/types/PickupIndex.d.ts +17 -0
- package/dist/types/PickupIndex.d.ts.map +1 -0
- package/dist/types/PickupIndex.lua +2 -0
- package/dist/types/PlayerIndex.d.ts +1 -1
- package/dist/upgradeMod.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/callbacks/postGridEntityCustomRender.ts +44 -0
- package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
- package/src/callbacks/postNewRoomEarly.ts +2 -2
- package/src/callbacks/postPickupInitFirst.ts +3 -32
- package/src/callbacks/postPlayerReorderedCallbacks.ts +3 -3
- package/src/callbacks/reorderedCallbacks.ts +9 -8
- package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
- package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
- package/src/constants.ts +1 -9
- package/src/constantsFirstLast.ts +16 -0
- package/src/enums/ModCallbackCustom.ts +33 -8
- package/src/enums/private/SerializationBrand.ts +1 -1
- package/src/features/collectibleItemPoolType.ts +3 -3
- package/src/features/customGridEntity.ts +27 -2
- package/src/features/customTrapdoor/blackSprite.ts +11 -5
- package/src/features/customTrapdoor/customTrapdoorConstants.ts +2 -2
- package/src/features/customTrapdoor/init.ts +7 -5
- package/src/features/customTrapdoor/touched.ts +59 -39
- package/src/features/deployJSONRoom.ts +4 -4
- package/src/features/extraConsoleCommands/exports.ts +4 -3
- package/src/features/extraConsoleCommands/init.ts +18 -14
- package/src/features/extraConsoleCommands/listCommands.ts +38 -43
- package/src/features/pause.ts +97 -7
- package/src/features/persistentEntities.ts +9 -8
- package/src/features/pickupIndex.ts +257 -0
- package/src/features/playerInventory.ts +2 -2
- package/src/features/roomHistory.ts +113 -0
- package/src/features/saveDataManager/main.ts +2 -2
- package/src/features/taintedLazarusPlayers.ts +5 -5
- package/src/functions/collectibles.ts +26 -13
- package/src/functions/color.ts +22 -0
- package/src/functions/entities.ts +6 -3
- package/src/functions/gridEntities.ts +4 -56
- package/src/functions/isaacAPIClass.ts +106 -1
- package/src/functions/kColor.ts +22 -0
- package/src/functions/map.ts +10 -0
- package/src/functions/npcs.ts +2 -2
- package/src/functions/pickupVariants.ts +2 -2
- package/src/functions/playerCenter.ts +2 -2
- package/src/functions/playerIndex.ts +8 -21
- package/src/functions/random.ts +1 -1
- package/src/functions/rockAlt.ts +117 -0
- package/src/functions/roomData.ts +3 -2
- package/src/functions/rooms.ts +6 -6
- package/src/functions/set.ts +7 -1
- package/src/functions/stage.ts +10 -1
- package/src/functions/vector.ts +23 -0
- package/src/index.ts +4 -0
- package/src/initCustomCallbacks.ts +4 -0
- package/src/initFeatures.ts +4 -0
- package/src/interfaces/AddCallbackParameterCustom.ts +4 -0
- package/src/interfaces/RoomDescription.ts +19 -0
- package/src/objects/callbackRegisterFunctions.ts +6 -0
- package/src/types/CollectibleIndex.ts +1 -1
- package/src/types/PickupIndex.ts +15 -0
- package/src/types/PlayerIndex.ts +1 -1
- package/src/upgradeMod.ts +2 -1
|
@@ -21,9 +21,10 @@ end
|
|
|
21
21
|
--
|
|
22
22
|
-- The standard library comes with many existing console commands that are useful for debugging, but
|
|
23
23
|
-- you can also add your own commands that are useful for your particular mod. It's easier to add
|
|
24
|
-
-- commands to the existing command system than to add logic manually to the
|
|
24
|
+
-- commands to the existing command system than to add your own logic manually to the `EXECUTE_CMD`
|
|
25
|
+
-- callback.
|
|
25
26
|
--
|
|
26
|
-
-- Before using this function, you must first
|
|
27
|
+
-- Before using this function, you must first run the `enableExtraConsoleCommands` function.
|
|
27
28
|
function ____exports.addConsoleCommand(self, commandName, commandFunction)
|
|
28
29
|
if not isExtraConsoleCommandsInitialized(nil) then
|
|
29
30
|
error("The \"extraConsoleCommands\" feature is not initialized. Before adding extra console commands, you must first enable the feature by invoking the \"enableExtraConsoleCommands\" function.")
|
|
@@ -41,7 +42,7 @@ end
|
|
|
41
42
|
-- The standard library comes with many existing console commands that are useful for debugging. If
|
|
42
43
|
-- you want to disable one of them, use this function.
|
|
43
44
|
--
|
|
44
|
-
-- Before using this function, you must first
|
|
45
|
+
-- Before using this function, you must first run the `enableExtraConsoleCommands` function.
|
|
45
46
|
function ____exports.removeConsoleCommand(self, commandName)
|
|
46
47
|
if not isExtraConsoleCommandsInitialized(nil) then
|
|
47
48
|
error("The \"extraConsoleCommands\" feature is not initialized. Before removing console commands, you must first enable the feature by invoking the \"enableExtraConsoleCommands\" function.")
|
|
@@ -29,7 +29,7 @@ local extraConsoleCommandsFunctionMap = ____v.extraConsoleCommandsFunctionMap
|
|
|
29
29
|
function initMap(self)
|
|
30
30
|
extraConsoleCommandsFunctionMap:set("1hp", commands.oneHP)
|
|
31
31
|
extraConsoleCommandsFunctionMap:set("addCharges", commands.addCharges)
|
|
32
|
-
extraConsoleCommandsFunctionMap:set("
|
|
32
|
+
extraConsoleCommandsFunctionMap:set("angelRoom", commands.angelRoom)
|
|
33
33
|
extraConsoleCommandsFunctionMap:set("ascent", commands.ascent)
|
|
34
34
|
extraConsoleCommandsFunctionMap:set("bedroom", commands.bedroom)
|
|
35
35
|
extraConsoleCommandsFunctionMap:set("bh", commands.bh)
|
|
@@ -42,7 +42,7 @@ function initMap(self)
|
|
|
42
42
|
extraConsoleCommandsFunctionMap:set("bombsDisplay", commandsDisplay.bombsDisplay)
|
|
43
43
|
extraConsoleCommandsFunctionMap:set("bombs", commands.bombs)
|
|
44
44
|
extraConsoleCommandsFunctionMap:set("boneHearts", commands.boneHearts)
|
|
45
|
-
extraConsoleCommandsFunctionMap:set("
|
|
45
|
+
extraConsoleCommandsFunctionMap:set("bossRoom", commands.bossRoom)
|
|
46
46
|
extraConsoleCommandsFunctionMap:set("bossRush", commands.bossRush)
|
|
47
47
|
extraConsoleCommandsFunctionMap:set("brokenHearts", commands.brokenHearts)
|
|
48
48
|
extraConsoleCommandsFunctionMap:set("card", commands.card)
|
|
@@ -59,7 +59,7 @@ function initMap(self)
|
|
|
59
59
|
extraConsoleCommandsFunctionMap:set("d6", commands.d6)
|
|
60
60
|
extraConsoleCommandsFunctionMap:set("damage", commands.damage)
|
|
61
61
|
extraConsoleCommandsFunctionMap:set("dd", commands.dd)
|
|
62
|
-
extraConsoleCommandsFunctionMap:set("
|
|
62
|
+
extraConsoleCommandsFunctionMap:set("devilRoom", commands.devilRoom)
|
|
63
63
|
extraConsoleCommandsFunctionMap:set("dirtyBedroom", commands.dirtyBedroom)
|
|
64
64
|
extraConsoleCommandsFunctionMap:set("disableCurses", commands.disableCurses)
|
|
65
65
|
extraConsoleCommandsFunctionMap:set("doorDisplay", commandsDisplay.doorDisplay)
|
|
@@ -70,7 +70,7 @@ function initMap(self)
|
|
|
70
70
|
extraConsoleCommandsFunctionMap:set("effects", commands.effects)
|
|
71
71
|
extraConsoleCommandsFunctionMap:set("effectsDisplay", commandsDisplay.effectsDisplay)
|
|
72
72
|
extraConsoleCommandsFunctionMap:set("eh", commands.eh)
|
|
73
|
-
extraConsoleCommandsFunctionMap:set("
|
|
73
|
+
extraConsoleCommandsFunctionMap:set("errorRoom", commands.errorRoom)
|
|
74
74
|
extraConsoleCommandsFunctionMap:set("eternalHearts", commands.eternalHearts)
|
|
75
75
|
extraConsoleCommandsFunctionMap:set("familiarDisplay", commandsDisplay.familiarDisplay)
|
|
76
76
|
extraConsoleCommandsFunctionMap:set("familiarsDisplay", commandsDisplay.familiarsDisplay)
|
|
@@ -88,10 +88,9 @@ function initMap(self)
|
|
|
88
88
|
extraConsoleCommandsFunctionMap:set("grid2", commands.grid2)
|
|
89
89
|
extraConsoleCommandsFunctionMap:set("gridCosts", commands.gridCosts)
|
|
90
90
|
extraConsoleCommandsFunctionMap:set("gridEntities", commands.gridEntities)
|
|
91
|
-
extraConsoleCommandsFunctionMap:set("h", commands.h)
|
|
92
91
|
extraConsoleCommandsFunctionMap:set("hearts", commands.hearts)
|
|
93
92
|
extraConsoleCommandsFunctionMap:set("hitboxes", commands.hitboxes)
|
|
94
|
-
extraConsoleCommandsFunctionMap:set("
|
|
93
|
+
extraConsoleCommandsFunctionMap:set("iAmErrorRoom", commands.iAmErrorRoom)
|
|
95
94
|
extraConsoleCommandsFunctionMap:set("key", commands.key)
|
|
96
95
|
extraConsoleCommandsFunctionMap:set("keys", commands.keys)
|
|
97
96
|
extraConsoleCommandsFunctionMap:set("knifeDisplay", commandsDisplay.knifeDisplay)
|
|
@@ -109,7 +108,6 @@ function initMap(self)
|
|
|
109
108
|
extraConsoleCommandsFunctionMap:set("mana", commands.mana)
|
|
110
109
|
extraConsoleCommandsFunctionMap:set("map", commands.map)
|
|
111
110
|
extraConsoleCommandsFunctionMap:set("maxHearts", commands.maxHearts)
|
|
112
|
-
extraConsoleCommandsFunctionMap:set("mh", commands.mh)
|
|
113
111
|
extraConsoleCommandsFunctionMap:set("miniboss", commands.miniboss)
|
|
114
112
|
extraConsoleCommandsFunctionMap:set("noCurses", commands.noCurses)
|
|
115
113
|
extraConsoleCommandsFunctionMap:set("npcDisplay", commandsDisplay.npcDisplay)
|
|
@@ -134,7 +132,6 @@ function initMap(self)
|
|
|
134
132
|
extraConsoleCommandsFunctionMap:set("projectileDisplay", commandsDisplay.projectileDisplay)
|
|
135
133
|
extraConsoleCommandsFunctionMap:set("projectilesDisplay", commandsDisplay.projectilesDisplay)
|
|
136
134
|
extraConsoleCommandsFunctionMap:set("redHearts", commands.redHearts)
|
|
137
|
-
extraConsoleCommandsFunctionMap:set("rh", commands.rh)
|
|
138
135
|
extraConsoleCommandsFunctionMap:set("right", commands.right)
|
|
139
136
|
extraConsoleCommandsFunctionMap:set("rockDisplay", commandsDisplay.rockDisplay)
|
|
140
137
|
extraConsoleCommandsFunctionMap:set("rocksDisplay", commandsDisplay.rocksDisplay)
|
|
@@ -142,13 +139,12 @@ function initMap(self)
|
|
|
142
139
|
extraConsoleCommandsFunctionMap:set("rottenHearts", commands.rottenHearts)
|
|
143
140
|
extraConsoleCommandsFunctionMap:set("runTests", commands.runTests)
|
|
144
141
|
extraConsoleCommandsFunctionMap:set("s", commands.s)
|
|
145
|
-
extraConsoleCommandsFunctionMap:set("
|
|
146
|
-
extraConsoleCommandsFunctionMap:set("
|
|
142
|
+
extraConsoleCommandsFunctionMap:set("sacrificeRoom", commands.sacrificeRoom)
|
|
143
|
+
extraConsoleCommandsFunctionMap:set("secretRoom", commands.secretRoom)
|
|
147
144
|
extraConsoleCommandsFunctionMap:set("seedStick", commands.seedStick)
|
|
148
145
|
extraConsoleCommandsFunctionMap:set("seeds", commands.seedsCommand)
|
|
149
146
|
extraConsoleCommandsFunctionMap:set("setCharges", commands.setCharges)
|
|
150
147
|
extraConsoleCommandsFunctionMap:set("setPosition", commands.setPosition)
|
|
151
|
-
extraConsoleCommandsFunctionMap:set("sh", commands.sh)
|
|
152
148
|
extraConsoleCommandsFunctionMap:set("shop", commands.shop)
|
|
153
149
|
extraConsoleCommandsFunctionMap:set("slotDisplay", commandsDisplay.slotDisplay)
|
|
154
150
|
extraConsoleCommandsFunctionMap:set("slotsDisplay", commandsDisplay.slotsDisplay)
|
|
@@ -162,16 +158,18 @@ function initMap(self)
|
|
|
162
158
|
extraConsoleCommandsFunctionMap:set("speed", commands.speed)
|
|
163
159
|
extraConsoleCommandsFunctionMap:set("spikeDisplay", commandsDisplay.spikeDisplay)
|
|
164
160
|
extraConsoleCommandsFunctionMap:set("spikesDisplay", commandsDisplay.spikesDisplay)
|
|
165
|
-
extraConsoleCommandsFunctionMap:set("
|
|
161
|
+
extraConsoleCommandsFunctionMap:set("superSecretRoom", commands.superSecretRoom)
|
|
166
162
|
extraConsoleCommandsFunctionMap:set("startingRoom", commands.startingRoom)
|
|
163
|
+
extraConsoleCommandsFunctionMap:set("startRoom", commands.startRoom)
|
|
167
164
|
extraConsoleCommandsFunctionMap:set("tearDisplay", commandsDisplay.tearDisplay)
|
|
168
165
|
extraConsoleCommandsFunctionMap:set("tears", commands.tears)
|
|
169
166
|
extraConsoleCommandsFunctionMap:set("tearsDisplay", commandsDisplay.tearsDisplay)
|
|
167
|
+
extraConsoleCommandsFunctionMap:set("tests", commands.tests)
|
|
170
168
|
extraConsoleCommandsFunctionMap:set("tntDisplay", commandsDisplay.tntDisplay)
|
|
171
169
|
extraConsoleCommandsFunctionMap:set("tntsDisplay", commandsDisplay.tntsDisplay)
|
|
172
170
|
extraConsoleCommandsFunctionMap:set("trapdoor", commands.trapdoorCommand)
|
|
173
|
-
extraConsoleCommandsFunctionMap:set("
|
|
174
|
-
extraConsoleCommandsFunctionMap:set("
|
|
171
|
+
extraConsoleCommandsFunctionMap:set("treasureRoom", commands.treasureRoom)
|
|
172
|
+
extraConsoleCommandsFunctionMap:set("ultraSecretRoom", commands.ultraSecretRoom)
|
|
175
173
|
extraConsoleCommandsFunctionMap:set("unseed", commands.unseed)
|
|
176
174
|
extraConsoleCommandsFunctionMap:set("up", commands.up)
|
|
177
175
|
extraConsoleCommandsFunctionMap:set("warp", commands.warp)
|
|
@@ -8,7 +8,7 @@ export declare function addCharges(params: string): void;
|
|
|
8
8
|
* Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
|
|
9
9
|
* this will uninitialize it and make an Angel Room instead.
|
|
10
10
|
*/
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function angelRoom(): void;
|
|
12
12
|
/** Activates the flags for the Ascent (i.e. Backwards Path). */
|
|
13
13
|
export declare function ascent(): void;
|
|
14
14
|
/** Warps to the first Clean Bedroom or Dirty Bedroom on the floor. */
|
|
@@ -45,7 +45,7 @@ export declare function bombs(params: string): void;
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function boneHearts(params: string): void;
|
|
47
47
|
/** Warps to the first Boss Room on the floor. */
|
|
48
|
-
export declare function
|
|
48
|
+
export declare function bossRoom(): void;
|
|
49
49
|
/** Warps to the Boss Rush for the floor. */
|
|
50
50
|
export declare function bossRush(): void;
|
|
51
51
|
/**
|
|
@@ -107,21 +107,21 @@ export declare function dd(): void;
|
|
|
107
107
|
* Warps to the Devil Room for the floor. If the Angel Room has already been visited or initialized,
|
|
108
108
|
* this will uninitialize it and make an Devil Room instead.
|
|
109
109
|
*/
|
|
110
|
-
export declare function
|
|
110
|
+
export declare function devilRoom(): void;
|
|
111
111
|
/** Warps to the first Dirty Bedroom on the floor. */
|
|
112
112
|
export declare function dirtyBedroom(): void;
|
|
113
113
|
/** Toggles whether or not curses can appear. */
|
|
114
114
|
export declare function disableCurses(): void;
|
|
115
115
|
/** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
|
|
116
116
|
export declare function down(params: string): void;
|
|
117
|
-
/** Warps to the Dungeon (i.e. crawl space) for the floor. */
|
|
117
|
+
/** Warps to the Dungeon (i.e. the crawl space room) for the floor. */
|
|
118
118
|
export declare function dungeon(): void;
|
|
119
119
|
/** Logs the player's current temporary effects to the "log.txt" file. */
|
|
120
120
|
export declare function effects(): void;
|
|
121
121
|
/** Alias for the "eternalHearts" command. */
|
|
122
122
|
export declare function eh(params: string): void;
|
|
123
123
|
/** Alias for the "iAmError" command. */
|
|
124
|
-
export declare function
|
|
124
|
+
export declare function errorRoom(): void;
|
|
125
125
|
/**
|
|
126
126
|
* Gives an eternal heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
127
127
|
* numbers to remove hearts.)
|
|
@@ -164,8 +164,6 @@ export declare function grid2(): void;
|
|
|
164
164
|
export declare function gridCosts(): void;
|
|
165
165
|
/** Spawns every grid entity, starting at the top-left-most tile. */
|
|
166
166
|
export declare function gridEntities(): void;
|
|
167
|
-
/** Alias for the "hearts" command. */
|
|
168
|
-
export declare function h(params: string): void;
|
|
169
167
|
/**
|
|
170
168
|
* Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
171
169
|
* numbers to remove hearts.)
|
|
@@ -174,7 +172,7 @@ export declare function hearts(params: string): void;
|
|
|
174
172
|
/** Alias for the "debug 6" command. */
|
|
175
173
|
export declare function hitboxes(): void;
|
|
176
174
|
/** Warps to the I AM ERROR room for the floor. */
|
|
177
|
-
export declare function
|
|
175
|
+
export declare function iAmErrorRoom(): void;
|
|
178
176
|
/**
|
|
179
177
|
* Gives a key. Provide a number to give a custom amount of key. (You can use negative numbers to
|
|
180
178
|
* remove keys.)
|
|
@@ -228,8 +226,6 @@ export declare function map(): void;
|
|
|
228
226
|
* use negative numbers to remove heart containers.)
|
|
229
227
|
*/
|
|
230
228
|
export declare function maxHearts(params: string): void;
|
|
231
|
-
/** Alias for the "maxHearts" command. */
|
|
232
|
-
export declare function mh(params: string): void;
|
|
233
229
|
/** Warps to the first Miniboss Room on the floor. */
|
|
234
230
|
export declare function miniboss(): void;
|
|
235
231
|
/** Alias for the "disableCurses" command. */
|
|
@@ -263,8 +259,6 @@ export declare function poopMana(params: string): void;
|
|
|
263
259
|
export declare function positionCommand(): void;
|
|
264
260
|
/** Alias for the "hearts" command. */
|
|
265
261
|
export declare function redHearts(params: string): void;
|
|
266
|
-
/** Alias for the "redHearts" command. */
|
|
267
|
-
export declare function rh(params: string): void;
|
|
268
262
|
/** Moves the player 0.5 units right. Provide a number to move a custom amount of units. */
|
|
269
263
|
export declare function right(params: string): void;
|
|
270
264
|
/** Logs information about the room to the "log.txt" file. */
|
|
@@ -291,9 +285,9 @@ export declare function runTests(): void;
|
|
|
291
285
|
*/
|
|
292
286
|
export declare function s(params: string): void;
|
|
293
287
|
/** Warps to the first Sacrifice Room on the floor. */
|
|
294
|
-
export declare function
|
|
288
|
+
export declare function sacrificeRoom(): void;
|
|
295
289
|
/** Warps to the first Secret Room on the floor. */
|
|
296
|
-
export declare function
|
|
290
|
+
export declare function secretRoom(): void;
|
|
297
291
|
/** Changes to a seeded run, using the seed of the current run. */
|
|
298
292
|
export declare function seedStick(): void;
|
|
299
293
|
/** Logs all of the current run's seed effects to the "log.txt" file. */
|
|
@@ -310,8 +304,6 @@ export declare function setCharges(params: string): void;
|
|
|
310
304
|
* - setPosition 100 50
|
|
311
305
|
*/
|
|
312
306
|
export declare function setPosition(params: string): void;
|
|
313
|
-
/** Alias for the "soulHearts" command. */
|
|
314
|
-
export declare function sh(params: string): void;
|
|
315
307
|
/** Warps to the first shop on the floor. */
|
|
316
308
|
export declare function shop(): void;
|
|
317
309
|
/** Uses the Smelter to smelt the current player's trinket. */
|
|
@@ -346,19 +338,23 @@ export declare function spawnGoldenTrinket(params: string): void;
|
|
|
346
338
|
export declare function speed(): void;
|
|
347
339
|
/** Warps to the starting room of the floor. */
|
|
348
340
|
export declare function startingRoom(): void;
|
|
341
|
+
/** Alias for the "startingRoom" command. */
|
|
342
|
+
export declare function startRoom(): void;
|
|
349
343
|
/** Warps to the first Super Secret Room on the floor. */
|
|
350
|
-
export declare function
|
|
344
|
+
export declare function superSecretRoom(): void;
|
|
351
345
|
/**
|
|
352
346
|
* Toggles an extremely high tears stat (e.g. fire rate) for the player, equivalent of that to soy
|
|
353
347
|
* milk.
|
|
354
348
|
*/
|
|
355
349
|
export declare function tears(): void;
|
|
350
|
+
/** Alias for the "runTests" command. */
|
|
351
|
+
export declare function tests(): void;
|
|
356
352
|
/** Creates a trapdoor next to the player. */
|
|
357
353
|
export declare function trapdoorCommand(): void;
|
|
358
354
|
/** Warps to the first Treasure Room on the floor. */
|
|
359
|
-
export declare function
|
|
355
|
+
export declare function treasureRoom(): void;
|
|
360
356
|
/** Warps to the first Ultra Secret Room on the floor. */
|
|
361
|
-
export declare function
|
|
357
|
+
export declare function ultraSecretRoom(): void;
|
|
362
358
|
/** If currently on a set seed, changes to an unseeded state and restarts the game. */
|
|
363
359
|
export declare function unseed(): void;
|
|
364
360
|
/** Moves the player 0.5 units up. Provide a number to move a custom amount of units. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA0GA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;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;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,iDAAiD;AACjD,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED;;;GAGG;AACH,wB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____cachedClasses.sfxManager
|
|
22
22
|
local ____constants = require("constants")
|
|
23
|
-
local FIRST_ROOM_TYPE = ____constants.FIRST_ROOM_TYPE
|
|
24
|
-
local FIRST_STAGE = ____constants.FIRST_STAGE
|
|
25
|
-
local LAST_ROOM_TYPE = ____constants.LAST_ROOM_TYPE
|
|
26
|
-
local LAST_STAGE = ____constants.LAST_STAGE
|
|
27
23
|
local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
|
|
28
24
|
local ____constantsFirstLast = require("constantsFirstLast")
|
|
29
25
|
local FIRST_CARD = ____constantsFirstLast.FIRST_CARD
|
|
30
26
|
local FIRST_CHARACTER = ____constantsFirstLast.FIRST_CHARACTER
|
|
31
27
|
local FIRST_PILL_EFFECT = ____constantsFirstLast.FIRST_PILL_EFFECT
|
|
28
|
+
local FIRST_ROOM_TYPE = ____constantsFirstLast.FIRST_ROOM_TYPE
|
|
29
|
+
local FIRST_STAGE = ____constantsFirstLast.FIRST_STAGE
|
|
32
30
|
local LAST_CARD = ____constantsFirstLast.LAST_CARD
|
|
33
31
|
local LAST_PILL_EFFECT = ____constantsFirstLast.LAST_PILL_EFFECT
|
|
32
|
+
local LAST_ROOM_TYPE = ____constantsFirstLast.LAST_ROOM_TYPE
|
|
33
|
+
local LAST_STAGE = ____constantsFirstLast.LAST_STAGE
|
|
34
34
|
local LAST_VANILLA_CHARACTER = ____constantsFirstLast.LAST_VANILLA_CHARACTER
|
|
35
35
|
local ____HealthType = require("enums.HealthType")
|
|
36
36
|
local HealthType = ____HealthType.HealthType
|
|
@@ -120,7 +120,7 @@ function ____exports.chaosCardTears(self)
|
|
|
120
120
|
end
|
|
121
121
|
--- Warps to the Devil Room for the floor. If the Angel Room has already been visited or initialized,
|
|
122
122
|
-- this will uninitialize it and make an Devil Room instead.
|
|
123
|
-
function ____exports.
|
|
123
|
+
function ____exports.devilRoom(self)
|
|
124
124
|
devilAngel(nil, true)
|
|
125
125
|
end
|
|
126
126
|
--- Gives an eternal heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
@@ -147,13 +147,8 @@ end
|
|
|
147
147
|
function ____exports.gridCosts(self)
|
|
148
148
|
Isaac.ExecuteCommand("debug 2")
|
|
149
149
|
end
|
|
150
|
-
--- Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
151
|
-
-- numbers to remove hearts.)
|
|
152
|
-
function ____exports.hearts(self, params)
|
|
153
|
-
addHeart(nil, params, HealthType.RED)
|
|
154
|
-
end
|
|
155
150
|
--- Warps to the I AM ERROR room for the floor.
|
|
156
|
-
function ____exports.
|
|
151
|
+
function ____exports.iAmErrorRoom(self)
|
|
157
152
|
changeRoom(nil, GridRoom.ERROR)
|
|
158
153
|
end
|
|
159
154
|
--- Sets every NPC in the room to 1 HP.
|
|
@@ -178,11 +173,6 @@ function ____exports.poopMana(self, params)
|
|
|
178
173
|
local player = Isaac.GetPlayer()
|
|
179
174
|
player:AddPoopMana(charges)
|
|
180
175
|
end
|
|
181
|
-
--- Gives a half soul heart. Provide a number to give a custom amount of hearts. (You can use
|
|
182
|
-
-- negative numbers to remove hearts.)
|
|
183
|
-
function ____exports.soulHearts(self, params)
|
|
184
|
-
addHeart(nil, params, HealthType.SOUL)
|
|
185
|
-
end
|
|
186
176
|
--- Play the supplied sound effect.
|
|
187
177
|
--
|
|
188
178
|
-- For example:
|
|
@@ -244,7 +234,7 @@ function ____exports.addCharges(self, params)
|
|
|
244
234
|
end
|
|
245
235
|
--- Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
|
|
246
236
|
-- this will uninitialize it and make an Angel Room instead.
|
|
247
|
-
function ____exports.
|
|
237
|
+
function ____exports.angelRoom(self)
|
|
248
238
|
devilAngel(nil, false)
|
|
249
239
|
end
|
|
250
240
|
--- Activates the flags for the Ascent (i.e. Backwards Path).
|
|
@@ -330,7 +320,7 @@ function ____exports.boneHearts(self, params)
|
|
|
330
320
|
addHeart(nil, params, HealthType.BONE)
|
|
331
321
|
end
|
|
332
322
|
--- Warps to the first Boss Room on the floor.
|
|
333
|
-
function ____exports.
|
|
323
|
+
function ____exports.bossRoom(self)
|
|
334
324
|
warpToRoomType(nil, RoomType.BOSS)
|
|
335
325
|
end
|
|
336
326
|
--- Warps to the Boss Rush for the floor.
|
|
@@ -500,7 +490,7 @@ function ____exports.damage(self)
|
|
|
500
490
|
end
|
|
501
491
|
--- Alias for the "devil" command.
|
|
502
492
|
function ____exports.dd(self)
|
|
503
|
-
____exports.
|
|
493
|
+
____exports.devilRoom(nil)
|
|
504
494
|
end
|
|
505
495
|
--- Warps to the first Dirty Bedroom on the floor.
|
|
506
496
|
function ____exports.dirtyBedroom(self)
|
|
@@ -515,7 +505,7 @@ end
|
|
|
515
505
|
function ____exports.down(self, params)
|
|
516
506
|
movePlayer(nil, params, Direction.DOWN)
|
|
517
507
|
end
|
|
518
|
-
--- Warps to the Dungeon (i.e. crawl space) for the floor.
|
|
508
|
+
--- Warps to the Dungeon (i.e. the crawl space room) for the floor.
|
|
519
509
|
function ____exports.dungeon(self)
|
|
520
510
|
changeRoom(nil, GridRoom.DUNGEON)
|
|
521
511
|
end
|
|
@@ -530,8 +520,8 @@ function ____exports.eh(self, params)
|
|
|
530
520
|
____exports.eternalHearts(nil, params)
|
|
531
521
|
end
|
|
532
522
|
--- Alias for the "iAmError" command.
|
|
533
|
-
function ____exports.
|
|
534
|
-
____exports.
|
|
523
|
+
function ____exports.errorRoom(self)
|
|
524
|
+
____exports.iAmErrorRoom(nil)
|
|
535
525
|
end
|
|
536
526
|
--- Toggles flight for the player.
|
|
537
527
|
function ____exports.flight(self, params)
|
|
@@ -626,9 +616,10 @@ function ____exports.gridEntities(self)
|
|
|
626
616
|
end
|
|
627
617
|
end
|
|
628
618
|
end
|
|
629
|
-
---
|
|
630
|
-
|
|
631
|
-
|
|
619
|
+
--- Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
620
|
+
-- numbers to remove hearts.)
|
|
621
|
+
function ____exports.hearts(self, params)
|
|
622
|
+
addHeart(nil, params, HealthType.RED)
|
|
632
623
|
end
|
|
633
624
|
--- Alias for the "debug 6" command.
|
|
634
625
|
function ____exports.hitboxes(self)
|
|
@@ -725,10 +716,6 @@ end
|
|
|
725
716
|
function ____exports.maxHearts(self, params)
|
|
726
717
|
addHeart(nil, params, HealthType.MAX_HEARTS)
|
|
727
718
|
end
|
|
728
|
-
--- Alias for the "maxHearts" command.
|
|
729
|
-
function ____exports.mh(self, params)
|
|
730
|
-
____exports.maxHearts(nil, params)
|
|
731
|
-
end
|
|
732
719
|
--- Warps to the first Miniboss Room on the floor.
|
|
733
720
|
function ____exports.miniboss(self)
|
|
734
721
|
warpToRoomType(nil, RoomType.MINI_BOSS)
|
|
@@ -836,10 +823,6 @@ end
|
|
|
836
823
|
function ____exports.redHearts(self, params)
|
|
837
824
|
____exports.hearts(nil, params)
|
|
838
825
|
end
|
|
839
|
-
--- Alias for the "redHearts" command.
|
|
840
|
-
function ____exports.rh(self, params)
|
|
841
|
-
____exports.redHearts(nil, params)
|
|
842
|
-
end
|
|
843
826
|
--- Moves the player 0.5 units right. Provide a number to move a custom amount of units.
|
|
844
827
|
function ____exports.right(self, params)
|
|
845
828
|
movePlayer(nil, params, Direction.RIGHT)
|
|
@@ -901,11 +884,11 @@ function ____exports.s(self, params)
|
|
|
901
884
|
Isaac.ExecuteCommand(("stage " .. tostring(stage)) .. stageTypeLetter)
|
|
902
885
|
end
|
|
903
886
|
--- Warps to the first Sacrifice Room on the floor.
|
|
904
|
-
function ____exports.
|
|
887
|
+
function ____exports.sacrificeRoom(self)
|
|
905
888
|
warpToRoomType(nil, RoomType.SACRIFICE)
|
|
906
889
|
end
|
|
907
890
|
--- Warps to the first Secret Room on the floor.
|
|
908
|
-
function ____exports.
|
|
891
|
+
function ____exports.secretRoom(self)
|
|
909
892
|
warpToRoomType(nil, RoomType.SECRET)
|
|
910
893
|
end
|
|
911
894
|
--- Changes to a seeded run, using the seed of the current run.
|
|
@@ -1005,10 +988,6 @@ function ____exports.setPosition(self, params)
|
|
|
1005
988
|
local position = Vector(x, y)
|
|
1006
989
|
player.Position = position
|
|
1007
990
|
end
|
|
1008
|
-
--- Alias for the "soulHearts" command.
|
|
1009
|
-
function ____exports.sh(self, params)
|
|
1010
|
-
____exports.soulHearts(nil, params)
|
|
1011
|
-
end
|
|
1012
991
|
--- Warps to the first shop on the floor.
|
|
1013
992
|
function ____exports.shop(self)
|
|
1014
993
|
warpToRoomType(nil, RoomType.SHOP)
|
|
@@ -1033,6 +1012,11 @@ function ____exports.soulCharges(self, params)
|
|
|
1033
1012
|
local player = Isaac.GetPlayer()
|
|
1034
1013
|
player:AddSoulCharge(charges)
|
|
1035
1014
|
end
|
|
1015
|
+
--- Gives a half soul heart. Provide a number to give a custom amount of hearts. (You can use
|
|
1016
|
+
-- negative numbers to remove hearts.)
|
|
1017
|
+
function ____exports.soulHearts(self, params)
|
|
1018
|
+
addHeart(nil, params, HealthType.SOUL)
|
|
1019
|
+
end
|
|
1036
1020
|
--- Logs all of the currently playing sound effects to the "log.txt" file.
|
|
1037
1021
|
function ____exports.sounds(self)
|
|
1038
1022
|
logSounds()
|
|
@@ -1070,8 +1054,12 @@ function ____exports.speed(self)
|
|
|
1070
1054
|
____exports.flight(nil, value)
|
|
1071
1055
|
printEnabled(nil, v.run.maxSpeed, "max speed and flight")
|
|
1072
1056
|
end
|
|
1057
|
+
--- Alias for the "startingRoom" command.
|
|
1058
|
+
function ____exports.startRoom(self)
|
|
1059
|
+
____exports.startingRoom(nil)
|
|
1060
|
+
end
|
|
1073
1061
|
--- Warps to the first Super Secret Room on the floor.
|
|
1074
|
-
function ____exports.
|
|
1062
|
+
function ____exports.superSecretRoom(self)
|
|
1075
1063
|
warpToRoomType(nil, RoomType.SUPER_SECRET)
|
|
1076
1064
|
end
|
|
1077
1065
|
--- Toggles an extremely high tears stat (e.g. fire rate) for the player, equivalent of that to soy
|
|
@@ -1083,16 +1071,20 @@ function ____exports.tears(self)
|
|
|
1083
1071
|
player:EvaluateItems()
|
|
1084
1072
|
printEnabled(nil, v.run.maxDamage, "debug tear-rate")
|
|
1085
1073
|
end
|
|
1074
|
+
--- Alias for the "runTests" command.
|
|
1075
|
+
function ____exports.tests(self)
|
|
1076
|
+
____exports.runTests(nil)
|
|
1077
|
+
end
|
|
1086
1078
|
--- Creates a trapdoor next to the player.
|
|
1087
1079
|
function ____exports.trapdoorCommand(self)
|
|
1088
1080
|
spawnTrapdoorOrCrawlSpace(nil, true)
|
|
1089
1081
|
end
|
|
1090
1082
|
--- Warps to the first Treasure Room on the floor.
|
|
1091
|
-
function ____exports.
|
|
1083
|
+
function ____exports.treasureRoom(self)
|
|
1092
1084
|
warpToRoomType(nil, RoomType.TREASURE)
|
|
1093
1085
|
end
|
|
1094
1086
|
--- Warps to the first Ultra Secret Room on the floor.
|
|
1095
|
-
function ____exports.
|
|
1087
|
+
function ____exports.ultraSecretRoom(self)
|
|
1096
1088
|
warpToRoomType(nil, RoomType.ULTRA_SECRET)
|
|
1097
1089
|
end
|
|
1098
1090
|
--- If currently on a set seed, changes to an unseeded state and restarts the game.
|
package/dist/features/pause.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Under the hood, this function:
|
|
6
6
|
* - uses the Pause collectible on every game frame
|
|
7
|
-
* - disables any player inputs (except for `ButtonAction.MENU_CONFIRM`)
|
|
7
|
+
* - disables any player inputs (except for `ButtonAction.MENU_CONFIRM` and `ButtonAction.CONSOLE`)
|
|
8
8
|
*/
|
|
9
9
|
export declare function pause(): void;
|
|
10
10
|
/** Helper function to put things back to normal after the `pause` function was used. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../src/features/pause.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pause.d.ts","sourceRoot":"","sources":["../../src/features/pause.ts"],"names":[],"mappings":"AA6GA;;;;;;;GAOG;AACH,wBAAgB,KAAK,IAAI,IAAI,CA8C5B;AAED,wFAAwF;AACxF,wBAAgB,OAAO,IAAI,IAAI,CAqB9B"}
|
package/dist/features/pause.lua
CHANGED
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
3
|
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
|
|
5
|
+
local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
|
|
6
|
+
local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
|
|
7
|
+
local Set = ____lualib.Set
|
|
4
8
|
local ____exports = {}
|
|
5
|
-
local postUpdate, inputActionGetActionValue, v
|
|
9
|
+
local postUpdate, stopTearsAndProjectilesFromMoving, inputActionGetActionValue, v
|
|
6
10
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
7
11
|
local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
|
|
8
12
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
9
13
|
local InputHook = ____isaac_2Dtypescript_2Ddefinitions.InputHook
|
|
10
14
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
15
|
+
local ____constants = require("constants")
|
|
16
|
+
local VectorZero = ____constants.VectorZero
|
|
17
|
+
local ____entitiesSpecific = require("functions.entitiesSpecific")
|
|
18
|
+
local getProjectiles = ____entitiesSpecific.getProjectiles
|
|
19
|
+
local getTears = ____entitiesSpecific.getTears
|
|
20
|
+
local removeAllProjectiles = ____entitiesSpecific.removeAllProjectiles
|
|
21
|
+
local removeAllTears = ____entitiesSpecific.removeAllTears
|
|
22
|
+
local ____isaacAPIClass = require("functions.isaacAPIClass")
|
|
23
|
+
local isTear = ____isaacAPIClass.isTear
|
|
11
24
|
local ____log = require("functions.log")
|
|
12
25
|
local logError = ____log.logError
|
|
26
|
+
local ____playerIndex = require("functions.playerIndex")
|
|
27
|
+
local getAllPlayers = ____playerIndex.getAllPlayers
|
|
13
28
|
local ____players = require("functions.players")
|
|
14
29
|
local useActiveItemTemp = ____players.useActiveItemTemp
|
|
15
30
|
local ____disableInputs = require("features.disableInputs")
|
|
@@ -21,8 +36,37 @@ function postUpdate(self)
|
|
|
21
36
|
if not v.run.isPseudoPaused then
|
|
22
37
|
return
|
|
23
38
|
end
|
|
24
|
-
local
|
|
25
|
-
useActiveItemTemp(nil,
|
|
39
|
+
local firstPlayer = Isaac.GetPlayer()
|
|
40
|
+
useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
|
|
41
|
+
stopTearsAndProjectilesFromMoving(nil)
|
|
42
|
+
end
|
|
43
|
+
function stopTearsAndProjectilesFromMoving(self)
|
|
44
|
+
local ____array_0 = __TS__SparseArrayNew(table.unpack(getTears(nil)))
|
|
45
|
+
__TS__SparseArrayPush(
|
|
46
|
+
____array_0,
|
|
47
|
+
table.unpack(getProjectiles(nil))
|
|
48
|
+
)
|
|
49
|
+
local tearsAndProjectiles = {__TS__SparseArraySpread(____array_0)}
|
|
50
|
+
for ____, tearOrProjectile in ipairs(tearsAndProjectiles) do
|
|
51
|
+
do
|
|
52
|
+
local ptrHash = GetPtrHash(tearOrProjectile)
|
|
53
|
+
local initialDescription = v.run.initialDescriptions:get(ptrHash)
|
|
54
|
+
if initialDescription == nil then
|
|
55
|
+
goto __continue6
|
|
56
|
+
end
|
|
57
|
+
tearOrProjectile.Position = initialDescription.position
|
|
58
|
+
tearOrProjectile.PositionOffset = initialDescription.positionOffset
|
|
59
|
+
tearOrProjectile.Velocity = VectorZero
|
|
60
|
+
tearOrProjectile.Height = initialDescription.height
|
|
61
|
+
tearOrProjectile.FallingSpeed = 0
|
|
62
|
+
if isTear(nil, tearOrProjectile) then
|
|
63
|
+
tearOrProjectile.FallingAcceleration = initialDescription.fallingAcceleration
|
|
64
|
+
else
|
|
65
|
+
tearOrProjectile.FallingAccel = initialDescription.fallingAcceleration
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
::__continue6::
|
|
69
|
+
end
|
|
26
70
|
end
|
|
27
71
|
function inputActionGetActionValue(self, _entity, _inputHook, buttonAction)
|
|
28
72
|
if buttonAction ~= ButtonAction.SHOOT_RIGHT then
|
|
@@ -35,7 +79,11 @@ function inputActionGetActionValue(self, _entity, _inputHook, buttonAction)
|
|
|
35
79
|
return 1
|
|
36
80
|
end
|
|
37
81
|
local FEATURE_NAME = "pause"
|
|
38
|
-
v = {run = {
|
|
82
|
+
v = {run = {
|
|
83
|
+
isPseudoPaused = false,
|
|
84
|
+
shouldUnpause = false,
|
|
85
|
+
initialDescriptions = __TS__New(Map)
|
|
86
|
+
}}
|
|
39
87
|
---
|
|
40
88
|
-- @internal
|
|
41
89
|
function ____exports.pauseInit(self, mod)
|
|
@@ -48,15 +96,41 @@ end
|
|
|
48
96
|
--
|
|
49
97
|
-- Under the hood, this function:
|
|
50
98
|
-- - uses the Pause collectible on every game frame
|
|
51
|
-
-- - disables any player inputs (except for `ButtonAction.MENU_CONFIRM`)
|
|
99
|
+
-- - disables any player inputs (except for `ButtonAction.MENU_CONFIRM` and `ButtonAction.CONSOLE`)
|
|
52
100
|
function ____exports.pause(self)
|
|
53
101
|
if v.run.isPseudoPaused then
|
|
54
102
|
logError("Failed to pseudo-pause the game, since it was already pseudo-paused.")
|
|
55
103
|
return
|
|
56
104
|
end
|
|
57
105
|
v.run.isPseudoPaused = true
|
|
58
|
-
|
|
106
|
+
v.run.initialDescriptions:clear()
|
|
107
|
+
local ____array_1 = __TS__SparseArrayNew(table.unpack(getTears(nil)))
|
|
108
|
+
__TS__SparseArrayPush(
|
|
109
|
+
____array_1,
|
|
110
|
+
table.unpack(getProjectiles(nil))
|
|
111
|
+
)
|
|
112
|
+
local tearsAndProjectiles = {__TS__SparseArraySpread(____array_1)}
|
|
113
|
+
for ____, tearOrProjectile in ipairs(tearsAndProjectiles) do
|
|
114
|
+
local ptrHash = GetPtrHash(tearOrProjectile)
|
|
115
|
+
local initialDescription = {
|
|
116
|
+
position = tearOrProjectile.Position,
|
|
117
|
+
positionOffset = tearOrProjectile.PositionOffset,
|
|
118
|
+
velocity = tearOrProjectile.Velocity,
|
|
119
|
+
height = tearOrProjectile.Height,
|
|
120
|
+
fallingSpeed = tearOrProjectile.FallingSpeed,
|
|
121
|
+
fallingAcceleration = isTear(nil, tearOrProjectile) and tearOrProjectile.FallingAcceleration or tearOrProjectile.FallingAccel
|
|
122
|
+
}
|
|
123
|
+
v.run.initialDescriptions:set(ptrHash, initialDescription)
|
|
124
|
+
end
|
|
125
|
+
local firstPlayer = Isaac.GetPlayer()
|
|
126
|
+
useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
|
|
127
|
+
local whitelist = __TS__New(Set, {ButtonAction.MENU_CONFIRM, ButtonAction.CONSOLE})
|
|
59
128
|
disableAllInputsExceptFor(nil, FEATURE_NAME, whitelist)
|
|
129
|
+
for ____, player in ipairs(getAllPlayers(nil)) do
|
|
130
|
+
player.ControlsEnabled = false
|
|
131
|
+
player.Velocity = VectorZero
|
|
132
|
+
end
|
|
133
|
+
stopTearsAndProjectilesFromMoving(nil)
|
|
60
134
|
end
|
|
61
135
|
--- Helper function to put things back to normal after the `pause` function was used.
|
|
62
136
|
function ____exports.unpause(self)
|
|
@@ -65,7 +139,12 @@ function ____exports.unpause(self)
|
|
|
65
139
|
return
|
|
66
140
|
end
|
|
67
141
|
v.run.isPseudoPaused = false
|
|
68
|
-
enableAllInputs(nil, FEATURE_NAME)
|
|
69
142
|
v.run.shouldUnpause = true
|
|
143
|
+
enableAllInputs(nil, FEATURE_NAME)
|
|
144
|
+
for ____, player in ipairs(getAllPlayers(nil)) do
|
|
145
|
+
player.ControlsEnabled = true
|
|
146
|
+
end
|
|
147
|
+
removeAllTears(nil)
|
|
148
|
+
removeAllProjectiles(nil)
|
|
70
149
|
end
|
|
71
150
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistentEntities.d.ts","sourceRoot":"","sources":["../../src/features/persistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEX,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"persistentEntities.d.ts","sourceRoot":"","sources":["../../src/features/persistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAkGtC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf,CAAC,MAAM,EAAE,GAAG,CAAC,CAcf;AAwBD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI,CAiBN"}
|