isaacscript-common 25.3.0 → 25.5.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 (263) hide show
  1. package/dist/index.rollup.d.ts +18 -2
  2. package/dist/isaacscript-common.lua +793 -684
  3. package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  4. package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
  5. package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  6. package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
  7. package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  8. package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
  9. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  10. package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
  11. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  12. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
  13. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  14. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
  15. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
  17. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
  19. package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
  21. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
  23. package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
  25. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  26. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
  27. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
  28. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
  29. package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
  30. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
  31. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
  32. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
  33. package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
  35. package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
  37. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  38. package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
  39. package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  40. package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
  41. package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  42. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
  43. package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  44. package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
  45. package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
  47. package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  48. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
  49. package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  50. package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
  51. package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  52. package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
  53. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  54. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
  55. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  56. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
  57. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  58. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
  59. package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
  60. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
  61. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
  63. package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
  65. package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  66. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
  67. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  68. package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
  69. package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  70. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
  71. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  72. package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
  73. package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  74. package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
  75. package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  76. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
  77. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  78. package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
  79. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
  81. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  82. package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
  83. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  84. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
  85. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  86. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
  87. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  88. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
  89. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  90. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
  91. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  92. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
  93. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  94. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
  95. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  96. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
  97. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
  98. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
  99. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
  101. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  102. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
  103. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
  104. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
  105. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  106. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
  107. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  108. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
  109. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  110. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
  111. package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
  112. package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
  113. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  114. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  115. package/dist/src/classes/features/other/CustomStages.lua +17 -26
  116. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  117. package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
  118. package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
  119. package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
  120. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  121. package/dist/src/classes/features/other/DisableInputs.lua +21 -20
  122. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
  123. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  124. package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
  125. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  126. package/dist/src/classes/features/other/Pause.lua +20 -19
  127. package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
  128. package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
  129. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  130. package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
  131. package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
  133. package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
  134. package/dist/src/classes/features/other/PonyDetection.lua +8 -7
  135. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/PressInput.lua +7 -6
  137. package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
  139. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
  141. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  142. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
  143. package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  144. package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
  145. package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/RoomHistory.lua +9 -8
  147. package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
  148. package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
  149. package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
  150. package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
  151. package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
  152. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  153. package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
  154. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  155. package/dist/src/classes/features/other/StageHistory.lua +7 -6
  156. package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  157. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
  158. package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
  159. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  160. package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
  161. package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
  162. package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
  163. package/dist/src/classes/features/other/customStages/v.lua +16 -0
  164. package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
  165. package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
  166. package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
  167. package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
  168. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  169. package/dist/src/functions/utils.d.ts +6 -0
  170. package/dist/src/functions/utils.d.ts.map +1 -1
  171. package/dist/src/functions/utils.lua +17 -0
  172. package/dist/src/interfaces/SaveData.d.ts.map +1 -1
  173. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
  174. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  175. package/dist/src/shouldFire.d.ts +1 -0
  176. package/dist/src/shouldFire.d.ts.map +1 -1
  177. package/dist/src/shouldFire.lua +5 -0
  178. package/package.json +2 -2
  179. package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
  180. package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
  181. package/src/classes/callbacks/PostBombInitLate.ts +9 -7
  182. package/src/classes/callbacks/PostBoneSwing.ts +9 -7
  183. package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
  184. package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
  185. package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
  186. package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
  187. package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
  188. package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
  189. package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
  190. package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
  191. package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
  192. package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
  193. package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
  194. package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
  195. package/src/classes/callbacks/PostItemDischarge.ts +21 -27
  196. package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
  197. package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
  198. package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
  199. package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
  200. package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
  201. package/src/classes/callbacks/PostPickupCollect.ts +9 -7
  202. package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
  203. package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
  204. package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
  205. package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
  206. package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
  207. package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
  208. package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
  209. package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
  210. package/src/classes/callbacks/PostPurchase.ts +11 -9
  211. package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
  212. package/src/classes/callbacks/PostSacrifice.ts +9 -7
  213. package/src/classes/callbacks/PostTearInitLate.ts +9 -7
  214. package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
  215. package/src/classes/callbacks/PostTransformation.ts +12 -10
  216. package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
  217. package/src/classes/callbacks/PreNewLevel.ts +9 -7
  218. package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
  219. package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
  220. package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
  221. package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
  222. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
  223. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
  224. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
  225. package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
  226. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
  227. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
  228. package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
  229. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
  230. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
  231. package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
  232. package/src/classes/features/other/CustomItemPools.ts +9 -7
  233. package/src/classes/features/other/CustomPickups.ts +0 -1
  234. package/src/classes/features/other/CustomStages.ts +16 -44
  235. package/src/classes/features/other/CustomTrapdoors.ts +53 -54
  236. package/src/classes/features/other/DisableAllSound.ts +13 -11
  237. package/src/classes/features/other/DisableInputs.ts +39 -37
  238. package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
  239. package/src/classes/features/other/NoSirenSteal.ts +11 -9
  240. package/src/classes/features/other/Pause.ts +21 -19
  241. package/src/classes/features/other/PersistentEntities.ts +33 -31
  242. package/src/classes/features/other/PickupIndexCreation.ts +35 -33
  243. package/src/classes/features/other/PlayerInventory.ts +14 -12
  244. package/src/classes/features/other/PonyDetection.ts +11 -9
  245. package/src/classes/features/other/PressInput.ts +11 -9
  246. package/src/classes/features/other/PreventChildEntities.ts +10 -8
  247. package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
  248. package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
  249. package/src/classes/features/other/RoomClearFrame.ts +12 -10
  250. package/src/classes/features/other/RoomHistory.ts +13 -11
  251. package/src/classes/features/other/RunInNFrames.ts +19 -17
  252. package/src/classes/features/other/RunNextRoom.ts +10 -8
  253. package/src/classes/features/other/SaveDataManager.ts +11 -0
  254. package/src/classes/features/other/StageHistory.ts +11 -9
  255. package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
  256. package/src/classes/features/other/customStages/streakText.ts +14 -44
  257. package/src/classes/features/other/customStages/v.ts +31 -0
  258. package/src/classes/features/other/customStages/versusScreen.ts +2 -10
  259. package/src/enums/ModCallbackCustom.ts +6 -0
  260. package/src/functions/utils.ts +23 -0
  261. package/src/interfaces/SaveData.ts +0 -1
  262. package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
  263. package/src/shouldFire.ts +10 -0
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 25.3.0
3
+ isaacscript-common 25.5.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -15297,6 +15297,11 @@ function ____exports.shouldFireBomb(self, fireArgs, optionalArgs)
15297
15297
  local callbackBombVariant, callbackSubType = table.unpack(optionalArgs)
15298
15298
  return (callbackBombVariant == nil or callbackBombVariant == bomb.Variant) and (callbackSubType == nil or callbackSubType == bomb.SubType)
15299
15299
  end
15300
+ function ____exports.shouldFireBoolean(self, fireArgs, optionalArgs)
15301
+ local fireArg = table.unpack(fireArgs)
15302
+ local optionalArg = table.unpack(optionalArgs)
15303
+ return optionalArg == nil or optionalArg == fireArg
15304
+ end
15300
15305
  function ____exports.shouldFireCollectible(self, fireArgs, optionalArgs)
15301
15306
  local collectible = table.unpack(fireArgs)
15302
15307
  local callbackCollectibleType = table.unpack(optionalArgs)
@@ -16247,6 +16252,8 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescri
16247
16252
  local RenderMode = ____isaac_2Dtypescript_2Ddefinitions.RenderMode
16248
16253
  local ____cachedClasses = require("src.core.cachedClasses")
16249
16254
  local game = ____cachedClasses.game
16255
+ local ____types = require("src.functions.types")
16256
+ local isFunction = ____types.isFunction
16250
16257
  function ____exports.eRange(self, start, ____end, increment)
16251
16258
  if increment == nil then
16252
16259
  increment = 1
@@ -16289,6 +16296,18 @@ function ____exports.isReflectionRender(self)
16289
16296
  local renderMode = room:GetRenderMode()
16290
16297
  return renderMode == RenderMode.WATER_REFLECT
16291
16298
  end
16299
+ function ____exports.isRepentance(self)
16300
+ local metatable = getmetatable(Sprite)
16301
+ if metatable == nil then
16302
+ error("Failed to get the metatable of the Sprite global table.")
16303
+ end
16304
+ local classTable = metatable.__class
16305
+ if classTable == nil then
16306
+ error("Failed to get the \"__class\" key of the Sprite metatable.")
16307
+ end
16308
+ local getAnimation = classTable.GetAnimation
16309
+ return isFunction(nil, getAnimation)
16310
+ end
16292
16311
  ____exports["repeat"] = function(self, n, func)
16293
16312
  do
16294
16313
  local i = 0
@@ -17996,16 +18015,17 @@ local ____shouldFire = require("src.shouldFire")
17996
18015
  local shouldFireAmbush = ____shouldFire.shouldFireAmbush
17997
18016
  local ____CustomCallback = require("src.classes.private.CustomCallback")
17998
18017
  local CustomCallback = ____CustomCallback.CustomCallback
18018
+ local v = {room = {ambushDone = false}}
17999
18019
  ____exports.PostAmbushFinished = __TS__Class()
18000
18020
  local PostAmbushFinished = ____exports.PostAmbushFinished
18001
18021
  PostAmbushFinished.name = "PostAmbushFinished"
18002
18022
  __TS__ClassExtends(PostAmbushFinished, CustomCallback)
18003
18023
  function PostAmbushFinished.prototype.____constructor(self)
18004
18024
  CustomCallback.prototype.____constructor(self)
18005
- self.v = {room = {ambushDone = false}}
18025
+ self.v = v
18006
18026
  self.shouldFire = shouldFireAmbush
18007
18027
  self.postUpdate = function()
18008
- if self.v.room.ambushDone then
18028
+ if v.room.ambushDone then
18009
18029
  return
18010
18030
  end
18011
18031
  local room = game:GetRoom()
@@ -18013,7 +18033,7 @@ function PostAmbushFinished.prototype.____constructor(self)
18013
18033
  if not ambushDone then
18014
18034
  return
18015
18035
  end
18016
- self.v.room.ambushDone = true
18036
+ v.room.ambushDone = true
18017
18037
  local ambushType = getAmbushType(nil)
18018
18038
  if ambushType ~= nil then
18019
18039
  self:fire(ambushType)
@@ -18038,16 +18058,17 @@ local ____shouldFire = require("src.shouldFire")
18038
18058
  local shouldFireAmbush = ____shouldFire.shouldFireAmbush
18039
18059
  local ____CustomCallback = require("src.classes.private.CustomCallback")
18040
18060
  local CustomCallback = ____CustomCallback.CustomCallback
18061
+ local v = {room = {ambushActive = false}}
18041
18062
  ____exports.PostAmbushStarted = __TS__Class()
18042
18063
  local PostAmbushStarted = ____exports.PostAmbushStarted
18043
18064
  PostAmbushStarted.name = "PostAmbushStarted"
18044
18065
  __TS__ClassExtends(PostAmbushStarted, CustomCallback)
18045
18066
  function PostAmbushStarted.prototype.____constructor(self)
18046
18067
  CustomCallback.prototype.____constructor(self)
18047
- self.v = {room = {ambushActive = false}}
18068
+ self.v = v
18048
18069
  self.shouldFire = shouldFireAmbush
18049
18070
  self.postUpdate = function()
18050
- if self.v.room.ambushActive then
18071
+ if v.room.ambushActive then
18051
18072
  return
18052
18073
  end
18053
18074
  local room = game:GetRoom()
@@ -18055,7 +18076,7 @@ function PostAmbushStarted.prototype.____constructor(self)
18055
18076
  if not ambushActive then
18056
18077
  return
18057
18078
  end
18058
- self.v.room.ambushActive = true
18079
+ v.room.ambushActive = true
18059
18080
  local ambushType = getAmbushType(nil)
18060
18081
  if ambushType ~= nil then
18061
18082
  self:fire(ambushType)
@@ -18096,10 +18117,10 @@ return ____exports
18096
18117
  end,
18097
18118
  ["src.classes.callbacks.PostBombInitLate"] = function(...)
18098
18119
  local ____lualib = require("lualib_bundle")
18099
- local __TS__Class = ____lualib.__TS__Class
18100
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
18101
18120
  local Set = ____lualib.Set
18102
18121
  local __TS__New = ____lualib.__TS__New
18122
+ local __TS__Class = ____lualib.__TS__Class
18123
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
18103
18124
  local ____exports = {}
18104
18125
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
18105
18126
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -18107,18 +18128,19 @@ local ____shouldFire = require("src.shouldFire")
18107
18128
  local shouldFireBomb = ____shouldFire.shouldFireBomb
18108
18129
  local ____CustomCallback = require("src.classes.private.CustomCallback")
18109
18130
  local CustomCallback = ____CustomCallback.CustomCallback
18131
+ local v = {room = {firedSet = __TS__New(Set)}}
18110
18132
  ____exports.PostBombInitLate = __TS__Class()
18111
18133
  local PostBombInitLate = ____exports.PostBombInitLate
18112
18134
  PostBombInitLate.name = "PostBombInitLate"
18113
18135
  __TS__ClassExtends(PostBombInitLate, CustomCallback)
18114
18136
  function PostBombInitLate.prototype.____constructor(self)
18115
18137
  CustomCallback.prototype.____constructor(self)
18116
- self.v = {room = {firedSet = __TS__New(Set)}}
18138
+ self.v = v
18117
18139
  self.shouldFire = shouldFireBomb
18118
18140
  self.postBombUpdate = function(____, bomb)
18119
18141
  local ptrHash = GetPtrHash(bomb)
18120
- if not self.v.room.firedSet:has(ptrHash) then
18121
- self.v.room.firedSet:add(ptrHash)
18142
+ if not v.room.firedSet:has(ptrHash) then
18143
+ v.room.firedSet:add(ptrHash)
18122
18144
  self:fire(bomb)
18123
18145
  end
18124
18146
  end
@@ -18129,9 +18151,9 @@ return ____exports
18129
18151
  ["src.classes.callbacks.PostBoneSwing"] = function(...)
18130
18152
  local ____lualib = require("lualib_bundle")
18131
18153
  local __TS__New = ____lualib.__TS__New
18154
+ local Map = ____lualib.Map
18132
18155
  local __TS__Class = ____lualib.__TS__Class
18133
18156
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
18134
- local Map = ____lualib.Map
18135
18157
  local ____exports = {}
18136
18158
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
18137
18159
  local KnifeVariant = ____isaac_2Dtypescript_2Ddefinitions.KnifeVariant
@@ -18141,13 +18163,14 @@ local ReadonlySet = ____ReadonlySet.ReadonlySet
18141
18163
  local ____CustomCallback = require("src.classes.private.CustomCallback")
18142
18164
  local CustomCallback = ____CustomCallback.CustomCallback
18143
18165
  local BONE_SWING_ANIMATIONS = __TS__New(ReadonlySet, {"Swing", "Swing2", "Spin"})
18166
+ local v = {room = {boneClubAnimations = __TS__New(Map)}}
18144
18167
  ____exports.PostBoneSwing = __TS__Class()
18145
18168
  local PostBoneSwing = ____exports.PostBoneSwing
18146
18169
  PostBoneSwing.name = "PostBoneSwing"
18147
18170
  __TS__ClassExtends(PostBoneSwing, CustomCallback)
18148
18171
  function PostBoneSwing.prototype.____constructor(self)
18149
18172
  CustomCallback.prototype.____constructor(self)
18150
- self.v = {room = {boneClubAnimations = __TS__New(Map)}}
18173
+ self.v = v
18151
18174
  self.postKnifeRender = function(____, knife)
18152
18175
  if knife.Variant == KnifeVariant.BONE_CLUB then
18153
18176
  self:postKnifeRenderBoneClub(knife)
@@ -18159,8 +18182,8 @@ function PostBoneSwing.prototype.postKnifeRenderBoneClub(self, knife)
18159
18182
  local sprite = knife:GetSprite()
18160
18183
  local animation = sprite:GetAnimation()
18161
18184
  local ptrHash = GetPtrHash(knife)
18162
- local animationOnLastFrame = self.v.room.boneClubAnimations:get(ptrHash)
18163
- self.v.room.boneClubAnimations:set(ptrHash, animation)
18185
+ local animationOnLastFrame = v.room.boneClubAnimations:get(ptrHash)
18186
+ v.room.boneClubAnimations:set(ptrHash, animation)
18164
18187
  if animationOnLastFrame ~= nil and animation ~= animationOnLastFrame then
18165
18188
  self:boneClubAnimationChanged(knife, animation)
18166
18189
  end
@@ -18174,10 +18197,10 @@ return ____exports
18174
18197
  end,
18175
18198
  ["src.classes.callbacks.PostCollectibleEmpty"] = function(...)
18176
18199
  local ____lualib = require("lualib_bundle")
18177
- local __TS__Class = ____lualib.__TS__Class
18178
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
18179
18200
  local Map = ____lualib.Map
18180
18201
  local __TS__New = ____lualib.__TS__New
18202
+ local __TS__Class = ____lualib.__TS__Class
18203
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
18181
18204
  local ____exports = {}
18182
18205
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
18183
18206
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
@@ -18185,13 +18208,14 @@ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
18185
18208
  local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
18186
18209
  local ____CustomCallback = require("src.classes.private.CustomCallback")
18187
18210
  local CustomCallback = ____CustomCallback.CustomCallback
18211
+ local v = {room = {collectibleTypeMap = __TS__New(Map)}}
18188
18212
  ____exports.PostCollectibleEmpty = __TS__Class()
18189
18213
  local PostCollectibleEmpty = ____exports.PostCollectibleEmpty
18190
18214
  PostCollectibleEmpty.name = "PostCollectibleEmpty"
18191
18215
  __TS__ClassExtends(PostCollectibleEmpty, CustomCallback)
18192
18216
  function PostCollectibleEmpty.prototype.____constructor(self)
18193
18217
  CustomCallback.prototype.____constructor(self)
18194
- self.v = {room = {collectibleTypeMap = __TS__New(Map)}}
18218
+ self.v = v
18195
18219
  self.shouldFire = function(____, fireArgs, optionalArgs)
18196
18220
  local _collectible, oldCollectibleType = table.unpack(fireArgs)
18197
18221
  local callbackCollectibleType = table.unpack(optionalArgs)
@@ -18200,11 +18224,11 @@ function PostCollectibleEmpty.prototype.____constructor(self)
18200
18224
  self.postPickupUpdateCollectible = function(____, pickup)
18201
18225
  local collectible = pickup
18202
18226
  local ptrHash = GetPtrHash(collectible)
18203
- local oldCollectibleType = self.v.room.collectibleTypeMap:get(ptrHash)
18227
+ local oldCollectibleType = v.room.collectibleTypeMap:get(ptrHash)
18204
18228
  if oldCollectibleType == nil then
18205
18229
  oldCollectibleType = collectible.SubType
18206
18230
  end
18207
- self.v.room.collectibleTypeMap:set(ptrHash, collectible.SubType)
18231
+ v.room.collectibleTypeMap:set(ptrHash, collectible.SubType)
18208
18232
  if oldCollectibleType ~= collectible.SubType then
18209
18233
  self:collectibleTypeChanged(collectible, oldCollectibleType)
18210
18234
  end
@@ -21465,10 +21489,10 @@ return ____exports
21465
21489
  end,
21466
21490
  ["src.classes.callbacks.PostCollectibleInitFirst"] = function(...)
21467
21491
  local ____lualib = require("lualib_bundle")
21468
- local __TS__Class = ____lualib.__TS__Class
21469
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
21470
21492
  local Set = ____lualib.Set
21471
21493
  local __TS__New = ____lualib.__TS__New
21494
+ local __TS__Class = ____lualib.__TS__Class
21495
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
21472
21496
  local ____exports = {}
21473
21497
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
21474
21498
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -21479,21 +21503,22 @@ local ____shouldFire = require("src.shouldFire")
21479
21503
  local shouldFireCollectible = ____shouldFire.shouldFireCollectible
21480
21504
  local ____CustomCallback = require("src.classes.private.CustomCallback")
21481
21505
  local CustomCallback = ____CustomCallback.CustomCallback
21506
+ local v = {run = {seenCollectibles = __TS__New(Set)}}
21482
21507
  ____exports.PostCollectibleInitFirst = __TS__Class()
21483
21508
  local PostCollectibleInitFirst = ____exports.PostCollectibleInitFirst
21484
21509
  PostCollectibleInitFirst.name = "PostCollectibleInitFirst"
21485
21510
  __TS__ClassExtends(PostCollectibleInitFirst, CustomCallback)
21486
21511
  function PostCollectibleInitFirst.prototype.____constructor(self)
21487
21512
  CustomCallback.prototype.____constructor(self)
21488
- self.v = {run = {seenCollectibles = __TS__New(Set)}}
21513
+ self.v = v
21489
21514
  self.shouldFire = shouldFireCollectible
21490
21515
  self.postPickupInitCollectible = function(____, pickup)
21491
21516
  local collectible = pickup
21492
21517
  local collectibleIndex = getCollectibleIndex(nil, collectible)
21493
- if self.v.run.seenCollectibles:has(collectibleIndex) then
21518
+ if v.run.seenCollectibles:has(collectibleIndex) then
21494
21519
  return
21495
21520
  end
21496
- self.v.run.seenCollectibles:add(collectibleIndex)
21521
+ v.run.seenCollectibles:add(collectibleIndex)
21497
21522
  self:fire(collectible)
21498
21523
  end
21499
21524
  self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
@@ -22596,10 +22621,10 @@ return ____exports
22596
22621
  end,
22597
22622
  ["src.classes.callbacks.PostCursedTeleport"] = function(...)
22598
22623
  local ____lualib = require("lualib_bundle")
22599
- local __TS__Class = ____lualib.__TS__Class
22600
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
22601
22624
  local Map = ____lualib.Map
22602
22625
  local __TS__New = ____lualib.__TS__New
22626
+ local __TS__Class = ____lualib.__TS__Class
22627
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
22603
22628
  local ____exports = {}
22604
22629
  local playerIsTeleportingFromCursedTeleport
22605
22630
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -22642,19 +22667,20 @@ function playerIsTeleportingFromCursedTeleport(self, player, lastDamageFrame)
22642
22667
  end
22643
22668
  return false
22644
22669
  end
22670
+ local v = {
22671
+ run = {playersDamageFrameMap = __TS__New(Map)},
22672
+ level = {numSacrifices = 0}
22673
+ }
22645
22674
  ____exports.PostCursedTeleport = __TS__Class()
22646
22675
  local PostCursedTeleport = ____exports.PostCursedTeleport
22647
22676
  PostCursedTeleport.name = "PostCursedTeleport"
22648
22677
  __TS__ClassExtends(PostCursedTeleport, CustomCallback)
22649
22678
  function PostCursedTeleport.prototype.____constructor(self)
22650
22679
  CustomCallback.prototype.____constructor(self)
22651
- self.v = {
22652
- run = {playersDamageFrameMap = __TS__New(Map)},
22653
- level = {numSacrifices = 0}
22654
- }
22680
+ self.v = v
22655
22681
  self.shouldFire = shouldFirePlayer
22656
22682
  self.postPlayerRenderPlayer = function(____, player, _renderOffset)
22657
- local trackingArray = mapGetPlayer(nil, self.v.run.playersDamageFrameMap, player)
22683
+ local trackingArray = mapGetPlayer(nil, v.run.playersDamageFrameMap, player)
22658
22684
  if trackingArray == nil then
22659
22685
  return
22660
22686
  end
@@ -22667,7 +22693,7 @@ function PostCursedTeleport.prototype.____constructor(self)
22667
22693
  end
22668
22694
  local gameFrameCount = game:GetFrameCount()
22669
22695
  local newTrackingArray = {gameFrameCount, true}
22670
- mapSetPlayer(nil, self.v.run.playersDamageFrameMap, player, newTrackingArray)
22696
+ mapSetPlayer(nil, v.run.playersDamageFrameMap, player, newTrackingArray)
22671
22697
  self:fire(player)
22672
22698
  end
22673
22699
  self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
@@ -22683,13 +22709,13 @@ function PostCursedTeleport.prototype.incrementNumSacrifices(self, damageFlags)
22683
22709
  local roomType = room:GetType()
22684
22710
  local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
22685
22711
  if roomType == RoomType.SACRIFICE and isSpikeDamage then
22686
- local ____self_v_level_0, ____numSacrifices_1 = self.v.level, "numSacrifices"
22687
- ____self_v_level_0[____numSacrifices_1] = ____self_v_level_0[____numSacrifices_1] + 1
22712
+ local ____v_level_0, ____numSacrifices_1 = v.level, "numSacrifices"
22713
+ ____v_level_0[____numSacrifices_1] = ____v_level_0[____numSacrifices_1] + 1
22688
22714
  end
22689
22715
  end
22690
22716
  function PostCursedTeleport.prototype.setDamageFrame(self, player, damageFlags)
22691
22717
  local gameFrameCount = game:GetFrameCount()
22692
- local trackingArray = mapGetPlayer(nil, self.v.run.playersDamageFrameMap, player)
22718
+ local trackingArray = mapGetPlayer(nil, v.run.playersDamageFrameMap, player)
22693
22719
  if trackingArray ~= nil then
22694
22720
  local lastDamageFrame, callbackFiredOnThisFrame = table.unpack(trackingArray)
22695
22721
  if lastDamageFrame == gameFrameCount and callbackFiredOnThisFrame then
@@ -22700,13 +22726,13 @@ function PostCursedTeleport.prototype.setDamageFrame(self, player, damageFlags)
22700
22726
  return
22701
22727
  end
22702
22728
  local newTrackingArray = {gameFrameCount, false}
22703
- mapSetPlayer(nil, self.v.run.playersDamageFrameMap, player, newTrackingArray)
22729
+ mapSetPlayer(nil, v.run.playersDamageFrameMap, player, newTrackingArray)
22704
22730
  end
22705
22731
  function PostCursedTeleport.prototype.isPotentialNaturalTeleportFromSacrificeRoom(self, damageFlags)
22706
22732
  local room = game:GetRoom()
22707
22733
  local roomType = room:GetType()
22708
22734
  local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
22709
- return roomType == RoomType.SACRIFICE and isSpikeDamage and (self.v.level.numSacrifices == 6 or self.v.level.numSacrifices >= 12)
22735
+ return roomType == RoomType.SACRIFICE and isSpikeDamage and (v.level.numSacrifices == 6 or v.level.numSacrifices >= 12)
22710
22736
  end
22711
22737
  return ____exports
22712
22738
  end,
@@ -22854,20 +22880,21 @@ local ____players = require("src.functions.players")
22854
22880
  local getClosestPlayer = ____players.getClosestPlayer
22855
22881
  local ____CustomCallback = require("src.classes.private.CustomCallback")
22856
22882
  local CustomCallback = ____CustomCallback.CustomCallback
22883
+ local v = {room = {diceRoomActivated = false}}
22857
22884
  ____exports.PostDiceRoomActivated = __TS__Class()
22858
22885
  local PostDiceRoomActivated = ____exports.PostDiceRoomActivated
22859
22886
  PostDiceRoomActivated.name = "PostDiceRoomActivated"
22860
22887
  __TS__ClassExtends(PostDiceRoomActivated, CustomCallback)
22861
22888
  function PostDiceRoomActivated.prototype.____constructor(self)
22862
22889
  CustomCallback.prototype.____constructor(self)
22863
- self.v = {room = {diceRoomActivated = false}}
22890
+ self.v = v
22864
22891
  self.shouldFire = function(____, fireArgs, optionalArgs)
22865
22892
  local _player, diceFloorSubType = table.unpack(fireArgs)
22866
22893
  local callbackDiceFloorSubType = table.unpack(optionalArgs)
22867
22894
  return callbackDiceFloorSubType == nil or diceFloorSubType == callbackDiceFloorSubType
22868
22895
  end
22869
22896
  self.postEffectUpdateDiceFloor = function(____, effect)
22870
- if self.v.room.diceRoomActivated then
22897
+ if v.room.diceRoomActivated then
22871
22898
  return
22872
22899
  end
22873
22900
  if effect.FrameCount == 0 then
@@ -22875,7 +22902,7 @@ function PostDiceRoomActivated.prototype.____constructor(self)
22875
22902
  end
22876
22903
  local closestPlayer = getClosestPlayer(nil, effect.Position)
22877
22904
  if isCloseEnoughToTriggerDiceFloor(nil, closestPlayer, effect) then
22878
- self.v.room.diceRoomActivated = true
22905
+ v.room.diceRoomActivated = true
22879
22906
  self:fire(closestPlayer, effect.SubType)
22880
22907
  end
22881
22908
  end
@@ -22943,10 +22970,10 @@ return ____exports
22943
22970
  end,
22944
22971
  ["src.classes.callbacks.PostEffectInitLate"] = function(...)
22945
22972
  local ____lualib = require("lualib_bundle")
22946
- local __TS__Class = ____lualib.__TS__Class
22947
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
22948
22973
  local Set = ____lualib.Set
22949
22974
  local __TS__New = ____lualib.__TS__New
22975
+ local __TS__Class = ____lualib.__TS__Class
22976
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
22950
22977
  local ____exports = {}
22951
22978
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
22952
22979
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -22954,18 +22981,19 @@ local ____shouldFire = require("src.shouldFire")
22954
22981
  local shouldFireEffect = ____shouldFire.shouldFireEffect
22955
22982
  local ____CustomCallback = require("src.classes.private.CustomCallback")
22956
22983
  local CustomCallback = ____CustomCallback.CustomCallback
22984
+ local v = {room = {firedSet = __TS__New(Set)}}
22957
22985
  ____exports.PostEffectInitLate = __TS__Class()
22958
22986
  local PostEffectInitLate = ____exports.PostEffectInitLate
22959
22987
  PostEffectInitLate.name = "PostEffectInitLate"
22960
22988
  __TS__ClassExtends(PostEffectInitLate, CustomCallback)
22961
22989
  function PostEffectInitLate.prototype.____constructor(self)
22962
22990
  CustomCallback.prototype.____constructor(self)
22963
- self.v = {room = {firedSet = __TS__New(Set)}}
22991
+ self.v = v
22964
22992
  self.shouldFire = shouldFireEffect
22965
22993
  self.postEffectUpdate = function(____, effect)
22966
22994
  local index = GetPtrHash(effect)
22967
- if not self.v.room.firedSet:has(index) then
22968
- self.v.room.firedSet:add(index)
22995
+ if not v.room.firedSet:has(index) then
22996
+ v.room.firedSet:add(index)
22969
22997
  self:fire(effect)
22970
22998
  end
22971
22999
  end
@@ -22975,9 +23003,9 @@ return ____exports
22975
23003
  end,
22976
23004
  ["src.classes.callbacks.PostEffectStateChanged"] = function(...)
22977
23005
  local ____lualib = require("lualib_bundle")
23006
+ local __TS__New = ____lualib.__TS__New
22978
23007
  local __TS__Class = ____lualib.__TS__Class
22979
23008
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
22980
- local __TS__New = ____lualib.__TS__New
22981
23009
  local ____exports = {}
22982
23010
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
22983
23011
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -22987,22 +23015,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
22987
23015
  local DefaultMap = ____DefaultMap.DefaultMap
22988
23016
  local ____CustomCallback = require("src.classes.private.CustomCallback")
22989
23017
  local CustomCallback = ____CustomCallback.CustomCallback
23018
+ local v = {run = {stateMap = __TS__New(
23019
+ DefaultMap,
23020
+ function(____, state) return state end
23021
+ )}}
22990
23022
  ____exports.PostEffectStateChanged = __TS__Class()
22991
23023
  local PostEffectStateChanged = ____exports.PostEffectStateChanged
22992
23024
  PostEffectStateChanged.name = "PostEffectStateChanged"
22993
23025
  __TS__ClassExtends(PostEffectStateChanged, CustomCallback)
22994
23026
  function PostEffectStateChanged.prototype.____constructor(self)
22995
23027
  CustomCallback.prototype.____constructor(self)
22996
- self.v = {run = {stateMap = __TS__New(
22997
- DefaultMap,
22998
- function(____, state) return state end
22999
- )}}
23028
+ self.v = v
23000
23029
  self.shouldFire = shouldFireEffect
23001
23030
  self.postEffectUpdate = function(____, effect)
23002
23031
  local ptrHash = GetPtrHash(effect)
23003
- local previousState = self.v.run.stateMap:getAndSetDefault(ptrHash, effect.State)
23032
+ local previousState = v.run.stateMap:getAndSetDefault(ptrHash, effect.State)
23004
23033
  local currentState = effect.State
23005
- self.v.run.stateMap:set(ptrHash, currentState)
23034
+ v.run.stateMap:set(ptrHash, currentState)
23006
23035
  if previousState ~= currentState then
23007
23036
  self:fire(effect, previousState, currentState)
23008
23037
  end
@@ -23032,10 +23061,10 @@ return ____exports
23032
23061
  end,
23033
23062
  ["src.classes.callbacks.PostFamiliarInitLate"] = function(...)
23034
23063
  local ____lualib = require("lualib_bundle")
23035
- local __TS__Class = ____lualib.__TS__Class
23036
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
23037
23064
  local Set = ____lualib.Set
23038
23065
  local __TS__New = ____lualib.__TS__New
23066
+ local __TS__Class = ____lualib.__TS__Class
23067
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
23039
23068
  local ____exports = {}
23040
23069
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
23041
23070
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -23043,18 +23072,19 @@ local ____shouldFire = require("src.shouldFire")
23043
23072
  local shouldFireFamiliar = ____shouldFire.shouldFireFamiliar
23044
23073
  local ____CustomCallback = require("src.classes.private.CustomCallback")
23045
23074
  local CustomCallback = ____CustomCallback.CustomCallback
23075
+ local v = {room = {firedSet = __TS__New(Set)}}
23046
23076
  ____exports.PostFamiliarInitLate = __TS__Class()
23047
23077
  local PostFamiliarInitLate = ____exports.PostFamiliarInitLate
23048
23078
  PostFamiliarInitLate.name = "PostFamiliarInitLate"
23049
23079
  __TS__ClassExtends(PostFamiliarInitLate, CustomCallback)
23050
23080
  function PostFamiliarInitLate.prototype.____constructor(self)
23051
23081
  CustomCallback.prototype.____constructor(self)
23052
- self.v = {room = {firedSet = __TS__New(Set)}}
23082
+ self.v = v
23053
23083
  self.shouldFire = shouldFireFamiliar
23054
23084
  self.postFamiliarUpdate = function(____, familiar)
23055
23085
  local index = GetPtrHash(familiar)
23056
- if not self.v.room.firedSet:has(index) then
23057
- self.v.room.firedSet:add(index)
23086
+ if not v.room.firedSet:has(index) then
23087
+ v.room.firedSet:add(index)
23058
23088
  self:fire(familiar)
23059
23089
  end
23060
23090
  end
@@ -23064,9 +23094,9 @@ return ____exports
23064
23094
  end,
23065
23095
  ["src.classes.callbacks.PostFamiliarStateChanged"] = function(...)
23066
23096
  local ____lualib = require("lualib_bundle")
23097
+ local __TS__New = ____lualib.__TS__New
23067
23098
  local __TS__Class = ____lualib.__TS__Class
23068
23099
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
23069
- local __TS__New = ____lualib.__TS__New
23070
23100
  local ____exports = {}
23071
23101
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
23072
23102
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -23076,22 +23106,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
23076
23106
  local DefaultMap = ____DefaultMap.DefaultMap
23077
23107
  local ____CustomCallback = require("src.classes.private.CustomCallback")
23078
23108
  local CustomCallback = ____CustomCallback.CustomCallback
23109
+ local v = {run = {stateMap = __TS__New(
23110
+ DefaultMap,
23111
+ function(____, state) return state end
23112
+ )}}
23079
23113
  ____exports.PostFamiliarStateChanged = __TS__Class()
23080
23114
  local PostFamiliarStateChanged = ____exports.PostFamiliarStateChanged
23081
23115
  PostFamiliarStateChanged.name = "PostFamiliarStateChanged"
23082
23116
  __TS__ClassExtends(PostFamiliarStateChanged, CustomCallback)
23083
23117
  function PostFamiliarStateChanged.prototype.____constructor(self)
23084
23118
  CustomCallback.prototype.____constructor(self)
23085
- self.v = {run = {stateMap = __TS__New(
23086
- DefaultMap,
23087
- function(____, state) return state end
23088
- )}}
23119
+ self.v = v
23089
23120
  self.shouldFire = shouldFireFamiliar
23090
23121
  self.postFamiliarUpdate = function(____, familiar)
23091
23122
  local ptrHash = GetPtrHash(familiar)
23092
- local previousState = self.v.run.stateMap:getAndSetDefault(ptrHash, familiar.State)
23123
+ local previousState = v.run.stateMap:getAndSetDefault(ptrHash, familiar.State)
23093
23124
  local currentState = familiar.State
23094
- self.v.run.stateMap:set(ptrHash, currentState)
23125
+ v.run.stateMap:set(ptrHash, currentState)
23095
23126
  if previousState ~= currentState then
23096
23127
  self:fire(familiar, previousState, currentState)
23097
23128
  end
@@ -23164,6 +23195,8 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
23164
23195
  local ____exports = {}
23165
23196
  local ____ISCFeature = require("src.enums.ISCFeature")
23166
23197
  local ISCFeature = ____ISCFeature.ISCFeature
23198
+ local ____shouldFire = require("src.shouldFire")
23199
+ local shouldFireBoolean = ____shouldFire.shouldFireBoolean
23167
23200
  local ____CustomCallback = require("src.classes.private.CustomCallback")
23168
23201
  local CustomCallback = ____CustomCallback.CustomCallback
23169
23202
  ____exports.PostGameStartedReordered = __TS__Class()
@@ -23172,6 +23205,7 @@ PostGameStartedReordered.name = "PostGameStartedReordered"
23172
23205
  __TS__ClassExtends(PostGameStartedReordered, CustomCallback)
23173
23206
  function PostGameStartedReordered.prototype.____constructor(self)
23174
23207
  CustomCallback.prototype.____constructor(self)
23208
+ self.shouldFire = shouldFireBoolean
23175
23209
  self.featuresUsed = {ISCFeature.GAME_REORDERED_CALLBACKS}
23176
23210
  end
23177
23211
  return ____exports
@@ -23183,6 +23217,8 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
23183
23217
  local ____exports = {}
23184
23218
  local ____ISCFeature = require("src.enums.ISCFeature")
23185
23219
  local ISCFeature = ____ISCFeature.ISCFeature
23220
+ local ____shouldFire = require("src.shouldFire")
23221
+ local shouldFireBoolean = ____shouldFire.shouldFireBoolean
23186
23222
  local ____CustomCallback = require("src.classes.private.CustomCallback")
23187
23223
  local CustomCallback = ____CustomCallback.CustomCallback
23188
23224
  ____exports.PostGameStartedReorderedLast = __TS__Class()
@@ -23191,6 +23227,7 @@ PostGameStartedReorderedLast.name = "PostGameStartedReorderedLast"
23191
23227
  __TS__ClassExtends(PostGameStartedReorderedLast, CustomCallback)
23192
23228
  function PostGameStartedReorderedLast.prototype.____constructor(self)
23193
23229
  CustomCallback.prototype.____constructor(self)
23230
+ self.shouldFire = shouldFireBoolean
23194
23231
  self.featuresUsed = {ISCFeature.GAME_REORDERED_CALLBACKS}
23195
23232
  end
23196
23233
  return ____exports
@@ -23977,21 +24014,22 @@ local ____run = require("src.functions.run")
23977
24014
  local isGreedMode = ____run.isGreedMode
23978
24015
  local ____CustomCallback = require("src.classes.private.CustomCallback")
23979
24016
  local CustomCallback = ____CustomCallback.CustomCallback
24017
+ local v = {run = {currentGreedWave = 0}}
23980
24018
  ____exports.PostGreedModeWave = __TS__Class()
23981
24019
  local PostGreedModeWave = ____exports.PostGreedModeWave
23982
24020
  PostGreedModeWave.name = "PostGreedModeWave"
23983
24021
  __TS__ClassExtends(PostGreedModeWave, CustomCallback)
23984
24022
  function PostGreedModeWave.prototype.____constructor(self)
23985
24023
  CustomCallback.prototype.____constructor(self)
23986
- self.v = {run = {currentGreedWave = 0}}
24024
+ self.v = v
23987
24025
  self.postUpdate = function()
23988
24026
  if not isGreedMode(nil) then
23989
24027
  return
23990
24028
  end
23991
24029
  local level = game:GetLevel()
23992
24030
  local newWave = level.GreedModeWave
23993
- local oldWave = self.v.run.currentGreedWave
23994
- self.v.run.currentGreedWave = newWave
24031
+ local oldWave = v.run.currentGreedWave
24032
+ v.run.currentGreedWave = newWave
23995
24033
  if newWave > oldWave then
23996
24034
  self:fire(oldWave, newWave)
23997
24035
  end
@@ -24320,9 +24358,9 @@ return ____exports
24320
24358
  end,
24321
24359
  ["src.classes.callbacks.PostHolyMantleRemoved"] = function(...)
24322
24360
  local ____lualib = require("lualib_bundle")
24361
+ local __TS__New = ____lualib.__TS__New
24323
24362
  local __TS__Class = ____lualib.__TS__Class
24324
24363
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
24325
- local __TS__New = ____lualib.__TS__New
24326
24364
  local ____exports = {}
24327
24365
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
24328
24366
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
@@ -24337,19 +24375,20 @@ local ____DefaultMap = require("src.classes.DefaultMap")
24337
24375
  local DefaultMap = ____DefaultMap.DefaultMap
24338
24376
  local ____CustomCallback = require("src.classes.private.CustomCallback")
24339
24377
  local CustomCallback = ____CustomCallback.CustomCallback
24378
+ local v = {run = {playersHolyMantleMap = __TS__New(DefaultMap, 0)}}
24340
24379
  ____exports.PostHolyMantleRemoved = __TS__Class()
24341
24380
  local PostHolyMantleRemoved = ____exports.PostHolyMantleRemoved
24342
24381
  PostHolyMantleRemoved.name = "PostHolyMantleRemoved"
24343
24382
  __TS__ClassExtends(PostHolyMantleRemoved, CustomCallback)
24344
24383
  function PostHolyMantleRemoved.prototype.____constructor(self)
24345
24384
  CustomCallback.prototype.____constructor(self)
24346
- self.v = {run = {playersHolyMantleMap = __TS__New(DefaultMap, 0)}}
24385
+ self.v = v
24347
24386
  self.shouldFire = shouldFirePlayer
24348
24387
  self.postPEffectUpdateReordered = function(____, player)
24349
24388
  local effects = player:GetEffects()
24350
24389
  local newNumHolyMantles = effects:GetCollectibleEffectNum(CollectibleType.HOLY_MANTLE)
24351
- local oldNumHolyMantles = defaultMapGetPlayer(nil, self.v.run.playersHolyMantleMap, player)
24352
- mapSetPlayer(nil, self.v.run.playersHolyMantleMap, player, newNumHolyMantles)
24390
+ local oldNumHolyMantles = defaultMapGetPlayer(nil, v.run.playersHolyMantleMap, player)
24391
+ mapSetPlayer(nil, v.run.playersHolyMantleMap, player, newNumHolyMantles)
24353
24392
  if newNumHolyMantles < oldNumHolyMantles then
24354
24393
  self:fire(player, oldNumHolyMantles, newNumHolyMantles)
24355
24394
  end
@@ -25184,10 +25223,10 @@ return ____exports
25184
25223
  end,
25185
25224
  ["src.classes.callbacks.PostItemDischarge"] = function(...)
25186
25225
  local ____lualib = require("lualib_bundle")
25187
- local __TS__Class = ____lualib.__TS__Class
25188
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25189
25226
  local Map = ____lualib.Map
25190
25227
  local __TS__New = ____lualib.__TS__New
25228
+ local __TS__Class = ____lualib.__TS__Class
25229
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25191
25230
  local ____exports = {}
25192
25231
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
25193
25232
  local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
@@ -25211,25 +25250,26 @@ local ____DefaultMap = require("src.classes.DefaultMap")
25211
25250
  local DefaultMap = ____DefaultMap.DefaultMap
25212
25251
  local ____CustomCallback = require("src.classes.private.CustomCallback")
25213
25252
  local CustomCallback = ____CustomCallback.CustomCallback
25253
+ local v = {
25254
+ run = {
25255
+ playersActiveItemMap = __TS__New(
25256
+ DefaultMap,
25257
+ function() return __TS__New(Map) end
25258
+ ),
25259
+ playersActiveChargeMap = __TS__New(
25260
+ DefaultMap,
25261
+ function() return __TS__New(Map) end
25262
+ )
25263
+ },
25264
+ room = {playersBulbLastCollisionFrame = __TS__New(Map)}
25265
+ }
25214
25266
  ____exports.PostItemDischarge = __TS__Class()
25215
25267
  local PostItemDischarge = ____exports.PostItemDischarge
25216
25268
  PostItemDischarge.name = "PostItemDischarge"
25217
25269
  __TS__ClassExtends(PostItemDischarge, CustomCallback)
25218
25270
  function PostItemDischarge.prototype.____constructor(self)
25219
25271
  CustomCallback.prototype.____constructor(self)
25220
- self.v = {
25221
- run = {
25222
- playersActiveItemMap = __TS__New(
25223
- DefaultMap,
25224
- function() return __TS__New(Map) end
25225
- ),
25226
- playersActiveChargeMap = __TS__New(
25227
- DefaultMap,
25228
- function() return __TS__New(Map) end
25229
- )
25230
- },
25231
- room = {playersBulbLastCollisionFrame = __TS__New(Map)}
25232
- }
25272
+ self.v = v
25233
25273
  self.shouldFire = function(____, fireArgs, optionalArgs)
25234
25274
  local _player, collectibleType = table.unpack(fireArgs)
25235
25275
  local callbackCollectibleType = table.unpack(optionalArgs)
@@ -25242,8 +25282,8 @@ function PostItemDischarge.prototype.____constructor(self)
25242
25282
  return nil
25243
25283
  end
25244
25284
  self.postPEffectUpdateReordered = function(____, player)
25245
- local activeItemMap = defaultMapGetPlayer(nil, self.v.run.playersActiveItemMap, player)
25246
- local chargeMap = defaultMapGetPlayer(nil, self.v.run.playersActiveChargeMap, player)
25285
+ local activeItemMap = defaultMapGetPlayer(nil, v.run.playersActiveItemMap, player)
25286
+ local chargeMap = defaultMapGetPlayer(nil, v.run.playersActiveChargeMap, player)
25247
25287
  for ____, activeSlot in ipairs(ACTIVE_SLOT_VALUES) do
25248
25288
  do
25249
25289
  local currentActiveItem = player:GetActiveItem()
@@ -25285,11 +25325,11 @@ function PostItemDischarge.prototype.checkPlayerCollidedWithBulb(self, collider)
25285
25325
  return
25286
25326
  end
25287
25327
  local gameFrameCount = game:GetFrameCount()
25288
- mapSetPlayer(nil, self.v.room.playersBulbLastCollisionFrame, player, gameFrameCount)
25328
+ mapSetPlayer(nil, v.room.playersBulbLastCollisionFrame, player, gameFrameCount)
25289
25329
  end
25290
25330
  function PostItemDischarge.prototype.playerRecentlyCollidedWithBulb(self, player)
25291
25331
  local gameFrameCount = game:GetFrameCount()
25292
- local bulbLastCollisionFrame = mapGetPlayer(nil, self.v.room.playersBulbLastCollisionFrame, player)
25332
+ local bulbLastCollisionFrame = mapGetPlayer(nil, v.room.playersBulbLastCollisionFrame, player)
25293
25333
  local collidedOnThisFrame = gameFrameCount == bulbLastCollisionFrame
25294
25334
  local collidedOnLastFrame = gameFrameCount - 1 == bulbLastCollisionFrame
25295
25335
  return collidedOnThisFrame or collidedOnLastFrame
@@ -25557,10 +25597,10 @@ return ____exports
25557
25597
  end,
25558
25598
  ["src.classes.callbacks.PostKeyboardChanged"] = function(...)
25559
25599
  local ____lualib = require("lualib_bundle")
25560
- local __TS__Class = ____lualib.__TS__Class
25561
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25562
25600
  local Set = ____lualib.Set
25563
25601
  local __TS__New = ____lualib.__TS__New
25602
+ local __TS__Class = ____lualib.__TS__Class
25603
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25564
25604
  local __TS__Iterator = ____lualib.__TS__Iterator
25565
25605
  local ____exports = {}
25566
25606
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -25571,32 +25611,33 @@ local ____input = require("src.functions.input")
25571
25611
  local isKeyboardPressed = ____input.isKeyboardPressed
25572
25612
  local ____CustomCallback = require("src.classes.private.CustomCallback")
25573
25613
  local CustomCallback = ____CustomCallback.CustomCallback
25614
+ local v = {run = {pressedKeys = __TS__New(Set)}}
25574
25615
  ____exports.PostKeyboardChanged = __TS__Class()
25575
25616
  local PostKeyboardChanged = ____exports.PostKeyboardChanged
25576
25617
  PostKeyboardChanged.name = "PostKeyboardChanged"
25577
25618
  __TS__ClassExtends(PostKeyboardChanged, CustomCallback)
25578
25619
  function PostKeyboardChanged.prototype.____constructor(self)
25579
25620
  CustomCallback.prototype.____constructor(self)
25580
- self.v = {run = {pressedKeys = __TS__New(Set)}}
25621
+ self.v = v
25581
25622
  self.shouldFire = function(____, fireArgs, optionalArgs)
25582
25623
  local keyboard, pressed = table.unpack(fireArgs)
25583
25624
  local callbackKeyboard, callbackPressed = table.unpack(optionalArgs)
25584
25625
  return (callbackKeyboard == nil or callbackKeyboard == keyboard) and (callbackPressed == nil or callbackPressed == pressed)
25585
25626
  end
25586
25627
  self.postRender = function()
25587
- for ____, keyboard in __TS__Iterator(self.v.run.pressedKeys) do
25628
+ for ____, keyboard in __TS__Iterator(v.run.pressedKeys) do
25588
25629
  if not isKeyboardPressed(nil, keyboard) then
25589
- self.v.run.pressedKeys:delete(keyboard)
25630
+ v.run.pressedKeys:delete(keyboard)
25590
25631
  self:fire(keyboard, false)
25591
25632
  end
25592
25633
  end
25593
25634
  for ____, keyboard in ipairs(KEYBOARD_VALUES) do
25594
25635
  do
25595
- if self.v.run.pressedKeys:has(keyboard) then
25636
+ if v.run.pressedKeys:has(keyboard) then
25596
25637
  goto __continue8
25597
25638
  end
25598
25639
  if isKeyboardPressed(nil, keyboard) then
25599
- self.v.run.pressedKeys:add(keyboard)
25640
+ v.run.pressedKeys:add(keyboard)
25600
25641
  self:fire(keyboard, true)
25601
25642
  end
25602
25643
  end
@@ -25609,10 +25650,10 @@ return ____exports
25609
25650
  end,
25610
25651
  ["src.classes.callbacks.PostKnifeInitLate"] = function(...)
25611
25652
  local ____lualib = require("lualib_bundle")
25612
- local __TS__Class = ____lualib.__TS__Class
25613
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25614
25653
  local Set = ____lualib.Set
25615
25654
  local __TS__New = ____lualib.__TS__New
25655
+ local __TS__Class = ____lualib.__TS__Class
25656
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25616
25657
  local ____exports = {}
25617
25658
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
25618
25659
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -25620,18 +25661,19 @@ local ____shouldFire = require("src.shouldFire")
25620
25661
  local shouldFireKnife = ____shouldFire.shouldFireKnife
25621
25662
  local ____CustomCallback = require("src.classes.private.CustomCallback")
25622
25663
  local CustomCallback = ____CustomCallback.CustomCallback
25664
+ local v = {room = {firedSet = __TS__New(Set)}}
25623
25665
  ____exports.PostKnifeInitLate = __TS__Class()
25624
25666
  local PostKnifeInitLate = ____exports.PostKnifeInitLate
25625
25667
  PostKnifeInitLate.name = "PostKnifeInitLate"
25626
25668
  __TS__ClassExtends(PostKnifeInitLate, CustomCallback)
25627
25669
  function PostKnifeInitLate.prototype.____constructor(self)
25628
25670
  CustomCallback.prototype.____constructor(self)
25629
- self.v = {room = {firedSet = __TS__New(Set)}}
25671
+ self.v = v
25630
25672
  self.shouldFire = shouldFireKnife
25631
25673
  self.postKnifeUpdate = function(____, knife)
25632
25674
  local ptrHash = GetPtrHash(knife)
25633
- if not self.v.room.firedSet:has(ptrHash) then
25634
- self.v.room.firedSet:add(ptrHash)
25675
+ if not v.room.firedSet:has(ptrHash) then
25676
+ v.room.firedSet:add(ptrHash)
25635
25677
  self:fire(knife)
25636
25678
  end
25637
25679
  end
@@ -25641,10 +25683,10 @@ return ____exports
25641
25683
  end,
25642
25684
  ["src.classes.callbacks.PostLaserInitLate"] = function(...)
25643
25685
  local ____lualib = require("lualib_bundle")
25644
- local __TS__Class = ____lualib.__TS__Class
25645
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25646
25686
  local Set = ____lualib.Set
25647
25687
  local __TS__New = ____lualib.__TS__New
25688
+ local __TS__Class = ____lualib.__TS__Class
25689
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
25648
25690
  local ____exports = {}
25649
25691
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
25650
25692
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -25652,18 +25694,19 @@ local ____shouldFire = require("src.shouldFire")
25652
25694
  local shouldFireLaser = ____shouldFire.shouldFireLaser
25653
25695
  local ____CustomCallback = require("src.classes.private.CustomCallback")
25654
25696
  local CustomCallback = ____CustomCallback.CustomCallback
25697
+ local v = {room = {firedSet = __TS__New(Set)}}
25655
25698
  ____exports.PostLaserInitLate = __TS__Class()
25656
25699
  local PostLaserInitLate = ____exports.PostLaserInitLate
25657
25700
  PostLaserInitLate.name = "PostLaserInitLate"
25658
25701
  __TS__ClassExtends(PostLaserInitLate, CustomCallback)
25659
25702
  function PostLaserInitLate.prototype.____constructor(self)
25660
25703
  CustomCallback.prototype.____constructor(self)
25661
- self.v = {room = {firedSet = __TS__New(Set)}}
25704
+ self.v = v
25662
25705
  self.shouldFire = shouldFireLaser
25663
25706
  self.postLaserUpdate = function(____, laser)
25664
25707
  local index = GetPtrHash(laser)
25665
- if not self.v.room.firedSet:has(index) then
25666
- self.v.room.firedSet:add(index)
25708
+ if not v.room.firedSet:has(index) then
25709
+ v.room.firedSet:add(index)
25667
25710
  self:fire(laser)
25668
25711
  end
25669
25712
  end
@@ -28926,10 +28969,10 @@ return ____exports
28926
28969
  end,
28927
28970
  ["src.classes.callbacks.PostNPCInitLate"] = function(...)
28928
28971
  local ____lualib = require("lualib_bundle")
28929
- local __TS__Class = ____lualib.__TS__Class
28930
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
28931
28972
  local Set = ____lualib.Set
28932
28973
  local __TS__New = ____lualib.__TS__New
28974
+ local __TS__Class = ____lualib.__TS__Class
28975
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
28933
28976
  local ____exports = {}
28934
28977
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
28935
28978
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -28937,18 +28980,19 @@ local ____shouldFire = require("src.shouldFire")
28937
28980
  local shouldFireNPC = ____shouldFire.shouldFireNPC
28938
28981
  local ____CustomCallback = require("src.classes.private.CustomCallback")
28939
28982
  local CustomCallback = ____CustomCallback.CustomCallback
28983
+ local v = {room = {firedSet = __TS__New(Set)}}
28940
28984
  ____exports.PostNPCInitLate = __TS__Class()
28941
28985
  local PostNPCInitLate = ____exports.PostNPCInitLate
28942
28986
  PostNPCInitLate.name = "PostNPCInitLate"
28943
28987
  __TS__ClassExtends(PostNPCInitLate, CustomCallback)
28944
28988
  function PostNPCInitLate.prototype.____constructor(self)
28945
28989
  CustomCallback.prototype.____constructor(self)
28946
- self.v = {room = {firedSet = __TS__New(Set)}}
28990
+ self.v = v
28947
28991
  self.shouldFire = shouldFireNPC
28948
28992
  self.postNPCUpdate = function(____, npc)
28949
28993
  local index = GetPtrHash(npc)
28950
- if not self.v.room.firedSet:has(index) then
28951
- self.v.room.firedSet:add(index)
28994
+ if not v.room.firedSet:has(index) then
28995
+ v.room.firedSet:add(index)
28952
28996
  self:fire(npc)
28953
28997
  end
28954
28998
  end
@@ -28983,9 +29027,9 @@ return ____exports
28983
29027
  end,
28984
29028
  ["src.classes.callbacks.PostNPCStateChanged"] = function(...)
28985
29029
  local ____lualib = require("lualib_bundle")
29030
+ local __TS__New = ____lualib.__TS__New
28986
29031
  local __TS__Class = ____lualib.__TS__Class
28987
29032
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
28988
- local __TS__New = ____lualib.__TS__New
28989
29033
  local ____exports = {}
28990
29034
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
28991
29035
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -28995,22 +29039,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
28995
29039
  local DefaultMap = ____DefaultMap.DefaultMap
28996
29040
  local ____CustomCallback = require("src.classes.private.CustomCallback")
28997
29041
  local CustomCallback = ____CustomCallback.CustomCallback
29042
+ local v = {run = {stateMap = __TS__New(
29043
+ DefaultMap,
29044
+ function(____, state) return state end
29045
+ )}}
28998
29046
  ____exports.PostNPCStateChanged = __TS__Class()
28999
29047
  local PostNPCStateChanged = ____exports.PostNPCStateChanged
29000
29048
  PostNPCStateChanged.name = "PostNPCStateChanged"
29001
29049
  __TS__ClassExtends(PostNPCStateChanged, CustomCallback)
29002
29050
  function PostNPCStateChanged.prototype.____constructor(self)
29003
29051
  CustomCallback.prototype.____constructor(self)
29004
- self.v = {run = {stateMap = __TS__New(
29005
- DefaultMap,
29006
- function(____, state) return state end
29007
- )}}
29052
+ self.v = v
29008
29053
  self.shouldFire = shouldFireNPC
29009
29054
  self.postNPCUpdate = function(____, npc)
29010
29055
  local ptrHash = GetPtrHash(npc)
29011
- local previousState = self.v.run.stateMap:getAndSetDefault(ptrHash, npc.State)
29056
+ local previousState = v.run.stateMap:getAndSetDefault(ptrHash, npc.State)
29012
29057
  local currentState = npc.State
29013
- self.v.run.stateMap:set(ptrHash, currentState)
29058
+ v.run.stateMap:set(ptrHash, currentState)
29014
29059
  if previousState ~= currentState then
29015
29060
  self:fire(npc, previousState, currentState)
29016
29061
  end
@@ -29090,10 +29135,10 @@ return ____exports
29090
29135
  end,
29091
29136
  ["src.classes.callbacks.PostPickupCollect"] = function(...)
29092
29137
  local ____lualib = require("lualib_bundle")
29093
- local __TS__Class = ____lualib.__TS__Class
29094
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29095
29138
  local Set = ____lualib.Set
29096
29139
  local __TS__New = ____lualib.__TS__New
29140
+ local __TS__Class = ____lualib.__TS__Class
29141
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29097
29142
  local ____exports = {}
29098
29143
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
29099
29144
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -29103,13 +29148,14 @@ local ____shouldFire = require("src.shouldFire")
29103
29148
  local shouldFirePickup = ____shouldFire.shouldFirePickup
29104
29149
  local ____CustomCallback = require("src.classes.private.CustomCallback")
29105
29150
  local CustomCallback = ____CustomCallback.CustomCallback
29151
+ local v = {room = {firedSet = __TS__New(Set)}}
29106
29152
  ____exports.PostPickupCollect = __TS__Class()
29107
29153
  local PostPickupCollect = ____exports.PostPickupCollect
29108
29154
  PostPickupCollect.name = "PostPickupCollect"
29109
29155
  __TS__ClassExtends(PostPickupCollect, CustomCallback)
29110
29156
  function PostPickupCollect.prototype.____constructor(self)
29111
29157
  CustomCallback.prototype.____constructor(self)
29112
- self.v = {room = {firedSet = __TS__New(Set)}}
29158
+ self.v = v
29113
29159
  self.shouldFire = shouldFirePickup
29114
29160
  self.postPickupRender = function(____, pickup)
29115
29161
  local sprite = pickup:GetSprite()
@@ -29118,8 +29164,8 @@ function PostPickupCollect.prototype.____constructor(self)
29118
29164
  return
29119
29165
  end
29120
29166
  local index = GetPtrHash(pickup)
29121
- if not self.v.room.firedSet:has(index) then
29122
- self.v.room.firedSet:add(index)
29167
+ if not v.room.firedSet:has(index) then
29168
+ v.room.firedSet:add(index)
29123
29169
  local player = getClosestPlayer(nil, pickup.Position)
29124
29170
  self:fire(pickup, player)
29125
29171
  end
@@ -29192,10 +29238,10 @@ return ____exports
29192
29238
  end,
29193
29239
  ["src.classes.callbacks.PostPickupInitLate"] = function(...)
29194
29240
  local ____lualib = require("lualib_bundle")
29195
- local __TS__Class = ____lualib.__TS__Class
29196
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29197
29241
  local Set = ____lualib.Set
29198
29242
  local __TS__New = ____lualib.__TS__New
29243
+ local __TS__Class = ____lualib.__TS__Class
29244
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29199
29245
  local ____exports = {}
29200
29246
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
29201
29247
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -29203,18 +29249,19 @@ local ____shouldFire = require("src.shouldFire")
29203
29249
  local shouldFirePickup = ____shouldFire.shouldFirePickup
29204
29250
  local ____CustomCallback = require("src.classes.private.CustomCallback")
29205
29251
  local CustomCallback = ____CustomCallback.CustomCallback
29252
+ local v = {room = {firedSet = __TS__New(Set)}}
29206
29253
  ____exports.PostPickupInitLate = __TS__Class()
29207
29254
  local PostPickupInitLate = ____exports.PostPickupInitLate
29208
29255
  PostPickupInitLate.name = "PostPickupInitLate"
29209
29256
  __TS__ClassExtends(PostPickupInitLate, CustomCallback)
29210
29257
  function PostPickupInitLate.prototype.____constructor(self)
29211
29258
  CustomCallback.prototype.____constructor(self)
29212
- self.v = {room = {firedSet = __TS__New(Set)}}
29259
+ self.v = v
29213
29260
  self.shouldFire = shouldFirePickup
29214
29261
  self.postPickupUpdate = function(____, pickup)
29215
29262
  local index = GetPtrHash(pickup)
29216
- if not self.v.room.firedSet:has(index) then
29217
- self.v.room.firedSet:add(index)
29263
+ if not v.room.firedSet:has(index) then
29264
+ v.room.firedSet:add(index)
29218
29265
  self:fire(pickup)
29219
29266
  end
29220
29267
  end
@@ -29272,9 +29319,9 @@ return ____exports
29272
29319
  end,
29273
29320
  ["src.classes.callbacks.PostPickupStateChanged"] = function(...)
29274
29321
  local ____lualib = require("lualib_bundle")
29322
+ local __TS__New = ____lualib.__TS__New
29275
29323
  local __TS__Class = ____lualib.__TS__Class
29276
29324
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29277
- local __TS__New = ____lualib.__TS__New
29278
29325
  local ____exports = {}
29279
29326
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
29280
29327
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -29284,22 +29331,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
29284
29331
  local DefaultMap = ____DefaultMap.DefaultMap
29285
29332
  local ____CustomCallback = require("src.classes.private.CustomCallback")
29286
29333
  local CustomCallback = ____CustomCallback.CustomCallback
29334
+ local v = {run = {stateMap = __TS__New(
29335
+ DefaultMap,
29336
+ function(____, state) return state end
29337
+ )}}
29287
29338
  ____exports.PostPickupStateChanged = __TS__Class()
29288
29339
  local PostPickupStateChanged = ____exports.PostPickupStateChanged
29289
29340
  PostPickupStateChanged.name = "PostPickupStateChanged"
29290
29341
  __TS__ClassExtends(PostPickupStateChanged, CustomCallback)
29291
29342
  function PostPickupStateChanged.prototype.____constructor(self)
29292
29343
  CustomCallback.prototype.____constructor(self)
29293
- self.v = {run = {stateMap = __TS__New(
29294
- DefaultMap,
29295
- function(____, state) return state end
29296
- )}}
29344
+ self.v = v
29297
29345
  self.shouldFire = shouldFirePickup
29298
29346
  self.postPickupUpdate = function(____, pickup)
29299
29347
  local ptrHash = GetPtrHash(pickup)
29300
- local previousState = self.v.run.stateMap:getAndSetDefault(ptrHash, pickup.State)
29348
+ local previousState = v.run.stateMap:getAndSetDefault(ptrHash, pickup.State)
29301
29349
  local currentState = pickup.State
29302
- self.v.run.stateMap:set(ptrHash, currentState)
29350
+ v.run.stateMap:set(ptrHash, currentState)
29303
29351
  if previousState ~= currentState then
29304
29352
  self:fire(pickup, previousState, currentState)
29305
29353
  end
@@ -29741,10 +29789,10 @@ return ____exports
29741
29789
  end,
29742
29790
  ["src.classes.callbacks.PostPlayerChangeHealth"] = function(...)
29743
29791
  local ____lualib = require("lualib_bundle")
29744
- local __TS__Class = ____lualib.__TS__Class
29745
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29746
29792
  local Map = ____lualib.Map
29747
29793
  local __TS__New = ____lualib.__TS__New
29794
+ local __TS__Class = ____lualib.__TS__Class
29795
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29748
29796
  local ____exports = {}
29749
29797
  local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
29750
29798
  local HEALTH_TYPE_VALUES = ____cachedEnumValues.HEALTH_TYPE_VALUES
@@ -29760,20 +29808,21 @@ local ____DefaultMap = require("src.classes.DefaultMap")
29760
29808
  local DefaultMap = ____DefaultMap.DefaultMap
29761
29809
  local ____CustomCallback = require("src.classes.private.CustomCallback")
29762
29810
  local CustomCallback = ____CustomCallback.CustomCallback
29811
+ local v = {run = {playersHealthMap = __TS__New(
29812
+ DefaultMap,
29813
+ function() return __TS__New(Map) end
29814
+ )}}
29763
29815
  ____exports.PostPlayerChangeHealth = __TS__Class()
29764
29816
  local PostPlayerChangeHealth = ____exports.PostPlayerChangeHealth
29765
29817
  PostPlayerChangeHealth.name = "PostPlayerChangeHealth"
29766
29818
  __TS__ClassExtends(PostPlayerChangeHealth, CustomCallback)
29767
29819
  function PostPlayerChangeHealth.prototype.____constructor(self)
29768
29820
  CustomCallback.prototype.____constructor(self)
29769
- self.v = {run = {playersHealthMap = __TS__New(
29770
- DefaultMap,
29771
- function() return __TS__New(Map) end
29772
- )}}
29821
+ self.v = v
29773
29822
  self.shouldFire = shouldFirePlayer
29774
29823
  self.postPEffectReordered = function(____, player)
29775
29824
  local playerIndex = getPlayerIndex(nil, player, true)
29776
- local playerHealthMap = self.v.run.playersHealthMap:getAndSetDefault(playerIndex)
29825
+ local playerHealthMap = v.run.playersHealthMap:getAndSetDefault(playerIndex)
29777
29826
  for ____, healthType in ipairs(HEALTH_TYPE_VALUES) do
29778
29827
  local storedHealthValue = playerHealthMap:get(healthType)
29779
29828
  local currentHealthValue = getPlayerHealthType(nil, player, healthType)
@@ -29819,10 +29868,10 @@ return ____exports
29819
29868
  end,
29820
29869
  ["src.classes.callbacks.PostPlayerChangeStat"] = function(...)
29821
29870
  local ____lualib = require("lualib_bundle")
29822
- local __TS__Class = ____lualib.__TS__Class
29823
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29824
29871
  local Map = ____lualib.Map
29825
29872
  local __TS__New = ____lualib.__TS__New
29873
+ local __TS__Class = ____lualib.__TS__Class
29874
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29826
29875
  local ____exports = {}
29827
29876
  local statEquals
29828
29877
  local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
@@ -29873,20 +29922,21 @@ function statEquals(self, oldValue, newValue)
29873
29922
  end
29874
29923
  error("Failed to determine the type of a stat in the \"POST_PLAYER_CHANGE_STAT\" callback.")
29875
29924
  end
29925
+ local v = {run = {playersStatMap = __TS__New(
29926
+ DefaultMap,
29927
+ function() return __TS__New(Map) end
29928
+ )}}
29876
29929
  ____exports.PostPlayerChangeStat = __TS__Class()
29877
29930
  local PostPlayerChangeStat = ____exports.PostPlayerChangeStat
29878
29931
  PostPlayerChangeStat.name = "PostPlayerChangeStat"
29879
29932
  __TS__ClassExtends(PostPlayerChangeStat, CustomCallback)
29880
29933
  function PostPlayerChangeStat.prototype.____constructor(self)
29881
29934
  CustomCallback.prototype.____constructor(self)
29882
- self.v = {run = {playersStatMap = __TS__New(
29883
- DefaultMap,
29884
- function() return __TS__New(Map) end
29885
- )}}
29935
+ self.v = v
29886
29936
  self.shouldFire = shouldFirePlayer
29887
29937
  self.postPEffectReordered = function(____, player)
29888
29938
  local playerIndex = getPlayerIndex(nil, player, true)
29889
- local playerStatMap = self.v.run.playersStatMap:getAndSetDefault(playerIndex)
29939
+ local playerStatMap = v.run.playersStatMap:getAndSetDefault(playerIndex)
29890
29940
  for ____, statType in ipairs(STAT_TYPE_VALUES) do
29891
29941
  do
29892
29942
  local storedStatValue = playerStatMap:get(statType)
@@ -29916,9 +29966,9 @@ return ____exports
29916
29966
  end,
29917
29967
  ["src.classes.callbacks.PostPlayerChangeType"] = function(...)
29918
29968
  local ____lualib = require("lualib_bundle")
29969
+ local __TS__New = ____lualib.__TS__New
29919
29970
  local __TS__Class = ____lualib.__TS__Class
29920
29971
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
29921
- local __TS__New = ____lualib.__TS__New
29922
29972
  local ____exports = {}
29923
29973
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
29924
29974
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
@@ -29931,22 +29981,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
29931
29981
  local DefaultMap = ____DefaultMap.DefaultMap
29932
29982
  local ____CustomCallback = require("src.classes.private.CustomCallback")
29933
29983
  local CustomCallback = ____CustomCallback.CustomCallback
29984
+ local v = {run = {playersCharacterMap = __TS__New(
29985
+ DefaultMap,
29986
+ function(____, character) return character end
29987
+ )}}
29934
29988
  ____exports.PostPlayerChangeType = __TS__Class()
29935
29989
  local PostPlayerChangeType = ____exports.PostPlayerChangeType
29936
29990
  PostPlayerChangeType.name = "PostPlayerChangeType"
29937
29991
  __TS__ClassExtends(PostPlayerChangeType, CustomCallback)
29938
29992
  function PostPlayerChangeType.prototype.____constructor(self)
29939
29993
  CustomCallback.prototype.____constructor(self)
29940
- self.v = {run = {playersCharacterMap = __TS__New(
29941
- DefaultMap,
29942
- function(____, character) return character end
29943
- )}}
29994
+ self.v = v
29944
29995
  self.shouldFire = shouldFirePlayer
29945
29996
  self.postPEffectReordered = function(____, player)
29946
29997
  local character = player:GetPlayerType()
29947
- local storedCharacter = defaultMapGetPlayer(nil, self.v.run.playersCharacterMap, player, character)
29998
+ local storedCharacter = defaultMapGetPlayer(nil, v.run.playersCharacterMap, player, character)
29948
29999
  if character ~= storedCharacter then
29949
- mapSetPlayer(nil, self.v.run.playersCharacterMap, player, character)
30000
+ mapSetPlayer(nil, v.run.playersCharacterMap, player, character)
29950
30001
  self:fire(player, storedCharacter, character)
29951
30002
  end
29952
30003
  end
@@ -30214,10 +30265,10 @@ return ____exports
30214
30265
  end,
30215
30266
  ["src.classes.callbacks.PostPlayerFatalDamage"] = function(...)
30216
30267
  local ____lualib = require("lualib_bundle")
30217
- local __TS__Class = ____lualib.__TS__Class
30218
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30219
30268
  local Map = ____lualib.Map
30220
30269
  local __TS__New = ____lualib.__TS__New
30270
+ local __TS__Class = ____lualib.__TS__Class
30271
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30221
30272
  local ____exports = {}
30222
30273
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
30223
30274
  local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
@@ -30242,13 +30293,14 @@ local ____shouldFire = require("src.shouldFire")
30242
30293
  local shouldFirePlayer = ____shouldFire.shouldFirePlayer
30243
30294
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30244
30295
  local CustomCallback = ____CustomCallback.CustomCallback
30296
+ local v = {run = {playersLastDamageGameFrame = __TS__New(Map)}}
30245
30297
  ____exports.PostPlayerFatalDamage = __TS__Class()
30246
30298
  local PostPlayerFatalDamage = ____exports.PostPlayerFatalDamage
30247
30299
  PostPlayerFatalDamage.name = "PostPlayerFatalDamage"
30248
30300
  __TS__ClassExtends(PostPlayerFatalDamage, CustomCallback)
30249
30301
  function PostPlayerFatalDamage.prototype.____constructor(self)
30250
30302
  CustomCallback.prototype.____constructor(self)
30251
- self.v = {run = {playersLastDamageGameFrame = __TS__New(Map)}}
30303
+ self.v = v
30252
30304
  self.shouldFire = shouldFirePlayer
30253
30305
  self.preUseItemBible = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
30254
30306
  if not inBossRoomOf(nil, BossID.SATAN) then
@@ -30274,8 +30326,8 @@ function PostPlayerFatalDamage.prototype.____constructor(self)
30274
30326
  return nil
30275
30327
  end
30276
30328
  local gameFrameCount = game:GetFrameCount()
30277
- local lastDamageGameFrame = mapGetPlayer(nil, self.v.run.playersLastDamageGameFrame, player)
30278
- mapSetPlayer(nil, self.v.run.playersLastDamageGameFrame, player, gameFrameCount)
30329
+ local lastDamageGameFrame = mapGetPlayer(nil, v.run.playersLastDamageGameFrame, player)
30330
+ mapSetPlayer(nil, v.run.playersLastDamageGameFrame, player, gameFrameCount)
30279
30331
  if willPlayerRevive(nil, player) then
30280
30332
  return nil
30281
30333
  end
@@ -30348,10 +30400,10 @@ return ____exports
30348
30400
  end,
30349
30401
  ["src.classes.callbacks.PostPlayerInitLate"] = function(...)
30350
30402
  local ____lualib = require("lualib_bundle")
30351
- local __TS__Class = ____lualib.__TS__Class
30352
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30353
30403
  local Set = ____lualib.Set
30354
30404
  local __TS__New = ____lualib.__TS__New
30405
+ local __TS__Class = ____lualib.__TS__Class
30406
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30355
30407
  local ____exports = {}
30356
30408
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
30357
30409
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
@@ -30362,17 +30414,18 @@ local ____shouldFire = require("src.shouldFire")
30362
30414
  local shouldFirePlayer = ____shouldFire.shouldFirePlayer
30363
30415
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30364
30416
  local CustomCallback = ____CustomCallback.CustomCallback
30417
+ local v = {run = {playersFiredSet = __TS__New(Set)}}
30365
30418
  ____exports.PostPlayerInitLate = __TS__Class()
30366
30419
  local PostPlayerInitLate = ____exports.PostPlayerInitLate
30367
30420
  PostPlayerInitLate.name = "PostPlayerInitLate"
30368
30421
  __TS__ClassExtends(PostPlayerInitLate, CustomCallback)
30369
30422
  function PostPlayerInitLate.prototype.____constructor(self)
30370
30423
  CustomCallback.prototype.____constructor(self)
30371
- self.v = {run = {playersFiredSet = __TS__New(Set)}}
30424
+ self.v = v
30372
30425
  self.shouldFire = shouldFirePlayer
30373
30426
  self.postPEffectUpdateReordered = function(____, player)
30374
- if not setHasPlayer(nil, self.v.run.playersFiredSet, player) then
30375
- setAddPlayer(nil, self.v.run.playersFiredSet, player)
30427
+ if not setHasPlayer(nil, v.run.playersFiredSet, player) then
30428
+ setAddPlayer(nil, v.run.playersFiredSet, player)
30376
30429
  self:fire(player)
30377
30430
  end
30378
30431
  end
@@ -30542,10 +30595,10 @@ return ____exports
30542
30595
  end,
30543
30596
  ["src.classes.callbacks.PostProjectileInitLate"] = function(...)
30544
30597
  local ____lualib = require("lualib_bundle")
30545
- local __TS__Class = ____lualib.__TS__Class
30546
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30547
30598
  local Set = ____lualib.Set
30548
30599
  local __TS__New = ____lualib.__TS__New
30600
+ local __TS__Class = ____lualib.__TS__Class
30601
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30549
30602
  local ____exports = {}
30550
30603
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
30551
30604
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -30553,18 +30606,19 @@ local ____shouldFire = require("src.shouldFire")
30553
30606
  local shouldFireProjectile = ____shouldFire.shouldFireProjectile
30554
30607
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30555
30608
  local CustomCallback = ____CustomCallback.CustomCallback
30609
+ local v = {room = {firedSet = __TS__New(Set)}}
30556
30610
  ____exports.PostProjectileInitLate = __TS__Class()
30557
30611
  local PostProjectileInitLate = ____exports.PostProjectileInitLate
30558
30612
  PostProjectileInitLate.name = "PostProjectileInitLate"
30559
30613
  __TS__ClassExtends(PostProjectileInitLate, CustomCallback)
30560
30614
  function PostProjectileInitLate.prototype.____constructor(self)
30561
30615
  CustomCallback.prototype.____constructor(self)
30562
- self.v = {room = {firedSet = __TS__New(Set)}}
30616
+ self.v = v
30563
30617
  self.shouldFire = shouldFireProjectile
30564
30618
  self.postProjectileUpdate = function(____, projectile)
30565
30619
  local ptrHash = GetPtrHash(projectile)
30566
- if not self.v.room.firedSet:has(ptrHash) then
30567
- self.v.room.firedSet:add(ptrHash)
30620
+ if not v.room.firedSet:has(ptrHash) then
30621
+ v.room.firedSet:add(ptrHash)
30568
30622
  self:fire(projectile)
30569
30623
  end
30570
30624
  end
@@ -30574,9 +30628,9 @@ return ____exports
30574
30628
  end,
30575
30629
  ["src.classes.callbacks.PostPurchase"] = function(...)
30576
30630
  local ____lualib = require("lualib_bundle")
30631
+ local __TS__New = ____lualib.__TS__New
30577
30632
  local __TS__Class = ____lualib.__TS__Class
30578
30633
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30579
- local __TS__New = ____lualib.__TS__New
30580
30634
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
30581
30635
  local ____exports = {}
30582
30636
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
@@ -30590,13 +30644,14 @@ local ____DefaultMap = require("src.classes.DefaultMap")
30590
30644
  local DefaultMap = ____DefaultMap.DefaultMap
30591
30645
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30592
30646
  local CustomCallback = ____CustomCallback.CustomCallback
30647
+ local v = {room = {playersHoldingItemOnLastFrameMap = __TS__New(DefaultMap, false)}}
30593
30648
  ____exports.PostPurchase = __TS__Class()
30594
30649
  local PostPurchase = ____exports.PostPurchase
30595
30650
  PostPurchase.name = "PostPurchase"
30596
30651
  __TS__ClassExtends(PostPurchase, CustomCallback)
30597
30652
  function PostPurchase.prototype.____constructor(self)
30598
30653
  CustomCallback.prototype.____constructor(self)
30599
- self.v = {room = {playersHoldingItemOnLastFrameMap = __TS__New(DefaultMap, false)}}
30654
+ self.v = v
30600
30655
  self.shouldFire = function(____, fireArgs, optionalArgs)
30601
30656
  local _player, pickup = table.unpack(fireArgs)
30602
30657
  local callbackPickupVariant, callbackPickupSubType = table.unpack(optionalArgs)
@@ -30604,8 +30659,8 @@ function PostPurchase.prototype.____constructor(self)
30604
30659
  end
30605
30660
  self.postPEffectUpdateReordered = function(____, player)
30606
30661
  local isHoldingItem = player:IsHoldingItem()
30607
- local wasHoldingItemOnLastFrame = defaultMapGetPlayer(nil, self.v.room.playersHoldingItemOnLastFrameMap, player)
30608
- mapSetPlayer(nil, self.v.room.playersHoldingItemOnLastFrameMap, player, isHoldingItem)
30662
+ local wasHoldingItemOnLastFrame = defaultMapGetPlayer(nil, v.room.playersHoldingItemOnLastFrameMap, player)
30663
+ mapSetPlayer(nil, v.room.playersHoldingItemOnLastFrameMap, player, isHoldingItem)
30609
30664
  if not wasHoldingItemOnLastFrame and isHoldingItem then
30610
30665
  self:playerPickedUpNewItem(player)
30611
30666
  end
@@ -30695,13 +30750,14 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
30695
30750
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
30696
30751
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30697
30752
  local CustomCallback = ____CustomCallback.CustomCallback
30753
+ local v = {room = {cleared = false}}
30698
30754
  ____exports.PostRoomClearChanged = __TS__Class()
30699
30755
  local PostRoomClearChanged = ____exports.PostRoomClearChanged
30700
30756
  PostRoomClearChanged.name = "PostRoomClearChanged"
30701
30757
  __TS__ClassExtends(PostRoomClearChanged, CustomCallback)
30702
30758
  function PostRoomClearChanged.prototype.____constructor(self)
30703
30759
  CustomCallback.prototype.____constructor(self)
30704
- self.v = {room = {cleared = false}}
30760
+ self.v = v
30705
30761
  self.shouldFire = function(____, fireArgs, optionalArgs)
30706
30762
  local roomClear = table.unpack(fireArgs)
30707
30763
  local callbackRoomClear = table.unpack(optionalArgs)
@@ -30710,15 +30766,15 @@ function PostRoomClearChanged.prototype.____constructor(self)
30710
30766
  self.postUpdate = function()
30711
30767
  local room = game:GetRoom()
30712
30768
  local roomClear = room:IsClear()
30713
- if roomClear ~= self.v.room.cleared then
30714
- self.v.room.cleared = roomClear
30769
+ if roomClear ~= v.room.cleared then
30770
+ v.room.cleared = roomClear
30715
30771
  self:fire(roomClear)
30716
30772
  end
30717
30773
  end
30718
30774
  self.postNewRoomReordered = function()
30719
30775
  local room = game:GetRoom()
30720
30776
  local roomClear = room:IsClear()
30721
- self.v.room.cleared = roomClear
30777
+ v.room.cleared = roomClear
30722
30778
  end
30723
30779
  self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
30724
30780
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
@@ -30743,22 +30799,23 @@ local ____shouldFire = require("src.shouldFire")
30743
30799
  local shouldFirePlayer = ____shouldFire.shouldFirePlayer
30744
30800
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30745
30801
  local CustomCallback = ____CustomCallback.CustomCallback
30802
+ local v = {level = {numSacrifices = 0}}
30746
30803
  ____exports.PostSacrifice = __TS__Class()
30747
30804
  local PostSacrifice = ____exports.PostSacrifice
30748
30805
  PostSacrifice.name = "PostSacrifice"
30749
30806
  __TS__ClassExtends(PostSacrifice, CustomCallback)
30750
30807
  function PostSacrifice.prototype.____constructor(self)
30751
30808
  CustomCallback.prototype.____constructor(self)
30752
- self.v = {level = {numSacrifices = 0}}
30809
+ self.v = v
30753
30810
  self.shouldFire = shouldFirePlayer
30754
30811
  self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
30755
30812
  local room = game:GetRoom()
30756
30813
  local roomType = room:GetType()
30757
30814
  local isSpikeDamage = hasFlag(nil, damageFlags, DamageFlag.SPIKES)
30758
30815
  if roomType == RoomType.SACRIFICE and isSpikeDamage then
30759
- local ____self_v_level_0, ____numSacrifices_1 = self.v.level, "numSacrifices"
30760
- ____self_v_level_0[____numSacrifices_1] = ____self_v_level_0[____numSacrifices_1] + 1
30761
- self:fire(player, self.v.level.numSacrifices)
30816
+ local ____v_level_0, ____numSacrifices_1 = v.level, "numSacrifices"
30817
+ ____v_level_0[____numSacrifices_1] = ____v_level_0[____numSacrifices_1] + 1
30818
+ self:fire(player, v.level.numSacrifices)
30762
30819
  end
30763
30820
  return nil
30764
30821
  end
@@ -30975,10 +31032,10 @@ return ____exports
30975
31032
  end,
30976
31033
  ["src.classes.callbacks.PostTearInitLate"] = function(...)
30977
31034
  local ____lualib = require("lualib_bundle")
30978
- local __TS__Class = ____lualib.__TS__Class
30979
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30980
31035
  local Set = ____lualib.Set
30981
31036
  local __TS__New = ____lualib.__TS__New
31037
+ local __TS__Class = ____lualib.__TS__Class
31038
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
30982
31039
  local ____exports = {}
30983
31040
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
30984
31041
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -30986,18 +31043,19 @@ local ____shouldFire = require("src.shouldFire")
30986
31043
  local shouldFireTear = ____shouldFire.shouldFireTear
30987
31044
  local ____CustomCallback = require("src.classes.private.CustomCallback")
30988
31045
  local CustomCallback = ____CustomCallback.CustomCallback
31046
+ local v = {room = {firedSet = __TS__New(Set)}}
30989
31047
  ____exports.PostTearInitLate = __TS__Class()
30990
31048
  local PostTearInitLate = ____exports.PostTearInitLate
30991
31049
  PostTearInitLate.name = "PostTearInitLate"
30992
31050
  __TS__ClassExtends(PostTearInitLate, CustomCallback)
30993
31051
  function PostTearInitLate.prototype.____constructor(self)
30994
31052
  CustomCallback.prototype.____constructor(self)
30995
- self.v = {room = {firedSet = __TS__New(Set)}}
31053
+ self.v = v
30996
31054
  self.shouldFire = shouldFireTear
30997
31055
  self.postTearUpdate = function(____, tear)
30998
31056
  local ptrHash = GetPtrHash(tear)
30999
- if not self.v.room.firedSet:has(ptrHash) then
31000
- self.v.room.firedSet:add(ptrHash)
31057
+ if not v.room.firedSet:has(ptrHash) then
31058
+ v.room.firedSet:add(ptrHash)
31001
31059
  self:fire(tear)
31002
31060
  end
31003
31061
  end
@@ -31007,10 +31065,10 @@ return ____exports
31007
31065
  end,
31008
31066
  ["src.classes.callbacks.PostTearInitVeryLate"] = function(...)
31009
31067
  local ____lualib = require("lualib_bundle")
31010
- local __TS__Class = ____lualib.__TS__Class
31011
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
31012
31068
  local Set = ____lualib.Set
31013
31069
  local __TS__New = ____lualib.__TS__New
31070
+ local __TS__Class = ____lualib.__TS__Class
31071
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
31014
31072
  local ____exports = {}
31015
31073
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
31016
31074
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -31018,21 +31076,22 @@ local ____shouldFire = require("src.shouldFire")
31018
31076
  local shouldFireTear = ____shouldFire.shouldFireTear
31019
31077
  local ____CustomCallback = require("src.classes.private.CustomCallback")
31020
31078
  local CustomCallback = ____CustomCallback.CustomCallback
31079
+ local v = {room = {firedSet = __TS__New(Set)}}
31021
31080
  ____exports.PostTearInitVeryLate = __TS__Class()
31022
31081
  local PostTearInitVeryLate = ____exports.PostTearInitVeryLate
31023
31082
  PostTearInitVeryLate.name = "PostTearInitVeryLate"
31024
31083
  __TS__ClassExtends(PostTearInitVeryLate, CustomCallback)
31025
31084
  function PostTearInitVeryLate.prototype.____constructor(self)
31026
31085
  CustomCallback.prototype.____constructor(self)
31027
- self.v = {room = {firedSet = __TS__New(Set)}}
31086
+ self.v = v
31028
31087
  self.shouldFire = shouldFireTear
31029
31088
  self.postTearUpdate = function(____, tear)
31030
31089
  if tear.FrameCount == 0 then
31031
31090
  return
31032
31091
  end
31033
31092
  local index = GetPtrHash(tear)
31034
- if not self.v.room.firedSet:has(index) then
31035
- self.v.room.firedSet:add(index)
31093
+ if not v.room.firedSet:has(index) then
31094
+ v.room.firedSet:add(index)
31036
31095
  self:fire(tear)
31037
31096
  end
31038
31097
  end
@@ -31100,10 +31159,10 @@ return ____exports
31100
31159
  end,
31101
31160
  ["src.classes.callbacks.PostTransformation"] = function(...)
31102
31161
  local ____lualib = require("lualib_bundle")
31103
- local __TS__Class = ____lualib.__TS__Class
31104
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
31105
31162
  local Map = ____lualib.Map
31106
31163
  local __TS__New = ____lualib.__TS__New
31164
+ local __TS__Class = ____lualib.__TS__Class
31165
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
31107
31166
  local ____exports = {}
31108
31167
  local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
31109
31168
  local PLAYER_FORM_VALUES = ____cachedEnumValues.PLAYER_FORM_VALUES
@@ -31115,23 +31174,24 @@ local ____DefaultMap = require("src.classes.DefaultMap")
31115
31174
  local DefaultMap = ____DefaultMap.DefaultMap
31116
31175
  local ____CustomCallback = require("src.classes.private.CustomCallback")
31117
31176
  local CustomCallback = ____CustomCallback.CustomCallback
31177
+ local v = {run = {playersTransformationsMap = __TS__New(
31178
+ DefaultMap,
31179
+ function() return __TS__New(Map) end
31180
+ )}}
31118
31181
  ____exports.PostTransformation = __TS__Class()
31119
31182
  local PostTransformation = ____exports.PostTransformation
31120
31183
  PostTransformation.name = "PostTransformation"
31121
31184
  __TS__ClassExtends(PostTransformation, CustomCallback)
31122
31185
  function PostTransformation.prototype.____constructor(self)
31123
31186
  CustomCallback.prototype.____constructor(self)
31124
- self.v = {run = {playersTransformationsMap = __TS__New(
31125
- DefaultMap,
31126
- function() return __TS__New(Map) end
31127
- )}}
31187
+ self.v = v
31128
31188
  self.shouldFire = function(____, fireArgs, optionalArgs)
31129
31189
  local _player, playerForm = table.unpack(fireArgs)
31130
31190
  local callbackPlayerForm = table.unpack(optionalArgs)
31131
31191
  return callbackPlayerForm == nil or callbackPlayerForm == playerForm
31132
31192
  end
31133
31193
  self.postPEffectUpdateReordered = function(____, player)
31134
- local playerTransformationsMap = defaultMapGetPlayer(nil, self.v.run.playersTransformationsMap, player)
31194
+ local playerTransformationsMap = defaultMapGetPlayer(nil, v.run.playersTransformationsMap, player)
31135
31195
  for ____, playerForm in ipairs(PLAYER_FORM_VALUES) do
31136
31196
  local hasForm = player:HasPlayerForm(playerForm)
31137
31197
  local storedForm = playerTransformationsMap:get(playerForm)
@@ -31150,10 +31210,10 @@ return ____exports
31150
31210
  end,
31151
31211
  ["src.classes.callbacks.PostTrinketBreak"] = function(...)
31152
31212
  local ____lualib = require("lualib_bundle")
31153
- local __TS__Class = ____lualib.__TS__Class
31154
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
31155
31213
  local Map = ____lualib.Map
31156
31214
  local __TS__New = ____lualib.__TS__New
31215
+ local __TS__Class = ____lualib.__TS__Class
31216
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
31157
31217
  local ____exports = {}
31158
31218
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
31159
31219
  local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
@@ -31170,19 +31230,20 @@ local DefaultMap = ____DefaultMap.DefaultMap
31170
31230
  local ____CustomCallback = require("src.classes.private.CustomCallback")
31171
31231
  local CustomCallback = ____CustomCallback.CustomCallback
31172
31232
  local TRINKETS_THAT_CAN_BREAK = {TrinketType.WISH_BONE, TrinketType.WALNUT}
31233
+ local v = {run = {playersTrinketMap = __TS__New(
31234
+ DefaultMap,
31235
+ function() return __TS__New(Map) end
31236
+ )}}
31173
31237
  ____exports.PostTrinketBreak = __TS__Class()
31174
31238
  local PostTrinketBreak = ____exports.PostTrinketBreak
31175
31239
  PostTrinketBreak.name = "PostTrinketBreak"
31176
31240
  __TS__ClassExtends(PostTrinketBreak, CustomCallback)
31177
31241
  function PostTrinketBreak.prototype.____constructor(self)
31178
31242
  CustomCallback.prototype.____constructor(self)
31179
- self.v = {run = {playersTrinketMap = __TS__New(
31180
- DefaultMap,
31181
- function() return __TS__New(Map) end
31182
- )}}
31243
+ self.v = v
31183
31244
  self.shouldFire = shouldFireTrinketType
31184
31245
  self.entityTakeDmgPlayer = function(____, player, _amount, _damageFlags, _source, _countdownFrames)
31185
- local trinketMap = defaultMapGetPlayer(nil, self.v.run.playersTrinketMap, player)
31246
+ local trinketMap = defaultMapGetPlayer(nil, v.run.playersTrinketMap, player)
31186
31247
  for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
31187
31248
  do
31188
31249
  local numTrinketsHeld = player:GetTrinketMultiplier(trinketType)
@@ -31205,7 +31266,7 @@ function PostTrinketBreak.prototype.____constructor(self)
31205
31266
  return nil
31206
31267
  end
31207
31268
  self.postPEffectUpdateReordered = function(____, player)
31208
- local trinketMap = defaultMapGetPlayer(nil, self.v.run.playersTrinketMap, player)
31269
+ local trinketMap = defaultMapGetPlayer(nil, v.run.playersTrinketMap, player)
31209
31270
  for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
31210
31271
  local numTrinkets = player:GetTrinketMultiplier(trinketType)
31211
31272
  if numTrinkets == 0 then
@@ -31399,16 +31460,17 @@ local ReadonlySet = ____ReadonlySet.ReadonlySet
31399
31460
  local ____CustomCallback = require("src.classes.private.CustomCallback")
31400
31461
  local CustomCallback = ____CustomCallback.CustomCallback
31401
31462
  local TRAVELING_TO_NEXT_FLOOR_ANIMATIONS = __TS__New(ReadonlySet, {"Trapdoor", "LightTravel"})
31463
+ local v = {run = {firedOnStage = nil}}
31402
31464
  ____exports.PreNewLevel = __TS__Class()
31403
31465
  local PreNewLevel = ____exports.PreNewLevel
31404
31466
  PreNewLevel.name = "PreNewLevel"
31405
31467
  __TS__ClassExtends(PreNewLevel, CustomCallback)
31406
31468
  function PreNewLevel.prototype.____constructor(self)
31407
31469
  CustomCallback.prototype.____constructor(self)
31408
- self.v = {run = {firedOnStage = nil}}
31470
+ self.v = v
31409
31471
  self.postPlayerRender = function(____, player)
31410
31472
  local effectiveStage = getEffectiveStage(nil)
31411
- if effectiveStage == self.v.run.firedOnStage then
31473
+ if effectiveStage == v.run.firedOnStage then
31412
31474
  return
31413
31475
  end
31414
31476
  local sprite = player:GetSprite()
@@ -31419,7 +31481,7 @@ function PreNewLevel.prototype.____constructor(self)
31419
31481
  local frame = sprite:GetFrame()
31420
31482
  local finalFrame = getLastFrameOfAnimation(nil, sprite)
31421
31483
  if frame == finalFrame then
31422
- self.v.run.firedOnStage = effectiveStage
31484
+ v.run.firedOnStage = effectiveStage
31423
31485
  self:fire(player)
31424
31486
  end
31425
31487
  end
@@ -32246,13 +32308,14 @@ local getRoomVariant = ____roomData.getRoomVariant
32246
32308
  local getRoomVisitedCount = ____roomData.getRoomVisitedCount
32247
32309
  local ____Feature = require("src.classes.private.Feature")
32248
32310
  local Feature = ____Feature.Feature
32311
+ local v = {run = {roomHistory = {}}}
32249
32312
  ____exports.RoomHistory = __TS__Class()
32250
32313
  local RoomHistory = ____exports.RoomHistory
32251
32314
  RoomHistory.name = "RoomHistory"
32252
32315
  __TS__ClassExtends(RoomHistory, Feature)
32253
32316
  function RoomHistory.prototype.____constructor(self)
32254
32317
  Feature.prototype.____constructor(self)
32255
- self.v = {run = {roomHistory = {}}}
32318
+ self.v = v
32256
32319
  self.postNewRoomEarly = function()
32257
32320
  local level = game:GetLevel()
32258
32321
  local stage = level:GetStage()
@@ -32283,30 +32346,30 @@ function RoomHistory.prototype.____constructor(self)
32283
32346
  roomListIndex = roomListIndex,
32284
32347
  roomVisitedCount = roomVisitedCount
32285
32348
  }
32286
- local ____self_v_run_roomHistory_0 = self.v.run.roomHistory
32287
- ____self_v_run_roomHistory_0[#____self_v_run_roomHistory_0 + 1] = roomDescription
32349
+ local ____v_run_roomHistory_0 = v.run.roomHistory
32350
+ ____v_run_roomHistory_0[#____v_run_roomHistory_0 + 1] = roomDescription
32288
32351
  end
32289
32352
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
32290
32353
  end
32291
32354
  function RoomHistory.prototype.getNumRoomsEntered(self)
32292
- return #self.v.run.roomHistory
32355
+ return #v.run.roomHistory
32293
32356
  end
32294
32357
  function RoomHistory.prototype.getRoomHistory(self)
32295
- return self.v.run.roomHistory
32358
+ return v.run.roomHistory
32296
32359
  end
32297
32360
  function RoomHistory.prototype.getPreviousRoomDescription(self)
32298
- local previousRoomDescription = self.v.run.roomHistory[#self.v.run.roomHistory - 2 + 1]
32361
+ local previousRoomDescription = v.run.roomHistory[#v.run.roomHistory - 2 + 1]
32299
32362
  if previousRoomDescription ~= nil then
32300
32363
  return previousRoomDescription
32301
32364
  end
32302
- local startingRoomDescription = self.v.run.roomHistory[1]
32365
+ local startingRoomDescription = v.run.roomHistory[1]
32303
32366
  if startingRoomDescription ~= nil then
32304
32367
  return startingRoomDescription
32305
32368
  end
32306
32369
  error("Failed to find a room description for any rooms thus far on this run.")
32307
32370
  end
32308
32371
  function RoomHistory.prototype.getLatestRoomDescription(self)
32309
- return getLastElement(nil, self.v.run.roomHistory)
32372
+ return getLastElement(nil, v.run.roomHistory)
32310
32373
  end
32311
32374
  function RoomHistory.prototype.isLeavingRoom(self)
32312
32375
  local level = game:GetLevel()
@@ -32401,25 +32464,26 @@ function checkExecuteIntervalFunctions(self, intervalFunctions, frameCount, newN
32401
32464
  end
32402
32465
  end
32403
32466
  end
32467
+ local v = {run = {queuedGameFunctions = {}, queuedRenderFunctions = {}, intervalGameFunctions = {}, intervalRenderFunctions = {}}}
32404
32468
  ____exports.RunInNFrames = __TS__Class()
32405
32469
  local RunInNFrames = ____exports.RunInNFrames
32406
32470
  RunInNFrames.name = "RunInNFrames"
32407
32471
  __TS__ClassExtends(RunInNFrames, Feature)
32408
32472
  function RunInNFrames.prototype.____constructor(self, roomHistory)
32409
32473
  Feature.prototype.____constructor(self)
32410
- self.v = {run = {queuedGameFunctions = {}, queuedRenderFunctions = {}, intervalGameFunctions = {}, intervalRenderFunctions = {}}}
32474
+ self.v = v
32411
32475
  self.vConditionalFunc = function() return false end
32412
32476
  self.postUpdate = function()
32413
32477
  local gameFrameCount = game:GetFrameCount()
32414
32478
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
32415
- checkExecuteQueuedFunctions(nil, self.v.run.queuedGameFunctions, gameFrameCount, numRoomsEntered)
32416
- checkExecuteIntervalFunctions(nil, self.v.run.intervalGameFunctions, gameFrameCount, numRoomsEntered)
32479
+ checkExecuteQueuedFunctions(nil, v.run.queuedGameFunctions, gameFrameCount, numRoomsEntered)
32480
+ checkExecuteIntervalFunctions(nil, v.run.intervalGameFunctions, gameFrameCount, numRoomsEntered)
32417
32481
  end
32418
32482
  self.postRender = function()
32419
32483
  local renderFrameCount = Isaac.GetFrameCount()
32420
32484
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
32421
- checkExecuteQueuedFunctions(nil, self.v.run.queuedRenderFunctions, renderFrameCount, numRoomsEntered)
32422
- checkExecuteIntervalFunctions(nil, self.v.run.intervalRenderFunctions, renderFrameCount, numRoomsEntered)
32485
+ checkExecuteQueuedFunctions(nil, v.run.queuedRenderFunctions, renderFrameCount, numRoomsEntered)
32486
+ checkExecuteIntervalFunctions(nil, v.run.intervalRenderFunctions, renderFrameCount, numRoomsEntered)
32423
32487
  end
32424
32488
  self.featuresUsed = {ISCFeature.ROOM_HISTORY}
32425
32489
  self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_RENDER, self.postRender}}
@@ -32438,8 +32502,8 @@ function RunInNFrames.prototype.runInNGameFrames(self, func, numGameFrames, canc
32438
32502
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
32439
32503
  local frameCountToFire = gameFrameCount + numGameFrames
32440
32504
  local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
32441
- local ____self_v_run_queuedGameFunctions_0 = self.v.run.queuedGameFunctions
32442
- ____self_v_run_queuedGameFunctions_0[#____self_v_run_queuedGameFunctions_0 + 1] = queuedFunction
32505
+ local ____v_run_queuedGameFunctions_0 = v.run.queuedGameFunctions
32506
+ ____v_run_queuedGameFunctions_0[#____v_run_queuedGameFunctions_0 + 1] = queuedFunction
32443
32507
  end
32444
32508
  function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames, cancelIfRoomChanges)
32445
32509
  if cancelIfRoomChanges == nil then
@@ -32449,8 +32513,8 @@ function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames,
32449
32513
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
32450
32514
  local frameCountToFire = renderFrameCount + numRenderFrames
32451
32515
  local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
32452
- local ____self_v_run_queuedRenderFunctions_1 = self.v.run.queuedRenderFunctions
32453
- ____self_v_run_queuedRenderFunctions_1[#____self_v_run_queuedRenderFunctions_1 + 1] = queuedFunction
32516
+ local ____v_run_queuedRenderFunctions_1 = v.run.queuedRenderFunctions
32517
+ ____v_run_queuedRenderFunctions_1[#____v_run_queuedRenderFunctions_1 + 1] = queuedFunction
32454
32518
  end
32455
32519
  function RunInNFrames.prototype.runNextGameFrame(self, func, cancelIfRoomChanges)
32456
32520
  if cancelIfRoomChanges == nil then
@@ -32483,8 +32547,8 @@ function RunInNFrames.prototype.setIntervalGameFrames(self, func, numGameFrames,
32483
32547
  cancelIfRoomChanges = cancelIfRoomChanges,
32484
32548
  numIntervalFrames = numGameFrames
32485
32549
  }
32486
- local ____self_v_run_intervalGameFunctions_2 = self.v.run.intervalGameFunctions
32487
- ____self_v_run_intervalGameFunctions_2[#____self_v_run_intervalGameFunctions_2 + 1] = intervalFunction
32550
+ local ____v_run_intervalGameFunctions_2 = v.run.intervalGameFunctions
32551
+ ____v_run_intervalGameFunctions_2[#____v_run_intervalGameFunctions_2 + 1] = intervalFunction
32488
32552
  end
32489
32553
  function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFrames, runImmediately, cancelIfRoomChanges)
32490
32554
  if cancelIfRoomChanges == nil then
@@ -32505,8 +32569,8 @@ function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFra
32505
32569
  cancelIfRoomChanges = cancelIfRoomChanges,
32506
32570
  numIntervalFrames = numRenderFrames
32507
32571
  }
32508
- local ____self_v_run_intervalRenderFunctions_3 = self.v.run.intervalRenderFunctions
32509
- ____self_v_run_intervalRenderFunctions_3[#____self_v_run_intervalRenderFunctions_3 + 1] = intervalFunction
32572
+ local ____v_run_intervalRenderFunctions_3 = v.run.intervalRenderFunctions
32573
+ ____v_run_intervalRenderFunctions_3[#____v_run_intervalRenderFunctions_3 + 1] = intervalFunction
32510
32574
  end
32511
32575
  __TS__Decorate({Exported}, RunInNFrames.prototype, "restartNextRenderFrame", true)
32512
32576
  __TS__Decorate({Exported}, RunInNFrames.prototype, "runInNGameFrames", true)
@@ -32519,11 +32583,11 @@ return ____exports
32519
32583
  end,
32520
32584
  ["src.classes.features.callbackLogic.CustomGridEntities"] = function(...)
32521
32585
  local ____lualib = require("lualib_bundle")
32522
- local __TS__Class = ____lualib.__TS__Class
32523
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
32524
32586
  local Map = ____lualib.Map
32525
32587
  local __TS__New = ____lualib.__TS__New
32526
32588
  local Set = ____lualib.Set
32589
+ local __TS__Class = ____lualib.__TS__Class
32590
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
32527
32591
  local __TS__Iterator = ____lualib.__TS__Iterator
32528
32592
  local __TS__Decorate = ____lualib.__TS__Decorate
32529
32593
  local ____exports = {}
@@ -32555,26 +32619,27 @@ local ____DefaultMap = require("src.classes.DefaultMap")
32555
32619
  local DefaultMap = ____DefaultMap.DefaultMap
32556
32620
  local ____Feature = require("src.classes.private.Feature")
32557
32621
  local Feature = ____Feature.Feature
32622
+ local v = {
32623
+ level = {customGridEntities = __TS__New(
32624
+ DefaultMap,
32625
+ function() return __TS__New(Map) end
32626
+ )},
32627
+ room = {
32628
+ genericPropPtrHashes = __TS__New(Set),
32629
+ manuallyUsingShovel = false
32630
+ }
32631
+ }
32558
32632
  ____exports.CustomGridEntities = __TS__Class()
32559
32633
  local CustomGridEntities = ____exports.CustomGridEntities
32560
32634
  CustomGridEntities.name = "CustomGridEntities"
32561
32635
  __TS__ClassExtends(CustomGridEntities, Feature)
32562
32636
  function CustomGridEntities.prototype.____constructor(self, runInNFrames)
32563
32637
  Feature.prototype.____constructor(self)
32564
- self.v = {
32565
- level = {customGridEntities = __TS__New(
32566
- DefaultMap,
32567
- function() return __TS__New(Map) end
32568
- )},
32569
- room = {
32570
- genericPropPtrHashes = __TS__New(Set),
32571
- manuallyUsingShovel = false
32572
- }
32573
- }
32638
+ self.v = v
32574
32639
  self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
32575
32640
  local room = game:GetRoom()
32576
32641
  local roomListIndex = getRoomListIndex(nil)
32577
- local roomCustomGridEntities = self.v.level.customGridEntities:get(roomListIndex)
32642
+ local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
32578
32643
  if roomCustomGridEntities == nil then
32579
32644
  return nil
32580
32645
  end
@@ -32593,15 +32658,15 @@ function CustomGridEntities.prototype.____constructor(self, runInNFrames)
32593
32658
  if futurePlayer == nil then
32594
32659
  return
32595
32660
  end
32596
- self.v.room.manuallyUsingShovel = true
32661
+ v.room.manuallyUsingShovel = true
32597
32662
  futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
32598
- self.v.room.manuallyUsingShovel = false
32663
+ v.room.manuallyUsingShovel = false
32599
32664
  end)
32600
32665
  return true
32601
32666
  end
32602
32667
  self.postNewRoomReordered = function()
32603
32668
  local roomListIndex = getRoomListIndex(nil)
32604
- local roomCustomGridEntities = self.v.level.customGridEntities:get(roomListIndex)
32669
+ local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
32605
32670
  if roomCustomGridEntities == nil then
32606
32671
  return
32607
32672
  end
@@ -32661,7 +32726,7 @@ function CustomGridEntities.prototype.spawnCustomGridEntity(self, gridEntityType
32661
32726
  defaultAnimation = defaultAnimation,
32662
32727
  gridCollisionClass = gridCollisionClass
32663
32728
  }
32664
- local roomCustomGridEntities = self.v.level.customGridEntities:getAndSetDefault(roomListIndex)
32729
+ local roomCustomGridEntities = v.level.customGridEntities:getAndSetDefault(roomListIndex)
32665
32730
  roomCustomGridEntities:set(gridIndex, customGridEntityData)
32666
32731
  return customGridEntity
32667
32732
  end
@@ -32690,7 +32755,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
32690
32755
  decoration = gridIndexOrPositionOrGridEntity
32691
32756
  end
32692
32757
  local gridIndex = decoration:GetGridIndex()
32693
- local roomCustomGridEntities = self.v.level.customGridEntities:getAndSetDefault(roomListIndex)
32758
+ local roomCustomGridEntities = v.level.customGridEntities:getAndSetDefault(roomListIndex)
32694
32759
  local exists = roomCustomGridEntities:has(gridIndex)
32695
32760
  if not exists then
32696
32761
  return nil
@@ -32701,7 +32766,7 @@ function CustomGridEntities.prototype.removeCustomGridEntity(self, gridIndexOrPo
32701
32766
  end
32702
32767
  function CustomGridEntities.prototype.getCustomGridEntities(self)
32703
32768
  local roomListIndex = getRoomListIndex(nil)
32704
- local roomCustomGridEntities = self.v.level.customGridEntities:get(roomListIndex)
32769
+ local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
32705
32770
  if roomCustomGridEntities == nil then
32706
32771
  return {}
32707
32772
  end
@@ -32723,7 +32788,7 @@ function CustomGridEntities.prototype.getCustomGridEntityType(self, gridEntityOr
32723
32788
  end
32724
32789
  local gridIndex = isNumber(nil, gridEntityOrGridIndex) and gridEntityOrGridIndex or gridEntityOrGridIndex:GetGridIndex()
32725
32790
  local roomListIndex = getRoomListIndex(nil)
32726
- local roomCustomGridEntities = self.v.level.customGridEntities:get(roomListIndex)
32791
+ local roomCustomGridEntities = v.level.customGridEntities:get(roomListIndex)
32727
32792
  if roomCustomGridEntities == nil then
32728
32793
  return nil
32729
32794
  end
@@ -32785,30 +32850,31 @@ CustomReviveState.WAITING_FOR_ROOM_TRANSITION = 1
32785
32850
  CustomReviveState[CustomReviveState.WAITING_FOR_ROOM_TRANSITION] = "WAITING_FOR_ROOM_TRANSITION"
32786
32851
  CustomReviveState.WAITING_FOR_ITEM_ANIMATION = 2
32787
32852
  CustomReviveState[CustomReviveState.WAITING_FOR_ITEM_ANIMATION] = "WAITING_FOR_ITEM_ANIMATION"
32853
+ local v = {run = {state = CustomReviveState.DISABLED, revivalType = nil, dyingPlayerIndex = nil}}
32788
32854
  ____exports.CustomRevive = __TS__Class()
32789
32855
  local CustomRevive = ____exports.CustomRevive
32790
32856
  CustomRevive.name = "CustomRevive"
32791
32857
  __TS__ClassExtends(CustomRevive, Feature)
32792
32858
  function CustomRevive.prototype.____constructor(self, preCustomRevive, postCustomRevive, runInNFrames)
32793
32859
  Feature.prototype.____constructor(self)
32794
- self.v = {run = {state = CustomReviveState.DISABLED, revivalType = nil, dyingPlayerIndex = nil}}
32860
+ self.v = v
32795
32861
  self.postRender = function()
32796
- if self.v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
32862
+ if v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
32797
32863
  return
32798
32864
  end
32799
32865
  sfxManager:Stop(SoundEffect.ONE_UP)
32800
32866
  end
32801
32867
  self.postFamiliarInitOneUp = function(____, familiar)
32802
- if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
32868
+ if v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
32803
32869
  return
32804
32870
  end
32805
32871
  familiar:Remove()
32806
32872
  end
32807
32873
  self.postNewRoomReordered = function()
32808
- if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
32874
+ if v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
32809
32875
  return
32810
32876
  end
32811
- self.v.run.state = CustomReviveState.WAITING_FOR_ITEM_ANIMATION
32877
+ v.run.state = CustomReviveState.WAITING_FOR_ITEM_ANIMATION
32812
32878
  self:logStateChanged()
32813
32879
  end
32814
32880
  self.postPEffectUpdateReordered = function(____, player)
@@ -32829,14 +32895,14 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
32829
32895
  self.runInNFrames = runInNFrames
32830
32896
  end
32831
32897
  function CustomRevive.prototype.checkWaitingForItemAnimation(self, player)
32832
- if self.v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
32898
+ if v.run.state ~= CustomReviveState.WAITING_FOR_ITEM_ANIMATION then
32833
32899
  return
32834
32900
  end
32835
- if self.v.run.dyingPlayerIndex == nil then
32901
+ if v.run.dyingPlayerIndex == nil then
32836
32902
  return
32837
32903
  end
32838
32904
  local playerIndex = getPlayerIndex(nil, player)
32839
- if playerIndex ~= self.v.run.dyingPlayerIndex then
32905
+ if playerIndex ~= v.run.dyingPlayerIndex then
32840
32906
  return
32841
32907
  end
32842
32908
  local playerToCheckHoldingItem = player
@@ -32849,12 +32915,12 @@ function CustomRevive.prototype.checkWaitingForItemAnimation(self, player)
32849
32915
  if not playerToCheckHoldingItem:IsHoldingItem() then
32850
32916
  return
32851
32917
  end
32852
- if self.v.run.revivalType ~= nil then
32853
- self.postCustomRevive:fire(playerToCheckHoldingItem, self.v.run.revivalType)
32918
+ if v.run.revivalType ~= nil then
32919
+ self.postCustomRevive:fire(playerToCheckHoldingItem, v.run.revivalType)
32854
32920
  end
32855
- self.v.run.state = CustomReviveState.DISABLED
32856
- self.v.run.revivalType = nil
32857
- self.v.run.dyingPlayerIndex = nil
32921
+ v.run.state = CustomReviveState.DISABLED
32922
+ v.run.revivalType = nil
32923
+ v.run.dyingPlayerIndex = nil
32858
32924
  self:logStateChanged()
32859
32925
  end
32860
32926
  function CustomRevive.prototype.playerIsAboutToDie(self, player)
@@ -32862,9 +32928,9 @@ function CustomRevive.prototype.playerIsAboutToDie(self, player)
32862
32928
  if revivalType == nil then
32863
32929
  return
32864
32930
  end
32865
- self.v.run.state = CustomReviveState.WAITING_FOR_ROOM_TRANSITION
32866
- self.v.run.revivalType = revivalType
32867
- self.v.run.dyingPlayerIndex = getPlayerIndex(nil, player)
32931
+ v.run.state = CustomReviveState.WAITING_FOR_ROOM_TRANSITION
32932
+ v.run.revivalType = revivalType
32933
+ v.run.dyingPlayerIndex = getPlayerIndex(nil, player)
32868
32934
  self:logStateChanged()
32869
32935
  player:AddCollectible(CollectibleType.ONE_UP, 0, false)
32870
32936
  removeCollectibleFromItemTracker(nil, CollectibleType.ONE_UP)
@@ -32883,7 +32949,7 @@ function CustomRevive.prototype.playerIsAboutToDie(self, player)
32883
32949
  end
32884
32950
  function CustomRevive.prototype.logStateChanged(self)
32885
32951
  if DEBUG then
32886
- log(((("Custom revive state changed: " .. CustomReviveState[self.v.run.state]) .. " (") .. tostring(self.v.run.state)) .. ")")
32952
+ log(((("Custom revive state changed: " .. CustomReviveState[v.run.state]) .. " (") .. tostring(v.run.state)) .. ")")
32887
32953
  end
32888
32954
  end
32889
32955
  return ____exports
@@ -32902,38 +32968,39 @@ local ____players = require("src.functions.players")
32902
32968
  local getPlayersWithControllerIndex = ____players.getPlayersWithControllerIndex
32903
32969
  local ____Feature = require("src.classes.private.Feature")
32904
32970
  local Feature = ____Feature.Feature
32971
+ local v = {run = {usedEsauJrFrame = nil, usedEsauJrControllerIndex = nil, usedEsauJrAtLeastOnce = false}}
32905
32972
  ____exports.EsauJrDetection = __TS__Class()
32906
32973
  local EsauJrDetection = ____exports.EsauJrDetection
32907
32974
  EsauJrDetection.name = "EsauJrDetection"
32908
32975
  __TS__ClassExtends(EsauJrDetection, Feature)
32909
32976
  function EsauJrDetection.prototype.____constructor(self, postEsauJr, postFirstEsauJr)
32910
32977
  Feature.prototype.____constructor(self)
32911
- self.v = {run = {usedEsauJrFrame = nil, usedEsauJrControllerIndex = nil, usedEsauJrAtLeastOnce = false}}
32978
+ self.v = v
32912
32979
  self.postUpdate = function()
32913
32980
  local gameFrameCount = game:GetFrameCount()
32914
- if self.v.run.usedEsauJrFrame == nil or gameFrameCount < self.v.run.usedEsauJrFrame + 1 then
32981
+ if v.run.usedEsauJrFrame == nil or gameFrameCount < v.run.usedEsauJrFrame + 1 then
32915
32982
  return
32916
32983
  end
32917
- self.v.run.usedEsauJrFrame = nil
32918
- if self.v.run.usedEsauJrControllerIndex == nil then
32984
+ v.run.usedEsauJrFrame = nil
32985
+ if v.run.usedEsauJrControllerIndex == nil then
32919
32986
  return
32920
32987
  end
32921
- local players = getPlayersWithControllerIndex(nil, self.v.run.usedEsauJrControllerIndex)
32922
- self.v.run.usedEsauJrControllerIndex = nil
32988
+ local players = getPlayersWithControllerIndex(nil, v.run.usedEsauJrControllerIndex)
32989
+ v.run.usedEsauJrControllerIndex = nil
32923
32990
  local player = players[1]
32924
32991
  if player == nil then
32925
32992
  return
32926
32993
  end
32927
- if not self.v.run.usedEsauJrAtLeastOnce then
32928
- self.v.run.usedEsauJrAtLeastOnce = true
32994
+ if not v.run.usedEsauJrAtLeastOnce then
32995
+ v.run.usedEsauJrAtLeastOnce = true
32929
32996
  self.postFirstEsauJr:fire(player)
32930
32997
  end
32931
32998
  self.postEsauJr:fire(player)
32932
32999
  end
32933
33000
  self.useItemEsauJr = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
32934
33001
  local gameFrameCount = game:GetFrameCount()
32935
- self.v.run.usedEsauJrFrame = gameFrameCount + 1
32936
- self.v.run.usedEsauJrControllerIndex = player.ControllerIndex
33002
+ v.run.usedEsauJrFrame = gameFrameCount + 1
33003
+ v.run.usedEsauJrControllerIndex = player.ControllerIndex
32937
33004
  return nil
32938
33005
  end
32939
33006
  self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_USE_ITEM, self.useItemEsauJr, {CollectibleType.ESAU_JR}}}
@@ -32974,13 +33041,14 @@ function getNewLazarus(self, oldLazarus)
32974
33041
  function(____, player) return player.FrameCount == oldLazarus.FrameCount end
32975
33042
  )
32976
33043
  end
33044
+ local v = {run = {usedFlipAtLeastOnce = false}}
32977
33045
  ____exports.FlipDetection = __TS__Class()
32978
33046
  local FlipDetection = ____exports.FlipDetection
32979
33047
  FlipDetection.name = "FlipDetection"
32980
33048
  __TS__ClassExtends(FlipDetection, Feature)
32981
33049
  function FlipDetection.prototype.____constructor(self, postFlip, postFirstFlip)
32982
33050
  Feature.prototype.____constructor(self)
32983
- self.v = {run = {usedFlipAtLeastOnce = false}}
33051
+ self.v = v
32984
33052
  self.useItemFlip = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
32985
33053
  if not isTaintedLazarus(nil, player) then
32986
33054
  return nil
@@ -32989,8 +33057,8 @@ function FlipDetection.prototype.____constructor(self, postFlip, postFirstFlip)
32989
33057
  if newLazarus == nil then
32990
33058
  return nil
32991
33059
  end
32992
- if not self.v.run.usedFlipAtLeastOnce then
32993
- self.v.run.usedFlipAtLeastOnce = true
33060
+ if not v.run.usedFlipAtLeastOnce then
33061
+ v.run.usedFlipAtLeastOnce = true
32994
33062
  self.postFirstFlip:fire(newLazarus, player)
32995
33063
  end
32996
33064
  self.postFlip:fire(newLazarus, player)
@@ -33099,10 +33167,10 @@ return ____exports
33099
33167
  end,
33100
33168
  ["src.classes.features.callbackLogic.GridEntityCollisionDetection"] = function(...)
33101
33169
  local ____lualib = require("lualib_bundle")
33102
- local __TS__Class = ____lualib.__TS__Class
33103
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
33104
33170
  local Set = ____lualib.Set
33105
33171
  local __TS__New = ____lualib.__TS__New
33172
+ local __TS__Class = ____lualib.__TS__Class
33173
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
33106
33174
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
33107
33175
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
33108
33176
  local __TS__Iterator = ____lualib.__TS__Iterator
@@ -33117,16 +33185,17 @@ local ____DefaultMap = require("src.classes.DefaultMap")
33117
33185
  local DefaultMap = ____DefaultMap.DefaultMap
33118
33186
  local ____Feature = require("src.classes.private.Feature")
33119
33187
  local Feature = ____Feature.Feature
33188
+ local v = {room = {collidingEntitiesMap = __TS__New(
33189
+ DefaultMap,
33190
+ function() return __TS__New(Set) end
33191
+ )}}
33120
33192
  ____exports.GridEntityCollisionDetection = __TS__Class()
33121
33193
  local GridEntityCollisionDetection = ____exports.GridEntityCollisionDetection
33122
33194
  GridEntityCollisionDetection.name = "GridEntityCollisionDetection"
33123
33195
  __TS__ClassExtends(GridEntityCollisionDetection, Feature)
33124
33196
  function GridEntityCollisionDetection.prototype.____constructor(self, postGridEntityCollision, postGridEntityCustomCollision, customGridEntities)
33125
33197
  Feature.prototype.____constructor(self)
33126
- self.v = {room = {collidingEntitiesMap = __TS__New(
33127
- DefaultMap,
33128
- function() return __TS__New(Set) end
33129
- )}}
33198
+ self.v = v
33130
33199
  self.postUpdate = function()
33131
33200
  local gridEntities = getGridEntities(nil)
33132
33201
  local gridEntitiesWithCollision = __TS__ArrayFilter(
@@ -33135,7 +33204,7 @@ function GridEntityCollisionDetection.prototype.____constructor(self, postGridEn
33135
33204
  )
33136
33205
  for ____, gridEntity in ipairs(gridEntitiesWithCollision) do
33137
33206
  local gridEntityPtrHash = GetPtrHash(gridEntity)
33138
- local oldCollidingEntities = self.v.room.collidingEntitiesMap:getAndSetDefault(gridEntityPtrHash)
33207
+ local oldCollidingEntities = v.room.collidingEntitiesMap:getAndSetDefault(gridEntityPtrHash)
33139
33208
  local collidingEntities = getCollidingEntitiesWithGridEntity(nil, gridEntity)
33140
33209
  for ____, entity in ipairs(collidingEntities) do
33141
33210
  local entityPtrHash = GetPtrHash(entity)
@@ -33205,10 +33274,10 @@ return ____exports
33205
33274
  end,
33206
33275
  ["src.classes.features.callbackLogic.GridEntityUpdateDetection"] = function(...)
33207
33276
  local ____lualib = require("lualib_bundle")
33208
- local __TS__Class = ____lualib.__TS__Class
33209
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
33210
33277
  local Map = ____lualib.Map
33211
33278
  local __TS__New = ____lualib.__TS__New
33279
+ local __TS__Class = ____lualib.__TS__Class
33280
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
33212
33281
  local __TS__Iterator = ____lualib.__TS__Iterator
33213
33282
  local ____exports = {}
33214
33283
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -33222,13 +33291,14 @@ local getGridEntitiesMap = ____gridEntities.getGridEntitiesMap
33222
33291
  local isGridEntityBroken = ____gridEntities.isGridEntityBroken
33223
33292
  local ____Feature = require("src.classes.private.Feature")
33224
33293
  local Feature = ____Feature.Feature
33294
+ local v = {room = {initializedGridEntities = __TS__New(Map)}}
33225
33295
  ____exports.GridEntityUpdateDetection = __TS__Class()
33226
33296
  local GridEntityUpdateDetection = ____exports.GridEntityUpdateDetection
33227
33297
  GridEntityUpdateDetection.name = "GridEntityUpdateDetection"
33228
33298
  __TS__ClassExtends(GridEntityUpdateDetection, Feature)
33229
33299
  function GridEntityUpdateDetection.prototype.____constructor(self, postGridEntityInit, postGridEntityCustomInit, postGridEntityUpdate, postGridEntityCustomUpdate, postGridEntityRemove, postGridEntityCustomRemove, postGridEntityStateChanged, postGridEntityCustomStateChanged, postGridEntityBroken, postGridEntityCustomBroken, customGridEntities)
33230
33300
  Feature.prototype.____constructor(self)
33231
- self.v = {room = {initializedGridEntities = __TS__New(Map)}}
33301
+ self.v = v
33232
33302
  self.postUpdate = function()
33233
33303
  local gridEntitiesMap = getGridEntitiesMap(nil)
33234
33304
  self:checkGridEntitiesRemoved(gridEntitiesMap)
@@ -33269,13 +33339,13 @@ function GridEntityUpdateDetection.prototype.____constructor(self, postGridEntit
33269
33339
  self.customGridEntities = customGridEntities
33270
33340
  end
33271
33341
  function GridEntityUpdateDetection.prototype.checkGridEntitiesRemoved(self, gridEntitiesMap)
33272
- for ____, ____value in __TS__Iterator(self.v.room.initializedGridEntities) do
33342
+ for ____, ____value in __TS__Iterator(v.room.initializedGridEntities) do
33273
33343
  local gridIndex = ____value[1]
33274
33344
  local gridEntityTuple = ____value[2]
33275
33345
  local storedGridEntityType, storedGridEntityVariant = table.unpack(gridEntityTuple)
33276
33346
  local gridEntity = gridEntitiesMap:get(gridIndex)
33277
33347
  if gridEntity == nil or gridEntity:GetType() ~= storedGridEntityType then
33278
- self.v.room.initializedGridEntities:delete(gridIndex)
33348
+ v.room.initializedGridEntities:delete(gridIndex)
33279
33349
  local gridEntityTypeCustom = self.customGridEntities:getCustomGridEntityType(gridIndex)
33280
33350
  if gridEntityTypeCustom == nil then
33281
33351
  self.postGridEntityRemove:fire(gridIndex, storedGridEntityType, storedGridEntityVariant)
@@ -33286,7 +33356,7 @@ function GridEntityUpdateDetection.prototype.checkGridEntitiesRemoved(self, grid
33286
33356
  end
33287
33357
  end
33288
33358
  function GridEntityUpdateDetection.prototype.checkGridEntityStateChanged(self, gridIndex, gridEntity)
33289
- local gridEntityTuple = self.v.room.initializedGridEntities:get(gridIndex)
33359
+ local gridEntityTuple = v.room.initializedGridEntities:get(gridIndex)
33290
33360
  if gridEntityTuple == nil then
33291
33361
  return
33292
33362
  end
@@ -33311,7 +33381,7 @@ function GridEntityUpdateDetection.prototype.checkGridEntityStateChanged(self, g
33311
33381
  end
33312
33382
  function GridEntityUpdateDetection.prototype.checkNewGridEntity(self, gridIndex, gridEntity)
33313
33383
  local gridEntityType = gridEntity:GetType()
33314
- local gridEntityTuple = self.v.room.initializedGridEntities:get(gridIndex)
33384
+ local gridEntityTuple = v.room.initializedGridEntities:get(gridIndex)
33315
33385
  if gridEntityTuple == nil or gridEntityTuple[1] ~= gridEntityType then
33316
33386
  self:updateTupleInMap(gridEntity)
33317
33387
  local gridEntityTypeCustom = self.customGridEntities:getCustomGridEntityType(gridEntity)
@@ -33327,15 +33397,15 @@ function GridEntityUpdateDetection.prototype.updateTupleInMap(self, gridEntity)
33327
33397
  local variant = gridEntity:GetVariant()
33328
33398
  local gridIndex = gridEntity:GetGridIndex()
33329
33399
  local newTuple = {gridEntityType, variant, gridEntity.State}
33330
- self.v.room.initializedGridEntities:set(gridIndex, newTuple)
33400
+ v.room.initializedGridEntities:set(gridIndex, newTuple)
33331
33401
  end
33332
33402
  return ____exports
33333
33403
  end,
33334
33404
  ["src.classes.features.callbackLogic.ItemPickupDetection"] = function(...)
33335
33405
  local ____lualib = require("lualib_bundle")
33406
+ local __TS__New = ____lualib.__TS__New
33336
33407
  local __TS__Class = ____lualib.__TS__Class
33337
33408
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
33338
- local __TS__New = ____lualib.__TS__New
33339
33409
  local ____exports = {}
33340
33410
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
33341
33411
  local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
@@ -33352,18 +33422,19 @@ local ____DefaultMap = require("src.classes.DefaultMap")
33352
33422
  local DefaultMap = ____DefaultMap.DefaultMap
33353
33423
  local ____Feature = require("src.classes.private.Feature")
33354
33424
  local Feature = ____Feature.Feature
33425
+ local v = {run = {playersPickingUpItemMap = __TS__New(
33426
+ DefaultMap,
33427
+ function() return newPickingUpItem(nil) end
33428
+ )}}
33355
33429
  ____exports.ItemPickupDetection = __TS__Class()
33356
33430
  local ItemPickupDetection = ____exports.ItemPickupDetection
33357
33431
  ItemPickupDetection.name = "ItemPickupDetection"
33358
33432
  __TS__ClassExtends(ItemPickupDetection, Feature)
33359
33433
  function ItemPickupDetection.prototype.____constructor(self, postItemPickup, preItemPickup)
33360
33434
  Feature.prototype.____constructor(self)
33361
- self.v = {run = {playersPickingUpItemMap = __TS__New(
33362
- DefaultMap,
33363
- function() return newPickingUpItem(nil) end
33364
- )}}
33435
+ self.v = v
33365
33436
  self.postPEffectUpdateReordered = function(____, player)
33366
- local pickingUpItem = defaultMapGetPlayer(nil, self.v.run.playersPickingUpItemMap, player)
33437
+ local pickingUpItem = defaultMapGetPlayer(nil, v.run.playersPickingUpItemMap, player)
33367
33438
  if player:IsItemQueueEmpty() then
33368
33439
  self:queueEmpty(player, pickingUpItem)
33369
33440
  else
@@ -35035,6 +35106,7 @@ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
35035
35106
  local __TS__TypeOf = ____lualib.__TS__TypeOf
35036
35107
  local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
35037
35108
  local __TS__Decorate = ____lualib.__TS__Decorate
35109
+ local __TS__ArraySort = ____lualib.__TS__ArraySort
35038
35110
  local ____exports = {}
35039
35111
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
35040
35112
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
@@ -35051,6 +35123,8 @@ local ____SerializationType = require("src.enums.SerializationType")
35051
35123
  local SerializationType = ____SerializationType.SerializationType
35052
35124
  local ____deepCopy = require("src.functions.deepCopy")
35053
35125
  local deepCopy = ____deepCopy.deepCopy
35126
+ local ____log = require("src.functions.log")
35127
+ local log = ____log.log
35054
35128
  local ____stage = require("src.functions.stage")
35055
35129
  local onFirstFloor = ____stage.onFirstFloor
35056
35130
  local ____tstlClass = require("src.functions.tstlClass")
@@ -35224,6 +35298,14 @@ end
35224
35298
  function SaveDataManager.prototype.saveDataManagerInMenu(self)
35225
35299
  return not self.loadedDataOnThisRun
35226
35300
  end
35301
+ function SaveDataManager.prototype.saveDataManagerLogSubscribers(self)
35302
+ log("List of save data manager subscribers:")
35303
+ local keys = __TS__ObjectKeys(self.saveDataMap)
35304
+ __TS__ArraySort(keys)
35305
+ for ____, key in ipairs(keys) do
35306
+ log("- " .. key)
35307
+ end
35308
+ end
35227
35309
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManager", true)
35228
35310
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLoad", true)
35229
35311
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerSave", true)
@@ -35232,14 +35314,15 @@ __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRegisterCl
35232
35314
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRemove", true)
35233
35315
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerReset", true)
35234
35316
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerInMenu", true)
35317
+ __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLogSubscribers", true)
35235
35318
  return ____exports
35236
35319
  end,
35237
35320
  ["src.classes.features.other.PickupIndexCreation"] = function(...)
35238
35321
  local ____lualib = require("lualib_bundle")
35239
- local __TS__Class = ____lualib.__TS__Class
35240
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
35241
35322
  local Map = ____lualib.Map
35242
35323
  local __TS__New = ____lualib.__TS__New
35324
+ local __TS__Class = ____lualib.__TS__Class
35325
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
35243
35326
  local __TS__Decorate = ____lualib.__TS__Decorate
35244
35327
  local __TS__Iterator = ____lualib.__TS__Iterator
35245
35328
  local ____exports = {}
@@ -35276,24 +35359,25 @@ function getStoredPickupIndex(self, pickup, pickupDescriptions)
35276
35359
  end
35277
35360
  return nil
35278
35361
  end
35362
+ local v = {
35363
+ run = {
35364
+ pickupCounter = 0,
35365
+ pickupDataTreasureRooms = __TS__New(Map),
35366
+ pickupDataBossRooms = __TS__New(Map)
35367
+ },
35368
+ level = {pickupData = __TS__New(
35369
+ DefaultMap,
35370
+ function() return __TS__New(Map) end
35371
+ )},
35372
+ room = {pickupIndexes = __TS__New(Map)}
35373
+ }
35279
35374
  ____exports.PickupIndexCreation = __TS__Class()
35280
35375
  local PickupIndexCreation = ____exports.PickupIndexCreation
35281
35376
  PickupIndexCreation.name = "PickupIndexCreation"
35282
35377
  __TS__ClassExtends(PickupIndexCreation, Feature)
35283
35378
  function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDataManager)
35284
35379
  Feature.prototype.____constructor(self)
35285
- self.v = {
35286
- run = {
35287
- pickupCounter = 0,
35288
- pickupDataTreasureRooms = __TS__New(Map),
35289
- pickupDataBossRooms = __TS__New(Map)
35290
- },
35291
- level = {pickupData = __TS__New(
35292
- DefaultMap,
35293
- function() return __TS__New(Map) end
35294
- )},
35295
- room = {pickupIndexes = __TS__New(Map)}
35296
- }
35380
+ self.v = v
35297
35381
  self.postPickupInit = function(____, pickup)
35298
35382
  self:setPickupIndex(pickup)
35299
35383
  end
@@ -35307,7 +35391,7 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory, saveDa
35307
35391
  end
35308
35392
  function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
35309
35393
  local ptrHash = GetPtrHash(pickup)
35310
- if self.v.room.pickupIndexes:has(ptrHash) then
35394
+ if v.room.pickupIndexes:has(ptrHash) then
35311
35395
  return
35312
35396
  end
35313
35397
  local pickupIndexFromLevelData = self:getPickupIndexFromPreviousData(pickup)
@@ -35315,16 +35399,16 @@ function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
35315
35399
  local isFirstVisit = room:IsFirstVisit()
35316
35400
  local roomFrameCount = room:GetFrameCount()
35317
35401
  if pickupIndexFromLevelData ~= nil and not isFirstVisit and roomFrameCount <= 0 then
35318
- self.v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
35402
+ v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
35319
35403
  return
35320
35404
  end
35321
- local ____self_v_run_0, ____pickupCounter_1 = self.v.run, "pickupCounter"
35322
- ____self_v_run_0[____pickupCounter_1] = ____self_v_run_0[____pickupCounter_1] + 1
35323
- self.v.room.pickupIndexes:set(ptrHash, self.v.run.pickupCounter)
35405
+ local ____v_run_0, ____pickupCounter_1 = v.run, "pickupCounter"
35406
+ ____v_run_0[____pickupCounter_1] = ____v_run_0[____pickupCounter_1] + 1
35407
+ v.room.pickupIndexes:set(ptrHash, v.run.pickupCounter)
35324
35408
  end
35325
35409
  function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pickup)
35326
35410
  local roomListIndex = getRoomListIndex(nil)
35327
- local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(roomListIndex)
35411
+ local pickupDescriptions = v.level.pickupData:getAndSetDefault(roomListIndex)
35328
35412
  local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
35329
35413
  if pickupIndex == nil then
35330
35414
  pickupIndex = self:getPostAscentPickupIndex(pickup)
@@ -35333,7 +35417,7 @@ function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pick
35333
35417
  end
35334
35418
  function PickupIndexCreation.prototype.checkDespawningFromPlayerLeavingRoom(self, entity)
35335
35419
  local ptrHash = GetPtrHash(entity)
35336
- local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
35420
+ local pickupIndex = v.room.pickupIndexes:get(ptrHash)
35337
35421
  if pickupIndex == nil then
35338
35422
  return
35339
35423
  end
@@ -35348,7 +35432,7 @@ function PickupIndexCreation.prototype.trackDespawningPickupMetadata(self, entit
35348
35432
  return
35349
35433
  end
35350
35434
  local previousRoomListIndex = previousRoomDescription.roomListIndex
35351
- local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(previousRoomListIndex)
35435
+ local pickupDescriptions = v.level.pickupData:getAndSetDefault(previousRoomListIndex)
35352
35436
  local pickupDescription = {position = entity.Position, initSeed = entity.InitSeed}
35353
35437
  pickupDescriptions:set(pickupIndex, pickupDescription)
35354
35438
  local pickupDataMapForCurrentRoom = self:getPickupDataMapForCurrentRoom()
@@ -35370,13 +35454,13 @@ function PickupIndexCreation.prototype.getPickupDataMapForCurrentRoom(self)
35370
35454
  local ____cond20 = ____switch20 == RoomType.TREASURE
35371
35455
  if ____cond20 then
35372
35456
  do
35373
- return self.v.run.pickupDataTreasureRooms
35457
+ return v.run.pickupDataTreasureRooms
35374
35458
  end
35375
35459
  end
35376
35460
  ____cond20 = ____cond20 or ____switch20 == RoomType.BOSS
35377
35461
  if ____cond20 then
35378
35462
  do
35379
- return self.v.run.pickupDataBossRooms
35463
+ return v.run.pickupDataBossRooms
35380
35464
  end
35381
35465
  end
35382
35466
  do
@@ -35397,13 +35481,13 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
35397
35481
  local ____cond26 = ____switch26 == RoomType.TREASURE
35398
35482
  if ____cond26 then
35399
35483
  do
35400
- return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataTreasureRooms)
35484
+ return getStoredPickupIndex(nil, pickup, v.run.pickupDataTreasureRooms)
35401
35485
  end
35402
35486
  end
35403
35487
  ____cond26 = ____cond26 or ____switch26 == RoomType.BOSS
35404
35488
  if ____cond26 then
35405
35489
  do
35406
- return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataBossRooms)
35490
+ return getStoredPickupIndex(nil, pickup, v.run.pickupDataBossRooms)
35407
35491
  end
35408
35492
  end
35409
35493
  do
@@ -35415,12 +35499,12 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
35415
35499
  end
35416
35500
  function PickupIndexCreation.prototype.getPickupIndex(self, pickup)
35417
35501
  local ptrHash = GetPtrHash(pickup)
35418
- local pickupIndexInitial = self.v.room.pickupIndexes:get(ptrHash)
35502
+ local pickupIndexInitial = v.room.pickupIndexes:get(ptrHash)
35419
35503
  if pickupIndexInitial ~= nil then
35420
35504
  return pickupIndexInitial
35421
35505
  end
35422
35506
  self:setPickupIndex(pickup)
35423
- local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
35507
+ local pickupIndex = v.room.pickupIndexes:get(ptrHash)
35424
35508
  if pickupIndex ~= nil then
35425
35509
  return pickupIndex
35426
35510
  end
@@ -35432,10 +35516,10 @@ return ____exports
35432
35516
  end,
35433
35517
  ["src.classes.features.callbackLogic.PickupChangeDetection"] = function(...)
35434
35518
  local ____lualib = require("lualib_bundle")
35435
- local __TS__Class = ____lualib.__TS__Class
35436
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
35437
35519
  local Map = ____lualib.Map
35438
35520
  local __TS__New = ____lualib.__TS__New
35521
+ local __TS__Class = ____lualib.__TS__Class
35522
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
35439
35523
  local ____exports = {}
35440
35524
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
35441
35525
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -35443,22 +35527,23 @@ local ____ISCFeature = require("src.enums.ISCFeature")
35443
35527
  local ISCFeature = ____ISCFeature.ISCFeature
35444
35528
  local ____Feature = require("src.classes.private.Feature")
35445
35529
  local Feature = ____Feature.Feature
35530
+ local v = {room = {
35531
+ pickupVariants = __TS__New(Map),
35532
+ pickupSubTypes = __TS__New(Map)
35533
+ }}
35446
35534
  ____exports.PickupChangeDetection = __TS__Class()
35447
35535
  local PickupChangeDetection = ____exports.PickupChangeDetection
35448
35536
  PickupChangeDetection.name = "PickupChangeDetection"
35449
35537
  __TS__ClassExtends(PickupChangeDetection, Feature)
35450
35538
  function PickupChangeDetection.prototype.____constructor(self, postPickupChanged, pickupIndexCreation)
35451
35539
  Feature.prototype.____constructor(self)
35452
- self.v = {room = {
35453
- pickupVariants = __TS__New(Map),
35454
- pickupSubTypes = __TS__New(Map)
35455
- }}
35540
+ self.v = v
35456
35541
  self.postPickupUpdate = function(____, pickup)
35457
35542
  local pickupIndex = self.pickupIndexCreation:getPickupIndex(pickup)
35458
- local oldVariant = self.v.room.pickupVariants:get(pickupIndex)
35459
- self.v.room.pickupVariants:set(pickupIndex, pickup.Variant)
35460
- local oldSubType = self.v.room.pickupSubTypes:get(pickupIndex)
35461
- self.v.room.pickupSubTypes:set(pickupIndex, pickup.SubType)
35543
+ local oldVariant = v.room.pickupVariants:get(pickupIndex)
35544
+ v.room.pickupVariants:set(pickupIndex, pickup.Variant)
35545
+ local oldSubType = v.room.pickupSubTypes:get(pickupIndex)
35546
+ v.room.pickupSubTypes:set(pickupIndex, pickup.SubType)
35462
35547
  if oldVariant == nil or oldSubType == nil then
35463
35548
  return
35464
35549
  end
@@ -36717,10 +36802,10 @@ return ____exports
36717
36802
  end,
36718
36803
  ["src.classes.features.callbackLogic.PlayerCollectibleDetection"] = function(...)
36719
36804
  local ____lualib = require("lualib_bundle")
36720
- local __TS__Class = ____lualib.__TS__Class
36721
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
36722
36805
  local __TS__New = ____lualib.__TS__New
36723
36806
  local Map = ____lualib.Map
36807
+ local __TS__Class = ____lualib.__TS__Class
36808
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
36724
36809
  local Set = ____lualib.Set
36725
36810
  local __TS__Spread = ____lualib.__TS__Spread
36726
36811
  local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
@@ -36756,23 +36841,24 @@ local ____DefaultMap = require("src.classes.DefaultMap")
36756
36841
  local DefaultMap = ____DefaultMap.DefaultMap
36757
36842
  local ____Feature = require("src.classes.private.Feature")
36758
36843
  local Feature = ____Feature.Feature
36844
+ local v = {run = {
36845
+ playersCollectibleCount = __TS__New(DefaultMap, 0),
36846
+ playersCollectibleMap = __TS__New(
36847
+ DefaultMap,
36848
+ function() return __TS__New(Map) end
36849
+ ),
36850
+ playersActiveItemMap = __TS__New(
36851
+ DefaultMap,
36852
+ function() return __TS__New(Map) end
36853
+ )
36854
+ }}
36759
36855
  ____exports.PlayerCollectibleDetection = __TS__Class()
36760
36856
  local PlayerCollectibleDetection = ____exports.PlayerCollectibleDetection
36761
36857
  PlayerCollectibleDetection.name = "PlayerCollectibleDetection"
36762
36858
  __TS__ClassExtends(PlayerCollectibleDetection, Feature)
36763
36859
  function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCollectibleAdded, postPlayerCollectibleRemoved, moddedElementSets, runInNFrames)
36764
36860
  Feature.prototype.____constructor(self)
36765
- self.v = {run = {
36766
- playersCollectibleCount = __TS__New(DefaultMap, 0),
36767
- playersCollectibleMap = __TS__New(
36768
- DefaultMap,
36769
- function() return __TS__New(Map) end
36770
- ),
36771
- playersActiveItemMap = __TS__New(
36772
- DefaultMap,
36773
- function() return __TS__New(Map) end
36774
- )
36775
- }}
36861
+ self.v = v
36776
36862
  self.useItemD4 = function(____, _collectibleType, _rng, player)
36777
36863
  self:updateCollectibleMapAndFire(player, nil)
36778
36864
  return nil
@@ -36799,13 +36885,13 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
36799
36885
  return
36800
36886
  end
36801
36887
  local newCollectibleCount = player:GetCollectibleCount()
36802
- mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
36888
+ mapSetPlayer(nil, v.run.playersCollectibleCount, player, newCollectibleCount)
36803
36889
  self:updateCollectibleMapAndFire(player, 1)
36804
36890
  end
36805
36891
  self.postPEffectUpdateReordered = function(____, player)
36806
- local oldCollectibleCount = defaultMapGetPlayer(nil, self.v.run.playersCollectibleCount, player)
36892
+ local oldCollectibleCount = defaultMapGetPlayer(nil, v.run.playersCollectibleCount, player)
36807
36893
  local newCollectibleCount = player:GetCollectibleCount()
36808
- mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
36894
+ mapSetPlayer(nil, v.run.playersCollectibleCount, player, newCollectibleCount)
36809
36895
  local difference = newCollectibleCount - oldCollectibleCount
36810
36896
  if difference > 0 then
36811
36897
  self:updateCollectibleMapAndFire(player, difference)
@@ -36824,9 +36910,9 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
36824
36910
  self.runInNFrames = runInNFrames
36825
36911
  end
36826
36912
  function PlayerCollectibleDetection.prototype.updateCollectibleMapAndFire(self, player, numCollectiblesChanged)
36827
- local oldCollectibleMap = defaultMapGetPlayer(nil, self.v.run.playersCollectibleMap, player)
36913
+ local oldCollectibleMap = defaultMapGetPlayer(nil, v.run.playersCollectibleMap, player)
36828
36914
  local newCollectibleMap = self.moddedElementSets:getPlayerCollectibleMap(player)
36829
- mapSetPlayer(nil, self.v.run.playersCollectibleMap, player, newCollectibleMap)
36915
+ mapSetPlayer(nil, v.run.playersCollectibleMap, player, newCollectibleMap)
36830
36916
  local ____Set_1 = Set
36831
36917
  local ____array_0 = __TS__SparseArrayNew(__TS__Spread(oldCollectibleMap:keys()))
36832
36918
  __TS__SparseArrayPush(
@@ -36862,7 +36948,7 @@ function PlayerCollectibleDetection.prototype.updateCollectibleMapAndFire(self,
36862
36948
  end
36863
36949
  end
36864
36950
  function PlayerCollectibleDetection.prototype.checkActiveItemsChanged(self, player)
36865
- local activeItemMap = defaultMapGetPlayer(nil, self.v.run.playersActiveItemMap, player)
36951
+ local activeItemMap = defaultMapGetPlayer(nil, v.run.playersActiveItemMap, player)
36866
36952
  local oldCollectibleTypes = {}
36867
36953
  local newCollectibleTypes = {}
36868
36954
  for ____, activeSlot in ipairs(ACTIVE_SLOT_VALUES) do
@@ -36906,45 +36992,46 @@ function dequeue(self, playerIndexes, fireFunc)
36906
36992
  end
36907
36993
  emptyArray(nil, playerIndexes)
36908
36994
  end
36995
+ local v = {run = {postGameStartedFiredOnThisRun = false, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
36909
36996
  ____exports.PlayerReorderedCallbacks = __TS__Class()
36910
36997
  local PlayerReorderedCallbacks = ____exports.PlayerReorderedCallbacks
36911
36998
  PlayerReorderedCallbacks.name = "PlayerReorderedCallbacks"
36912
36999
  __TS__ClassExtends(PlayerReorderedCallbacks, Feature)
36913
37000
  function PlayerReorderedCallbacks.prototype.____constructor(self, postPEffectUpdateReordered, postPlayerRenderReordered, postPlayerUpdateReordered)
36914
37001
  Feature.prototype.____constructor(self)
36915
- self.v = {run = {postGameStartedFiredOnThisRun = false, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
37002
+ self.v = v
36916
37003
  self.postPEffectUpdate = function(____, player)
36917
- if self.v.run.postGameStartedFiredOnThisRun then
37004
+ if v.run.postGameStartedFiredOnThisRun then
36918
37005
  self.postPEffectUpdateReordered:fire(player)
36919
37006
  else
36920
37007
  local playerIndex = getPlayerIndex(nil, player)
36921
- local ____self_v_run_postPEffectUpdateQueue_0 = self.v.run.postPEffectUpdateQueue
36922
- ____self_v_run_postPEffectUpdateQueue_0[#____self_v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
37008
+ local ____v_run_postPEffectUpdateQueue_0 = v.run.postPEffectUpdateQueue
37009
+ ____v_run_postPEffectUpdateQueue_0[#____v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
36923
37010
  end
36924
37011
  end
36925
37012
  self.postPlayerUpdate = function(____, player)
36926
- if self.v.run.postGameStartedFiredOnThisRun then
37013
+ if v.run.postGameStartedFiredOnThisRun then
36927
37014
  self.postPlayerUpdateReordered:fire(player)
36928
37015
  else
36929
37016
  local playerIndex = getPlayerIndex(nil, player)
36930
- local ____self_v_run_postPlayerUpdateQueue_1 = self.v.run.postPlayerUpdateQueue
36931
- ____self_v_run_postPlayerUpdateQueue_1[#____self_v_run_postPlayerUpdateQueue_1 + 1] = playerIndex
37017
+ local ____v_run_postPlayerUpdateQueue_1 = v.run.postPlayerUpdateQueue
37018
+ ____v_run_postPlayerUpdateQueue_1[#____v_run_postPlayerUpdateQueue_1 + 1] = playerIndex
36932
37019
  end
36933
37020
  end
36934
37021
  self.postPlayerRender = function(____, player, _renderOffset)
36935
- if self.v.run.postGameStartedFiredOnThisRun then
37022
+ if v.run.postGameStartedFiredOnThisRun then
36936
37023
  self.postPlayerRenderReordered:fire(player)
36937
37024
  else
36938
37025
  local playerIndex = getPlayerIndex(nil, player)
36939
- local ____self_v_run_postPlayerRenderQueue_2 = self.v.run.postPlayerRenderQueue
36940
- ____self_v_run_postPlayerRenderQueue_2[#____self_v_run_postPlayerRenderQueue_2 + 1] = playerIndex
37026
+ local ____v_run_postPlayerRenderQueue_2 = v.run.postPlayerRenderQueue
37027
+ ____v_run_postPlayerRenderQueue_2[#____v_run_postPlayerRenderQueue_2 + 1] = playerIndex
36941
37028
  end
36942
37029
  end
36943
37030
  self.postGameStartedReorderedLast = function()
36944
- self.v.run.postGameStartedFiredOnThisRun = true
36945
- dequeue(nil, self.v.run.postPEffectUpdateQueue, self.postPEffectUpdateReordered.fire)
36946
- dequeue(nil, self.v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
36947
- dequeue(nil, self.v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
37031
+ v.run.postGameStartedFiredOnThisRun = true
37032
+ dequeue(nil, v.run.postPEffectUpdateQueue, self.postPEffectUpdateReordered.fire)
37033
+ dequeue(nil, v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
37034
+ dequeue(nil, v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
36948
37035
  end
36949
37036
  self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, self.postPEffectUpdate}, {ModCallback.POST_PLAYER_UPDATE, self.postPlayerUpdate}, {ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
36950
37037
  self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST, self.postGameStartedReorderedLast}}
@@ -36985,10 +37072,10 @@ return ____exports
36985
37072
  end,
36986
37073
  ["src.classes.features.callbackLogic.SlotDestroyedDetection"] = function(...)
36987
37074
  local ____lualib = require("lualib_bundle")
36988
- local __TS__Class = ____lualib.__TS__Class
36989
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
36990
37075
  local Set = ____lualib.Set
36991
37076
  local __TS__New = ____lualib.__TS__New
37077
+ local __TS__Class = ____lualib.__TS__Class
37078
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
36992
37079
  local ____exports = {}
36993
37080
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
36994
37081
  local EntityGridCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityGridCollisionClass
@@ -37004,13 +37091,14 @@ local ____slots = require("src.functions.slots")
37004
37091
  local isSlotMachine = ____slots.isSlotMachine
37005
37092
  local ____Feature = require("src.classes.private.Feature")
37006
37093
  local Feature = ____Feature.Feature
37094
+ local v = {room = {destroyedSlotSet = __TS__New(Set)}}
37007
37095
  ____exports.SlotDestroyedDetection = __TS__Class()
37008
37096
  local SlotDestroyedDetection = ____exports.SlotDestroyedDetection
37009
37097
  SlotDestroyedDetection.name = "SlotDestroyedDetection"
37010
37098
  __TS__ClassExtends(SlotDestroyedDetection, Feature)
37011
37099
  function SlotDestroyedDetection.prototype.____constructor(self, postSlotDestroyed, roomHistory)
37012
37100
  Feature.prototype.____constructor(self)
37013
- self.v = {room = {destroyedSlotSet = __TS__New(Set)}}
37101
+ self.v = v
37014
37102
  self.postEntityRemoveSlot = function(____, entity)
37015
37103
  local slot = entity
37016
37104
  if self.roomHistory:isLeavingRoom() then
@@ -37024,7 +37112,7 @@ function SlotDestroyedDetection.prototype.____constructor(self, postSlotDestroye
37024
37112
  end
37025
37113
  self.postSlotUpdate = function(____, slot)
37026
37114
  local ptrHash = GetPtrHash(slot)
37027
- local alreadyDestroyed = self.v.room.destroyedSlotSet:has(ptrHash)
37115
+ local alreadyDestroyed = v.room.destroyedSlotSet:has(ptrHash)
37028
37116
  if alreadyDestroyed then
37029
37117
  return
37030
37118
  end
@@ -37048,7 +37136,7 @@ end
37048
37136
  function SlotDestroyedDetection.prototype.checkDestroyedFromCollisionClass(self, slot)
37049
37137
  if slot.GridCollisionClass == EntityGridCollisionClass.GROUND then
37050
37138
  local ptrHash = GetPtrHash(slot)
37051
- self.v.room.destroyedSlotSet:add(ptrHash)
37139
+ v.room.destroyedSlotSet:add(ptrHash)
37052
37140
  self.postSlotDestroyed:fire(slot, SlotDestructionType.NORMAL)
37053
37141
  end
37054
37142
  end
@@ -37056,10 +37144,10 @@ return ____exports
37056
37144
  end,
37057
37145
  ["src.classes.features.callbackLogic.SlotRenderDetection"] = function(...)
37058
37146
  local ____lualib = require("lualib_bundle")
37059
- local __TS__Class = ____lualib.__TS__Class
37060
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
37061
37147
  local __TS__New = ____lualib.__TS__New
37062
37148
  local Set = ____lualib.Set
37149
+ local __TS__Class = ____lualib.__TS__Class
37150
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
37063
37151
  local ____exports = {}
37064
37152
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
37065
37153
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -37069,22 +37157,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
37069
37157
  local DefaultMap = ____DefaultMap.DefaultMap
37070
37158
  local ____Feature = require("src.classes.private.Feature")
37071
37159
  local Feature = ____Feature.Feature
37160
+ local v = {room = {
37161
+ slotAnimations = __TS__New(
37162
+ DefaultMap,
37163
+ function(____, slot)
37164
+ local sprite = slot:GetSprite()
37165
+ return sprite:GetAnimation()
37166
+ end
37167
+ ),
37168
+ brokenSlots = __TS__New(Set)
37169
+ }}
37072
37170
  ____exports.SlotRenderDetection = __TS__Class()
37073
37171
  local SlotRenderDetection = ____exports.SlotRenderDetection
37074
37172
  SlotRenderDetection.name = "SlotRenderDetection"
37075
37173
  __TS__ClassExtends(SlotRenderDetection, Feature)
37076
37174
  function SlotRenderDetection.prototype.____constructor(self, postSlotRender, postSlotAnimationChanged)
37077
37175
  Feature.prototype.____constructor(self)
37078
- self.v = {room = {
37079
- slotAnimations = __TS__New(
37080
- DefaultMap,
37081
- function(____, slot)
37082
- local sprite = slot:GetSprite()
37083
- return sprite:GetAnimation()
37084
- end
37085
- ),
37086
- brokenSlots = __TS__New(Set)
37087
- }}
37176
+ self.v = v
37088
37177
  self.postRender = function()
37089
37178
  for ____, slot in ipairs(getSlots(nil)) do
37090
37179
  self.postSlotRender:fire(slot)
@@ -37099,8 +37188,8 @@ function SlotRenderDetection.prototype.checkSlotAnimationChanged(self, slot)
37099
37188
  local sprite = slot:GetSprite()
37100
37189
  local currentAnimation = sprite:GetAnimation()
37101
37190
  local ptrHash = GetPtrHash(slot)
37102
- local previousAnimation = self.v.room.slotAnimations:getAndSetDefault(ptrHash, slot)
37103
- self.v.room.slotAnimations:set(ptrHash, currentAnimation)
37191
+ local previousAnimation = v.room.slotAnimations:getAndSetDefault(ptrHash, slot)
37192
+ v.room.slotAnimations:set(ptrHash, currentAnimation)
37104
37193
  if currentAnimation ~= previousAnimation then
37105
37194
  self.postSlotAnimationChanged:fire(slot, previousAnimation, currentAnimation)
37106
37195
  end
@@ -37109,10 +37198,10 @@ return ____exports
37109
37198
  end,
37110
37199
  ["src.classes.features.callbackLogic.SlotUpdateDetection"] = function(...)
37111
37200
  local ____lualib = require("lualib_bundle")
37112
- local __TS__Class = ____lualib.__TS__Class
37113
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
37114
37201
  local Set = ____lualib.Set
37115
37202
  local __TS__New = ____lualib.__TS__New
37203
+ local __TS__Class = ____lualib.__TS__Class
37204
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
37116
37205
  local ____exports = {}
37117
37206
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
37118
37207
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -37122,13 +37211,14 @@ local ____entitiesSpecific = require("src.functions.entitiesSpecific")
37122
37211
  local getSlots = ____entitiesSpecific.getSlots
37123
37212
  local ____Feature = require("src.classes.private.Feature")
37124
37213
  local Feature = ____Feature.Feature
37214
+ local v = {room = {initializedSlots = __TS__New(Set)}}
37125
37215
  ____exports.SlotUpdateDetection = __TS__Class()
37126
37216
  local SlotUpdateDetection = ____exports.SlotUpdateDetection
37127
37217
  SlotUpdateDetection.name = "SlotUpdateDetection"
37128
37218
  __TS__ClassExtends(SlotUpdateDetection, Feature)
37129
37219
  function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postSlotUpdate)
37130
37220
  Feature.prototype.____constructor(self)
37131
- self.v = {room = {initializedSlots = __TS__New(Set)}}
37221
+ self.v = v
37132
37222
  self.postUpdate = function()
37133
37223
  for ____, slot in ipairs(getSlots(nil)) do
37134
37224
  self:checkNewEntity(slot)
@@ -37147,8 +37237,8 @@ function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postS
37147
37237
  end
37148
37238
  function SlotUpdateDetection.prototype.checkNewEntity(self, slot)
37149
37239
  local ptrHash = GetPtrHash(slot)
37150
- if not self.v.room.initializedSlots:has(ptrHash) then
37151
- self.v.room.initializedSlots:add(ptrHash)
37240
+ if not v.room.initializedSlots:has(ptrHash) then
37241
+ v.room.initializedSlots:add(ptrHash)
37152
37242
  self.postSlotInit:fire(slot)
37153
37243
  end
37154
37244
  end
@@ -37968,10 +38058,10 @@ return ____exports
37968
38058
  end,
37969
38059
  ["src.classes.features.other.CollectibleItemPoolType"] = function(...)
37970
38060
  local ____lualib = require("lualib_bundle")
37971
- local __TS__Class = ____lualib.__TS__Class
37972
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
37973
38061
  local Map = ____lualib.Map
37974
38062
  local __TS__New = ____lualib.__TS__New
38063
+ local __TS__Class = ____lualib.__TS__Class
38064
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
37975
38065
  local __TS__Decorate = ____lualib.__TS__Decorate
37976
38066
  local ____exports = {}
37977
38067
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -37991,18 +38081,19 @@ local ____rooms = require("src.functions.rooms")
37991
38081
  local getRoomItemPoolType = ____rooms.getRoomItemPoolType
37992
38082
  local ____Feature = require("src.classes.private.Feature")
37993
38083
  local Feature = ____Feature.Feature
38084
+ local v = {run = {collectibleItemPoolTypeMap = __TS__New(Map)}}
37994
38085
  ____exports.CollectibleItemPoolType = __TS__Class()
37995
38086
  local CollectibleItemPoolType = ____exports.CollectibleItemPoolType
37996
38087
  CollectibleItemPoolType.name = "CollectibleItemPoolType"
37997
38088
  __TS__ClassExtends(CollectibleItemPoolType, Feature)
37998
38089
  function CollectibleItemPoolType.prototype.____constructor(self, pickupIndexCreation)
37999
38090
  Feature.prototype.____constructor(self)
38000
- self.v = {run = {collectibleItemPoolTypeMap = __TS__New(Map)}}
38091
+ self.v = v
38001
38092
  self.postPickupInitCollectible = function(____, collectible)
38002
38093
  local itemPool = game:GetItemPool()
38003
38094
  local pickupIndex = self.pickupIndexCreation:getPickupIndex(collectible)
38004
38095
  local lastItemPoolType = itemPool:GetLastPool()
38005
- self.v.run.collectibleItemPoolTypeMap:set(pickupIndex, lastItemPoolType)
38096
+ v.run.collectibleItemPoolTypeMap:set(pickupIndex, lastItemPoolType)
38006
38097
  end
38007
38098
  self.featuresUsed = {ISCFeature.PICKUP_INDEX_CREATION}
38008
38099
  self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
@@ -38014,7 +38105,7 @@ function CollectibleItemPoolType.prototype.getCollectibleItemPoolType(self, coll
38014
38105
  error("The \"getCollectibleItemPoolType\" function was given a non-collectible: " .. entityID)
38015
38106
  end
38016
38107
  local pickupIndex = self.pickupIndexCreation:getPickupIndex(collectible)
38017
- local itemPoolType = self.v.run.collectibleItemPoolTypeMap:get(pickupIndex)
38108
+ local itemPoolType = v.run.collectibleItemPoolTypeMap:get(pickupIndex)
38018
38109
  return itemPoolType == nil and getRoomItemPoolType(nil) or itemPoolType
38019
38110
  end
38020
38111
  __TS__Decorate({Exported}, CollectibleItemPoolType.prototype, "getCollectibleItemPoolType", true)
@@ -38219,10 +38310,10 @@ return ____exports
38219
38310
  end,
38220
38311
  ["src.classes.features.other.CustomItemPools"] = function(...)
38221
38312
  local ____lualib = require("lualib_bundle")
38222
- local __TS__Class = ____lualib.__TS__Class
38223
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
38224
38313
  local Map = ____lualib.Map
38225
38314
  local __TS__New = ____lualib.__TS__New
38315
+ local __TS__Class = ____lualib.__TS__Class
38316
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
38226
38317
  local __TS__Decorate = ____lualib.__TS__Decorate
38227
38318
  local ____exports = {}
38228
38319
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -38241,19 +38332,20 @@ local ____weighted = require("src.functions.weighted")
38241
38332
  local getRandomIndexFromWeightedArray = ____weighted.getRandomIndexFromWeightedArray
38242
38333
  local ____Feature = require("src.classes.private.Feature")
38243
38334
  local Feature = ____Feature.Feature
38335
+ local v = {run = {customItemPools = __TS__New(Map)}}
38244
38336
  ____exports.CustomItemPools = __TS__Class()
38245
38337
  local CustomItemPools = ____exports.CustomItemPools
38246
38338
  CustomItemPools.name = "CustomItemPools"
38247
38339
  __TS__ClassExtends(CustomItemPools, Feature)
38248
38340
  function CustomItemPools.prototype.____constructor(self)
38249
38341
  Feature.prototype.____constructor(self)
38250
- self.v = {run = {customItemPools = __TS__New(Map)}}
38342
+ self.v = v
38251
38343
  self.customItemPoolMap = __TS__New(Map)
38252
38344
  self.postGameStartedReordered = function(____, isContinued)
38253
38345
  if isContinued then
38254
38346
  return
38255
38347
  end
38256
- self.v.run.customItemPools = copyMap(nil, self.customItemPoolMap)
38348
+ v.run.customItemPools = copyMap(nil, self.customItemPoolMap)
38257
38349
  end
38258
38350
  self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED, self.postGameStartedReordered}}
38259
38351
  end
@@ -38273,7 +38365,7 @@ function CustomItemPools.prototype.getCustomItemPoolCollectible(self, itemPoolTy
38273
38365
  if defaultItem == nil then
38274
38366
  defaultItem = CollectibleType.NULL
38275
38367
  end
38276
- local customItemPool = self.v.run.customItemPools:get(itemPoolTypeCustom)
38368
+ local customItemPool = v.run.customItemPools:get(itemPoolTypeCustom)
38277
38369
  if customItemPool == nil then
38278
38370
  error("Failed to find the custom item pool of: " .. tostring(itemPoolTypeCustom))
38279
38371
  end
@@ -38390,17 +38482,6 @@ return ____exports
38390
38482
  ["src.customStageMetadata"] = function(...)
38391
38483
  return {}
38392
38484
  end,
38393
- ["src.enums.private.UIStreakAnimation"] = function(...)
38394
- local ____exports = {}
38395
- ____exports.UIStreakAnimation = {}
38396
- ____exports.UIStreakAnimation.NONE = 0
38397
- ____exports.UIStreakAnimation[____exports.UIStreakAnimation.NONE] = "NONE"
38398
- ____exports.UIStreakAnimation.TEXT = 1
38399
- ____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT] = "TEXT"
38400
- ____exports.UIStreakAnimation.TEXT_STAY = 2
38401
- ____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT_STAY] = "TEXT_STAY"
38402
- return ____exports
38403
- end,
38404
38485
  ["src.enums.RockAltType"] = function(...)
38405
38486
  local ____exports = {}
38406
38487
  ____exports.RockAltType = {}
@@ -39187,10 +39268,10 @@ return ____exports
39187
39268
  end,
39188
39269
  ["src.classes.features.other.DisableInputs"] = function(...)
39189
39270
  local ____lualib = require("lualib_bundle")
39190
- local __TS__Class = ____lualib.__TS__Class
39191
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39192
39271
  local Map = ____lualib.Map
39193
39272
  local __TS__New = ____lualib.__TS__New
39273
+ local __TS__Class = ____lualib.__TS__Class
39274
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39194
39275
  local __TS__Iterator = ____lualib.__TS__Iterator
39195
39276
  local __TS__Decorate = ____lualib.__TS__Decorate
39196
39277
  local Set = ____lualib.Set
@@ -39205,18 +39286,19 @@ local getMoveActions = ____input.getMoveActions
39205
39286
  local getShootActions = ____input.getShootActions
39206
39287
  local ____Feature = require("src.classes.private.Feature")
39207
39288
  local Feature = ____Feature.Feature
39289
+ local v = {run = {
39290
+ __ignoreGlowingHourGlass = true,
39291
+ disableInputs = __TS__New(Map),
39292
+ enableAllInputsWithBlacklistMap = __TS__New(Map),
39293
+ disableAllInputsWithWhitelistMap = __TS__New(Map)
39294
+ }}
39208
39295
  ____exports.DisableInputs = __TS__Class()
39209
39296
  local DisableInputs = ____exports.DisableInputs
39210
39297
  DisableInputs.name = "DisableInputs"
39211
39298
  __TS__ClassExtends(DisableInputs, Feature)
39212
39299
  function DisableInputs.prototype.____constructor(self)
39213
39300
  Feature.prototype.____constructor(self)
39214
- self.v = {run = {
39215
- __ignoreGlowingHourGlass = true,
39216
- disableInputs = __TS__New(Map),
39217
- enableAllInputsWithBlacklistMap = __TS__New(Map),
39218
- disableAllInputsWithWhitelistMap = __TS__New(Map)
39219
- }}
39301
+ self.v = v
39220
39302
  self.isActionPressed = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
39221
39303
  self.isActionTriggered = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
39222
39304
  self.getActionValue = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, false) end
@@ -39230,17 +39312,17 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
39230
39312
  ____booleanCallback_0 = 0
39231
39313
  end
39232
39314
  local disableValue = ____booleanCallback_0
39233
- for ____, blacklist in __TS__Iterator(self.v.run.disableInputs:values()) do
39315
+ for ____, blacklist in __TS__Iterator(v.run.disableInputs:values()) do
39234
39316
  if blacklist:has(buttonAction) then
39235
39317
  return disableValue
39236
39318
  end
39237
39319
  end
39238
- for ____, whitelist in __TS__Iterator(self.v.run.disableAllInputsWithWhitelistMap:values()) do
39320
+ for ____, whitelist in __TS__Iterator(v.run.disableAllInputsWithWhitelistMap:values()) do
39239
39321
  if not whitelist:has(buttonAction) then
39240
39322
  return disableValue
39241
39323
  end
39242
39324
  end
39243
- for ____, blacklist in __TS__Iterator(self.v.run.enableAllInputsWithBlacklistMap:values()) do
39325
+ for ____, blacklist in __TS__Iterator(v.run.enableAllInputsWithBlacklistMap:values()) do
39244
39326
  if blacklist:has(buttonAction) then
39245
39327
  return disableValue
39246
39328
  end
@@ -39248,28 +39330,28 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
39248
39330
  return nil
39249
39331
  end
39250
39332
  function DisableInputs.prototype.enableAllInputs(self, key)
39251
- self.v.run.disableAllInputsWithWhitelistMap:delete(key)
39252
- self.v.run.enableAllInputsWithBlacklistMap:delete(key)
39333
+ v.run.disableAllInputsWithWhitelistMap:delete(key)
39334
+ v.run.enableAllInputsWithBlacklistMap:delete(key)
39253
39335
  end
39254
39336
  function DisableInputs.prototype.disableInputs(self, key, ...)
39255
39337
  local buttonActions = {...}
39256
39338
  local buttonActionsSet = __TS__New(Set, buttonActions)
39257
- self.v.run.disableInputs:set(key, buttonActionsSet)
39339
+ v.run.disableInputs:set(key, buttonActionsSet)
39258
39340
  end
39259
39341
  function DisableInputs.prototype.disableAllInputs(self, key)
39260
- self.v.run.disableAllInputsWithWhitelistMap:set(
39342
+ v.run.disableAllInputsWithWhitelistMap:set(
39261
39343
  key,
39262
39344
  __TS__New(Set)
39263
39345
  )
39264
- self.v.run.enableAllInputsWithBlacklistMap:delete(key)
39346
+ v.run.enableAllInputsWithBlacklistMap:delete(key)
39265
39347
  end
39266
39348
  function DisableInputs.prototype.enableAllInputsExceptFor(self, key, blacklist)
39267
- self.v.run.disableAllInputsWithWhitelistMap:delete(key)
39268
- self.v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
39349
+ v.run.disableAllInputsWithWhitelistMap:delete(key)
39350
+ v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
39269
39351
  end
39270
39352
  function DisableInputs.prototype.disableAllInputsExceptFor(self, key, whitelist)
39271
- self.v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
39272
- self.v.run.enableAllInputsWithBlacklistMap:delete(key)
39353
+ v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
39354
+ v.run.enableAllInputsWithBlacklistMap:delete(key)
39273
39355
  end
39274
39356
  function DisableInputs.prototype.disableMovementInputs(self, key)
39275
39357
  local moveActions = getMoveActions(nil)
@@ -39290,10 +39372,10 @@ return ____exports
39290
39372
  end,
39291
39373
  ["src.classes.features.other.PonyDetection"] = function(...)
39292
39374
  local ____lualib = require("lualib_bundle")
39293
- local __TS__Class = ____lualib.__TS__Class
39294
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39295
39375
  local Set = ____lualib.Set
39296
39376
  local __TS__New = ____lualib.__TS__New
39377
+ local __TS__Class = ____lualib.__TS__Class
39378
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39297
39379
  local __TS__Decorate = ____lualib.__TS__Decorate
39298
39380
  local __TS__ArraySome = ____lualib.__TS__ArraySome
39299
39381
  local ____exports = {}
@@ -39315,18 +39397,19 @@ local getPlayers = ____playerIndex.getPlayers
39315
39397
  local ____Feature = require("src.classes.private.Feature")
39316
39398
  local Feature = ____Feature.Feature
39317
39399
  local FLAGS_WHEN_PONY_IS_ACTIVE = {EntityFlag.NO_KNOCKBACK, EntityFlag.NO_PHYSICS_KNOCKBACK, EntityFlag.NO_DAMAGE_BLINK}
39400
+ local v = {run = {playersIsPonyActive = __TS__New(Set)}}
39318
39401
  ____exports.PonyDetection = __TS__Class()
39319
39402
  local PonyDetection = ____exports.PonyDetection
39320
39403
  PonyDetection.name = "PonyDetection"
39321
39404
  __TS__ClassExtends(PonyDetection, Feature)
39322
39405
  function PonyDetection.prototype.____constructor(self)
39323
39406
  Feature.prototype.____constructor(self)
39324
- self.v = {run = {playersIsPonyActive = __TS__New(Set)}}
39407
+ self.v = v
39325
39408
  self.postPEffectUpdateReordered = function(____, player)
39326
39409
  local effects = player:GetEffects()
39327
39410
  local entityFlags = player:GetEntityFlags()
39328
39411
  local hasPonyCollectibleEffect = effects:HasCollectibleEffect(CollectibleType.PONY) or effects:HasCollectibleEffect(CollectibleType.WHITE_PONY)
39329
- local isPonyActiveOnPreviousFrame = setHasPlayer(nil, self.v.run.playersIsPonyActive, player)
39412
+ local isPonyActiveOnPreviousFrame = setHasPlayer(nil, v.run.playersIsPonyActive, player)
39330
39413
  local hasPonyFlags = hasFlag(
39331
39414
  nil,
39332
39415
  entityFlags,
@@ -39334,15 +39417,15 @@ function PonyDetection.prototype.____constructor(self)
39334
39417
  )
39335
39418
  local isPonyActiveNow = hasPonyCollectibleEffect or isPonyActiveOnPreviousFrame and hasPonyFlags
39336
39419
  if isPonyActiveNow then
39337
- setAddPlayer(nil, self.v.run.playersIsPonyActive, player)
39420
+ setAddPlayer(nil, v.run.playersIsPonyActive, player)
39338
39421
  else
39339
- setDeletePlayer(nil, self.v.run.playersIsPonyActive, player)
39422
+ setDeletePlayer(nil, v.run.playersIsPonyActive, player)
39340
39423
  end
39341
39424
  end
39342
39425
  self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
39343
39426
  end
39344
39427
  function PonyDetection.prototype.isPlayerUsingPony(self, player)
39345
- return setHasPlayer(nil, self.v.run.playersIsPonyActive, player)
39428
+ return setHasPlayer(nil, v.run.playersIsPonyActive, player)
39346
39429
  end
39347
39430
  function PonyDetection.prototype.anyPlayerUsingPony(self)
39348
39431
  local players = getPlayers(nil)
@@ -39369,27 +39452,28 @@ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
39369
39452
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
39370
39453
  local ____Feature = require("src.classes.private.Feature")
39371
39454
  local Feature = ____Feature.Feature
39455
+ local v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
39372
39456
  ____exports.RoomClearFrame = __TS__Class()
39373
39457
  local RoomClearFrame = ____exports.RoomClearFrame
39374
39458
  RoomClearFrame.name = "RoomClearFrame"
39375
39459
  __TS__ClassExtends(RoomClearFrame, Feature)
39376
39460
  function RoomClearFrame.prototype.____constructor(self)
39377
39461
  Feature.prototype.____constructor(self)
39378
- self.v = {room = {roomClearGameFrame = nil, roomClearRoomFrame = nil}}
39462
+ self.v = v
39379
39463
  self.postRoomClearChangedTrue = function()
39380
39464
  local gameFrameCount = game:GetFrameCount()
39381
39465
  local room = game:GetRoom()
39382
39466
  local roomFrameCount = room:GetFrameCount()
39383
- self.v.room.roomClearGameFrame = gameFrameCount
39384
- self.v.room.roomClearRoomFrame = roomFrameCount
39467
+ v.room.roomClearGameFrame = gameFrameCount
39468
+ v.room.roomClearRoomFrame = roomFrameCount
39385
39469
  end
39386
39470
  self.customCallbacksUsed = {{ModCallbackCustom.POST_ROOM_CLEAR_CHANGED, self.postRoomClearChangedTrue}}
39387
39471
  end
39388
39472
  function RoomClearFrame.prototype.getRoomClearGameFrame(self)
39389
- return self.v.room.roomClearGameFrame
39473
+ return v.room.roomClearGameFrame
39390
39474
  end
39391
39475
  function RoomClearFrame.prototype.getRoomClearRoomFrame(self)
39392
- return self.v.room.roomClearGameFrame
39476
+ return v.room.roomClearGameFrame
39393
39477
  end
39394
39478
  __TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearGameFrame", true)
39395
39479
  __TS__Decorate({Exported}, RoomClearFrame.prototype, "getRoomClearRoomFrame", true)
@@ -39409,25 +39493,26 @@ local ____array = require("src.functions.array")
39409
39493
  local emptyArray = ____array.emptyArray
39410
39494
  local ____Feature = require("src.classes.private.Feature")
39411
39495
  local Feature = ____Feature.Feature
39496
+ local v = {run = {queuedFunctions = {}}}
39412
39497
  ____exports.RunNextRoom = __TS__Class()
39413
39498
  local RunNextRoom = ____exports.RunNextRoom
39414
39499
  RunNextRoom.name = "RunNextRoom"
39415
39500
  __TS__ClassExtends(RunNextRoom, Feature)
39416
39501
  function RunNextRoom.prototype.____constructor(self)
39417
39502
  Feature.prototype.____constructor(self)
39418
- self.v = {run = {queuedFunctions = {}}}
39503
+ self.v = v
39419
39504
  self.vConditionalFunc = function() return false end
39420
39505
  self.postNewRoomReordered = function()
39421
- for ____, func in ipairs(self.v.run.queuedFunctions) do
39506
+ for ____, func in ipairs(v.run.queuedFunctions) do
39422
39507
  func(nil)
39423
39508
  end
39424
- emptyArray(nil, self.v.run.queuedFunctions)
39509
+ emptyArray(nil, v.run.queuedFunctions)
39425
39510
  end
39426
39511
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
39427
39512
  end
39428
39513
  function RunNextRoom.prototype.runNextRoom(self, func)
39429
- local ____self_v_run_queuedFunctions_0 = self.v.run.queuedFunctions
39430
- ____self_v_run_queuedFunctions_0[#____self_v_run_queuedFunctions_0 + 1] = func
39514
+ local ____v_run_queuedFunctions_0 = v.run.queuedFunctions
39515
+ ____v_run_queuedFunctions_0[#____v_run_queuedFunctions_0 + 1] = func
39431
39516
  end
39432
39517
  __TS__Decorate({Exported}, RunNextRoom.prototype, "runNextRoom", true)
39433
39518
  return ____exports
@@ -39585,19 +39670,20 @@ local ____types = require("src.functions.types")
39585
39670
  local asNumber = ____types.asNumber
39586
39671
  local ____Feature = require("src.classes.private.Feature")
39587
39672
  local Feature = ____Feature.Feature
39673
+ local v = {run = {stageHistory = {}}}
39588
39674
  ____exports.StageHistory = __TS__Class()
39589
39675
  local StageHistory = ____exports.StageHistory
39590
39676
  StageHistory.name = "StageHistory"
39591
39677
  __TS__ClassExtends(StageHistory, Feature)
39592
39678
  function StageHistory.prototype.____constructor(self)
39593
39679
  Feature.prototype.____constructor(self)
39594
- self.v = {run = {stageHistory = {}}}
39680
+ self.v = v
39595
39681
  self.postNewLevelReordered = function()
39596
39682
  local level = game:GetLevel()
39597
39683
  local stage = level:GetStage()
39598
39684
  local stageType = level:GetStageType()
39599
- local ____self_v_run_stageHistory_0 = self.v.run.stageHistory
39600
- ____self_v_run_stageHistory_0[#____self_v_run_stageHistory_0 + 1] = {stage, stageType}
39685
+ local ____v_run_stageHistory_0 = v.run.stageHistory
39686
+ ____v_run_stageHistory_0[#____v_run_stageHistory_0 + 1] = {stage, stageType}
39601
39687
  end
39602
39688
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_LEVEL_REORDERED, self.postNewLevelReordered}}
39603
39689
  end
@@ -39730,12 +39816,12 @@ function StageHistory.prototype.getNextStageWithHistory(self)
39730
39816
  return asNumber(nil, stage) - 1
39731
39817
  end
39732
39818
  function StageHistory.prototype.getStageHistory(self)
39733
- return self.v.run.stageHistory
39819
+ return v.run.stageHistory
39734
39820
  end
39735
39821
  function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
39736
39822
  if stageType == nil then
39737
39823
  return __TS__ArraySome(
39738
- self.v.run.stageHistory,
39824
+ v.run.stageHistory,
39739
39825
  function(____, ____bindingPattern0)
39740
39826
  local previousStage
39741
39827
  previousStage = ____bindingPattern0[1]
@@ -39744,7 +39830,7 @@ function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
39744
39830
  )
39745
39831
  end
39746
39832
  return __TS__ArraySome(
39747
- self.v.run.stageHistory,
39833
+ v.run.stageHistory,
39748
39834
  function(____, ____bindingPattern0)
39749
39835
  local previousStageType
39750
39836
  local previousStage
@@ -39763,9 +39849,9 @@ return ____exports
39763
39849
  ["src.classes.features.other.CustomTrapdoors"] = function(...)
39764
39850
  local ____lualib = require("lualib_bundle")
39765
39851
  local __TS__New = ____lualib.__TS__New
39852
+ local Map = ____lualib.Map
39766
39853
  local __TS__Class = ____lualib.__TS__Class
39767
39854
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
39768
- local Map = ____lualib.Map
39769
39855
  local Set = ____lualib.Set
39770
39856
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
39771
39857
  local __TS__Decorate = ____lualib.__TS__Decorate
@@ -39884,6 +39970,13 @@ ANIMATIONS_THAT_PREVENT_STAGE_TRAVEL = __TS__New(ReadonlySet, {"Death", "Happy",
39884
39970
  local PIXELATION_TO_BLACK_FRAMES = 60
39885
39971
  local OTHER_PLAYER_TRAPDOOR_JUMP_DELAY_GAME_FRAMES = 6
39886
39972
  local OTHER_PLAYER_TRAPDOOR_JUMP_DURATION_GAME_FRAMES = 5
39973
+ local v = {
39974
+ run = {state = StageTravelState.NONE, stateRenderFrame = nil, customTrapdoorActivated = nil},
39975
+ level = {trapdoors = __TS__New(
39976
+ DefaultMap,
39977
+ function() return __TS__New(Map) end
39978
+ )}
39979
+ }
39887
39980
  ____exports.CustomTrapdoors = __TS__Class()
39888
39981
  local CustomTrapdoors = ____exports.CustomTrapdoors
39889
39982
  CustomTrapdoors.name = "CustomTrapdoors"
@@ -39891,13 +39984,7 @@ __TS__ClassExtends(CustomTrapdoors, Feature)
39891
39984
  function CustomTrapdoors.prototype.____constructor(self, customGridEntities, disableInputs, ponyDetection, roomClearFrame, runInNFrames, runNextRoom, stageHistory)
39892
39985
  Feature.prototype.____constructor(self)
39893
39986
  self.destinationFuncMap = __TS__New(Map)
39894
- self.v = {
39895
- run = {state = StageTravelState.NONE, stateRenderFrame = nil, customTrapdoorActivated = nil},
39896
- level = {trapdoors = __TS__New(
39897
- DefaultMap,
39898
- function() return __TS__New(Map) end
39899
- )}
39900
- }
39987
+ self.v = v
39901
39988
  self.blackSprite = Sprite()
39902
39989
  self.postRender = function()
39903
39990
  self:checkAllPlayersJumpComplete()
@@ -39909,7 +39996,7 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
39909
39996
  self.postGridEntityCustomUpdateTrapdoor = function(____, gridEntity)
39910
39997
  local roomListIndex = getRoomListIndex(nil)
39911
39998
  local gridIndex = gridEntity:GetGridIndex()
39912
- local roomTrapdoorMap = self.v.level.trapdoors:getAndSetDefault(roomListIndex)
39999
+ local roomTrapdoorMap = v.level.trapdoors:getAndSetDefault(roomListIndex)
39913
40000
  local trapdoorDescription = roomTrapdoorMap:get(gridIndex)
39914
40001
  if trapdoorDescription == nil then
39915
40002
  return
@@ -39940,7 +40027,7 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
39940
40027
  self.stageHistory = stageHistory
39941
40028
  end
39942
40029
  function CustomTrapdoors.prototype.checkAllPlayersJumpComplete(self)
39943
- if self.v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
40030
+ if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
39944
40031
  return
39945
40032
  end
39946
40033
  if anyPlayerPlayingExtraAnimation(nil) then
@@ -39948,37 +40035,37 @@ function CustomTrapdoors.prototype.checkAllPlayersJumpComplete(self)
39948
40035
  end
39949
40036
  local renderFrameCount = Isaac.GetFrameCount()
39950
40037
  local roomGridIndex = getRoomGridIndex(nil)
39951
- self.v.run.state = StageTravelState.PIXELATION_TO_BLACK
39952
- self.v.run.stateRenderFrame = renderFrameCount
40038
+ v.run.state = StageTravelState.PIXELATION_TO_BLACK
40039
+ v.run.stateRenderFrame = renderFrameCount
39953
40040
  self:logStateChanged()
39954
40041
  teleport(nil, roomGridIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
39955
40042
  end
39956
40043
  function CustomTrapdoors.prototype.checkPixelationToBlackComplete(self)
39957
- if self.v.run.state ~= StageTravelState.PIXELATION_TO_BLACK or self.v.run.stateRenderFrame == nil then
40044
+ if v.run.state ~= StageTravelState.PIXELATION_TO_BLACK or v.run.stateRenderFrame == nil then
39958
40045
  return
39959
40046
  end
39960
40047
  local hud = game:GetHUD()
39961
40048
  local renderFrameCount = Isaac.GetFrameCount()
39962
- local renderFrameScreenBlack = self.v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
40049
+ local renderFrameScreenBlack = v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
39963
40050
  if renderFrameCount < renderFrameScreenBlack then
39964
40051
  return
39965
40052
  end
39966
- self.v.run.state = StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END
40053
+ v.run.state = StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END
39967
40054
  self:logStateChanged()
39968
40055
  hud:SetVisible(false)
39969
40056
  self.runInNFrames:runNextGameFrame(function()
39970
40057
  local level = game:GetLevel()
39971
40058
  local startingRoomIndex = level:GetStartingRoomIndex()
39972
40059
  local futureRenderFrameCount = Isaac.GetFrameCount()
39973
- self.v.run.state = StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY
39974
- self.v.run.stateRenderFrame = futureRenderFrameCount
40060
+ v.run.state = StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY
40061
+ v.run.stateRenderFrame = futureRenderFrameCount
39975
40062
  self:goToCustomTrapdoorDestination()
39976
40063
  teleport(nil, startingRoomIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
39977
40064
  end)
39978
40065
  end
39979
40066
  function CustomTrapdoors.prototype.goToCustomTrapdoorDestination(self)
39980
- if self.v.run.customTrapdoorActivated == nil then
39981
- self.v.run.customTrapdoorActivated = {
40067
+ if v.run.customTrapdoorActivated == nil then
40068
+ v.run.customTrapdoorActivated = {
39982
40069
  destinationName = nil,
39983
40070
  destinationStage = LevelStage.BASEMENT_1,
39984
40071
  destinationStageType = StageType.ORIGINAL,
@@ -39986,8 +40073,8 @@ function CustomTrapdoors.prototype.goToCustomTrapdoorDestination(self)
39986
40073
  firstSpawn = true
39987
40074
  }
39988
40075
  end
39989
- local destinationFunc = self:getDestinationFunc(self.v.run.customTrapdoorActivated)
39990
- destinationFunc(nil, self.v.run.customTrapdoorActivated.destinationName, self.v.run.customTrapdoorActivated.destinationStage, self.v.run.customTrapdoorActivated.destinationStageType)
40076
+ local destinationFunc = self:getDestinationFunc(v.run.customTrapdoorActivated)
40077
+ destinationFunc(nil, v.run.customTrapdoorActivated.destinationName, v.run.customTrapdoorActivated.destinationStage, v.run.customTrapdoorActivated.destinationStageType)
39991
40078
  end
39992
40079
  function CustomTrapdoors.prototype.getDestinationFunc(self, customTrapdoorDescription)
39993
40080
  if customTrapdoorDescription.destinationName == nil then
@@ -40000,20 +40087,20 @@ function CustomTrapdoors.prototype.getDestinationFunc(self, customTrapdoorDescri
40000
40087
  return destinationFunc
40001
40088
  end
40002
40089
  function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
40003
- if self.v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY or self.v.run.stateRenderFrame == nil then
40090
+ if v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY or v.run.stateRenderFrame == nil then
40004
40091
  return
40005
40092
  end
40006
40093
  local hud = game:GetHUD()
40007
40094
  local renderFrameCount = Isaac.GetFrameCount()
40008
- local renderFrameScreenBlack = self.v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
40095
+ local renderFrameScreenBlack = v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
40009
40096
  if renderFrameCount < renderFrameScreenBlack then
40010
40097
  return
40011
40098
  end
40012
- self.v.run.state = StageTravelState.PIXELATION_TO_ROOM
40099
+ v.run.state = StageTravelState.PIXELATION_TO_ROOM
40013
40100
  self:logStateChanged()
40014
40101
  hud:SetVisible(true)
40015
40102
  self.runNextRoom:runNextRoom(function()
40016
- self.v.run.state = StageTravelState.PLAYERS_LAYING_DOWN
40103
+ v.run.state = StageTravelState.PLAYERS_LAYING_DOWN
40017
40104
  self:logStateChanged()
40018
40105
  movePlayersToCenter(nil)
40019
40106
  for ____, player in ipairs(getAllPlayers(nil)) do
@@ -40029,13 +40116,13 @@ function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
40029
40116
  end)
40030
40117
  end
40031
40118
  function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
40032
- if self.v.run.state ~= StageTravelState.PLAYERS_LAYING_DOWN then
40119
+ if v.run.state ~= StageTravelState.PLAYERS_LAYING_DOWN then
40033
40120
  return
40034
40121
  end
40035
40122
  if anyPlayerPlayingExtraAnimation(nil) then
40036
40123
  return
40037
40124
  end
40038
- self.v.run.state = StageTravelState.NONE
40125
+ v.run.state = StageTravelState.NONE
40039
40126
  self:logStateChanged()
40040
40127
  local tstlClassName = getTSTLClassName(nil, self)
40041
40128
  if tstlClassName == nil then
@@ -40044,7 +40131,7 @@ function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
40044
40131
  self.disableInputs:enableAllInputs(tstlClassName)
40045
40132
  end
40046
40133
  function CustomTrapdoors.prototype.drawBlackSprite(self)
40047
- if self.v.run.state ~= StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END and self.v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY then
40134
+ if v.run.state ~= StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END and v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY then
40048
40135
  return
40049
40136
  end
40050
40137
  if not self.blackSprite:IsLoaded() then
@@ -40078,7 +40165,7 @@ function CustomTrapdoors.prototype.isPlayerCloseAfterBoss(self, position)
40078
40165
  return anyPlayerCloserThan(nil, position, TRAPDOOR_OPEN_DISTANCE_AFTER_BOSS)
40079
40166
  end
40080
40167
  function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEntity, trapdoorDescription)
40081
- if self.v.run.state ~= StageTravelState.NONE then
40168
+ if v.run.state ~= StageTravelState.NONE then
40082
40169
  return
40083
40170
  end
40084
40171
  if not trapdoorDescription.open then
@@ -40100,8 +40187,8 @@ function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEn
40100
40187
  end
40101
40188
  end
40102
40189
  function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity, trapdoorDescription, player)
40103
- self.v.run.state = StageTravelState.PLAYERS_JUMPING_DOWN
40104
- self.v.run.customTrapdoorActivated = trapdoorDescription
40190
+ v.run.state = StageTravelState.PLAYERS_JUMPING_DOWN
40191
+ v.run.customTrapdoorActivated = trapdoorDescription
40105
40192
  self:logStateChanged()
40106
40193
  local tstlClassName = getTSTLClassName(nil, self)
40107
40194
  if tstlClassName == nil then
@@ -40140,7 +40227,7 @@ function CustomTrapdoors.prototype.startDelayedJump(self, entityPtr, trapdoorPos
40140
40227
  self:adjustPlayerPositionToTrapdoor(entityPtr, player.Position, trapdoorPosition)
40141
40228
  end
40142
40229
  function CustomTrapdoors.prototype.adjustPlayerPositionToTrapdoor(self, entityPtr, startPos, endPos)
40143
- if self.v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
40230
+ if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
40144
40231
  return
40145
40232
  end
40146
40233
  local entity = entityPtr.Ref
@@ -40175,7 +40262,7 @@ function CustomTrapdoors.prototype.adjustPlayerPositionToTrapdoor(self, entityPt
40175
40262
  player.Velocity = VectorZero
40176
40263
  end
40177
40264
  function CustomTrapdoors.prototype.checkJumpComplete(self, player)
40178
- if self.v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
40265
+ if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
40179
40266
  return
40180
40267
  end
40181
40268
  local sprite = player:GetSprite()
@@ -40197,7 +40284,7 @@ function CustomTrapdoors.prototype.shouldTrapdoorSpawnOpen(self, gridEntity, fir
40197
40284
  end
40198
40285
  function CustomTrapdoors.prototype.logStateChanged(self)
40199
40286
  if DEBUG then
40200
- log(((("Custom trapdoors state changed: " .. StageTravelState[self.v.run.state]) .. " (") .. tostring(self.v.run.state)) .. ")")
40287
+ log(((("Custom trapdoors state changed: " .. StageTravelState[v.run.state]) .. " (") .. tostring(v.run.state)) .. ")")
40201
40288
  end
40202
40289
  end
40203
40290
  function CustomTrapdoors.prototype.registerCustomTrapdoorDestination(self, destinationName, destinationFunc)
@@ -40238,7 +40325,7 @@ function CustomTrapdoors.prototype.spawnCustomTrapdoor(self, gridIndexOrPosition
40238
40325
  ____temp_0 = spawnOpen
40239
40326
  end
40240
40327
  local open = ____temp_0
40241
- local roomTrapdoorMap = self.v.level.trapdoors:getAndSetDefault(roomListIndex)
40328
+ local roomTrapdoorMap = v.level.trapdoors:getAndSetDefault(roomListIndex)
40242
40329
  local customTrapdoorDescription = {
40243
40330
  destinationName = destinationName,
40244
40331
  destinationStage = destinationStage,
@@ -40528,6 +40615,17 @@ function ____exports.setShadows(self, customStage)
40528
40615
  sprite:SetFrame(animation, 0)
40529
40616
  sprite.Color = shadow.color == nil and FADED_BLACK or Color(shadow.color.r, shadow.color.g, shadow.color.b, shadow.color.a)
40530
40617
  end
40618
+ return ____exports
40619
+ end,
40620
+ ["src.enums.private.UIStreakAnimation"] = function(...)
40621
+ local ____exports = {}
40622
+ ____exports.UIStreakAnimation = {}
40623
+ ____exports.UIStreakAnimation.NONE = 0
40624
+ ____exports.UIStreakAnimation[____exports.UIStreakAnimation.NONE] = "NONE"
40625
+ ____exports.UIStreakAnimation.TEXT = 1
40626
+ ____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT] = "TEXT"
40627
+ ____exports.UIStreakAnimation.TEXT_STAY = 2
40628
+ ____exports.UIStreakAnimation[____exports.UIStreakAnimation.TEXT_STAY] = "TEXT_STAY"
40531
40629
  return ____exports
40532
40630
  end,
40533
40631
  ["src.functions.ui"] = function(...)
@@ -40640,6 +40738,24 @@ function ____exports.getVisibleHearts(self, player)
40640
40738
  end
40641
40739
  return visibleHearts
40642
40740
  end
40741
+ return ____exports
40742
+ end,
40743
+ ["src.classes.features.other.customStages.v"] = function(...)
40744
+ local ____lualib = require("lualib_bundle")
40745
+ local Map = ____lualib.Map
40746
+ local __TS__New = ____lualib.__TS__New
40747
+ local ____exports = {}
40748
+ local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
40749
+ local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
40750
+ ____exports.v = {run = {
40751
+ currentCustomStage = nil,
40752
+ firstFloor = true,
40753
+ showingBossVersusScreen = false,
40754
+ controllerIndexPushingMapRenderFrame = __TS__New(Map),
40755
+ topStreakTextStartedRenderFrame = nil,
40756
+ topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
40757
+ bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
40758
+ }}
40643
40759
  return ____exports
40644
40760
  end,
40645
40761
  ["src.classes.features.other.customStages.streakText"] = function(...)
@@ -40662,7 +40778,9 @@ local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
40662
40778
  local ____ui = require("src.functions.ui")
40663
40779
  local getScreenBottomCenterPos = ____ui.getScreenBottomCenterPos
40664
40780
  local getScreenTopCenterPos = ____ui.getScreenTopCenterPos
40665
- function checkEndTopStreakText(self, v)
40781
+ local ____v = require("src.classes.features.other.customStages.v")
40782
+ local v = ____v.v
40783
+ function checkEndTopStreakText(self)
40666
40784
  if v.run.topStreakTextStartedRenderFrame == nil or v.run.topStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
40667
40785
  return
40668
40786
  end
@@ -40673,7 +40791,7 @@ function checkEndTopStreakText(self, v)
40673
40791
  v.run.topStreakText.frame = TEXT_OUT_FRAME - 2
40674
40792
  end
40675
40793
  end
40676
- function trackMapInputPressed(self, v)
40794
+ function trackMapInputPressed(self)
40677
40795
  for ____, controllerIndex in ipairs(CONTROLLER_INDEX_VALUES) do
40678
40796
  local gameFrameCount = game:GetFrameCount()
40679
40797
  local oldPushedMapFrame = v.run.controllerIndexPushingMapRenderFrame:get(controllerIndex)
@@ -40687,7 +40805,7 @@ function trackMapInputPressed(self, v)
40687
40805
  end
40688
40806
  end
40689
40807
  end
40690
- function checkStartBottomStreakText(self, v)
40808
+ function checkStartBottomStreakText(self)
40691
40809
  if v.run.bottomStreakText.animation ~= UIStreakAnimation.NONE then
40692
40810
  return
40693
40811
  end
@@ -40703,7 +40821,7 @@ function checkStartBottomStreakText(self, v)
40703
40821
  v.run.bottomStreakText.frame = 0
40704
40822
  end
40705
40823
  end
40706
- function checkEndBottomStreakText(self, v)
40824
+ function checkEndBottomStreakText(self)
40707
40825
  if v.run.bottomStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
40708
40826
  return
40709
40827
  end
@@ -40713,7 +40831,7 @@ function checkEndBottomStreakText(self, v)
40713
40831
  v.run.bottomStreakText.frame = TEXT_OUT_FRAME - 2
40714
40832
  end
40715
40833
  end
40716
- function renderStreakText(self, v, customStage, streakText, position)
40834
+ function renderStreakText(self, customStage, streakText, position)
40717
40835
  if streakText.animation == UIStreakAnimation.NONE then
40718
40836
  return
40719
40837
  end
@@ -40821,36 +40939,24 @@ TEXT_OUT_SCALES = {
40821
40939
  Vector(2.59, 0.38),
40822
40940
  Vector(3, 0.2)
40823
40941
  }
40824
- function ____exports.streakTextPostRender(self, v)
40825
- checkEndTopStreakText(nil, v)
40826
- trackMapInputPressed(nil, v)
40827
- checkStartBottomStreakText(nil, v)
40828
- checkEndBottomStreakText(nil, v)
40942
+ function ____exports.streakTextPostRender(self)
40943
+ checkEndTopStreakText(nil)
40944
+ trackMapInputPressed(nil)
40945
+ checkStartBottomStreakText(nil)
40946
+ checkEndBottomStreakText(nil)
40829
40947
  end
40830
- function ____exports.streakTextGetShaderParams(self, v, customStage, shaderName)
40948
+ function ____exports.streakTextGetShaderParams(self, customStage, shaderName)
40831
40949
  if shaderName ~= EMPTY_SHADER_NAME then
40832
40950
  return
40833
40951
  end
40834
40952
  local topCenterPos = getScreenTopCenterPos(nil)
40835
40953
  local topStreakPosition = topCenterPos + STREAK_SPRITE_TOP_OFFSET
40836
- renderStreakText(
40837
- nil,
40838
- v,
40839
- customStage,
40840
- v.run.topStreakText,
40841
- topStreakPosition
40842
- )
40954
+ renderStreakText(nil, customStage, v.run.topStreakText, topStreakPosition)
40843
40955
  local bottomCenterPos = getScreenBottomCenterPos(nil)
40844
40956
  local bottomStreakPosition = bottomCenterPos + STREAK_SPRITE_BOTTOM_OFFSET
40845
- renderStreakText(
40846
- nil,
40847
- v,
40848
- customStage,
40849
- v.run.bottomStreakText,
40850
- bottomStreakPosition
40851
- )
40957
+ renderStreakText(nil, customStage, v.run.bottomStreakText, bottomStreakPosition)
40852
40958
  end
40853
- function ____exports.topStreakTextStart(self, v)
40959
+ function ____exports.topStreakTextStart(self)
40854
40960
  local level = game:GetLevel()
40855
40961
  local renderFrameCount = Isaac.GetFrameCount()
40856
40962
  level:ShowName(false)
@@ -42244,10 +42350,10 @@ return ____exports
42244
42350
  end,
42245
42351
  ["src.classes.features.other.DisableAllSound"] = function(...)
42246
42352
  local ____lualib = require("lualib_bundle")
42247
- local __TS__Class = ____lualib.__TS__Class
42248
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
42249
42353
  local Set = ____lualib.Set
42250
42354
  local __TS__New = ____lualib.__TS__New
42355
+ local __TS__Class = ____lualib.__TS__Class
42356
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
42251
42357
  local __TS__Decorate = ____lualib.__TS__Decorate
42252
42358
  local ____exports = {}
42253
42359
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -42260,16 +42366,17 @@ local ____sound = require("src.functions.sound")
42260
42366
  local stopAllSoundEffects = ____sound.stopAllSoundEffects
42261
42367
  local ____Feature = require("src.classes.private.Feature")
42262
42368
  local Feature = ____Feature.Feature
42369
+ local v = {run = {disableSoundSet = __TS__New(Set)}}
42263
42370
  ____exports.DisableAllSound = __TS__Class()
42264
42371
  local DisableAllSound = ____exports.DisableAllSound
42265
42372
  DisableAllSound.name = "DisableAllSound"
42266
42373
  __TS__ClassExtends(DisableAllSound, Feature)
42267
42374
  function DisableAllSound.prototype.____constructor(self)
42268
42375
  Feature.prototype.____constructor(self)
42269
- self.v = {run = {disableSoundSet = __TS__New(Set)}}
42376
+ self.v = v
42270
42377
  self.musicWasEnabled = false
42271
42378
  self.postRender = function()
42272
- if self.v.run.disableSoundSet.size == 0 then
42379
+ if v.run.disableSoundSet.size == 0 then
42273
42380
  return
42274
42381
  end
42275
42382
  stopAllSoundEffects(nil)
@@ -42277,20 +42384,20 @@ function DisableAllSound.prototype.____constructor(self)
42277
42384
  self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
42278
42385
  end
42279
42386
  function DisableAllSound.prototype.enableAllSound(self, key)
42280
- if not self.v.run.disableSoundSet:has(key) then
42387
+ if not v.run.disableSoundSet:has(key) then
42281
42388
  return
42282
42389
  end
42283
- self.v.run.disableSoundSet:delete(key)
42284
- if self.v.run.disableSoundSet.size == 0 and self.musicWasEnabled then
42390
+ v.run.disableSoundSet:delete(key)
42391
+ if v.run.disableSoundSet.size == 0 and self.musicWasEnabled then
42285
42392
  musicManager:Enable()
42286
42393
  end
42287
42394
  stopAllSoundEffects(nil)
42288
42395
  end
42289
42396
  function DisableAllSound.prototype.disableAllSound(self, key)
42290
- if self.v.run.disableSoundSet.size == 0 then
42397
+ if v.run.disableSoundSet.size == 0 then
42291
42398
  self.musicWasEnabled = musicManager:IsEnabled()
42292
42399
  end
42293
- self.v.run.disableSoundSet:add(key)
42400
+ v.run.disableSoundSet:add(key)
42294
42401
  stopAllSoundEffects(nil)
42295
42402
  end
42296
42403
  __TS__Decorate({Exported}, DisableAllSound.prototype, "enableAllSound", true)
@@ -42299,10 +42406,10 @@ return ____exports
42299
42406
  end,
42300
42407
  ["src.classes.features.other.Pause"] = function(...)
42301
42408
  local ____lualib = require("lualib_bundle")
42302
- local __TS__Class = ____lualib.__TS__Class
42303
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
42304
42409
  local Map = ____lualib.Map
42305
42410
  local __TS__New = ____lualib.__TS__New
42411
+ local __TS__Class = ____lualib.__TS__Class
42412
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
42306
42413
  local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
42307
42414
  local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
42308
42415
  local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
@@ -42335,19 +42442,20 @@ local ____tstlClass = require("src.functions.tstlClass")
42335
42442
  local getTSTLClassName = ____tstlClass.getTSTLClassName
42336
42443
  local ____Feature = require("src.classes.private.Feature")
42337
42444
  local Feature = ____Feature.Feature
42445
+ local v = {run = {
42446
+ isPseudoPaused = false,
42447
+ shouldUnpause = false,
42448
+ initialDescriptions = __TS__New(Map)
42449
+ }}
42338
42450
  ____exports.Pause = __TS__Class()
42339
42451
  local Pause = ____exports.Pause
42340
42452
  Pause.name = "Pause"
42341
42453
  __TS__ClassExtends(Pause, Feature)
42342
42454
  function Pause.prototype.____constructor(self, disableInputs)
42343
42455
  Feature.prototype.____constructor(self)
42344
- self.v = {run = {
42345
- isPseudoPaused = false,
42346
- shouldUnpause = false,
42347
- initialDescriptions = __TS__New(Map)
42348
- }}
42456
+ self.v = v
42349
42457
  self.postUpdate = function()
42350
- if not self.v.run.isPseudoPaused then
42458
+ if not v.run.isPseudoPaused then
42351
42459
  return
42352
42460
  end
42353
42461
  local firstPlayer = Isaac.GetPlayer()
@@ -42358,10 +42466,10 @@ function Pause.prototype.____constructor(self, disableInputs)
42358
42466
  if buttonAction ~= ButtonAction.SHOOT_RIGHT then
42359
42467
  return
42360
42468
  end
42361
- if not self.v.run.shouldUnpause then
42469
+ if not v.run.shouldUnpause then
42362
42470
  return
42363
42471
  end
42364
- self.v.run.shouldUnpause = false
42472
+ v.run.shouldUnpause = false
42365
42473
  return 1
42366
42474
  end
42367
42475
  self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.INPUT_ACTION, self.inputActionGetActionValue, {InputHook.GET_ACTION_VALUE}}}
@@ -42377,7 +42485,7 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
42377
42485
  for ____, tearOrProjectile in ipairs(tearsAndProjectiles) do
42378
42486
  do
42379
42487
  local ptrHash = GetPtrHash(tearOrProjectile)
42380
- local initialDescription = self.v.run.initialDescriptions:get(ptrHash)
42488
+ local initialDescription = v.run.initialDescriptions:get(ptrHash)
42381
42489
  if initialDescription == nil then
42382
42490
  goto __continue9
42383
42491
  end
@@ -42396,15 +42504,15 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
42396
42504
  end
42397
42505
  end
42398
42506
  function Pause.prototype.isPaused(self)
42399
- return self.v.run.isPseudoPaused
42507
+ return v.run.isPseudoPaused
42400
42508
  end
42401
42509
  function Pause.prototype.pause(self)
42402
- if self.v.run.isPseudoPaused then
42510
+ if v.run.isPseudoPaused then
42403
42511
  logError("Failed to pseudo-pause the game, since it was already pseudo-paused.")
42404
42512
  return
42405
42513
  end
42406
- self.v.run.isPseudoPaused = true
42407
- self.v.run.initialDescriptions:clear()
42514
+ v.run.isPseudoPaused = true
42515
+ v.run.initialDescriptions:clear()
42408
42516
  local ____array_1 = __TS__SparseArrayNew(table.unpack(getTears(nil)))
42409
42517
  __TS__SparseArrayPush(
42410
42518
  ____array_1,
@@ -42421,7 +42529,7 @@ function Pause.prototype.pause(self)
42421
42529
  fallingSpeed = tearOrProjectile.FallingSpeed,
42422
42530
  fallingAcceleration = isTear(nil, tearOrProjectile) and tearOrProjectile.FallingAcceleration or tearOrProjectile.FallingAccel
42423
42531
  }
42424
- self.v.run.initialDescriptions:set(ptrHash, initialDescription)
42532
+ v.run.initialDescriptions:set(ptrHash, initialDescription)
42425
42533
  end
42426
42534
  local firstPlayer = Isaac.GetPlayer()
42427
42535
  useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
@@ -42438,12 +42546,12 @@ function Pause.prototype.pause(self)
42438
42546
  self:stopTearsAndProjectilesFromMoving()
42439
42547
  end
42440
42548
  function Pause.prototype.unpause(self)
42441
- if not self.v.run.isPseudoPaused then
42549
+ if not v.run.isPseudoPaused then
42442
42550
  logError("Failed to pseudo-unpause the game, since it was not already pseudo-paused.")
42443
42551
  return
42444
42552
  end
42445
- self.v.run.isPseudoPaused = false
42446
- self.v.run.shouldUnpause = true
42553
+ v.run.isPseudoPaused = false
42554
+ v.run.shouldUnpause = true
42447
42555
  local tstlClassName = getTSTLClassName(nil, self)
42448
42556
  if tstlClassName == nil then
42449
42557
  error("Failed to find get the class name for the pause feature.")
@@ -42506,6 +42614,8 @@ local CUSTOM_STAGE_FEATURE_NAME = ____constants.CUSTOM_STAGE_FEATURE_NAME
42506
42614
  local DEFAULT_BASE_STAGE = ____constants.DEFAULT_BASE_STAGE
42507
42615
  local DEFAULT_BASE_STAGE_TYPE = ____constants.DEFAULT_BASE_STAGE_TYPE
42508
42616
  local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____constants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
42617
+ local ____v = require("src.classes.features.other.customStages.v")
42618
+ local v = ____v.v
42509
42619
  function willVanillaVersusScreenPlay(self)
42510
42620
  local bosses = getBosses(nil)
42511
42621
  return __TS__ArraySome(
@@ -42608,7 +42718,7 @@ local VANILLA_VERSUS_PLAYBACK_SPEED = 0.5
42608
42718
  local versusScreenSprite = Sprite()
42609
42719
  local versusScreenBackgroundSprite = Sprite()
42610
42720
  local versusScreenDirtSpotSprite = Sprite()
42611
- function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllSound, pause, runInNFrames)
42721
+ function ____exports.playVersusScreenAnimation(self, customStage, disableAllSound, pause, runInNFrames)
42612
42722
  local room = game:GetRoom()
42613
42723
  local roomType = room:GetType()
42614
42724
  local roomCleared = room:IsClear()
@@ -42685,7 +42795,7 @@ function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllS
42685
42795
  sprite.PlaybackSpeed = VANILLA_VERSUS_PLAYBACK_SPEED
42686
42796
  end
42687
42797
  end
42688
- local function finishVersusScreenAnimation(self, v, pause, disableAllSound)
42798
+ local function finishVersusScreenAnimation(self, pause, disableAllSound)
42689
42799
  local hud = game:GetHUD()
42690
42800
  v.run.showingBossVersusScreen = false
42691
42801
  pause:unpause()
@@ -42693,12 +42803,12 @@ local function finishVersusScreenAnimation(self, v, pause, disableAllSound)
42693
42803
  disableAllSound:enableAllSound(CUSTOM_STAGE_FEATURE_NAME)
42694
42804
  sfxManager:Play(SoundEffect.CASTLE_PORTCULLIS)
42695
42805
  end
42696
- function ____exports.versusScreenPostRender(self, v, pause, disableAllSound)
42806
+ function ____exports.versusScreenPostRender(self, pause, disableAllSound)
42697
42807
  if not v.run.showingBossVersusScreen then
42698
42808
  return
42699
42809
  end
42700
42810
  if versusScreenSprite:IsFinished(VERSUS_SCREEN_ANIMATION_NAME) then
42701
- finishVersusScreenAnimation(nil, v, pause, disableAllSound)
42811
+ finishVersusScreenAnimation(nil, pause, disableAllSound)
42702
42812
  return
42703
42813
  end
42704
42814
  local position = getScreenCenterPos(nil)
@@ -42743,8 +42853,6 @@ local ____ISCFeature = require("src.enums.ISCFeature")
42743
42853
  local ISCFeature = ____ISCFeature.ISCFeature
42744
42854
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
42745
42855
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
42746
- local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
42747
- local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
42748
42856
  local ____array = require("src.functions.array")
42749
42857
  local isArray = ____array.isArray
42750
42858
  local ____doors = require("src.functions.doors")
@@ -42792,6 +42900,8 @@ local topStreakTextStart = ____streakText.topStreakTextStart
42792
42900
  local ____utils = require("src.classes.features.other.customStages.utils")
42793
42901
  local getRandomBossRoomFromPool = ____utils.getRandomBossRoomFromPool
42794
42902
  local getRandomCustomStageRoom = ____utils.getRandomCustomStageRoom
42903
+ local ____v = require("src.classes.features.other.customStages.v")
42904
+ local v = ____v.v
42795
42905
  local ____versusScreen = require("src.classes.features.other.customStages.versusScreen")
42796
42906
  local playVersusScreenAnimation = ____versusScreen.playVersusScreenAnimation
42797
42907
  local versusScreenPostRender = ____versusScreen.versusScreenPostRender
@@ -42827,15 +42937,7 @@ CustomStages.name = "CustomStages"
42827
42937
  __TS__ClassExtends(CustomStages, Feature)
42828
42938
  function CustomStages.prototype.____constructor(self, customGridEntities, customTrapdoors, disableAllSound, gameReorderedCallbacks, pause, runInNFrames)
42829
42939
  Feature.prototype.____constructor(self)
42830
- self.v = {run = {
42831
- currentCustomStage = nil,
42832
- firstFloor = true,
42833
- showingBossVersusScreen = false,
42834
- controllerIndexPushingMapRenderFrame = __TS__New(Map),
42835
- topStreakTextStartedRenderFrame = nil,
42836
- topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
42837
- bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
42838
- }}
42940
+ self.v = v
42839
42941
  self.customStagesMap = __TS__New(Map)
42840
42942
  self.customStageCachedRoomData = __TS__New(Map)
42841
42943
  self.goToCustomStage = function(____, destinationName, destinationStage, _destinationStageType)
@@ -42846,15 +42948,15 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
42846
42948
  self:setCustomStage(destinationName, firstFloor)
42847
42949
  end
42848
42950
  self.postRender = function()
42849
- local customStage = self.v.run.currentCustomStage
42951
+ local customStage = v.run.currentCustomStage
42850
42952
  if customStage == nil then
42851
42953
  return
42852
42954
  end
42853
- streakTextPostRender(nil, self.v)
42854
- versusScreenPostRender(nil, self.v, self.pause, self.disableAllSound)
42955
+ streakTextPostRender(nil)
42956
+ versusScreenPostRender(nil, self.pause, self.disableAllSound)
42855
42957
  end
42856
42958
  self.postCurseEval = function(____, curses)
42857
- local customStage = self.v.run.currentCustomStage
42959
+ local customStage = v.run.currentCustomStage
42858
42960
  if customStage == nil then
42859
42961
  return nil
42860
42962
  end
@@ -42864,15 +42966,15 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
42864
42966
  return nil
42865
42967
  end
42866
42968
  self.getShaderParams = function(____, shaderName)
42867
- local customStage = self.v.run.currentCustomStage
42969
+ local customStage = v.run.currentCustomStage
42868
42970
  if customStage == nil then
42869
42971
  return
42870
42972
  end
42871
- streakTextGetShaderParams(nil, self.v, customStage, shaderName)
42973
+ streakTextGetShaderParams(nil, customStage, shaderName)
42872
42974
  return nil
42873
42975
  end
42874
42976
  self.postGridEntityBrokenRockAlt = function(____, gridEntity)
42875
- local customStage = self.v.run.currentCustomStage
42977
+ local customStage = v.run.currentCustomStage
42876
42978
  if customStage == nil then
42877
42979
  return
42878
42980
  end
@@ -42882,7 +42984,7 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
42882
42984
  removeUrnRewards(nil, gridEntity)
42883
42985
  end
42884
42986
  self.postGridEntityInit = function(____, gridEntity)
42885
- local customStage = self.v.run.currentCustomStage
42987
+ local customStage = v.run.currentCustomStage
42886
42988
  if customStage == nil then
42887
42989
  return
42888
42990
  end
@@ -42897,12 +42999,12 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
42897
42999
  nil,
42898
43000
  customStage,
42899
43001
  gridEntity,
42900
- self.v.run.firstFloor,
43002
+ v.run.firstFloor,
42901
43003
  self.customTrapdoors
42902
43004
  )
42903
43005
  end
42904
43006
  self.postNewRoomReordered = function()
42905
- local customStage = self.v.run.currentCustomStage
43007
+ local customStage = v.run.currentCustomStage
42906
43008
  if customStage == nil then
42907
43009
  return
42908
43010
  end
@@ -42910,7 +43012,6 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
42910
43012
  setShadows(nil, customStage)
42911
43013
  playVersusScreenAnimation(
42912
43014
  nil,
42913
- self.v,
42914
43015
  customStage,
42915
43016
  self.disableAllSound,
42916
43017
  self.pause,
@@ -43043,8 +43144,8 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
43043
43144
  local seeds = game:GetSeeds()
43044
43145
  local startSeed = seeds:GetStartSeed()
43045
43146
  local rng = newRNG(nil, startSeed)
43046
- self.v.run.currentCustomStage = customStage
43047
- self.v.run.firstFloor = firstFloor
43147
+ v.run.currentCustomStage = customStage
43148
+ v.run.firstFloor = firstFloor
43048
43149
  if stage == CUSTOM_FLOOR_STAGE then
43049
43150
  level:SetStage(LevelStage.BASEMENT_1, StageType.ORIGINAL)
43050
43151
  end
@@ -43063,7 +43164,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
43063
43164
  self.gameReorderedCallbacks:reorderedCallbacksSetStage(targetStage, targetStageType)
43064
43165
  if streakText then
43065
43166
  self.runInNFrames:runNextGameFrame(function()
43066
- topStreakTextStart(nil, self.v)
43167
+ topStreakTextStart(nil)
43067
43168
  end)
43068
43169
  end
43069
43170
  local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
@@ -43076,7 +43177,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
43076
43177
  )
43077
43178
  end
43078
43179
  function CustomStages.prototype.disableCustomStage(self)
43079
- self.v.run.currentCustomStage = nil
43180
+ v.run.currentCustomStage = nil
43080
43181
  end
43081
43182
  __TS__Decorate({Exported}, CustomStages.prototype, "setCustomStage", true)
43082
43183
  __TS__Decorate({Exported}, CustomStages.prototype, "disableCustomStage", true)
@@ -44550,9 +44651,9 @@ return ____exports
44550
44651
  end,
44551
44652
  ["src.classes.features.other.PreventGridEntityRespawn"] = function(...)
44552
44653
  local ____lualib = require("lualib_bundle")
44654
+ local __TS__New = ____lualib.__TS__New
44553
44655
  local __TS__Class = ____lualib.__TS__Class
44554
44656
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
44555
- local __TS__New = ____lualib.__TS__New
44556
44657
  local __TS__Decorate = ____lualib.__TS__Decorate
44557
44658
  local ____exports = {}
44558
44659
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -44583,25 +44684,26 @@ local ____DefaultMap = require("src.classes.DefaultMap")
44583
44684
  local DefaultMap = ____DefaultMap.DefaultMap
44584
44685
  local ____Feature = require("src.classes.private.Feature")
44585
44686
  local Feature = ____Feature.Feature
44687
+ local v = {
44688
+ level = {roomListIndexToDecorationGridIndexes = __TS__New(
44689
+ DefaultMap,
44690
+ function() return {} end
44691
+ )},
44692
+ room = {manuallyUsingShovel = false}
44693
+ }
44586
44694
  ____exports.PreventGridEntityRespawn = __TS__Class()
44587
44695
  local PreventGridEntityRespawn = ____exports.PreventGridEntityRespawn
44588
44696
  PreventGridEntityRespawn.name = "PreventGridEntityRespawn"
44589
44697
  __TS__ClassExtends(PreventGridEntityRespawn, Feature)
44590
44698
  function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
44591
44699
  Feature.prototype.____constructor(self)
44592
- self.v = {
44593
- level = {roomListIndexToDecorationGridIndexes = __TS__New(
44594
- DefaultMap,
44595
- function() return {} end
44596
- )},
44597
- room = {manuallyUsingShovel = false}
44598
- }
44700
+ self.v = v
44599
44701
  self.preUseItemWeNeedToGoDeeper = function(____, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
44600
- if self.v.room.manuallyUsingShovel then
44702
+ if v.room.manuallyUsingShovel then
44601
44703
  return nil
44602
44704
  end
44603
44705
  local roomListIndex = getRoomListIndex(nil)
44604
- if not self.v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
44706
+ if not v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
44605
44707
  return
44606
44708
  end
44607
44709
  local decorations = getGridEntities(nil, GridEntityType.DECORATION)
@@ -44618,10 +44720,10 @@ function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
44618
44720
  if futureRoomListIndex ~= roomListIndex then
44619
44721
  return
44620
44722
  end
44621
- self.v.room.manuallyUsingShovel = true
44723
+ v.room.manuallyUsingShovel = true
44622
44724
  futurePlayer:UseActiveItem(CollectibleType.WE_NEED_TO_GO_DEEPER)
44623
- self.v.room.manuallyUsingShovel = false
44624
- local decorationGridIndexes = self.v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
44725
+ v.room.manuallyUsingShovel = false
44726
+ local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
44625
44727
  emptyArray(nil, decorationGridIndexes)
44626
44728
  self:preventGridEntityRespawn()
44627
44729
  end)
@@ -44638,7 +44740,7 @@ end
44638
44740
  function PreventGridEntityRespawn.prototype.setDecorationsInvisible(self)
44639
44741
  local room = game:GetRoom()
44640
44742
  local roomListIndex = getRoomListIndex(nil)
44641
- local decorationGridIndexes = self.v.level.roomListIndexToDecorationGridIndexes:get(roomListIndex)
44743
+ local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:get(roomListIndex)
44642
44744
  if decorationGridIndexes == nil then
44643
44745
  return
44644
44746
  end
@@ -44655,7 +44757,7 @@ end
44655
44757
  function PreventGridEntityRespawn.prototype.preventGridEntityRespawn(self)
44656
44758
  local room = game:GetRoom()
44657
44759
  local roomListIndex = getRoomListIndex(nil)
44658
- local decorationGridIndexes = self.v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
44760
+ local decorationGridIndexes = v.level.roomListIndexToDecorationGridIndexes:getAndSetDefault(roomListIndex)
44659
44761
  for ____, gridIndex in ipairs(getAllGridIndexes(nil)) do
44660
44762
  do
44661
44763
  local existingGridEntity = room:GetGridEntity(gridIndex)
@@ -44741,10 +44843,10 @@ return ____exports
44741
44843
  end,
44742
44844
  ["src.classes.features.other.PreventCollectibleRotation"] = function(...)
44743
44845
  local ____lualib = require("lualib_bundle")
44744
- local __TS__Class = ____lualib.__TS__Class
44745
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
44746
44846
  local Map = ____lualib.Map
44747
44847
  local __TS__New = ____lualib.__TS__New
44848
+ local __TS__Class = ____lualib.__TS__Class
44849
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
44748
44850
  local __TS__Decorate = ____lualib.__TS__Decorate
44749
44851
  local ____exports = {}
44750
44852
  local getMapIndex
@@ -44770,15 +44872,16 @@ function getMapIndex(self, collectible)
44770
44872
  local gridIndex = room:GetGridIndex(collectible.Position)
44771
44873
  return (tostring(gridIndex) .. ",") .. tostring(collectible.InitSeed)
44772
44874
  end
44875
+ local v = {room = {trackedCollectibles = __TS__New(Map)}}
44773
44876
  ____exports.PreventCollectibleRotation = __TS__Class()
44774
44877
  local PreventCollectibleRotation = ____exports.PreventCollectibleRotation
44775
44878
  PreventCollectibleRotation.name = "PreventCollectibleRotation"
44776
44879
  __TS__ClassExtends(PreventCollectibleRotation, Feature)
44777
44880
  function PreventCollectibleRotation.prototype.____constructor(self)
44778
44881
  Feature.prototype.____constructor(self)
44779
- self.v = {room = {trackedCollectibles = __TS__New(Map)}}
44882
+ self.v = v
44780
44883
  self.useCardSoulOfIsaac = function()
44781
- self.v.room.trackedCollectibles:clear()
44884
+ v.room.trackedCollectibles:clear()
44782
44885
  end
44783
44886
  self.postPickupUpdateCollectible = function(____, pickup)
44784
44887
  local collectible = pickup
@@ -44791,7 +44894,7 @@ function PreventCollectibleRotation.prototype.checkCollectibleRotated(self, coll
44791
44894
  return
44792
44895
  end
44793
44896
  local index = getMapIndex(nil, collectible)
44794
- local trackedCollectibleType = self.v.room.trackedCollectibles:get(index)
44897
+ local trackedCollectibleType = v.room.trackedCollectibles:get(index)
44795
44898
  if trackedCollectibleType ~= nil and collectible.SubType ~= trackedCollectibleType then
44796
44899
  setCollectibleSubType(nil, collectible, trackedCollectibleType)
44797
44900
  end
@@ -44802,7 +44905,7 @@ function PreventCollectibleRotation.prototype.preventCollectibleRotation(self, c
44802
44905
  error("The \"preventCollectibleRotate\" function was given a non-collectible: " .. entityID)
44803
44906
  end
44804
44907
  local index = getMapIndex(nil, collectible)
44805
- self.v.room.trackedCollectibles:set(index, collectibleType)
44908
+ v.room.trackedCollectibles:set(index, collectibleType)
44806
44909
  self:checkCollectibleRotated(collectible)
44807
44910
  end
44808
44911
  __TS__Decorate({Exported}, PreventCollectibleRotation.prototype, "preventCollectibleRotation", true)
@@ -48495,58 +48598,58 @@ function ExtraConsoleCommands.prototype.____constructor(self)
48495
48598
  self.v = v
48496
48599
  self.commandFunctionMap = __TS__New(Map)
48497
48600
  self.postUpdate = function()
48498
- if self.v.persistent.spamBloodRights then
48601
+ if v.persistent.spamBloodRights then
48499
48602
  local player = Isaac.GetPlayer()
48500
48603
  player:UseActiveItem(CollectibleType.BLOOD_RIGHTS)
48501
48604
  end
48502
48605
  end
48503
48606
  self.evaluateCacheDamage = function(____, player)
48504
- if self.v.persistent.damage then
48505
- player.Damage = self.v.persistent.damageAmount
48607
+ if v.persistent.damage then
48608
+ player.Damage = v.persistent.damageAmount
48506
48609
  end
48507
48610
  end
48508
48611
  self.evaluateCacheFireDelay = function(____, player)
48509
- if self.v.persistent.tears then
48510
- player.FireDelay = self.v.persistent.tearsAmount
48612
+ if v.persistent.tears then
48613
+ player.FireDelay = v.persistent.tearsAmount
48511
48614
  end
48512
48615
  end
48513
48616
  self.evaluateCacheSpeed = function(____, player)
48514
- if self.v.persistent.speed then
48515
- player.MoveSpeed = self.v.persistent.speedAmount
48617
+ if v.persistent.speed then
48618
+ player.MoveSpeed = v.persistent.speedAmount
48516
48619
  end
48517
48620
  end
48518
48621
  self.evaluateCacheFlying = function(____, player)
48519
- if self.v.persistent.flight then
48622
+ if v.persistent.flight then
48520
48623
  player.CanFly = true
48521
48624
  end
48522
48625
  end
48523
48626
  self.postCurseEval = function(____, curses)
48524
- if self.v.persistent.disableCurses then
48627
+ if v.persistent.disableCurses then
48525
48628
  return bitFlags(nil, LevelCurse.NONE)
48526
48629
  end
48527
48630
  local newCurses = curses
48528
- if self.v.persistent.darkness then
48631
+ if v.persistent.darkness then
48529
48632
  newCurses = addFlag(nil, newCurses, LevelCurse.DARKNESS)
48530
48633
  end
48531
- if self.v.persistent.labyrinth then
48634
+ if v.persistent.labyrinth then
48532
48635
  newCurses = addFlag(nil, newCurses, LevelCurse.LABYRINTH)
48533
48636
  end
48534
- if self.v.persistent.lost then
48637
+ if v.persistent.lost then
48535
48638
  newCurses = addFlag(nil, newCurses, LevelCurse.LOST)
48536
48639
  end
48537
- if self.v.persistent.unknown then
48640
+ if v.persistent.unknown then
48538
48641
  newCurses = addFlag(nil, newCurses, LevelCurse.UNKNOWN)
48539
48642
  end
48540
- if self.v.persistent.cursed then
48643
+ if v.persistent.cursed then
48541
48644
  newCurses = addFlag(nil, newCurses, LevelCurse.CURSED)
48542
48645
  end
48543
- if self.v.persistent.maze then
48646
+ if v.persistent.maze then
48544
48647
  newCurses = addFlag(nil, newCurses, LevelCurse.MAZE)
48545
48648
  end
48546
- if self.v.persistent.blind then
48649
+ if v.persistent.blind then
48547
48650
  newCurses = addFlag(nil, newCurses, LevelCurse.BLIND)
48548
48651
  end
48549
- if self.v.persistent.giant then
48652
+ if v.persistent.giant then
48550
48653
  newCurses = addFlag(nil, newCurses, LevelCurse.GIANT)
48551
48654
  end
48552
48655
  local ____temp_0
@@ -48567,12 +48670,12 @@ function ExtraConsoleCommands.prototype.____constructor(self)
48567
48670
  commandFunction(nil, params)
48568
48671
  end
48569
48672
  self.postFireTear = function(____, tear)
48570
- if self.v.persistent.chaosCardTears then
48673
+ if v.persistent.chaosCardTears then
48571
48674
  tear:ChangeVariant(TearVariant.CHAOS_CARD)
48572
48675
  end
48573
48676
  end
48574
48677
  self.entityTakeDmgPlayer = function(____, _player, _damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
48575
- if self.v.persistent.spamBloodRights then
48678
+ if v.persistent.spamBloodRights then
48576
48679
  return false
48577
48680
  end
48578
48681
  return nil
@@ -48778,13 +48881,14 @@ local ____playerIndex = require("src.functions.playerIndex")
48778
48881
  local getPlayerIndex = ____playerIndex.getPlayerIndex
48779
48882
  local ____Feature = require("src.classes.private.Feature")
48780
48883
  local Feature = ____Feature.Feature
48884
+ local v = {run = {buttonActionTuples = {}}}
48781
48885
  ____exports.PressInput = __TS__Class()
48782
48886
  local PressInput = ____exports.PressInput
48783
48887
  PressInput.name = "PressInput"
48784
48888
  __TS__ClassExtends(PressInput, Feature)
48785
48889
  function PressInput.prototype.____constructor(self)
48786
48890
  Feature.prototype.____constructor(self)
48787
- self.v = {run = {buttonActionTuples = {}}}
48891
+ self.v = v
48788
48892
  self.isActionTriggered = function(____, entity, _inputHook, buttonAction)
48789
48893
  if entity == nil then
48790
48894
  return nil
@@ -48795,12 +48899,12 @@ function PressInput.prototype.____constructor(self)
48795
48899
  end
48796
48900
  local playerIndex = getPlayerIndex(nil, player)
48797
48901
  do
48798
- local i = #self.v.run.buttonActionTuples - 1
48902
+ local i = #v.run.buttonActionTuples - 1
48799
48903
  while i >= 0 do
48800
- local tuple = self.v.run.buttonActionTuples[i + 1]
48904
+ local tuple = v.run.buttonActionTuples[i + 1]
48801
48905
  local tuplePlayerIndex, tupleButtonAction = table.unpack(tuple)
48802
48906
  if tuplePlayerIndex == playerIndex and tupleButtonAction == buttonAction then
48803
- __TS__ArraySplice(self.v.run.buttonActionTuples, i)
48907
+ __TS__ArraySplice(v.run.buttonActionTuples, i)
48804
48908
  return true
48805
48909
  end
48806
48910
  i = i - 1
@@ -48812,8 +48916,8 @@ function PressInput.prototype.____constructor(self)
48812
48916
  end
48813
48917
  function PressInput.prototype.pressInput(self, player, buttonAction)
48814
48918
  local playerIndex = getPlayerIndex(nil, player)
48815
- local ____self_v_run_buttonActionTuples_0 = self.v.run.buttonActionTuples
48816
- ____self_v_run_buttonActionTuples_0[#____self_v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
48919
+ local ____v_run_buttonActionTuples_0 = v.run.buttonActionTuples
48920
+ ____v_run_buttonActionTuples_0[#____v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
48817
48921
  end
48818
48922
  __TS__Decorate({Exported}, PressInput.prototype, "pressInput", true)
48819
48923
  return ____exports
@@ -49010,13 +49114,14 @@ local ____decorators = require("src.decorators")
49010
49114
  local Exported = ____decorators.Exported
49011
49115
  local ____Feature = require("src.classes.private.Feature")
49012
49116
  local Feature = ____Feature.Feature
49117
+ local v = {run = {familiarBlacklist = {}}}
49013
49118
  ____exports.NoSirenSteal = __TS__Class()
49014
49119
  local NoSirenSteal = ____exports.NoSirenSteal
49015
49120
  NoSirenSteal.name = "NoSirenSteal"
49016
49121
  __TS__ClassExtends(NoSirenSteal, Feature)
49017
49122
  function NoSirenSteal.prototype.____constructor(self)
49018
49123
  Feature.prototype.____constructor(self)
49019
- self.v = {run = {familiarBlacklist = {}}}
49124
+ self.v = v
49020
49125
  self.postNPCInitSirenHelper = function(____, npc)
49021
49126
  self:checkReturnFamiliarToPlayer(npc)
49022
49127
  end
@@ -49036,7 +49141,7 @@ function NoSirenSteal.prototype.checkReturnFamiliarToPlayer(self, npc)
49036
49141
  end
49037
49142
  end
49038
49143
  function NoSirenSteal.prototype.blacklistEntryExists(self, incomingFamiliarVariant, incomingFamiliarSubType)
49039
- for ____, familiarTuple in ipairs(self.v.run.familiarBlacklist) do
49144
+ for ____, familiarTuple in ipairs(v.run.familiarBlacklist) do
49040
49145
  local familiarVariant, familiarSubType = table.unpack(familiarTuple)
49041
49146
  if familiarVariant == incomingFamiliarVariant and familiarSubType == incomingFamiliarSubType then
49042
49147
  return true
@@ -49051,18 +49156,18 @@ function NoSirenSteal.prototype.setFamiliarNoSirenSteal(self, familiarVariant, f
49051
49156
  if self:blacklistEntryExists(familiarVariant, familiarSubType) then
49052
49157
  return
49053
49158
  end
49054
- local ____self_v_run_familiarBlacklist_0 = self.v.run.familiarBlacklist
49055
- ____self_v_run_familiarBlacklist_0[#____self_v_run_familiarBlacklist_0 + 1] = {familiarVariant, familiarSubType}
49159
+ local ____v_run_familiarBlacklist_0 = v.run.familiarBlacklist
49160
+ ____v_run_familiarBlacklist_0[#____v_run_familiarBlacklist_0 + 1] = {familiarVariant, familiarSubType}
49056
49161
  end
49057
49162
  __TS__Decorate({Exported}, NoSirenSteal.prototype, "setFamiliarNoSirenSteal", true)
49058
49163
  return ____exports
49059
49164
  end,
49060
49165
  ["src.classes.features.other.PersistentEntities"] = function(...)
49061
49166
  local ____lualib = require("lualib_bundle")
49062
- local __TS__Class = ____lualib.__TS__Class
49063
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49064
49167
  local Map = ____lualib.Map
49065
49168
  local __TS__New = ____lualib.__TS__New
49169
+ local __TS__Class = ____lualib.__TS__Class
49170
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49066
49171
  local __TS__Spread = ____lualib.__TS__Spread
49067
49172
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
49068
49173
  local __TS__Iterator = ____lualib.__TS__Iterator
@@ -49083,20 +49188,21 @@ local ____roomData = require("src.functions.roomData")
49083
49188
  local getRoomListIndex = ____roomData.getRoomListIndex
49084
49189
  local ____Feature = require("src.classes.private.Feature")
49085
49190
  local Feature = ____Feature.Feature
49191
+ local v = {
49192
+ run = {persistentEntityIndexCounter = 0},
49193
+ level = {persistentEntities = __TS__New(Map)},
49194
+ room = {spawnedPersistentEntities = __TS__New(Map)}
49195
+ }
49086
49196
  ____exports.PersistentEntities = __TS__Class()
49087
49197
  local PersistentEntities = ____exports.PersistentEntities
49088
49198
  PersistentEntities.name = "PersistentEntities"
49089
49199
  __TS__ClassExtends(PersistentEntities, Feature)
49090
49200
  function PersistentEntities.prototype.____constructor(self, roomHistory)
49091
49201
  Feature.prototype.____constructor(self)
49092
- self.v = {
49093
- run = {persistentEntityIndexCounter = 0},
49094
- level = {persistentEntities = __TS__New(Map)},
49095
- room = {spawnedPersistentEntities = __TS__New(Map)}
49096
- }
49202
+ self.v = v
49097
49203
  self.postEntityRemove = function(____, entity)
49098
49204
  local ptrHash = GetPtrHash(entity)
49099
- local tuple = self.v.room.spawnedPersistentEntities:get(ptrHash)
49205
+ local tuple = v.room.spawnedPersistentEntities:get(ptrHash)
49100
49206
  if tuple == nil then
49101
49207
  return
49102
49208
  end
@@ -49109,7 +49215,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
49109
49215
  end
49110
49216
  self.postNewRoomReordered = function()
49111
49217
  local roomListIndex = getRoomListIndex(nil)
49112
- local persistentEntities = {__TS__Spread(self.v.level.persistentEntities:entries())}
49218
+ local persistentEntities = {__TS__Spread(v.level.persistentEntities:entries())}
49113
49219
  local persistentEntitiesInThisRoom = __TS__ArrayFilter(
49114
49220
  persistentEntities,
49115
49221
  function(____, ____bindingPattern0)
@@ -49122,7 +49228,7 @@ function PersistentEntities.prototype.____constructor(self, roomHistory)
49122
49228
  for ____, ____value in ipairs(persistentEntitiesInThisRoom) do
49123
49229
  local index = ____value[1]
49124
49230
  local description = ____value[2]
49125
- self.v.level.persistentEntities:delete(index)
49231
+ v.level.persistentEntities:delete(index)
49126
49232
  self:spawnAndTrack(
49127
49233
  description.entityType,
49128
49234
  description.variant,
@@ -49151,7 +49257,7 @@ function PersistentEntities.prototype.trackDespawningPickupPosition(self, entity
49151
49257
  roomListIndex = previousRoomDescription.roomListIndex,
49152
49258
  position = entity.Position
49153
49259
  }
49154
- self.v.level.persistentEntities:set(index, persistentEntityDescription)
49260
+ v.level.persistentEntities:set(index, persistentEntityDescription)
49155
49261
  end
49156
49262
  function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, subType, position, index, respawning)
49157
49263
  if respawning == nil then
@@ -49172,15 +49278,15 @@ function PersistentEntities.prototype.spawnAndTrack(self, entityType, variant, s
49172
49278
  index,
49173
49279
  EntityPtr(entity)
49174
49280
  }
49175
- self.v.room.spawnedPersistentEntities:set(ptrHash, tuple)
49281
+ v.room.spawnedPersistentEntities:set(ptrHash, tuple)
49176
49282
  return entity
49177
49283
  end
49178
49284
  function PersistentEntities.prototype.removePersistentEntity(self, persistentEntityIndex, removeEntity)
49179
49285
  if removeEntity == nil then
49180
49286
  removeEntity = true
49181
49287
  end
49182
- self.v.level.persistentEntities:delete(persistentEntityIndex)
49183
- for ____, ____value in __TS__Iterator(self.v.room.spawnedPersistentEntities) do
49288
+ v.level.persistentEntities:delete(persistentEntityIndex)
49289
+ for ____, ____value in __TS__Iterator(v.room.spawnedPersistentEntities) do
49184
49290
  local ptrHash = ____value[1]
49185
49291
  local tuple = ____value[2]
49186
49292
  do
@@ -49188,7 +49294,7 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
49188
49294
  if index ~= persistentEntityIndex then
49189
49295
  goto __continue16
49190
49296
  end
49191
- self.v.room.spawnedPersistentEntities:delete(ptrHash)
49297
+ v.room.spawnedPersistentEntities:delete(ptrHash)
49192
49298
  if removeEntity and entityPtr.Ref ~= nil then
49193
49299
  entityPtr.Ref:Remove()
49194
49300
  end
@@ -49197,16 +49303,16 @@ function PersistentEntities.prototype.removePersistentEntity(self, persistentEnt
49197
49303
  end
49198
49304
  end
49199
49305
  function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, variant, subType, position)
49200
- local ____self_v_run_0, ____persistentEntityIndexCounter_1 = self.v.run, "persistentEntityIndexCounter"
49201
- ____self_v_run_0[____persistentEntityIndexCounter_1] = ____self_v_run_0[____persistentEntityIndexCounter_1] + 1
49306
+ local ____v_run_0, ____persistentEntityIndexCounter_1 = v.run, "persistentEntityIndexCounter"
49307
+ ____v_run_0[____persistentEntityIndexCounter_1] = ____v_run_0[____persistentEntityIndexCounter_1] + 1
49202
49308
  local entity = self:spawnAndTrack(
49203
49309
  entityType,
49204
49310
  variant,
49205
49311
  subType,
49206
49312
  position,
49207
- self.v.run.persistentEntityIndexCounter
49313
+ v.run.persistentEntityIndexCounter
49208
49314
  )
49209
- return {entity, self.v.run.persistentEntityIndexCounter}
49315
+ return {entity, v.run.persistentEntityIndexCounter}
49210
49316
  end
49211
49317
  __TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
49212
49318
  __TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
@@ -49214,9 +49320,9 @@ return ____exports
49214
49320
  end,
49215
49321
  ["src.classes.features.other.PlayerInventory"] = function(...)
49216
49322
  local ____lualib = require("lualib_bundle")
49323
+ local __TS__New = ____lualib.__TS__New
49217
49324
  local __TS__Class = ____lualib.__TS__Class
49218
49325
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49219
- local __TS__New = ____lualib.__TS__New
49220
49326
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
49221
49327
  local __TS__Decorate = ____lualib.__TS__Decorate
49222
49328
  local ____exports = {}
@@ -49236,22 +49342,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
49236
49342
  local DefaultMap = ____DefaultMap.DefaultMap
49237
49343
  local ____Feature = require("src.classes.private.Feature")
49238
49344
  local Feature = ____Feature.Feature
49345
+ local v = {run = {playersInventory = __TS__New(
49346
+ DefaultMap,
49347
+ function() return {} end
49348
+ )}}
49239
49349
  ____exports.PlayerInventory = __TS__Class()
49240
49350
  local PlayerInventory = ____exports.PlayerInventory
49241
49351
  PlayerInventory.name = "PlayerInventory"
49242
49352
  __TS__ClassExtends(PlayerInventory, Feature)
49243
49353
  function PlayerInventory.prototype.____constructor(self)
49244
49354
  Feature.prototype.____constructor(self)
49245
- self.v = {run = {playersInventory = __TS__New(
49246
- DefaultMap,
49247
- function() return {} end
49248
- )}}
49355
+ self.v = v
49249
49356
  self.postCollectibleAdded = function(____, player, collectibleType)
49250
- local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
49357
+ local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
49251
49358
  inventory[#inventory + 1] = collectibleType
49252
49359
  end
49253
49360
  self.postCollectibleRemoved = function(____, player, collectibleType)
49254
- local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
49361
+ local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
49255
49362
  arrayRemoveInPlace(nil, inventory, collectibleType)
49256
49363
  end
49257
49364
  self.customCallbacksUsed = {{ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED, self.postCollectibleAdded}, {ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED, self.postCollectibleRemoved}}
@@ -49260,7 +49367,7 @@ function PlayerInventory.prototype.getPlayerInventory(self, player, includeActiv
49260
49367
  if includeActiveCollectibles == nil then
49261
49368
  includeActiveCollectibles = true
49262
49369
  end
49263
- local inventory = defaultMapGetPlayer(nil, self.v.run.playersInventory, player, player)
49370
+ local inventory = defaultMapGetPlayer(nil, v.run.playersInventory, player, player)
49264
49371
  if includeActiveCollectibles then
49265
49372
  return copyArray(nil, inventory)
49266
49373
  end
@@ -49279,10 +49386,10 @@ return ____exports
49279
49386
  end,
49280
49387
  ["src.classes.features.other.PreventChildEntities"] = function(...)
49281
49388
  local ____lualib = require("lualib_bundle")
49282
- local __TS__Class = ____lualib.__TS__Class
49283
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49284
49389
  local Set = ____lualib.Set
49285
49390
  local __TS__New = ____lualib.__TS__New
49391
+ local __TS__Class = ____lualib.__TS__Class
49392
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49286
49393
  local __TS__Decorate = ____lualib.__TS__Decorate
49287
49394
  local ____exports = {}
49288
49395
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -49291,16 +49398,17 @@ local ____decorators = require("src.decorators")
49291
49398
  local Exported = ____decorators.Exported
49292
49399
  local ____Feature = require("src.classes.private.Feature")
49293
49400
  local Feature = ____Feature.Feature
49401
+ local v = {room = {preventingEntities = __TS__New(Set)}}
49294
49402
  ____exports.PreventChildEntities = __TS__Class()
49295
49403
  local PreventChildEntities = ____exports.PreventChildEntities
49296
49404
  PreventChildEntities.name = "PreventChildEntities"
49297
49405
  __TS__ClassExtends(PreventChildEntities, Feature)
49298
49406
  function PreventChildEntities.prototype.____constructor(self)
49299
49407
  Feature.prototype.____constructor(self)
49300
- self.v = {room = {preventingEntities = __TS__New(Set)}}
49408
+ self.v = v
49301
49409
  self.postNPCInit = function(____, npc)
49302
- local spawnerEntityMatch = npc.SpawnerEntity ~= nil and self.v.room.preventingEntities:has(GetPtrHash(npc.SpawnerEntity))
49303
- local parentMatch = npc.Parent ~= nil and self.v.room.preventingEntities:has(GetPtrHash(npc.Parent))
49410
+ local spawnerEntityMatch = npc.SpawnerEntity ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.SpawnerEntity))
49411
+ local parentMatch = npc.Parent ~= nil and v.room.preventingEntities:has(GetPtrHash(npc.Parent))
49304
49412
  if spawnerEntityMatch or parentMatch then
49305
49413
  npc:Remove()
49306
49414
  end
@@ -49309,7 +49417,7 @@ function PreventChildEntities.prototype.____constructor(self)
49309
49417
  end
49310
49418
  function PreventChildEntities.prototype.preventChildEntities(self, entity)
49311
49419
  local ptrHash = GetPtrHash(entity)
49312
- self.v.room.preventingEntities:add(ptrHash)
49420
+ v.room.preventingEntities:add(ptrHash)
49313
49421
  end
49314
49422
  __TS__Decorate({Exported}, PreventChildEntities.prototype, "preventChildEntities", true)
49315
49423
  return ____exports
@@ -49889,10 +49997,10 @@ return ____exports
49889
49997
  end,
49890
49998
  ["src.classes.features.other.TaintedLazarusPlayers"] = function(...)
49891
49999
  local ____lualib = require("lualib_bundle")
49892
- local __TS__Class = ____lualib.__TS__Class
49893
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49894
50000
  local Map = ____lualib.Map
49895
50001
  local __TS__New = ____lualib.__TS__New
50002
+ local __TS__Class = ____lualib.__TS__Class
50003
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
49896
50004
  local __TS__Decorate = ____lualib.__TS__Decorate
49897
50005
  local ____exports = {}
49898
50006
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
@@ -49904,26 +50012,27 @@ local ____logMisc = require("src.functions.logMisc")
49904
50012
  local logError = ____logMisc.logError
49905
50013
  local ____Feature = require("src.classes.private.Feature")
49906
50014
  local Feature = ____Feature.Feature
50015
+ local v = {run = {
50016
+ queuedTaintedLazarus = {},
50017
+ queuedDeadTaintedLazarus = {},
50018
+ subPlayerMap = __TS__New(Map)
50019
+ }}
49907
50020
  ____exports.TaintedLazarusPlayers = __TS__Class()
49908
50021
  local TaintedLazarusPlayers = ____exports.TaintedLazarusPlayers
49909
50022
  TaintedLazarusPlayers.name = "TaintedLazarusPlayers"
49910
50023
  __TS__ClassExtends(TaintedLazarusPlayers, Feature)
49911
50024
  function TaintedLazarusPlayers.prototype.____constructor(self)
49912
50025
  Feature.prototype.____constructor(self)
49913
- self.v = {run = {
49914
- queuedTaintedLazarus = {},
49915
- queuedDeadTaintedLazarus = {},
49916
- subPlayerMap = __TS__New(Map)
49917
- }}
50026
+ self.v = v
49918
50027
  self.vConditionalFunc = function() return false end
49919
50028
  self.postPlayerInit = function(____, player)
49920
50029
  local character = player:GetPlayerType()
49921
50030
  if character == PlayerType.LAZARUS_B then
49922
- local ____self_v_run_queuedTaintedLazarus_0 = self.v.run.queuedTaintedLazarus
49923
- ____self_v_run_queuedTaintedLazarus_0[#____self_v_run_queuedTaintedLazarus_0 + 1] = player
50031
+ local ____v_run_queuedTaintedLazarus_0 = v.run.queuedTaintedLazarus
50032
+ ____v_run_queuedTaintedLazarus_0[#____v_run_queuedTaintedLazarus_0 + 1] = player
49924
50033
  elseif character == PlayerType.LAZARUS_2_B then
49925
- local ____self_v_run_queuedDeadTaintedLazarus_1 = self.v.run.queuedDeadTaintedLazarus
49926
- ____self_v_run_queuedDeadTaintedLazarus_1[#____self_v_run_queuedDeadTaintedLazarus_1 + 1] = player
50034
+ local ____v_run_queuedDeadTaintedLazarus_1 = v.run.queuedDeadTaintedLazarus
50035
+ ____v_run_queuedDeadTaintedLazarus_1[#____v_run_queuedDeadTaintedLazarus_1 + 1] = player
49927
50036
  else
49928
50037
  return
49929
50038
  end
@@ -49932,11 +50041,11 @@ function TaintedLazarusPlayers.prototype.____constructor(self)
49932
50041
  self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
49933
50042
  end
49934
50043
  function TaintedLazarusPlayers.prototype.checkDequeue(self)
49935
- if #self.v.run.queuedTaintedLazarus == 0 or #self.v.run.queuedDeadTaintedLazarus == 0 then
50044
+ if #v.run.queuedTaintedLazarus == 0 or #v.run.queuedDeadTaintedLazarus == 0 then
49936
50045
  return
49937
50046
  end
49938
- local taintedLazarus = table.remove(self.v.run.queuedTaintedLazarus, 1)
49939
- local deadTaintedLazarus = table.remove(self.v.run.queuedDeadTaintedLazarus, 1)
50047
+ local taintedLazarus = table.remove(v.run.queuedTaintedLazarus, 1)
50048
+ local deadTaintedLazarus = table.remove(v.run.queuedDeadTaintedLazarus, 1)
49940
50049
  if taintedLazarus == nil or deadTaintedLazarus == nil then
49941
50050
  return
49942
50051
  end
@@ -49946,12 +50055,12 @@ function TaintedLazarusPlayers.prototype.checkDequeue(self)
49946
50055
  logError("Failed to cache the Tainted Lazarus player objects, since the hash for Tainted Lazarus and Dead Tainted Lazarus were the same.")
49947
50056
  return
49948
50057
  end
49949
- self.v.run.subPlayerMap:set(taintedLazarusPtrHash, deadTaintedLazarus)
49950
- self.v.run.subPlayerMap:set(deadTaintedLazarusPtrHash, taintedLazarus)
50058
+ v.run.subPlayerMap:set(taintedLazarusPtrHash, deadTaintedLazarus)
50059
+ v.run.subPlayerMap:set(deadTaintedLazarusPtrHash, taintedLazarus)
49951
50060
  end
49952
50061
  function TaintedLazarusPlayers.prototype.getTaintedLazarusSubPlayer(self, player)
49953
50062
  local ptrHash = GetPtrHash(player)
49954
- return self.v.run.subPlayerMap:get(ptrHash)
50063
+ return v.run.subPlayerMap:get(ptrHash)
49955
50064
  end
49956
50065
  __TS__Decorate({Exported}, TaintedLazarusPlayers.prototype, "getTaintedLazarusSubPlayer", true)
49957
50066
  return ____exports