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.
Files changed (189) hide show
  1. package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -0
  2. package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
  3. package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
  4. package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
  5. package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
  6. package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
  7. package/dist/callbacks/postNewRoomEarly.lua +2 -2
  8. package/dist/callbacks/postPickupInitFirst.lua +1 -20
  9. package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
  10. package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
  11. package/dist/callbacks/reorderedCallbacks.lua +5 -5
  12. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
  13. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
  14. package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
  15. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
  16. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
  17. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
  18. package/dist/constants.d.ts +1 -5
  19. package/dist/constants.d.ts.map +1 -1
  20. package/dist/constants.lua +0 -7
  21. package/dist/constantsFirstLast.d.ts +5 -1
  22. package/dist/constantsFirstLast.d.ts.map +1 -1
  23. package/dist/constantsFirstLast.lua +6 -0
  24. package/dist/enums/ModCallbackCustom.d.ts +89 -66
  25. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  26. package/dist/enums/ModCallbackCustom.lua +62 -58
  27. package/dist/enums/private/SerializationBrand.d.ts +1 -1
  28. package/dist/enums/private/SerializationBrand.lua +1 -1
  29. package/dist/features/collectibleItemPoolType.d.ts +2 -2
  30. package/dist/features/collectibleItemPoolType.lua +2 -2
  31. package/dist/features/customGridEntity.d.ts +11 -2
  32. package/dist/features/customGridEntity.d.ts.map +1 -1
  33. package/dist/features/customGridEntity.lua +22 -2
  34. package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
  35. package/dist/features/customTrapdoor/blackSprite.lua +6 -6
  36. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +2 -2
  37. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
  38. package/dist/features/customTrapdoor/customTrapdoorConstants.lua +2 -2
  39. package/dist/features/customTrapdoor/init.d.ts.map +1 -1
  40. package/dist/features/customTrapdoor/init.lua +4 -3
  41. package/dist/features/customTrapdoor/touched.d.ts.map +1 -1
  42. package/dist/features/customTrapdoor/touched.lua +51 -33
  43. package/dist/features/deployJSONRoom.d.ts +2 -2
  44. package/dist/features/deployJSONRoom.lua +2 -2
  45. package/dist/features/extraConsoleCommands/exports.d.ts +4 -3
  46. package/dist/features/extraConsoleCommands/exports.d.ts.map +1 -1
  47. package/dist/features/extraConsoleCommands/exports.lua +4 -3
  48. package/dist/features/extraConsoleCommands/init.lua +12 -14
  49. package/dist/features/extraConsoleCommands/listCommands.d.ts +15 -19
  50. package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  51. package/dist/features/extraConsoleCommands/listCommands.lua +34 -42
  52. package/dist/features/pause.d.ts +1 -1
  53. package/dist/features/pause.d.ts.map +1 -1
  54. package/dist/features/pause.lua +87 -8
  55. package/dist/features/persistentEntities.d.ts.map +1 -1
  56. package/dist/features/persistentEntities.lua +7 -7
  57. package/dist/features/pickupIndex.d.ts +19 -0
  58. package/dist/features/pickupIndex.d.ts.map +1 -0
  59. package/dist/features/pickupIndex.lua +197 -0
  60. package/dist/features/roomHistory.d.ts +24 -0
  61. package/dist/features/roomHistory.d.ts.map +1 -0
  62. package/dist/features/roomHistory.lua +89 -0
  63. package/dist/functions/collectibles.d.ts +26 -13
  64. package/dist/functions/collectibles.d.ts.map +1 -1
  65. package/dist/functions/collectibles.lua +26 -13
  66. package/dist/functions/color.d.ts +10 -0
  67. package/dist/functions/color.d.ts.map +1 -1
  68. package/dist/functions/color.lua +24 -0
  69. package/dist/functions/entities.d.ts +3 -3
  70. package/dist/functions/entities.d.ts.map +1 -1
  71. package/dist/functions/entities.lua +8 -3
  72. package/dist/functions/gridEntities.d.ts +4 -22
  73. package/dist/functions/gridEntities.d.ts.map +1 -1
  74. package/dist/functions/gridEntities.lua +4 -61
  75. package/dist/functions/isaacAPIClass.d.ts +64 -0
  76. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  77. package/dist/functions/isaacAPIClass.lua +84 -1
  78. package/dist/functions/kColor.d.ts +10 -0
  79. package/dist/functions/kColor.d.ts.map +1 -1
  80. package/dist/functions/kColor.lua +24 -0
  81. package/dist/functions/map.d.ts +2 -0
  82. package/dist/functions/map.d.ts.map +1 -1
  83. package/dist/functions/map.lua +7 -0
  84. package/dist/functions/npcs.d.ts +2 -2
  85. package/dist/functions/npcs.lua +2 -2
  86. package/dist/functions/pickupVariants.d.ts +2 -2
  87. package/dist/functions/pickupVariants.d.ts.map +1 -1
  88. package/dist/functions/pickupVariants.lua +2 -2
  89. package/dist/functions/playerCenter.lua +2 -2
  90. package/dist/functions/playerIndex.d.ts +0 -3
  91. package/dist/functions/playerIndex.d.ts.map +1 -1
  92. package/dist/functions/playerIndex.lua +4 -23
  93. package/dist/functions/random.d.ts +1 -1
  94. package/dist/functions/random.lua +1 -1
  95. package/dist/functions/rockAlt.d.ts +28 -0
  96. package/dist/functions/rockAlt.d.ts.map +1 -0
  97. package/dist/functions/rockAlt.lua +140 -0
  98. package/dist/functions/roomData.d.ts +3 -2
  99. package/dist/functions/roomData.d.ts.map +1 -1
  100. package/dist/functions/roomData.lua +3 -2
  101. package/dist/functions/rooms.d.ts +6 -6
  102. package/dist/functions/rooms.lua +6 -6
  103. package/dist/functions/set.d.ts +2 -0
  104. package/dist/functions/set.d.ts.map +1 -1
  105. package/dist/functions/set.lua +6 -0
  106. package/dist/functions/stage.d.ts +1 -0
  107. package/dist/functions/stage.d.ts.map +1 -1
  108. package/dist/functions/stage.lua +4 -0
  109. package/dist/functions/vector.d.ts +11 -0
  110. package/dist/functions/vector.d.ts.map +1 -1
  111. package/dist/functions/vector.lua +23 -0
  112. package/dist/index.d.ts +4 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.lua +31 -0
  115. package/dist/initCustomCallbacks.d.ts.map +1 -1
  116. package/dist/initCustomCallbacks.lua +6 -0
  117. package/dist/initFeatures.d.ts.map +1 -1
  118. package/dist/initFeatures.lua +6 -0
  119. package/dist/interfaces/AddCallbackParameterCustom.d.ts +4 -0
  120. package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
  121. package/dist/interfaces/RoomDescription.d.ts +14 -0
  122. package/dist/interfaces/RoomDescription.d.ts.map +1 -0
  123. package/dist/interfaces/RoomDescription.lua +2 -0
  124. package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
  125. package/dist/objects/callbackRegisterFunctions.lua +6 -0
  126. package/dist/types/CollectibleIndex.d.ts +1 -1
  127. package/dist/types/PickupIndex.d.ts +17 -0
  128. package/dist/types/PickupIndex.d.ts.map +1 -0
  129. package/dist/types/PickupIndex.lua +2 -0
  130. package/dist/types/PlayerIndex.d.ts +1 -1
  131. package/dist/upgradeMod.d.ts.map +1 -1
  132. package/package.json +2 -2
  133. package/src/callbacks/postGridEntityCustomRender.ts +44 -0
  134. package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
  135. package/src/callbacks/postNewRoomEarly.ts +2 -2
  136. package/src/callbacks/postPickupInitFirst.ts +3 -32
  137. package/src/callbacks/postPlayerReorderedCallbacks.ts +3 -3
  138. package/src/callbacks/reorderedCallbacks.ts +9 -8
  139. package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
  140. package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
  141. package/src/constants.ts +1 -9
  142. package/src/constantsFirstLast.ts +16 -0
  143. package/src/enums/ModCallbackCustom.ts +33 -8
  144. package/src/enums/private/SerializationBrand.ts +1 -1
  145. package/src/features/collectibleItemPoolType.ts +3 -3
  146. package/src/features/customGridEntity.ts +27 -2
  147. package/src/features/customTrapdoor/blackSprite.ts +11 -5
  148. package/src/features/customTrapdoor/customTrapdoorConstants.ts +2 -2
  149. package/src/features/customTrapdoor/init.ts +7 -5
  150. package/src/features/customTrapdoor/touched.ts +59 -39
  151. package/src/features/deployJSONRoom.ts +4 -4
  152. package/src/features/extraConsoleCommands/exports.ts +4 -3
  153. package/src/features/extraConsoleCommands/init.ts +18 -14
  154. package/src/features/extraConsoleCommands/listCommands.ts +38 -43
  155. package/src/features/pause.ts +97 -7
  156. package/src/features/persistentEntities.ts +9 -8
  157. package/src/features/pickupIndex.ts +257 -0
  158. package/src/features/playerInventory.ts +2 -2
  159. package/src/features/roomHistory.ts +113 -0
  160. package/src/features/saveDataManager/main.ts +2 -2
  161. package/src/features/taintedLazarusPlayers.ts +5 -5
  162. package/src/functions/collectibles.ts +26 -13
  163. package/src/functions/color.ts +22 -0
  164. package/src/functions/entities.ts +6 -3
  165. package/src/functions/gridEntities.ts +4 -56
  166. package/src/functions/isaacAPIClass.ts +106 -1
  167. package/src/functions/kColor.ts +22 -0
  168. package/src/functions/map.ts +10 -0
  169. package/src/functions/npcs.ts +2 -2
  170. package/src/functions/pickupVariants.ts +2 -2
  171. package/src/functions/playerCenter.ts +2 -2
  172. package/src/functions/playerIndex.ts +8 -21
  173. package/src/functions/random.ts +1 -1
  174. package/src/functions/rockAlt.ts +117 -0
  175. package/src/functions/roomData.ts +3 -2
  176. package/src/functions/rooms.ts +6 -6
  177. package/src/functions/set.ts +7 -1
  178. package/src/functions/stage.ts +10 -1
  179. package/src/functions/vector.ts +23 -0
  180. package/src/index.ts +4 -0
  181. package/src/initCustomCallbacks.ts +4 -0
  182. package/src/initFeatures.ts +4 -0
  183. package/src/interfaces/AddCallbackParameterCustom.ts +4 -0
  184. package/src/interfaces/RoomDescription.ts +19 -0
  185. package/src/objects/callbackRegisterFunctions.ts +6 -0
  186. package/src/types/CollectibleIndex.ts +1 -1
  187. package/src/types/PickupIndex.ts +15 -0
  188. package/src/types/PlayerIndex.ts +1 -1
  189. 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 ExecuteCmd callback.
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 invoke `enableExtraConsoleCommands`.
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 invoke `enableExtraConsoleCommands`.
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("angel", commands.angel)
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("boss", commands.boss)
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("devil", commands.devil)
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("error", commands.error)
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("iAmError", commands.iAmError)
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("sacrifice", commands.sacrifice)
146
- extraConsoleCommandsFunctionMap:set("secret", commands.secret)
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("supersecret", commands.superSecret)
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("treasure", commands.treasure)
174
- extraConsoleCommandsFunctionMap:set("ultraSecret", commands.ultraSecret)
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 angel(): void;
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 boss(): void;
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 devil(): void;
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 error(): void;
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 iAmError(): void;
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 sacrifice(): void;
288
+ export declare function sacrificeRoom(): void;
295
289
  /** Warps to the first Secret Room on the floor. */
296
- export declare function secret(): void;
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 superSecret(): void;
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 treasure(): void;
355
+ export declare function treasureRoom(): void;
360
356
  /** Warps to the first Ultra Secret Room on the floor. */
361
- export declare function ultraSecret(): void;
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":"AAqGA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAE5B;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;;;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BAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,yDAAyD;AACzD,wBAAgB,WAAW,IAAI,IAAI,CAElC;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"}
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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+20,17 @@ local ____cachedClasses = require("cachedClasses")
20
20
  local game = ____cachedClasses.game
21
21
  local sfxManager = ____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.devil(self)
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.iAmError(self)
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.angel(self)
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.boss(self)
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.devil(nil)
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.error(self)
534
- ____exports.iAmError(nil)
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
- --- Alias for the "hearts" command.
630
- function ____exports.h(self, params)
631
- ____exports.hearts(nil, params)
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.sacrifice(self)
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.secret(self)
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.superSecret(self)
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.treasure(self)
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.ultraSecret(self)
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.
@@ -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":"AAgEA;;;;;;;GAOG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAW5B;AAED,wFAAwF;AACxF,wBAAgB,OAAO,IAAI,IAAI,CAW9B"}
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"}
@@ -1,15 +1,30 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local Set = ____lualib.Set
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 player = Isaac.GetPlayer()
25
- useActiveItemTemp(nil, player, CollectibleType.PAUSE)
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 = {isPseudoPaused = false, shouldUnpause = false}}
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
- local whitelist = __TS__New(Set, {ButtonAction.MENU_CONFIRM})
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;AAiGtC;;;;;;;;;;;;;;;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"}
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"}