isaacscript-common 25.2.0 → 25.4.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 (266) hide show
  1. package/dist/index.rollup.d.ts +27 -2
  2. package/dist/isaacscript-common.lua +803 -693
  3. package/dist/src/classes/ModFeature.d.ts.map +1 -1
  4. package/dist/src/classes/ModFeature.lua +12 -5
  5. package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  6. package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
  7. package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  8. package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
  9. package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  10. package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
  11. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  12. package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
  13. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  14. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
  15. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
  17. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
  19. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
  21. package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
  23. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
  25. package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  26. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
  27. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  28. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
  29. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
  30. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
  32. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
  33. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
  35. package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
  37. package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
  38. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
  39. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  40. package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
  41. package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  42. package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
  43. package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  44. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
  45. package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
  47. package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  48. package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
  49. package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  50. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
  51. package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  52. package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
  53. package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  54. package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
  55. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  56. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
  57. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  58. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
  59. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  60. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
  61. package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
  63. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
  65. package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
  66. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
  67. package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  68. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
  69. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  70. package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
  71. package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  72. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
  73. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  74. package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
  75. package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  76. package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
  77. package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  78. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
  79. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
  81. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  82. package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
  83. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  84. package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
  85. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  86. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
  87. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  88. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
  89. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  90. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
  91. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  92. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
  93. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  94. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
  95. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  96. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
  97. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  98. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
  99. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
  101. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  102. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
  103. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  104. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
  105. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
  106. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
  107. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  108. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
  109. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  110. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
  111. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  112. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
  113. package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
  114. package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
  115. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  116. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  117. package/dist/src/classes/features/other/CustomStages.lua +17 -26
  118. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  119. package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
  120. package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
  121. package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
  122. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  123. package/dist/src/classes/features/other/DisableInputs.lua +21 -20
  124. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
  125. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  126. package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
  127. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  128. package/dist/src/classes/features/other/Pause.lua +20 -19
  129. package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
  130. package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
  131. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
  133. package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
  134. package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
  135. package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/PonyDetection.lua +8 -7
  137. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/PressInput.lua +7 -6
  139. package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
  141. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  142. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
  143. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  144. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
  145. package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
  147. package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
  148. package/dist/src/classes/features/other/RoomHistory.lua +9 -8
  149. package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
  150. package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
  151. package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
  152. package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
  153. package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
  154. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  155. package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
  156. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  157. package/dist/src/classes/features/other/StageHistory.lua +7 -6
  158. package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  159. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
  160. package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
  161. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  162. package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
  163. package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
  164. package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
  165. package/dist/src/classes/features/other/customStages/v.lua +16 -0
  166. package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
  167. package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
  168. package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
  169. package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
  170. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  171. package/dist/src/functions/decorators.d.ts +15 -0
  172. package/dist/src/functions/decorators.d.ts.map +1 -1
  173. package/dist/src/functions/decorators.lua +21 -5
  174. package/dist/src/interfaces/SaveData.d.ts.map +1 -1
  175. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
  176. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  177. package/dist/src/shouldFire.d.ts +1 -0
  178. package/dist/src/shouldFire.d.ts.map +1 -1
  179. package/dist/src/shouldFire.lua +5 -0
  180. package/package.json +1 -1
  181. package/src/classes/ModFeature.ts +16 -4
  182. package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
  183. package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
  184. package/src/classes/callbacks/PostBombInitLate.ts +9 -7
  185. package/src/classes/callbacks/PostBoneSwing.ts +9 -7
  186. package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
  187. package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
  188. package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
  189. package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
  190. package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
  191. package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
  192. package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
  193. package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
  194. package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
  195. package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
  196. package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
  197. package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
  198. package/src/classes/callbacks/PostItemDischarge.ts +21 -27
  199. package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
  200. package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
  201. package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
  202. package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
  203. package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
  204. package/src/classes/callbacks/PostPickupCollect.ts +9 -7
  205. package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
  206. package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
  207. package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
  208. package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
  209. package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
  210. package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
  211. package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
  212. package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
  213. package/src/classes/callbacks/PostPurchase.ts +11 -9
  214. package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
  215. package/src/classes/callbacks/PostSacrifice.ts +9 -7
  216. package/src/classes/callbacks/PostTearInitLate.ts +9 -7
  217. package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
  218. package/src/classes/callbacks/PostTransformation.ts +12 -10
  219. package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
  220. package/src/classes/callbacks/PreNewLevel.ts +9 -7
  221. package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
  222. package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
  223. package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
  224. package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
  225. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
  226. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
  227. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
  228. package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
  229. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
  230. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
  231. package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
  232. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
  233. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
  234. package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
  235. package/src/classes/features/other/CustomItemPools.ts +9 -7
  236. package/src/classes/features/other/CustomPickups.ts +0 -1
  237. package/src/classes/features/other/CustomStages.ts +16 -44
  238. package/src/classes/features/other/CustomTrapdoors.ts +53 -54
  239. package/src/classes/features/other/DisableAllSound.ts +13 -11
  240. package/src/classes/features/other/DisableInputs.ts +39 -37
  241. package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
  242. package/src/classes/features/other/NoSirenSteal.ts +11 -9
  243. package/src/classes/features/other/Pause.ts +21 -19
  244. package/src/classes/features/other/PersistentEntities.ts +33 -31
  245. package/src/classes/features/other/PickupIndexCreation.ts +35 -33
  246. package/src/classes/features/other/PlayerInventory.ts +14 -12
  247. package/src/classes/features/other/PonyDetection.ts +11 -9
  248. package/src/classes/features/other/PressInput.ts +11 -9
  249. package/src/classes/features/other/PreventChildEntities.ts +10 -8
  250. package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
  251. package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
  252. package/src/classes/features/other/RoomClearFrame.ts +12 -10
  253. package/src/classes/features/other/RoomHistory.ts +13 -11
  254. package/src/classes/features/other/RunInNFrames.ts +19 -17
  255. package/src/classes/features/other/RunNextRoom.ts +10 -8
  256. package/src/classes/features/other/SaveDataManager.ts +11 -0
  257. package/src/classes/features/other/StageHistory.ts +11 -9
  258. package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
  259. package/src/classes/features/other/customStages/streakText.ts +14 -44
  260. package/src/classes/features/other/customStages/v.ts +31 -0
  261. package/src/classes/features/other/customStages/versusScreen.ts +2 -10
  262. package/src/enums/ModCallbackCustom.ts +6 -0
  263. package/src/functions/decorators.ts +45 -4
  264. package/src/interfaces/SaveData.ts +0 -1
  265. package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
  266. package/src/shouldFire.ts +10 -0
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Map = ____lualib.Map
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Spread = ____lualib.__TS__Spread
7
7
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
8
8
  local __TS__Iterator = ____lualib.__TS__Iterator
@@ -23,20 +23,21 @@ local ____roomData = require("src.functions.roomData")
23
23
  local getRoomListIndex = ____roomData.getRoomListIndex
24
24
  local ____Feature = require("src.classes.private.Feature")
25
25
  local Feature = ____Feature.Feature
26
+ local v = {
27
+ run = {persistentEntityIndexCounter = 0},
28
+ level = {persistentEntities = __TS__New(Map)},
29
+ room = {spawnedPersistentEntities = __TS__New(Map)}
30
+ }
26
31
  ____exports.PersistentEntities = __TS__Class()
27
32
  local PersistentEntities = ____exports.PersistentEntities
28
33
  PersistentEntities.name = "PersistentEntities"
29
34
  __TS__ClassExtends(PersistentEntities, Feature)
30
35
  function PersistentEntities.prototype.____constructor(self, roomHistory)
31
36
  Feature.prototype.____constructor(self)
32
- self.v = {
33
- run = {persistentEntityIndexCounter = 0},
34
- level = {persistentEntities = __TS__New(Map)},
35
- room = {spawnedPersistentEntities = __TS__New(Map)}
36
- }
37
+ self.v = v
37
38
  self.postEntityRemove = function(____, entity)
38
39
  local ptrHash = GetPtrHash(entity)
39
- local tuple = self.v.room.spawnedPersistentEntities:get(ptrHash)
40
+ local tuple = v.room.spawnedPersistentEntities:get(ptrHash)
40
41
  if tuple == nil then
41
42
  return
42
43
  end
@@ -49,7 +50,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
49
50
  end
50
51
  self.postNewRoomReordered = function()
51
52
  local roomListIndex = getRoomListIndex(nil)
52
- local persistentEntities = {__TS__Spread(self.v.level.persistentEntities:entries())}
53
+ local persistentEntities = {__TS__Spread(v.level.persistentEntities:entries())}
53
54
  local persistentEntitiesInThisRoom = __TS__ArrayFilter(
54
55
  persistentEntities,
55
56
  function(____, ____bindingPattern0)
@@ -62,7 +63,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
62
63
  for ____, ____value in ipairs(persistentEntitiesInThisRoom) do
63
64
  local index = ____value[1]
64
65
  local description = ____value[2]
65
- self.v.level.persistentEntities:delete(index)
66
+ v.level.persistentEntities:delete(index)
66
67
  self:spawnAndTrack(
67
68
  description.entityType,
68
69
  description.variant,
@@ -91,7 +92,7 @@ function PersistentEntities.prototype.trackDespawningPickupPosition(self, entity
91
92
  roomListIndex = previousRoomDescription.roomListIndex,
92
93
  position = entity.Position
93
94
  }
94
- self.v.level.persistentEntities:set(index, persistentEntityDescription)
95
+ v.level.persistentEntities:set(index, persistentEntityDescription)
95
96
  end
96
97
  function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, subType, position, index, respawning)
97
98
  if respawning == nil then
@@ -112,15 +113,15 @@ function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, s
112
113
  index,
113
114
  EntityPtr(entity)
114
115
  }
115
- self.v.room.spawnedPersistentEntities:set(ptrHash, tuple)
116
+ v.room.spawnedPersistentEntities:set(ptrHash, tuple)
116
117
  return entity
117
118
  end
118
119
  function PersistentEntities.prototype.removePersistentEntity(self, persistentEntityIndex, removeEntity)
119
120
  if removeEntity == nil then
120
121
  removeEntity = true
121
122
  end
122
- self.v.level.persistentEntities:delete(persistentEntityIndex)
123
- for ____, ____value in __TS__Iterator(self.v.room.spawnedPersistentEntities) do
123
+ v.level.persistentEntities:delete(persistentEntityIndex)
124
+ for ____, ____value in __TS__Iterator(v.room.spawnedPersistentEntities) do
124
125
  local ptrHash = ____value[1]
125
126
  local tuple = ____value[2]
126
127
  do
@@ -128,7 +129,7 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
128
129
  if index ~= persistentEntityIndex then
129
130
  goto __continue16
130
131
  end
131
- self.v.room.spawnedPersistentEntities:delete(ptrHash)
132
+ v.room.spawnedPersistentEntities:delete(ptrHash)
132
133
  if removeEntity and entityPtr.Ref ~= nil then
133
134
  entityPtr.Ref:Remove()
134
135
  end
@@ -137,16 +138,16 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
137
138
  end
138
139
  end
139
140
  function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, variant, subType, position)
140
- local ____self_v_run_0, ____persistentEntityIndexCounter_1 = self.v.run, "persistentEntityIndexCounter"
141
- ____self_v_run_0[____persistentEntityIndexCounter_1] = ____self_v_run_0[____persistentEntityIndexCounter_1] + 1
141
+ local ____v_run_0, ____persistentEntityIndexCounter_1 = v.run, "persistentEntityIndexCounter"
142
+ ____v_run_0[____persistentEntityIndexCounter_1] = ____v_run_0[____persistentEntityIndexCounter_1] + 1
142
143
  local entity = self:spawnAndTrack(
143
144
  entityType,
144
145
  variant,
145
146
  subType,
146
147
  position,
147
- self.v.run.persistentEntityIndexCounter
148
+ v.run.persistentEntityIndexCounter
148
149
  )
149
- return {entity, self.v.run.persistentEntityIndexCounter}
150
+ return {entity, v.run.persistentEntityIndexCounter}
150
151
  end
151
152
  __TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
152
153
  __TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
@@ -1 +1 @@
1
- {"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,mBAAoB,SAAQ,OAAO;IAuB9C,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,eAAe,CAAkB;IAyBzC,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,8BAA8B;IAiBtC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,oCAAoC;IAc5C;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAkCrC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,wBAAwB;IA2BhC;;;;;;;;;;;;;;;OAeG;IAEI,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;CAgBzD"}
1
+ {"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA8BhD,qBAAa,mBAAoB,SAAQ,OAAO;IAI9C,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,eAAe,CAAkB;IAyBzC,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,8BAA8B;IAiBtC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,oCAAoC;IAc5C;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAkCrC;;;;OAIG;IACH,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,wBAAwB;IA2BhC;;;;;;;;;;;;;;;OAeG;IAEI,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;CAgBzD"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Map = ____lualib.Map
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local __TS__Iterator = ____lualib.__TS__Iterator
8
8
  local ____exports = {}
@@ -39,24 +39,25 @@ function getStoredPickupIndex(self, pickup, pickupDescriptions)
39
39
  end
40
40
  return nil
41
41
  end
42
+ local v = {
43
+ run = {
44
+ pickupCounter = 0,
45
+ pickupDataTreasureRooms = __TS__New(Map),
46
+ pickupDataBossRooms = __TS__New(Map)
47
+ },
48
+ level = {pickupData = __TS__New(
49
+ DefaultMap,
50
+ function() return __TS__New(Map) end
51
+ )},
52
+ room = {pickupIndexes = __TS__New(Map)}
53
+ }
42
54
  ____exports.PickupIndexCreation = __TS__Class()
43
55
  local PickupIndexCreation = ____exports.PickupIndexCreation
44
56
  PickupIndexCreation.name = "PickupIndexCreation"
45
57
  __TS__ClassExtends(PickupIndexCreation, Feature)
46
58
  function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDataManager)
47
59
  Feature.prototype.____constructor(self)
48
- self.v = {
49
- run = {
50
- pickupCounter = 0,
51
- pickupDataTreasureRooms = __TS__New(Map),
52
- pickupDataBossRooms = __TS__New(Map)
53
- },
54
- level = {pickupData = __TS__New(
55
- DefaultMap,
56
- function() return __TS__New(Map) end
57
- )},
58
- room = {pickupIndexes = __TS__New(Map)}
59
- }
60
+ self.v = v
60
61
  self.postPickupInit = function(____, pickup)
61
62
  self:setPickupIndex(pickup)
62
63
  end
@@ -70,7 +71,7 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDa
70
71
  end
71
72
  function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
72
73
  local ptrHash = GetPtrHash(pickup)
73
- if self.v.room.pickupIndexes:has(ptrHash) then
74
+ if v.room.pickupIndexes:has(ptrHash) then
74
75
  return
75
76
  end
76
77
  local pickupIndexFromLevelData = self:getPickupIndexFromPreviousData(pickup)
@@ -78,16 +79,16 @@ function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
78
79
  local isFirstVisit = room:IsFirstVisit()
79
80
  local roomFrameCount = room:GetFrameCount()
80
81
  if pickupIndexFromLevelData ~= nil and not isFirstVisit and roomFrameCount <= 0 then
81
- self.v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
82
+ v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
82
83
  return
83
84
  end
84
- local ____self_v_run_0, ____pickupCounter_1 = self.v.run, "pickupCounter"
85
- ____self_v_run_0[____pickupCounter_1] = ____self_v_run_0[____pickupCounter_1] + 1
86
- self.v.room.pickupIndexes:set(ptrHash, self.v.run.pickupCounter)
85
+ local ____v_run_0, ____pickupCounter_1 = v.run, "pickupCounter"
86
+ ____v_run_0[____pickupCounter_1] = ____v_run_0[____pickupCounter_1] + 1
87
+ v.room.pickupIndexes:set(ptrHash, v.run.pickupCounter)
87
88
  end
88
89
  function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pickup)
89
90
  local roomListIndex = getRoomListIndex(nil)
90
- local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(roomListIndex)
91
+ local pickupDescriptions = v.level.pickupData:getAndSetDefault(roomListIndex)
91
92
  local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
92
93
  if pickupIndex == nil then
93
94
  pickupIndex = self:getPostAscentPickupIndex(pickup)
@@ -96,7 +97,7 @@ function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pick
96
97
  end
97
98
  function PickupIndexCreation.prototype.checkDespawningFromPlayerLeavingRoom(self, entity)
98
99
  local ptrHash = GetPtrHash(entity)
99
- local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
100
+ local pickupIndex = v.room.pickupIndexes:get(ptrHash)
100
101
  if pickupIndex == nil then
101
102
  return
102
103
  end
@@ -111,7 +112,7 @@ function PickupIndexCreation.prototype.trackDespawningPickupMetadata(self, entit
111
112
  return
112
113
  end
113
114
  local previousRoomListIndex = previousRoomDescription.roomListIndex
114
- local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(previousRoomListIndex)
115
+ local pickupDescriptions = v.level.pickupData:getAndSetDefault(previousRoomListIndex)
115
116
  local pickupDescription = {position = entity.Position, initSeed = entity.InitSeed}
116
117
  pickupDescriptions:set(pickupIndex, pickupDescription)
117
118
  local pickupDataMapForCurrentRoom = self:getPickupDataMapForCurrentRoom()
@@ -133,13 +134,13 @@ function PickupIndexCreation.prototype.getPickupDataMapForCurrentRoom(self)
133
134
  local ____cond20 = ____switch20 == RoomType.TREASURE
134
135
  if ____cond20 then
135
136
  do
136
- return self.v.run.pickupDataTreasureRooms
137
+ return v.run.pickupDataTreasureRooms
137
138
  end
138
139
  end
139
140
  ____cond20 = ____cond20 or ____switch20 == RoomType.BOSS
140
141
  if ____cond20 then
141
142
  do
142
- return self.v.run.pickupDataBossRooms
143
+ return v.run.pickupDataBossRooms
143
144
  end
144
145
  end
145
146
  do
@@ -160,13 +161,13 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
160
161
  local ____cond26 = ____switch26 == RoomType.TREASURE
161
162
  if ____cond26 then
162
163
  do
163
- return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataTreasureRooms)
164
+ return getStoredPickupIndex(nil, pickup, v.run.pickupDataTreasureRooms)
164
165
  end
165
166
  end
166
167
  ____cond26 = ____cond26 or ____switch26 == RoomType.BOSS
167
168
  if ____cond26 then
168
169
  do
169
- return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataBossRooms)
170
+ return getStoredPickupIndex(nil, pickup, v.run.pickupDataBossRooms)
170
171
  end
171
172
  end
172
173
  do
@@ -178,12 +179,12 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
178
179
  end
179
180
  function PickupIndexCreation.prototype.getPickupIndex(self, pickup)
180
181
  local ptrHash = GetPtrHash(pickup)
181
- local pickupIndexInitial = self.v.room.pickupIndexes:get(ptrHash)
182
+ local pickupIndexInitial = v.room.pickupIndexes:get(ptrHash)
182
183
  if pickupIndexInitial ~= nil then
183
184
  return pickupIndexInitial
184
185
  end
185
186
  self:setPickupIndex(pickup)
186
- local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
187
+ local pickupIndex = v.room.pickupIndexes:get(ptrHash)
187
188
  if pickupIndex ~= nil then
188
189
  return pickupIndex
189
190
  end
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerInventory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PlayerInventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAY/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,eAAgB,SAAQ,OAAO;IA6B1C,OAAO,CAAC,oBAAoB,CAU1B;IAGF,OAAO,CAAC,sBAAsB,CAU5B;IAEF;;;;;;;;;;;;;;;;;;;;;OAqBG;IAEI,kBAAkB,CACvB,MAAM,EAAE,YAAY,EACpB,yBAAyB,UAAO,GAC/B,eAAe,EAAE;IAgBpB;;;;;;;OAOG;IAEI,+BAA+B,CACpC,MAAM,EAAE,YAAY,GACnB,eAAe,GAAG,SAAS;CAI/B"}
1
+ {"version":3,"file":"PlayerInventory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PlayerInventory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAY/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAYhD,qBAAa,eAAgB,SAAQ,OAAO;IAqB1C,OAAO,CAAC,oBAAoB,CAU1B;IAGF,OAAO,CAAC,sBAAsB,CAU5B;IAEF;;;;;;;;;;;;;;;;;;;;;OAqBG;IAEI,kBAAkB,CACvB,MAAM,EAAE,YAAY,EACpB,yBAAyB,UAAO,GAC/B,eAAe,EAAE;IAgBpB;;;;;;;OAOG;IAEI,+BAA+B,CACpC,MAAM,EAAE,YAAY,GACnB,eAAe,GAAG,SAAS;CAI/B"}
@@ -1,7 +1,7 @@
1
1
  local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
2
3
  local __TS__Class = ____lualib.__TS__Class
3
4
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
- local __TS__New = ____lualib.__TS__New
5
5
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local ____exports = {}
@@ -21,22 +21,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
21
21
  local DefaultMap = ____DefaultMap.DefaultMap
22
22
  local ____Feature = require("src.classes.private.Feature")
23
23
  local Feature = ____Feature.Feature
24
+ local v = {run = {playersInventory = __TS__New(
25
+ DefaultMap,
26
+ function() return {} end
27
+ )}}
24
28
  ____exports.PlayerInventory = __TS__Class()
25
29
  local PlayerInventory = ____exports.PlayerInventory
26
30
  PlayerInventory.name = "PlayerInventory"
27
31
  __TS__ClassExtends(PlayerInventory, Feature)
28
32
  function PlayerInventory.prototype.____constructor(self)
29
33
  Feature.prototype.____constructor(self)
30
- self.v = {run = {playersInventory = __TS__New(
31
- DefaultMap,
32
- function() return {} end
33
- )}}
34
+ self.v = v
34
35
  self.postCollectibleAdded = function(____, player, collectibleType)
35
- local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
36
+ local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
36
37
  inventory[#inventory + 1] = collectibleType
37
38
  end
38
39
  self.postCollectibleRemoved = function(____, player, collectibleType)
39
- local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
40
+ local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
40
41
  arrayRemoveInPlace(nil, inventory, collectibleType)
41
42
  end
42
43
  self.customCallbacksUsed = {{ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED, self.postCollectibleAdded}, {ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED, self.postCollectibleRemoved}}
@@ -45,7 +46,7 @@ function PlayerInventory.prototype.getPlayerInventory(self, player, includeActiv
45
46
  if includeActiveCollectibles == nil then
46
47
  includeActiveCollectibles = true
47
48
  end
48
- local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
49
+ local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
49
50
  if includeActiveCollectibles then
50
51
  return copyArray(nil, inventory)
51
52
  end
@@ -1 +1 @@
1
- {"version":3,"file":"PonyDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PonyDetection.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,aAAc,SAAQ,OAAO;IAqBxC,OAAO,CAAC,0BAA0B,CAmBhC;IAEF;;;;;OAKG;IAEI,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;OAKG;IAEI,kBAAkB,IAAI,OAAO;CAIrC"}
1
+ {"version":3,"file":"PonyDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PonyDetection.ts"],"names":[],"mappings":";AAWA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAchD,qBAAa,aAAc,SAAQ,OAAO;IAiBxC,OAAO,CAAC,0BAA0B,CAmBhC;IAEF;;;;;OAKG;IAEI,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO;IAIvD;;;;;OAKG;IAEI,kBAAkB,IAAI,OAAO;CAIrC"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Set = ____lualib.Set
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local __TS__ArraySome = ____lualib.__TS__ArraySome
8
8
  local ____exports = {}
@@ -24,18 +24,19 @@ local getPlayers = ____playerIndex.getPlayers
24
24
  local ____Feature = require("src.classes.private.Feature")
25
25
  local Feature = ____Feature.Feature
26
26
  local FLAGS_WHEN_PONY_IS_ACTIVE = {EntityFlag.NO_KNOCKBACK, EntityFlag.NO_PHYSICS_KNOCKBACK, EntityFlag.NO_DAMAGE_BLINK}
27
+ local v = {run = {playersIsPonyActive = __TS__New(Set)}}
27
28
  ____exports.PonyDetection = __TS__Class()
28
29
  local PonyDetection = ____exports.PonyDetection
29
30
  PonyDetection.name = "PonyDetection"
30
31
  __TS__ClassExtends(PonyDetection, Feature)
31
32
  function PonyDetection.prototype.____constructor(self)
32
33
  Feature.prototype.____constructor(self)
33
- self.v = {run = {playersIsPonyActive = __TS__New(Set)}}
34
+ self.v = v
34
35
  self.postPEffectUpdateReordered = function(____, player)
35
36
  local effects = player:GetEffects()
36
37
  local entityFlags = player:GetEntityFlags()
37
38
  local hasPonyCollectibleEffect = effects:HasCollectibleEffect(CollectibleType.PONY) or effects:HasCollectibleEffect(CollectibleType.WHITE_PONY)
38
- local isPonyActiveOnPreviousFrame = setHasPlayer(nil, self.v.run.playersIsPonyActive, player)
39
+ local isPonyActiveOnPreviousFrame = setHasPlayer(nil, v.run.playersIsPonyActive, player)
39
40
  local hasPonyFlags = hasFlag(
40
41
  nil,
41
42
  entityFlags,
@@ -43,15 +44,15 @@ function PonyDetection.prototype.____constructor(self)
43
44
  )
44
45
  local isPonyActiveNow = hasPonyCollectibleEffect or isPonyActiveOnPreviousFrame and hasPonyFlags
45
46
  if isPonyActiveNow then
46
- setAddPlayer(nil, self.v.run.playersIsPonyActive, player)
47
+ setAddPlayer(nil, v.run.playersIsPonyActive, player)
47
48
  else
48
- setDeletePlayer(nil, self.v.run.playersIsPonyActive, player)
49
+ setDeletePlayer(nil, v.run.playersIsPonyActive, player)
49
50
  end
50
51
  end
51
52
  self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
52
53
  end
53
54
  function PonyDetection.prototype.isPlayerUsingPony(self, player)
54
- return setHasPlayer(nil, self.v.run.playersIsPonyActive, player)
55
+ return setHasPlayer(nil, v.run.playersIsPonyActive, player)
55
56
  end
56
57
  function PonyDetection.prototype.anyPlayerUsingPony(self)
57
58
  local players = getPlayers(nil)
@@ -1 +1 @@
1
- {"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,UAAW,SAAQ,OAAO;IAwBrC,OAAO,CAAC,iBAAiB,CA+BvB;IAEF;;;;;;OAMG;IAEI,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;CAI1E"}
1
+ {"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,UAAW,SAAQ,OAAO;IAoBrC,OAAO,CAAC,iBAAiB,CA+BvB;IAEF;;;;;;OAMG;IAEI,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;CAI1E"}
@@ -13,13 +13,14 @@ local ____playerIndex = require("src.functions.playerIndex")
13
13
  local getPlayerIndex = ____playerIndex.getPlayerIndex
14
14
  local ____Feature = require("src.classes.private.Feature")
15
15
  local Feature = ____Feature.Feature
16
+ local v = {run = {buttonActionTuples = {}}}
16
17
  ____exports.PressInput = __TS__Class()
17
18
  local PressInput = ____exports.PressInput
18
19
  PressInput.name = "PressInput"
19
20
  __TS__ClassExtends(PressInput, Feature)
20
21
  function PressInput.prototype.____constructor(self)
21
22
  Feature.prototype.____constructor(self)
22
- self.v = {run = {buttonActionTuples = {}}}
23
+ self.v = v
23
24
  self.isActionTriggered = function(____, entity, _inputHook, buttonAction)
24
25
  if entity == nil then
25
26
  return nil
@@ -30,12 +31,12 @@ function PressInput.prototype.____constructor(self)
30
31
  end
31
32
  local playerIndex = getPlayerIndex(nil, player)
32
33
  do
33
- local i = #self.v.run.buttonActionTuples - 1
34
+ local i = #v.run.buttonActionTuples - 1
34
35
  while i >= 0 do
35
- local tuple = self.v.run.buttonActionTuples[i + 1]
36
+ local tuple = v.run.buttonActionTuples[i + 1]
36
37
  local tuplePlayerIndex, tupleButtonAction = table.unpack(tuple)
37
38
  if tuplePlayerIndex == playerIndex and tupleButtonAction == buttonAction then
38
- __TS__ArraySplice(self.v.run.buttonActionTuples, i)
39
+ __TS__ArraySplice(v.run.buttonActionTuples, i)
39
40
  return true
40
41
  end
41
42
  i = i - 1
@@ -47,8 +48,8 @@ function PressInput.prototype.____constructor(self)
47
48
  end
48
49
  function PressInput.prototype.pressInput(self, player, buttonAction)
49
50
  local playerIndex = getPlayerIndex(nil, player)
50
- local ____self_v_run_buttonActionTuples_0 = self.v.run.buttonActionTuples
51
- ____self_v_run_buttonActionTuples_0[#____self_v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
51
+ local ____v_run_buttonActionTuples_0 = v.run.buttonActionTuples
52
+ ____v_run_buttonActionTuples_0[#____v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
52
53
  end
53
54
  __TS__Decorate({Exported}, PressInput.prototype, "pressInput", true)
54
55
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"PreventChildEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventChildEntities.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,oBAAqB,SAAQ,OAAO;IAmB/C,OAAO,CAAC,WAAW,CAYjB;IAEF;;;;;;;;;;OAUG;IAEI,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAIlD"}
1
+ {"version":3,"file":"PreventChildEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventChildEntities.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,oBAAqB,SAAQ,OAAO;IAe/C,OAAO,CAAC,WAAW,CAYjB;IAEF;;;;;;;;;;OAUG;IAEI,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAIlD"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Set = ____lualib.Set
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local ____exports = {}
8
8
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -11,16 +11,17 @@ local ____decorators = require("src.decorators")
11
11
  local Exported = ____decorators.Exported
12
12
  local ____Feature = require("src.classes.private.Feature")
13
13
  local Feature = ____Feature.Feature
14
+ local v = {room = {preventingEntities = __TS__New(Set)}}
14
15
  ____exports.PreventChildEntities = __TS__Class()
15
16
  local PreventChildEntities = ____exports.PreventChildEntities
16
17
  PreventChildEntities.name = "PreventChildEntities"
17
18
  __TS__ClassExtends(PreventChildEntities, Feature)
18
19
  function PreventChildEntities.prototype.____constructor(self)
19
20
  Feature.prototype.____constructor(self)
20
- self.v = {room = {preventingEntities = __TS__New(Set)}}
21
+ self.v = v
21
22
  self.postNPCInit = function(____, npc)
22
- local spawnerEntityMatch = npc.SpawnerEntity ~= nil and self.v.room.preventingEntities:has(GetPtrHash(npc.SpawnerEntity))
23
- local parentMatch = npc.Parent ~= nil and self.v.room.preventingEntities:has(GetPtrHash(npc.Parent))
23
+ local spawnerEntityMatch = npc.SpawnerEntity ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.SpawnerEntity))
24
+ local parentMatch = npc.Parent ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.Parent))
24
25
  if spawnerEntityMatch or parentMatch then
25
26
  npc:Remove()
26
27
  end
@@ -29,7 +30,7 @@ function PreventChildEntities.prototype.____constructor(self)
29
30
  end
30
31
  function PreventChildEntities.prototype.preventChildEntities(self, entity)
31
32
  local ptrHash = GetPtrHash(entity)
32
- self.v.room.preventingEntities:add(ptrHash)
33
+ v.room.preventingEntities:add(ptrHash)
33
34
  end
34
35
  __TS__Decorate({Exported}, PreventChildEntities.prototype, "preventChildEntities", true)
35
36
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"PreventCollectibleRotation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventCollectibleRotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,0BAA2B,SAAQ,OAAO;IAyCrD,OAAO,CAAC,kBAAkB,CAIxB;IAIF,OAAO,CAAC,2BAA2B,CAIjC;IAEF,OAAO,CAAC,uBAAuB;IAiB/B;;;;;;;;;;;OAWG;IAEI,0BAA0B,CAC/B,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,eAAe,GAC/B,IAAI;CAeR"}
1
+ {"version":3,"file":"PreventCollectibleRotation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventCollectibleRotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,0BAA2B,SAAQ,OAAO;IA2BrD,OAAO,CAAC,kBAAkB,CAIxB;IAIF,OAAO,CAAC,2BAA2B,CAIjC;IAEF,OAAO,CAAC,uBAAuB;IAiB/B;;;;;;;;;;;OAWG;IAEI,0BAA0B,CAC/B,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,eAAe,GAC/B,IAAI;CAeR"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Map = ____lualib.Map
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local ____exports = {}
8
8
  local getMapIndex
@@ -28,15 +28,16 @@ function getMapIndex(self, collectible)
28
28
  local gridIndex = room:GetGridIndex(collectible.Position)
29
29
  return (tostring(gridIndex) .. ",") .. tostring(collectible.InitSeed)
30
30
  end
31
+ local v = {room = {trackedCollectibles = __TS__New(Map)}}
31
32
  ____exports.PreventCollectibleRotation = __TS__Class()
32
33
  local PreventCollectibleRotation = ____exports.PreventCollectibleRotation
33
34
  PreventCollectibleRotation.name = "PreventCollectibleRotation"
34
35
  __TS__ClassExtends(PreventCollectibleRotation, Feature)
35
36
  function PreventCollectibleRotation.prototype.____constructor(self)
36
37
  Feature.prototype.____constructor(self)
37
- self.v = {room = {trackedCollectibles = __TS__New(Map)}}
38
+ self.v = v
38
39
  self.useCardSoulOfIsaac = function()
39
- self.v.room.trackedCollectibles:clear()
40
+ v.room.trackedCollectibles:clear()
40
41
  end
41
42
  self.postPickupUpdateCollectible = function(____, pickup)
42
43
  local collectible = pickup
@@ -49,7 +50,7 @@ function PreventCollectibleRotation.prototype.checkCollectibleRotated(self, coll
49
50
  return
50
51
  end
51
52
  local index = getMapIndex(nil, collectible)
52
- local trackedCollectibleType = self.v.room.trackedCollectibles:get(index)
53
+ local trackedCollectibleType = v.room.trackedCollectibles:get(index)
53
54
  if trackedCollectibleType ~= nil and collectible.SubType ~= trackedCollectibleType then
54
55
  setCollectibleSubType(nil, collectible, trackedCollectibleType)
55
56
  end
@@ -60,7 +61,7 @@ function PreventCollectibleRotation.prototype.preventCollectibleRotation(self, c
60
61
  error("The \"preventCollectibleRotate\" function was given a non-collectible: " .. entityID)
61
62
  end
62
63
  local index = getMapIndex(nil, collectible)
63
- self.v.room.trackedCollectibles:set(index, collectibleType)
64
+ v.room.trackedCollectibles:set(index, collectibleType)
64
65
  self:checkCollectibleRotated(collectible)
65
66
  end
66
67
  __TS__Decorate({Exported}, PreventCollectibleRotation.prototype, "preventCollectibleRotation", true)
@@ -1 +1 @@
1
- {"version":3,"file":"PreventGridEntityRespawn.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventGridEntityRespawn.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,wBAAyB,SAAQ,OAAO;IAcnD,OAAO,CAAC,YAAY,CAAe;IA0BnC,OAAO,CAAC,0BAA0B,CAqDhC;IAGF,OAAO,CAAC,oBAAoB,CAE1B;IAEF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAsB/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IAEI,wBAAwB,IAAI,IAAI;CAuBxC"}
1
+ {"version":3,"file":"PreventGridEntityRespawn.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PreventGridEntityRespawn.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAahD,qBAAa,wBAAyB,SAAQ,OAAO;IAInD,OAAO,CAAC,YAAY,CAAe;IA0BnC,OAAO,CAAC,0BAA0B,CAqDhC;IAGF,OAAO,CAAC,oBAAoB,CAE1B;IAEF;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAsB/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IAEI,wBAAwB,IAAI,IAAI;CAuBxC"}
@@ -1,7 +1,7 @@
1
1
  local ____lualib = require("lualib_bundle")
2
+ local __TS__New = ____lualib.__TS__New
2
3
  local __TS__Class = ____lualib.__TS__Class
3
4
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
- local __TS__New = ____lualib.__TS__New
5
5
  local __TS__Decorate = ____lualib.__TS__Decorate
6
6
  local ____exports = {}
7
7
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -32,25 +32,26 @@ local ____DefaultMap = require("src.classes.DefaultMap")
32
32
  local DefaultMap = ____DefaultMap.DefaultMap
33
33
  local ____Feature = require("src.classes.private.Feature")
34
34
  local Feature = ____Feature.Feature
35
+ local v = {
36
+ level = {roomListIndexToDecorationGridIndexes = __TS__New(
37
+ DefaultMap,
38
+ function() return {} end
39
+ )},
40
+ room = {manuallyUsingShovel = false}
41
+ }
35
42
  ____exports.PreventGridEntityRespawn = __TS__Class()
36
43
  local PreventGridEntityRespawn = ____exports.PreventGridEntityRespawn
37
44
  PreventGridEntityRespawn.name = "PreventGridEntityRespawn"
38
45
  __TS__ClassExtends(PreventGridEntityRespawn, Feature)
39
46
  function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
40
47
  Feature.prototype.____constructor(self)
41
- self.v = {
42
- level = {roomListIndexToDecorationGridIndexes = __TS__New(
43
- DefaultMap,
44
- function() return {} end
45
- )},
46
- room = {manuallyUsingShovel = false}
47
- }
48
+ self.v = v
48
49
  self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
49
- if self.v.room.manuallyUsingShovel then
50
+ if v.room.manuallyUsingShovel then
50
51
  return nil
51
52
  end
52
53
  local roomListIndex = getRoomListIndex(nil)
53
- if not self.v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
54
+ if not v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
54
55
  return
55
56
  end
56
57
  local decorations = getGridEntities(nil, GridEntityType.DECORATION)
@@ -67,10 +68,10 @@ function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
67
68
  if futureRoomListIndex ~= roomListIndex then
68
69
  return
69
70
  end
70
- self.v.room.manuallyUsingShovel = true
71
+ v.room.manuallyUsingShovel = true
71
72
  futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
72
- self.v.room.manuallyUsingShovel = false
73
- local decorationGridIndexes = self.v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
73
+ v.room.manuallyUsingShovel = false
74
+ local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
74
75
  emptyArray(nil, decorationGridIndexes)
75
76
  self:preventGridEntityRespawn()
76
77
  end)
@@ -87,7 +88,7 @@ end
87
88
  function PreventGridEntityRespawn.prototype.setDecorationsInvisible(self)
88
89
  local room = game:GetRoom()
89
90
  local roomListIndex = getRoomListIndex(nil)
90
- local decorationGridIndexes = self.v.level.roomListIndexToDecorationGridIndexes:get(roomListIndex)
91
+ local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:get(roomListIndex)
91
92
  if decorationGridIndexes == nil then
92
93
  return
93
94
  end
@@ -104,7 +105,7 @@ end
104
105
  function PreventGridEntityRespawn.prototype.preventGridEntityRespawn(self)
105
106
  local room = game:GetRoom()
106
107
  local roomListIndex = getRoomListIndex(nil)
107
- local decorationGridIndexes = self.v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
108
+ local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
108
109
  for ____, gridIndex in ipairs(getAllGridIndexes(nil)) do
109
110
  do
110
111
  local existingGridEntity = room:GetGridEntity(gridIndex)
@@ -1 +1 @@
1
- {"version":3,"file":"RoomClearFrame.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomClearFrame.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,cAAe,SAAQ,OAAO;IAuBzC,OAAO,CAAC,wBAAwB,CAO9B;IAEF;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;IAI/C;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;CAGhD"}
1
+ {"version":3,"file":"RoomClearFrame.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomClearFrame.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,cAAe,SAAQ,OAAO;IAkBzC,OAAO,CAAC,wBAAwB,CAO9B;IAEF;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;IAI/C;;;;;OAKG;IAEI,qBAAqB,IAAI,GAAG,GAAG,SAAS;CAGhD"}
@@ -11,27 +11,28 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
11
11
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
12
12
  local ____Feature = require("src.classes.private.Feature")
13
13
  local Feature = ____Feature.Feature
14
+ local v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
14
15
  ____exports.RoomClearFrame = __TS__Class()
15
16
  local RoomClearFrame = ____exports.RoomClearFrame
16
17
  RoomClearFrame.name = "RoomClearFrame"
17
18
  __TS__ClassExtends(RoomClearFrame, Feature)
18
19
  function RoomClearFrame.prototype.____constructor(self)
19
20
  Feature.prototype.____constructor(self)
20
- self.v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
21
+ self.v = v
21
22
  self.postRoomClearChangedTrue = function()
22
23
  local gameFrameCount = game:GetFrameCount()
23
24
  local room = game:GetRoom()
24
25
  local roomFrameCount = room:GetFrameCount()
25
- self.v.room.roomClearGameFrame = gameFrameCount
26
- self.v.room.roomClearRoomFrame = roomFrameCount
26
+ v.room.roomClearGameFrame = gameFrameCount
27
+ v.room.roomClearRoomFrame = roomFrameCount
27
28
  end
28
29
  self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED, self.postRoomClearChangedTrue}}
29
30
  end
30
31
  function RoomClearFrame.prototype.getRoomClearGameFrame(self)
31
- return self.v.room.roomClearGameFrame
32
+ return v.room.roomClearGameFrame
32
33
  end
33
34
  function RoomClearFrame.prototype.getRoomClearRoomFrame(self)
34
- return self.v.room.roomClearGameFrame
35
+ return v.room.roomClearGameFrame
35
36
  end
36
37
  __TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearGameFrame", true)
37
38
  __TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearRoomFrame", true)