isaacscript-common 25.2.0 → 25.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/index.rollup.d.ts +27 -2
  2. package/dist/isaacscript-common.lua +803 -693
  3. package/dist/src/classes/ModFeature.d.ts.map +1 -1
  4. package/dist/src/classes/ModFeature.lua +12 -5
  5. package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  6. package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
  7. package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  8. package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
  9. package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  10. package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
  11. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  12. package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
  13. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  14. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
  15. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
  17. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
  19. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
  21. package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
  23. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
  25. package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  26. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
  27. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  28. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
  29. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
  30. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
  32. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
  33. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
  35. package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
  37. package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
  38. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
  39. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  40. package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
  41. package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  42. package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
  43. package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  44. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
  45. package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
  47. package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  48. package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
  49. package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  50. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
  51. package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  52. package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
  53. package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  54. package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
  55. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  56. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
  57. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  58. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
  59. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  60. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
  61. package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
  63. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
  65. package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
  66. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
  67. package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  68. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
  69. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  70. package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
  71. package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  72. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
  73. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  74. package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
  75. package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  76. package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
  77. package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  78. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
  79. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
  81. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  82. package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
  83. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  84. package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
  85. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  86. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
  87. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  88. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
  89. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  90. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
  91. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  92. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
  93. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  94. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
  95. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  96. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
  97. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  98. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
  99. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
  101. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  102. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
  103. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  104. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
  105. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
  106. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
  107. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  108. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
  109. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  110. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
  111. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  112. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
  113. package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
  114. package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
  115. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  116. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  117. package/dist/src/classes/features/other/CustomStages.lua +17 -26
  118. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  119. package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
  120. package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
  121. package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
  122. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  123. package/dist/src/classes/features/other/DisableInputs.lua +21 -20
  124. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
  125. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  126. package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
  127. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  128. package/dist/src/classes/features/other/Pause.lua +20 -19
  129. package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
  130. package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
  131. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
  133. package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
  134. package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
  135. package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/PonyDetection.lua +8 -7
  137. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/PressInput.lua +7 -6
  139. package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
  141. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  142. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
  143. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  144. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
  145. package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
  147. package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
  148. package/dist/src/classes/features/other/RoomHistory.lua +9 -8
  149. package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
  150. package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
  151. package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
  152. package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
  153. package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
  154. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  155. package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
  156. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  157. package/dist/src/classes/features/other/StageHistory.lua +7 -6
  158. package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  159. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
  160. package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
  161. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  162. package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
  163. package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
  164. package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
  165. package/dist/src/classes/features/other/customStages/v.lua +16 -0
  166. package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
  167. package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
  168. package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
  169. package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
  170. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  171. package/dist/src/functions/decorators.d.ts +15 -0
  172. package/dist/src/functions/decorators.d.ts.map +1 -1
  173. package/dist/src/functions/decorators.lua +21 -5
  174. package/dist/src/interfaces/SaveData.d.ts.map +1 -1
  175. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
  176. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  177. package/dist/src/shouldFire.d.ts +1 -0
  178. package/dist/src/shouldFire.d.ts.map +1 -1
  179. package/dist/src/shouldFire.lua +5 -0
  180. package/package.json +1 -1
  181. package/src/classes/ModFeature.ts +16 -4
  182. package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
  183. package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
  184. package/src/classes/callbacks/PostBombInitLate.ts +9 -7
  185. package/src/classes/callbacks/PostBoneSwing.ts +9 -7
  186. package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
  187. package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
  188. package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
  189. package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
  190. package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
  191. package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
  192. package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
  193. package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
  194. package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
  195. package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
  196. package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
  197. package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
  198. package/src/classes/callbacks/PostItemDischarge.ts +21 -27
  199. package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
  200. package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
  201. package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
  202. package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
  203. package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
  204. package/src/classes/callbacks/PostPickupCollect.ts +9 -7
  205. package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
  206. package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
  207. package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
  208. package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
  209. package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
  210. package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
  211. package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
  212. package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
  213. package/src/classes/callbacks/PostPurchase.ts +11 -9
  214. package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
  215. package/src/classes/callbacks/PostSacrifice.ts +9 -7
  216. package/src/classes/callbacks/PostTearInitLate.ts +9 -7
  217. package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
  218. package/src/classes/callbacks/PostTransformation.ts +12 -10
  219. package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
  220. package/src/classes/callbacks/PreNewLevel.ts +9 -7
  221. package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
  222. package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
  223. package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
  224. package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
  225. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
  226. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
  227. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
  228. package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
  229. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
  230. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
  231. package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
  232. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
  233. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
  234. package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
  235. package/src/classes/features/other/CustomItemPools.ts +9 -7
  236. package/src/classes/features/other/CustomPickups.ts +0 -1
  237. package/src/classes/features/other/CustomStages.ts +16 -44
  238. package/src/classes/features/other/CustomTrapdoors.ts +53 -54
  239. package/src/classes/features/other/DisableAllSound.ts +13 -11
  240. package/src/classes/features/other/DisableInputs.ts +39 -37
  241. package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
  242. package/src/classes/features/other/NoSirenSteal.ts +11 -9
  243. package/src/classes/features/other/Pause.ts +21 -19
  244. package/src/classes/features/other/PersistentEntities.ts +33 -31
  245. package/src/classes/features/other/PickupIndexCreation.ts +35 -33
  246. package/src/classes/features/other/PlayerInventory.ts +14 -12
  247. package/src/classes/features/other/PonyDetection.ts +11 -9
  248. package/src/classes/features/other/PressInput.ts +11 -9
  249. package/src/classes/features/other/PreventChildEntities.ts +10 -8
  250. package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
  251. package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
  252. package/src/classes/features/other/RoomClearFrame.ts +12 -10
  253. package/src/classes/features/other/RoomHistory.ts +13 -11
  254. package/src/classes/features/other/RunInNFrames.ts +19 -17
  255. package/src/classes/features/other/RunNextRoom.ts +10 -8
  256. package/src/classes/features/other/SaveDataManager.ts +11 -0
  257. package/src/classes/features/other/StageHistory.ts +11 -9
  258. package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
  259. package/src/classes/features/other/customStages/streakText.ts +14 -44
  260. package/src/classes/features/other/customStages/v.ts +31 -0
  261. package/src/classes/features/other/customStages/versusScreen.ts +2 -10
  262. package/src/enums/ModCallbackCustom.ts +6 -0
  263. package/src/functions/decorators.ts +45 -4
  264. package/src/interfaces/SaveData.ts +0 -1
  265. package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
  266. package/src/shouldFire.ts +10 -0
@@ -23,45 +23,46 @@ function dequeue(self, playerIndexes, fireFunc)
23
23
  end
24
24
  emptyArray(nil, playerIndexes)
25
25
  end
26
+ local v = {run = {postGameStartedFiredOnThisRun = false, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
26
27
  ____exports.PlayerReorderedCallbacks = __TS__Class()
27
28
  local PlayerReorderedCallbacks = ____exports.PlayerReorderedCallbacks
28
29
  PlayerReorderedCallbacks.name = "PlayerReorderedCallbacks"
29
30
  __TS__ClassExtends(PlayerReorderedCallbacks, Feature)
30
31
  function PlayerReorderedCallbacks.prototype.____constructor(self, postPEffectUpdateReordered, postPlayerRenderReordered, postPlayerUpdateReordered)
31
32
  Feature.prototype.____constructor(self)
32
- self.v = {run = {postGameStartedFiredOnThisRun = false, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
33
+ self.v = v
33
34
  self.postPEffectUpdate = function(____, player)
34
- if self.v.run.postGameStartedFiredOnThisRun then
35
+ if v.run.postGameStartedFiredOnThisRun then
35
36
  self.postPEffectUpdateReordered:fire(player)
36
37
  else
37
38
  local playerIndex = getPlayerIndex(nil, player)
38
- local ____self_v_run_postPEffectUpdateQueue_0 = self.v.run.postPEffectUpdateQueue
39
- ____self_v_run_postPEffectUpdateQueue_0[#____self_v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
39
+ local ____v_run_postPEffectUpdateQueue_0 = v.run.postPEffectUpdateQueue
40
+ ____v_run_postPEffectUpdateQueue_0[#____v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
40
41
  end
41
42
  end
42
43
  self.postPlayerUpdate = function(____, player)
43
- if self.v.run.postGameStartedFiredOnThisRun then
44
+ if v.run.postGameStartedFiredOnThisRun then
44
45
  self.postPlayerUpdateReordered:fire(player)
45
46
  else
46
47
  local playerIndex = getPlayerIndex(nil, player)
47
- local ____self_v_run_postPlayerUpdateQueue_1 = self.v.run.postPlayerUpdateQueue
48
- ____self_v_run_postPlayerUpdateQueue_1[#____self_v_run_postPlayerUpdateQueue_1 + 1] = playerIndex
48
+ local ____v_run_postPlayerUpdateQueue_1 = v.run.postPlayerUpdateQueue
49
+ ____v_run_postPlayerUpdateQueue_1[#____v_run_postPlayerUpdateQueue_1 + 1] = playerIndex
49
50
  end
50
51
  end
51
52
  self.postPlayerRender = function(____, player, _renderOffset)
52
- if self.v.run.postGameStartedFiredOnThisRun then
53
+ if v.run.postGameStartedFiredOnThisRun then
53
54
  self.postPlayerRenderReordered:fire(player)
54
55
  else
55
56
  local playerIndex = getPlayerIndex(nil, player)
56
- local ____self_v_run_postPlayerRenderQueue_2 = self.v.run.postPlayerRenderQueue
57
- ____self_v_run_postPlayerRenderQueue_2[#____self_v_run_postPlayerRenderQueue_2 + 1] = playerIndex
57
+ local ____v_run_postPlayerRenderQueue_2 = v.run.postPlayerRenderQueue
58
+ ____v_run_postPlayerRenderQueue_2[#____v_run_postPlayerRenderQueue_2 + 1] = playerIndex
58
59
  end
59
60
  end
60
61
  self.postGameStartedReorderedLast = function()
61
- self.v.run.postGameStartedFiredOnThisRun = true
62
- dequeue(nil, self.v.run.postPEffectUpdateQueue, self.postPEffectUpdateReordered.fire)
63
- dequeue(nil, self.v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
64
- dequeue(nil, self.v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
62
+ v.run.postGameStartedFiredOnThisRun = true
63
+ dequeue(nil, v.run.postPEffectUpdateQueue, self.postPEffectUpdateReordered.fire)
64
+ dequeue(nil, v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
65
+ dequeue(nil, v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
65
66
  end
66
67
  self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, self.postPEffectUpdate}, {ModCallback.POST_PLAYER_UPDATE, self.postPlayerUpdate}, {ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
67
68
  self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST, self.postGameStartedReorderedLast}}
@@ -1 +1 @@
1
- {"version":3,"file":"SlotDestroyedDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotDestroyedDetection.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,qBAAa,sBAAuB,SAAQ,OAAO;IACjC,CAAC;;;;MAIf;IAEF,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,WAAW,CAAc;gBAErB,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW;IAwB1E,OAAO,CAAC,oBAAoB,CAc1B;IAEF,OAAO,CAAC,2BAA2B;IAInC,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,cAAc,CASpB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,gCAAgC;CAOzC"}
1
+ {"version":3,"file":"SlotDestroyedDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotDestroyedDetection.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQnD,qBAAa,sBAAuB,SAAQ,OAAO;IACjC,CAAC;;;;MAAK;IAEtB,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,WAAW,CAAc;gBAErB,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW;IAwB1E,OAAO,CAAC,oBAAoB,CAc1B;IAEF,OAAO,CAAC,2BAA2B;IAInC,OAAO,CAAC,sBAAsB;IAW9B,OAAO,CAAC,cAAc,CASpB;IAEF;;;;;OAKG;IACH,OAAO,CAAC,gCAAgC;CAOzC"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Set = ____lualib.Set
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local ____exports = {}
7
7
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
8
8
  local EntityGridCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.EntityGridCollisionClass
@@ -18,13 +18,14 @@ local ____slots = require("src.functions.slots")
18
18
  local isSlotMachine = ____slots.isSlotMachine
19
19
  local ____Feature = require("src.classes.private.Feature")
20
20
  local Feature = ____Feature.Feature
21
+ local v = {room = {destroyedSlotSet = __TS__New(Set)}}
21
22
  ____exports.SlotDestroyedDetection = __TS__Class()
22
23
  local SlotDestroyedDetection = ____exports.SlotDestroyedDetection
23
24
  SlotDestroyedDetection.name = "SlotDestroyedDetection"
24
25
  __TS__ClassExtends(SlotDestroyedDetection, Feature)
25
26
  function SlotDestroyedDetection.prototype.____constructor(self, postSlotDestroyed, roomHistory)
26
27
  Feature.prototype.____constructor(self)
27
- self.v = {room = {destroyedSlotSet = __TS__New(Set)}}
28
+ self.v = v
28
29
  self.postEntityRemoveSlot = function(____, entity)
29
30
  local slot = entity
30
31
  if self.roomHistory:isLeavingRoom() then
@@ -38,7 +39,7 @@ function SlotDestroyedDetection.prototype.____constructor(self, postSlotDestroye
38
39
  end
39
40
  self.postSlotUpdate = function(____, slot)
40
41
  local ptrHash = GetPtrHash(slot)
41
- local alreadyDestroyed = self.v.room.destroyedSlotSet:has(ptrHash)
42
+ local alreadyDestroyed = v.room.destroyedSlotSet:has(ptrHash)
42
43
  if alreadyDestroyed then
43
44
  return
44
45
  end
@@ -62,7 +63,7 @@ end
62
63
  function SlotDestroyedDetection.prototype.checkDestroyedFromCollisionClass(self, slot)
63
64
  if slot.GridCollisionClass == EntityGridCollisionClass.GROUND then
64
65
  local ptrHash = GetPtrHash(slot)
65
- self.v.room.destroyedSlotSet:add(ptrHash)
66
+ v.room.destroyedSlotSet:add(ptrHash)
66
67
  self.postSlotDestroyed:fire(slot, SlotDestructionType.NORMAL)
67
68
  end
68
69
  end
@@ -1 +1 @@
1
- {"version":3,"file":"SlotRenderDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotRenderDetection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;;MAUf;IAEF,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,wBAAwB,CAA2B;gBAGzD,cAAc,EAAE,cAAc,EAC9B,wBAAwB,EAAE,wBAAwB;IAcpD,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,yBAAyB;CAkBlC"}
1
+ {"version":3,"file":"SlotRenderDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotRenderDetection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAchD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;;MAAK;IAEtB,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,wBAAwB,CAA2B;gBAGzD,cAAc,EAAE,cAAc,EAC9B,wBAAwB,EAAE,wBAAwB;IAcpD,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,yBAAyB;CAkBlC"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local __TS__New = ____lualib.__TS__New
5
3
  local Set = ____lualib.Set
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local ____exports = {}
7
7
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
8
8
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -12,22 +12,23 @@ local ____DefaultMap = require("src.classes.DefaultMap")
12
12
  local DefaultMap = ____DefaultMap.DefaultMap
13
13
  local ____Feature = require("src.classes.private.Feature")
14
14
  local Feature = ____Feature.Feature
15
+ local v = {room = {
16
+ slotAnimations = __TS__New(
17
+ DefaultMap,
18
+ function(____, slot)
19
+ local sprite = slot:GetSprite()
20
+ return sprite:GetAnimation()
21
+ end
22
+ ),
23
+ brokenSlots = __TS__New(Set)
24
+ }}
15
25
  ____exports.SlotRenderDetection = __TS__Class()
16
26
  local SlotRenderDetection = ____exports.SlotRenderDetection
17
27
  SlotRenderDetection.name = "SlotRenderDetection"
18
28
  __TS__ClassExtends(SlotRenderDetection, Feature)
19
29
  function SlotRenderDetection.prototype.____constructor(self, postSlotRender, postSlotAnimationChanged)
20
30
  Feature.prototype.____constructor(self)
21
- self.v = {room = {
22
- slotAnimations = __TS__New(
23
- DefaultMap,
24
- function(____, slot)
25
- local sprite = slot:GetSprite()
26
- return sprite:GetAnimation()
27
- end
28
- ),
29
- brokenSlots = __TS__New(Set)
30
- }}
31
+ self.v = v
31
32
  self.postRender = function()
32
33
  for ____, slot in ipairs(getSlots(nil)) do
33
34
  self.postSlotRender:fire(slot)
@@ -42,8 +43,8 @@ function SlotRenderDetection.prototype.checkSlotAnimationChanged(self, slot)
42
43
  local sprite = slot:GetSprite()
43
44
  local currentAnimation = sprite:GetAnimation()
44
45
  local ptrHash = GetPtrHash(slot)
45
- local previousAnimation = self.v.room.slotAnimations:getAndSetDefault(ptrHash, slot)
46
- self.v.room.slotAnimations:set(ptrHash, currentAnimation)
46
+ local previousAnimation = v.room.slotAnimations:getAndSetDefault(ptrHash, slot)
47
+ v.room.slotAnimations:set(ptrHash, currentAnimation)
47
48
  if currentAnimation ~= previousAnimation then
48
49
  self.postSlotAnimationChanged:fire(slot, previousAnimation, currentAnimation)
49
50
  end
@@ -1 +1 @@
1
- {"version":3,"file":"SlotUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotUpdateDetection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;MAIf;IAEF,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,cAAc,CAAiB;gBAE3B,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAmBtE,OAAO,CAAC,UAAU,CAKhB;IAGF,OAAO,CAAC,oBAAoB,CAI1B;IAEF,OAAO,CAAC,cAAc;CAOvB"}
1
+ {"version":3,"file":"SlotUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotUpdateDetection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;MAAK;IAEtB,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,cAAc,CAAiB;gBAE3B,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAmBtE,OAAO,CAAC,UAAU,CAKhB;IAGF,OAAO,CAAC,oBAAoB,CAI1B;IAEF,OAAO,CAAC,cAAc;CAOvB"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Set = ____lualib.Set
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local ____exports = {}
7
7
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
8
8
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
@@ -12,13 +12,14 @@ local ____entitiesSpecific = require("src.functions.entitiesSpecific")
12
12
  local getSlots = ____entitiesSpecific.getSlots
13
13
  local ____Feature = require("src.classes.private.Feature")
14
14
  local Feature = ____Feature.Feature
15
+ local v = {room = {initializedSlots = __TS__New(Set)}}
15
16
  ____exports.SlotUpdateDetection = __TS__Class()
16
17
  local SlotUpdateDetection = ____exports.SlotUpdateDetection
17
18
  SlotUpdateDetection.name = "SlotUpdateDetection"
18
19
  __TS__ClassExtends(SlotUpdateDetection, Feature)
19
20
  function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postSlotUpdate)
20
21
  Feature.prototype.____constructor(self)
21
- self.v = {room = {initializedSlots = __TS__New(Set)}}
22
+ self.v = v
22
23
  self.postUpdate = function()
23
24
  for ____, slot in ipairs(getSlots(nil)) do
24
25
  self:checkNewEntity(slot)
@@ -37,8 +38,8 @@ function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postS
37
38
  end
38
39
  function SlotUpdateDetection.prototype.checkNewEntity(self, slot)
39
40
  local ptrHash = GetPtrHash(slot)
40
- if not self.v.room.initializedSlots:has(ptrHash) then
41
- self.v.room.initializedSlots:add(ptrHash)
41
+ if not v.room.initializedSlots:has(ptrHash) then
42
+ v.room.initializedSlots:add(ptrHash)
42
43
  self.postSlotInit:fire(slot)
43
44
  end
44
45
  end
@@ -1 +1 @@
1
- {"version":3,"file":"CollectibleItemPoolType.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CollectibleItemPoolType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,uBAAwB,SAAQ,OAAO;IAQlD,OAAO,CAAC,mBAAmB,CAAsB;IAsBjD,OAAO,CAAC,yBAAyB,CAM/B;IAEF;;;;;;;;OAQG;IAEI,0BAA0B,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY;CAY3E"}
1
+ {"version":3,"file":"CollectibleItemPoolType.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CollectibleItemPoolType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAShD,qBAAa,uBAAwB,SAAQ,OAAO;IAIlD,OAAO,CAAC,mBAAmB,CAAsB;IAsBjD,OAAO,CAAC,yBAAyB,CAM/B;IAEF;;;;;;;;OAQG;IAEI,0BAA0B,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY;CAY3E"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Map = ____lualib.Map
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local ____exports = {}
8
8
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -22,18 +22,19 @@ local ____rooms = require("src.functions.rooms")
22
22
  local getRoomItemPoolType = ____rooms.getRoomItemPoolType
23
23
  local ____Feature = require("src.classes.private.Feature")
24
24
  local Feature = ____Feature.Feature
25
+ local v = {run = {collectibleItemPoolTypeMap = __TS__New(Map)}}
25
26
  ____exports.CollectibleItemPoolType = __TS__Class()
26
27
  local CollectibleItemPoolType = ____exports.CollectibleItemPoolType
27
28
  CollectibleItemPoolType.name = "CollectibleItemPoolType"
28
29
  __TS__ClassExtends(CollectibleItemPoolType, Feature)
29
30
  function CollectibleItemPoolType.prototype.____constructor(self, pickupIndexCreation)
30
31
  Feature.prototype.____constructor(self)
31
- self.v = {run = {collectibleItemPoolTypeMap = __TS__New(Map)}}
32
+ self.v = v
32
33
  self.postPickupInitCollectible = function(____, collectible)
33
34
  local itemPool = game:GetItemPool()
34
35
  local pickupIndex = self.pickupIndexCreation:getPickupIndex(collectible)
35
36
  local lastItemPoolType = itemPool:GetLastPool()
36
- self.v.run.collectibleItemPoolTypeMap:set(pickupIndex, lastItemPoolType)
37
+ v.run.collectibleItemPoolTypeMap:set(pickupIndex, lastItemPoolType)
37
38
  end
38
39
  self.featuresUsed = {ISCFeature.PICKUP_INDEX_CREATION}
39
40
  self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, self.postPickupInitCollectible, {PickupVariant.COLLECTIBLE}}}
@@ -45,7 +46,7 @@ function CollectibleItemPoolType.prototype.getCollectibleItemPoolType(self, coll
45
46
  error("The \"getCollectibleItemPoolType\" function was given a non-collectible: " .. entityID)
46
47
  end
47
48
  local pickupIndex = self.pickupIndexCreation:getPickupIndex(collectible)
48
- local itemPoolType = self.v.run.collectibleItemPoolTypeMap:get(pickupIndex)
49
+ local itemPoolType = v.run.collectibleItemPoolTypeMap:get(pickupIndex)
49
50
  return itemPoolType == nil and getRoomItemPoolType(nil) or itemPoolType
50
51
  end
51
52
  __TS__Decorate({Exported}, CollectibleItemPoolType.prototype, "getCollectibleItemPoolType", true)
@@ -1 +1 @@
1
- {"version":3,"file":"CustomItemPools.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomItemPools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,eAAgB,SAAQ,OAAO;IAQ1C,OAAO,CAAC,iBAAiB,CAGrB;IAeJ,OAAO,CAAC,wBAAwB,CAM9B;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IAEI,sBAAsB,CAC3B,kBAAkB,EAAE,YAAY,EAChC,YAAY,EAAE,aAAa,CAAC,eAAe,CAAC,GAC3C,IAAI;IAUP;;;;;;;;;;;;;;;;;OAiBG;IAEI,4BAA4B,CACjC,kBAAkB,EAAE,YAAY,EAChC,QAAQ,UAAQ,EAChB,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,WAAW,kBAAuB,GACjC,eAAe;CA2BnB"}
1
+ {"version":3,"file":"CustomItemPools.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomItemPools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAO7E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,eAAgB,SAAQ,OAAO;IAI1C,OAAO,CAAC,iBAAiB,CAGrB;IAeJ,OAAO,CAAC,wBAAwB,CAM9B;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IAEI,sBAAsB,CAC3B,kBAAkB,EAAE,YAAY,EAChC,YAAY,EAAE,aAAa,CAAC,eAAe,CAAC,GAC3C,IAAI;IAUP;;;;;;;;;;;;;;;;;OAiBG;IAEI,4BAA4B,CACjC,kBAAkB,EAAE,YAAY,EAChC,QAAQ,UAAQ,EAChB,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,WAAW,kBAAuB,GACjC,eAAe;CA2BnB"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Map = ____lualib.Map
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local ____exports = {}
8
8
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -21,19 +21,20 @@ local ____weighted = require("src.functions.weighted")
21
21
  local getRandomIndexFromWeightedArray = ____weighted.getRandomIndexFromWeightedArray
22
22
  local ____Feature = require("src.classes.private.Feature")
23
23
  local Feature = ____Feature.Feature
24
+ local v = {run = {customItemPools = __TS__New(Map)}}
24
25
  ____exports.CustomItemPools = __TS__Class()
25
26
  local CustomItemPools = ____exports.CustomItemPools
26
27
  CustomItemPools.name = "CustomItemPools"
27
28
  __TS__ClassExtends(CustomItemPools, Feature)
28
29
  function CustomItemPools.prototype.____constructor(self)
29
30
  Feature.prototype.____constructor(self)
30
- self.v = {run = {customItemPools = __TS__New(Map)}}
31
+ self.v = v
31
32
  self.customItemPoolMap = __TS__New(Map)
32
33
  self.postGameStartedReordered = function(____, isContinued)
33
34
  if isContinued then
34
35
  return
35
36
  end
36
- self.v.run.customItemPools = copyMap(nil, self.customItemPoolMap)
37
+ v.run.customItemPools = copyMap(nil, self.customItemPoolMap)
37
38
  end
38
39
  self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED, self.postGameStartedReordered}}
39
40
  end
@@ -53,7 +54,7 @@ function CustomItemPools.prototype.getCustomItemPoolCollectible(self, itemPoolTy
53
54
  if defaultItem == nil then
54
55
  defaultItem = CollectibleType.NULL
55
56
  end
56
- local customItemPool = self.v.run.customItemPools:get(itemPoolTypeCustom)
57
+ local customItemPool = v.run.customItemPools:get(itemPoolTypeCustom)
57
58
  if customItemPool == nil then
58
59
  error("Failed to find the custom item pool of: " .. tostring(itemPoolTypeCustom))
59
60
  end
@@ -1 +1 @@
1
- {"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,8BAA8B,CAAC;AAStC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,aAAc,SAAQ,OAAO;IACxC,4BAA4B;IAC5B,OAAO,CAAC,wBAAwB,CAA4C;IAoB5E,OAAO,CAAC,kBAAkB,CAqCxB;IAKF,OAAO,CAAC,4BAA4B,CASlC;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IAEI,oBAAoB,CACzB,mBAAmB,EAAE,aAAa,EAClC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,EACvD,aAAa,GAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,OAAoB,GACxE,IAAI;CAYR"}
1
+ {"version":3,"file":"CustomPickups.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomPickups.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,8BAA8B,CAAC;AAStC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkBhD,qBAAa,aAAc,SAAQ,OAAO;IACxC,4BAA4B;IAC5B,OAAO,CAAC,wBAAwB,CAA4C;IAoB5E,OAAO,CAAC,kBAAkB,CAqCxB;IAIF,OAAO,CAAC,4BAA4B,CASlC;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IAEI,oBAAoB,CACzB,mBAAmB,EAAE,aAAa,EAClC,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,EACvD,aAAa,GAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,KAAK,OAAoB,GACxE,IAAI;CAYR"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomStages.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomStages.ts"],"names":[],"mappings":"AAyCA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA0ChD,qBAAa,YAAa,SAAQ,OAAO;IA8BvC,oCAAoC;IACpC,OAAO,CAAC,eAAe,CAAkC;IAEzD,+BAA+B;IAC/B,OAAO,CAAC,yBAAyB,CAA8B;IAE/D,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAAe;IAqDnC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,6BAA6B;IAOrC,OAAO,CAAC,eAAe,CAarB;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,aAAa,CAcnB;IAGF,OAAO,CAAC,eAAe,CAUrB;IAIF,OAAO,CAAC,2BAA2B,CAejC;IAGF,OAAO,CAAC,kBAAkB,CAqBxB;IAGF,OAAO,CAAC,oBAAoB,CAe1B;IAEF,gDAAgD;IAChD,OAAO,CAAC,iBAAiB;IAgGzB;;;;;;;;;;;;;;;;OAgBG;IAEI,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,UAAU,UAAO,EACjB,UAAU,UAAO,EACjB,OAAO,UAAQ,GACd,IAAI;IAuFP;;;;;OAKG;IAEI,kBAAkB,IAAI,IAAI;CAGlC"}
1
+ {"version":3,"file":"CustomStages.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomStages.ts"],"names":[],"mappings":"AAuCA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA2ChD,qBAAa,YAAa,SAAQ,OAAO;IAIvC,oCAAoC;IACpC,OAAO,CAAC,eAAe,CAAkC;IAEzD,+BAA+B;IAC/B,OAAO,CAAC,yBAAyB,CAA8B;IAE/D,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAAe;IAqDnC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,6BAA6B;IAOrC,OAAO,CAAC,eAAe,CAarB;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,aAAa,CAcnB;IAGF,OAAO,CAAC,eAAe,CAUrB;IAIF,OAAO,CAAC,2BAA2B,CAejC;IAGF,OAAO,CAAC,kBAAkB,CAqBxB;IAGF,OAAO,CAAC,oBAAoB,CAc1B;IAEF,gDAAgD;IAChD,OAAO,CAAC,iBAAiB;IAgGzB;;;;;;;;;;;;;;;;OAgBG;IAEI,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,UAAU,UAAO,EACjB,UAAU,UAAO,EACjB,OAAO,UAAQ,GACd,IAAI;IAuFP;;;;;OAKG;IAEI,kBAAkB,IAAI,IAAI;CAGlC"}
@@ -25,8 +25,6 @@ local ____ISCFeature = require("src.enums.ISCFeature")
25
25
  local ISCFeature = ____ISCFeature.ISCFeature
26
26
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
27
27
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
28
- local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
29
- local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
30
28
  local ____array = require("src.functions.array")
31
29
  local isArray = ____array.isArray
32
30
  local ____doors = require("src.functions.doors")
@@ -74,6 +72,8 @@ local topStreakTextStart = ____streakText.topStreakTextStart
74
72
  local ____utils = require("src.classes.features.other.customStages.utils")
75
73
  local getRandomBossRoomFromPool = ____utils.getRandomBossRoomFromPool
76
74
  local getRandomCustomStageRoom = ____utils.getRandomCustomStageRoom
75
+ local ____v = require("src.classes.features.other.customStages.v")
76
+ local v = ____v.v
77
77
  local ____versusScreen = require("src.classes.features.other.customStages.versusScreen")
78
78
  local playVersusScreenAnimation = ____versusScreen.playVersusScreenAnimation
79
79
  local versusScreenPostRender = ____versusScreen.versusScreenPostRender
@@ -111,15 +111,7 @@ CustomStages.name = "CustomStages"
111
111
  __TS__ClassExtends(CustomStages, Feature)
112
112
  function CustomStages.prototype.____constructor(self, customGridEntities, customTrapdoors, disableAllSound, gameReorderedCallbacks, pause, runInNFrames)
113
113
  Feature.prototype.____constructor(self)
114
- self.v = {run = {
115
- currentCustomStage = nil,
116
- firstFloor = true,
117
- showingBossVersusScreen = false,
118
- controllerIndexPushingMapRenderFrame = __TS__New(Map),
119
- topStreakTextStartedRenderFrame = nil,
120
- topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
121
- bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
122
- }}
114
+ self.v = v
123
115
  self.customStagesMap = __TS__New(Map)
124
116
  self.customStageCachedRoomData = __TS__New(Map)
125
117
  self.goToCustomStage = function(____, destinationName, destinationStage, _destinationStageType)
@@ -130,15 +122,15 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
130
122
  self:setCustomStage(destinationName, firstFloor)
131
123
  end
132
124
  self.postRender = function()
133
- local customStage = self.v.run.currentCustomStage
125
+ local customStage = v.run.currentCustomStage
134
126
  if customStage == nil then
135
127
  return
136
128
  end
137
- streakTextPostRender(nil, self.v)
138
- versusScreenPostRender(nil, self.v, self.pause, self.disableAllSound)
129
+ streakTextPostRender(nil)
130
+ versusScreenPostRender(nil, self.pause, self.disableAllSound)
139
131
  end
140
132
  self.postCurseEval = function(____, curses)
141
- local customStage = self.v.run.currentCustomStage
133
+ local customStage = v.run.currentCustomStage
142
134
  if customStage == nil then
143
135
  return nil
144
136
  end
@@ -148,15 +140,15 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
148
140
  return nil
149
141
  end
150
142
  self.getShaderParams = function(____, shaderName)
151
- local customStage = self.v.run.currentCustomStage
143
+ local customStage = v.run.currentCustomStage
152
144
  if customStage == nil then
153
145
  return
154
146
  end
155
- streakTextGetShaderParams(nil, self.v, customStage, shaderName)
147
+ streakTextGetShaderParams(nil, customStage, shaderName)
156
148
  return nil
157
149
  end
158
150
  self.postGridEntityBrokenRockAlt = function(____, gridEntity)
159
- local customStage = self.v.run.currentCustomStage
151
+ local customStage = v.run.currentCustomStage
160
152
  if customStage == nil then
161
153
  return
162
154
  end
@@ -166,7 +158,7 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
166
158
  removeUrnRewards(nil, gridEntity)
167
159
  end
168
160
  self.postGridEntityInit = function(____, gridEntity)
169
- local customStage = self.v.run.currentCustomStage
161
+ local customStage = v.run.currentCustomStage
170
162
  if customStage == nil then
171
163
  return
172
164
  end
@@ -181,12 +173,12 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
181
173
  nil,
182
174
  customStage,
183
175
  gridEntity,
184
- self.v.run.firstFloor,
176
+ v.run.firstFloor,
185
177
  self.customTrapdoors
186
178
  )
187
179
  end
188
180
  self.postNewRoomReordered = function()
189
- local customStage = self.v.run.currentCustomStage
181
+ local customStage = v.run.currentCustomStage
190
182
  if customStage == nil then
191
183
  return
192
184
  end
@@ -194,7 +186,6 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
194
186
  setShadows(nil, customStage)
195
187
  playVersusScreenAnimation(
196
188
  nil,
197
- self.v,
198
189
  customStage,
199
190
  self.disableAllSound,
200
191
  self.pause,
@@ -327,8 +318,8 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
327
318
  local seeds = game:GetSeeds()
328
319
  local startSeed = seeds:GetStartSeed()
329
320
  local rng = newRNG(nil, startSeed)
330
- self.v.run.currentCustomStage = customStage
331
- self.v.run.firstFloor = firstFloor
321
+ v.run.currentCustomStage = customStage
322
+ v.run.firstFloor = firstFloor
332
323
  if stage == CUSTOM_FLOOR_STAGE then
333
324
  level:SetStage(LevelStage.BASEMENT_1, StageType.ORIGINAL)
334
325
  end
@@ -347,7 +338,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
347
338
  self.gameReorderedCallbacks:reorderedCallbacksSetStage(targetStage, targetStageType)
348
339
  if streakText then
349
340
  self.runInNFrames:runNextGameFrame(function()
350
- topStreakTextStart(nil, self.v)
341
+ topStreakTextStart(nil)
351
342
  end)
352
343
  end
353
344
  local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
@@ -360,7 +351,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
360
351
  )
361
352
  end
362
353
  function CustomStages.prototype.disableCustomStage(self)
363
- self.v.run.currentCustomStage = nil
354
+ v.run.currentCustomStage = nil
364
355
  end
365
356
  __TS__Decorate({Exported}, CustomStages.prototype, "setCustomStage", true)
366
357
  __TS__Decorate({Exported}, CustomStages.prototype, "disableCustomStage", true)
@@ -1 +1 @@
1
- {"version":3,"file":"CustomTrapdoors.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomTrapdoors.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,UAAU,EAKV,SAAS,EACV,MAAM,8BAA8B,CAAC;AA8BtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAgChD,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,qCAAqC;IACrC,OAAO,CAAC,kBAAkB,CAOtB;IAqBJ;;;;;OAKG;IACH,OAAO,CAAC,WAAW,CAAY;IAE/B,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,YAAY,CAAe;IAmDnC,OAAO,CAAC,UAAU,CAMhB;IAEF,OAAO,CAAC,2BAA2B;IA+BnC,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,6BAA6B;IAsBrC,OAAO,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,4BAA4B;IAiDpC,OAAO,CAAC,iCAAiC;IAsBzC,OAAO,CAAC,eAAe;IAqBvB,OAAO,CAAC,kCAAkC,CAaxC;IAEF,OAAO,CAAC,4BAA4B;IAcpC,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,sBAAsB;IAmB9B,OAAO,CAAC,gCAAgC;IAuCxC,OAAO,CAAC,2BAA2B;IAqCnC,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,uBAAuB;IA4B/B,OAAO,CAAC,eAAe;IAUvB;;;;;;;;;;;;;;;;;;OAkBG;IAEI,iCAAiC,CACtC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CACf,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,gBAAgB,EAAE,UAAU,EAC5B,oBAAoB,EAAE,SAAS,KAC5B,IAAI,GACR,IAAI;IAUP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IAEI,mBAAmB,CACxB,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,eAAe,CAAC,EAAE,MAAM,EACxB,gBAAgB,CAAC,EAAE,UAAU,EAC7B,oBAAoB,CAAC,EAAE,SAAS,EAChC,QAAQ,SAAmC,EAC3C,SAAS,CAAC,EAAE,OAAO,GAClB,UAAU;CA0Dd"}
1
+ {"version":3,"file":"CustomTrapdoors.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomTrapdoors.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,UAAU,EAKV,SAAS,EACV,MAAM,8BAA8B,CAAC;AA8BtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAkDhD,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,qCAAqC;IACrC,OAAO,CAAC,kBAAkB,CAOtB;IAKJ;;;;;OAKG;IACH,OAAO,CAAC,WAAW,CAAY;IAE/B,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,YAAY,CAAe;IAmDnC,OAAO,CAAC,UAAU,CAMhB;IAEF,OAAO,CAAC,2BAA2B;IA+BnC,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,6BAA6B;IAsBrC,OAAO,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,4BAA4B;IAiDpC,OAAO,CAAC,iCAAiC;IAsBzC,OAAO,CAAC,eAAe;IAoBvB,OAAO,CAAC,kCAAkC,CAYxC;IAEF,OAAO,CAAC,4BAA4B;IAcpC,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,sBAAsB;IAmB9B,OAAO,CAAC,gCAAgC;IAuCxC,OAAO,CAAC,2BAA2B;IAqCnC,OAAO,CAAC,gBAAgB;IAoBxB,OAAO,CAAC,8BAA8B;IAmDtC,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,uBAAuB;IA4B/B,OAAO,CAAC,eAAe;IAUvB;;;;;;;;;;;;;;;;;;OAkBG;IAEI,iCAAiC,CACtC,eAAe,EAAE,MAAM,EACvB,eAAe,EAAE,CACf,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,gBAAgB,EAAE,UAAU,EAC5B,oBAAoB,EAAE,SAAS,KAC5B,IAAI,GACR,IAAI;IAUP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IAEI,mBAAmB,CACxB,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,eAAe,CAAC,EAAE,MAAM,EACxB,gBAAgB,CAAC,EAAE,UAAU,EAC7B,oBAAoB,CAAC,EAAE,SAAS,EAChC,QAAQ,SAAmC,EAC3C,SAAS,CAAC,EAAE,OAAO,GAClB,UAAU;CAyDd"}