isaacscript-common 25.2.0 → 25.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/index.rollup.d.ts +27 -2
  2. package/dist/isaacscript-common.lua +803 -693
  3. package/dist/src/classes/ModFeature.d.ts.map +1 -1
  4. package/dist/src/classes/ModFeature.lua +12 -5
  5. package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  6. package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
  7. package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  8. package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
  9. package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  10. package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
  11. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  12. package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
  13. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  14. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
  15. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
  17. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
  19. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
  21. package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
  23. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
  25. package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  26. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
  27. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  28. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
  29. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
  30. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
  32. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
  33. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
  35. package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
  37. package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
  38. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
  39. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  40. package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
  41. package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  42. package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
  43. package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  44. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
  45. package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
  47. package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  48. package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
  49. package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  50. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
  51. package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  52. package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
  53. package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  54. package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
  55. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  56. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
  57. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  58. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
  59. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  60. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
  61. package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
  63. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
  65. package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
  66. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
  67. package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  68. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
  69. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  70. package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
  71. package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  72. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
  73. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  74. package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
  75. package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  76. package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
  77. package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  78. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
  79. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
  81. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  82. package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
  83. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  84. package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
  85. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  86. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
  87. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  88. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
  89. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  90. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
  91. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  92. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
  93. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  94. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
  95. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  96. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
  97. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  98. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
  99. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
  101. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  102. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
  103. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  104. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
  105. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
  106. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
  107. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  108. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
  109. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  110. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
  111. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  112. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
  113. package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
  114. package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
  115. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  116. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  117. package/dist/src/classes/features/other/CustomStages.lua +17 -26
  118. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  119. package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
  120. package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
  121. package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
  122. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  123. package/dist/src/classes/features/other/DisableInputs.lua +21 -20
  124. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
  125. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  126. package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
  127. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  128. package/dist/src/classes/features/other/Pause.lua +20 -19
  129. package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
  130. package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
  131. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
  133. package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
  134. package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
  135. package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/PonyDetection.lua +8 -7
  137. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/PressInput.lua +7 -6
  139. package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
  141. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  142. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
  143. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  144. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
  145. package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
  147. package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
  148. package/dist/src/classes/features/other/RoomHistory.lua +9 -8
  149. package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
  150. package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
  151. package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
  152. package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
  153. package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
  154. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  155. package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
  156. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  157. package/dist/src/classes/features/other/StageHistory.lua +7 -6
  158. package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  159. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
  160. package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
  161. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  162. package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
  163. package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
  164. package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
  165. package/dist/src/classes/features/other/customStages/v.lua +16 -0
  166. package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
  167. package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
  168. package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
  169. package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
  170. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  171. package/dist/src/functions/decorators.d.ts +15 -0
  172. package/dist/src/functions/decorators.d.ts.map +1 -1
  173. package/dist/src/functions/decorators.lua +21 -5
  174. package/dist/src/interfaces/SaveData.d.ts.map +1 -1
  175. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
  176. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  177. package/dist/src/shouldFire.d.ts +1 -0
  178. package/dist/src/shouldFire.d.ts.map +1 -1
  179. package/dist/src/shouldFire.lua +5 -0
  180. package/package.json +1 -1
  181. package/src/classes/ModFeature.ts +16 -4
  182. package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
  183. package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
  184. package/src/classes/callbacks/PostBombInitLate.ts +9 -7
  185. package/src/classes/callbacks/PostBoneSwing.ts +9 -7
  186. package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
  187. package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
  188. package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
  189. package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
  190. package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
  191. package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
  192. package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
  193. package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
  194. package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
  195. package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
  196. package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
  197. package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
  198. package/src/classes/callbacks/PostItemDischarge.ts +21 -27
  199. package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
  200. package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
  201. package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
  202. package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
  203. package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
  204. package/src/classes/callbacks/PostPickupCollect.ts +9 -7
  205. package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
  206. package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
  207. package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
  208. package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
  209. package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
  210. package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
  211. package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
  212. package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
  213. package/src/classes/callbacks/PostPurchase.ts +11 -9
  214. package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
  215. package/src/classes/callbacks/PostSacrifice.ts +9 -7
  216. package/src/classes/callbacks/PostTearInitLate.ts +9 -7
  217. package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
  218. package/src/classes/callbacks/PostTransformation.ts +12 -10
  219. package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
  220. package/src/classes/callbacks/PreNewLevel.ts +9 -7
  221. package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
  222. package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
  223. package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
  224. package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
  225. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
  226. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
  227. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
  228. package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
  229. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
  230. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
  231. package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
  232. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
  233. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
  234. package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
  235. package/src/classes/features/other/CustomItemPools.ts +9 -7
  236. package/src/classes/features/other/CustomPickups.ts +0 -1
  237. package/src/classes/features/other/CustomStages.ts +16 -44
  238. package/src/classes/features/other/CustomTrapdoors.ts +53 -54
  239. package/src/classes/features/other/DisableAllSound.ts +13 -11
  240. package/src/classes/features/other/DisableInputs.ts +39 -37
  241. package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
  242. package/src/classes/features/other/NoSirenSteal.ts +11 -9
  243. package/src/classes/features/other/Pause.ts +21 -19
  244. package/src/classes/features/other/PersistentEntities.ts +33 -31
  245. package/src/classes/features/other/PickupIndexCreation.ts +35 -33
  246. package/src/classes/features/other/PlayerInventory.ts +14 -12
  247. package/src/classes/features/other/PonyDetection.ts +11 -9
  248. package/src/classes/features/other/PressInput.ts +11 -9
  249. package/src/classes/features/other/PreventChildEntities.ts +10 -8
  250. package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
  251. package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
  252. package/src/classes/features/other/RoomClearFrame.ts +12 -10
  253. package/src/classes/features/other/RoomHistory.ts +13 -11
  254. package/src/classes/features/other/RunInNFrames.ts +19 -17
  255. package/src/classes/features/other/RunNextRoom.ts +10 -8
  256. package/src/classes/features/other/SaveDataManager.ts +11 -0
  257. package/src/classes/features/other/StageHistory.ts +11 -9
  258. package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
  259. package/src/classes/features/other/customStages/streakText.ts +14 -44
  260. package/src/classes/features/other/customStages/v.ts +31 -0
  261. package/src/classes/features/other/customStages/versusScreen.ts +2 -10
  262. package/src/enums/ModCallbackCustom.ts +6 -0
  263. package/src/functions/decorators.ts +45 -4
  264. package/src/interfaces/SaveData.ts +0 -1
  265. package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
  266. package/src/shouldFire.ts +10 -0
@@ -1 +1 @@
1
- {"version":3,"file":"RoomHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomHistory.ts"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,WAAY,SAAQ,OAAO;IAkBtC,OAAO,CAAC,gBAAgB,CAgCtB;IAEF;;;;;OAKG;IAEI,kBAAkB,IAAI,GAAG;IAIhC;;;;;OAKG;IAEI,cAAc,IAAI,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAIjE;;;;;;;OAOG;IAEI,0BAA0B,IAAI,QAAQ,CAAC,eAAe,CAAC;IAiB9D;;;;;;;;;;OAUG;IAEI,wBAAwB,IAAI,QAAQ,CAAC,eAAe,CAAC,GAAG,SAAS;IAIxE;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,OAAO;CAwBhC"}
1
+ {"version":3,"file":"RoomHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomHistory.ts"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,WAAY,SAAQ,OAAO;IActC,OAAO,CAAC,gBAAgB,CAgCtB;IAEF;;;;;OAKG;IAEI,kBAAkB,IAAI,GAAG;IAIhC;;;;;OAKG;IAEI,cAAc,IAAI,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAIjE;;;;;;;OAOG;IAEI,0BAA0B,IAAI,QAAQ,CAAC,eAAe,CAAC;IAiB9D;;;;;;;;;;OAUG;IAEI,wBAAwB,IAAI,QAAQ,CAAC,eAAe,CAAC,GAAG,SAAS;IAIxE;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,OAAO;CAwBhC"}
@@ -23,13 +23,14 @@ local getRoomVariant = ____roomData.getRoomVariant
23
23
  local getRoomVisitedCount = ____roomData.getRoomVisitedCount
24
24
  local ____Feature = require("src.classes.private.Feature")
25
25
  local Feature = ____Feature.Feature
26
+ local v = {run = {roomHistory = {}}}
26
27
  ____exports.RoomHistory = __TS__Class()
27
28
  local RoomHistory = ____exports.RoomHistory
28
29
  RoomHistory.name = "RoomHistory"
29
30
  __TS__ClassExtends(RoomHistory, Feature)
30
31
  function RoomHistory.prototype.____constructor(self)
31
32
  Feature.prototype.____constructor(self)
32
- self.v = {run = {roomHistory = {}}}
33
+ self.v = v
33
34
  self.postNewRoomEarly = function()
34
35
  local level = game:GetLevel()
35
36
  local stage = level:GetStage()
@@ -60,30 +61,30 @@ function RoomHistory.prototype.____constructor(self)
60
61
  roomListIndex = roomListIndex,
61
62
  roomVisitedCount = roomVisitedCount
62
63
  }
63
- local ____self_v_run_roomHistory_0 = self.v.run.roomHistory
64
- ____self_v_run_roomHistory_0[#____self_v_run_roomHistory_0 + 1] = roomDescription
64
+ local ____v_run_roomHistory_0 = v.run.roomHistory
65
+ ____v_run_roomHistory_0[#____v_run_roomHistory_0 + 1] = roomDescription
65
66
  end
66
67
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
67
68
  end
68
69
  function RoomHistory.prototype.getNumRoomsEntered(self)
69
- return #self.v.run.roomHistory
70
+ return #v.run.roomHistory
70
71
  end
71
72
  function RoomHistory.prototype.getRoomHistory(self)
72
- return self.v.run.roomHistory
73
+ return v.run.roomHistory
73
74
  end
74
75
  function RoomHistory.prototype.getPreviousRoomDescription(self)
75
- local previousRoomDescription = self.v.run.roomHistory[#self.v.run.roomHistory - 2 + 1]
76
+ local previousRoomDescription = v.run.roomHistory[#v.run.roomHistory - 2 + 1]
76
77
  if previousRoomDescription ~= nil then
77
78
  return previousRoomDescription
78
79
  end
79
- local startingRoomDescription = self.v.run.roomHistory[1]
80
+ local startingRoomDescription = v.run.roomHistory[1]
80
81
  if startingRoomDescription ~= nil then
81
82
  return startingRoomDescription
82
83
  end
83
84
  error("Failed to find a room description for any rooms thus far on this run.")
84
85
  end
85
86
  function RoomHistory.prototype.getLatestRoomDescription(self)
86
- return getLastElement(nil, self.v.run.roomHistory)
87
+ return getLastElement(nil, v.run.roomHistory)
87
88
  end
88
89
  function RoomHistory.prototype.isLeavingRoom(self)
89
90
  local level = game:GetLevel()
@@ -1 +1 @@
1
- {"version":3,"file":"RunInNFrames.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunInNFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAMvE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAqBhD,qBAAa,YAAa,SAAQ,OAAO;IAYvB,gBAAgB,QAAO,OAAO,CAAU;IAExD,OAAO,CAAC,WAAW,CAAc;IAoBjC,OAAO,CAAC,UAAU,CAchB;IAGF,OAAO,CAAC,UAAU,CAchB;IAEF;;;;;;;;OAQG;IAEI,sBAAsB,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI;IAM3D;;;;;;;;;;;;;;;;OAgBG;IAEI,gBAAgB,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IAM3D;;;;;;;;;;;;;;;;OAgBG;IAEI,gBAAgB,CACrB,IAAI,EAAE,MAAM,IAAI,EAChB,aAAa,EAAE,GAAG,EAClB,mBAAmB,UAAQ,GAC1B,IAAI;IAcP;;;;;;;;;;;;;;;;OAgBG;IAEI,kBAAkB,CACvB,IAAI,EAAE,MAAM,IAAI,EAChB,eAAe,EAAE,GAAG,EACpB,mBAAmB,UAAQ,GAC1B,IAAI;IAcP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IAEI,gBAAgB,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,mBAAmB,UAAQ,GAAG,IAAI;IAI5E;;;;;;;;;;;;;OAaG;IAEI,kBAAkB,CACvB,IAAI,EAAE,MAAM,IAAI,EAChB,mBAAmB,UAAQ,GAC1B,IAAI;IAIP;;;;;;;;;;;;;;;;;;;OAmBG;IAEI,qBAAqB,CAC1B,IAAI,EAAE,MAAM,OAAO,EACnB,aAAa,EAAE,GAAG,EAClB,cAAc,EAAE,OAAO,EACvB,mBAAmB,UAAQ,GAC1B,IAAI;IAqBP;;;;;;;;;;;;;;;;;;;OAmBG;IAEI,uBAAuB,CAC5B,IAAI,EAAE,MAAM,OAAO,EACnB,eAAe,EAAE,GAAG,EACpB,cAAc,EAAE,OAAO,EACvB,mBAAmB,UAAQ,GAC1B,IAAI;CAoBR"}
@@ -69,25 +69,26 @@ function checkExecuteIntervalFunctions(self, intervalFunctions, frameCount, newN
69
69
  end
70
70
  end
71
71
  end
72
+ local v = {run = {queuedGameFunctions = {}, queuedRenderFunctions = {}, intervalGameFunctions = {}, intervalRenderFunctions = {}}}
72
73
  ____exports.RunInNFrames = __TS__Class()
73
74
  local RunInNFrames = ____exports.RunInNFrames
74
75
  RunInNFrames.name = "RunInNFrames"
75
76
  __TS__ClassExtends(RunInNFrames, Feature)
76
77
  function RunInNFrames.prototype.____constructor(self, roomHistory)
77
78
  Feature.prototype.____constructor(self)
78
- self.v = {run = {queuedGameFunctions = {}, queuedRenderFunctions = {}, intervalGameFunctions = {}, intervalRenderFunctions = {}}}
79
+ self.v = v
79
80
  self.vConditionalFunc = function() return false end
80
81
  self.postUpdate = function()
81
82
  local gameFrameCount = game:GetFrameCount()
82
83
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
83
- checkExecuteQueuedFunctions(nil, self.v.run.queuedGameFunctions, gameFrameCount, numRoomsEntered)
84
- checkExecuteIntervalFunctions(nil, self.v.run.intervalGameFunctions, gameFrameCount, numRoomsEntered)
84
+ checkExecuteQueuedFunctions(nil, v.run.queuedGameFunctions, gameFrameCount, numRoomsEntered)
85
+ checkExecuteIntervalFunctions(nil, v.run.intervalGameFunctions, gameFrameCount, numRoomsEntered)
85
86
  end
86
87
  self.postRender = function()
87
88
  local renderFrameCount = Isaac.GetFrameCount()
88
89
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
89
- checkExecuteQueuedFunctions(nil, self.v.run.queuedRenderFunctions, renderFrameCount, numRoomsEntered)
90
- checkExecuteIntervalFunctions(nil, self.v.run.intervalRenderFunctions, renderFrameCount, numRoomsEntered)
90
+ checkExecuteQueuedFunctions(nil, v.run.queuedRenderFunctions, renderFrameCount, numRoomsEntered)
91
+ checkExecuteIntervalFunctions(nil, v.run.intervalRenderFunctions, renderFrameCount, numRoomsEntered)
91
92
  end
92
93
  self.featuresUsed = {ISCFeature.ROOM_HISTORY}
93
94
  self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_RENDER, self.postRender}}
@@ -106,8 +107,8 @@ function RunInNFrames.prototype.runInNGameFrames(self, func, numGameFrames, canc
106
107
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
107
108
  local frameCountToFire = gameFrameCount + numGameFrames
108
109
  local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
109
- local ____self_v_run_queuedGameFunctions_0 = self.v.run.queuedGameFunctions
110
- ____self_v_run_queuedGameFunctions_0[#____self_v_run_queuedGameFunctions_0 + 1] = queuedFunction
110
+ local ____v_run_queuedGameFunctions_0 = v.run.queuedGameFunctions
111
+ ____v_run_queuedGameFunctions_0[#____v_run_queuedGameFunctions_0 + 1] = queuedFunction
111
112
  end
112
113
  function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames, cancelIfRoomChanges)
113
114
  if cancelIfRoomChanges == nil then
@@ -117,8 +118,8 @@ function RunInNFrames.prototype.runInNRenderFrames(self, func, numRenderFrames,
117
118
  local numRoomsEntered = self.roomHistory:getNumRoomsEntered()
118
119
  local frameCountToFire = renderFrameCount + numRenderFrames
119
120
  local queuedFunction = {func = func, frameCountToFire = frameCountToFire, numRoomsEntered = numRoomsEntered, cancelIfRoomChanges = cancelIfRoomChanges}
120
- local ____self_v_run_queuedRenderFunctions_1 = self.v.run.queuedRenderFunctions
121
- ____self_v_run_queuedRenderFunctions_1[#____self_v_run_queuedRenderFunctions_1 + 1] = queuedFunction
121
+ local ____v_run_queuedRenderFunctions_1 = v.run.queuedRenderFunctions
122
+ ____v_run_queuedRenderFunctions_1[#____v_run_queuedRenderFunctions_1 + 1] = queuedFunction
122
123
  end
123
124
  function RunInNFrames.prototype.runNextGameFrame(self, func, cancelIfRoomChanges)
124
125
  if cancelIfRoomChanges == nil then
@@ -151,8 +152,8 @@ function RunInNFrames.prototype.setIntervalGameFrames(self, func, numGameFrames,
151
152
  cancelIfRoomChanges = cancelIfRoomChanges,
152
153
  numIntervalFrames = numGameFrames
153
154
  }
154
- local ____self_v_run_intervalGameFunctions_2 = self.v.run.intervalGameFunctions
155
- ____self_v_run_intervalGameFunctions_2[#____self_v_run_intervalGameFunctions_2 + 1] = intervalFunction
155
+ local ____v_run_intervalGameFunctions_2 = v.run.intervalGameFunctions
156
+ ____v_run_intervalGameFunctions_2[#____v_run_intervalGameFunctions_2 + 1] = intervalFunction
156
157
  end
157
158
  function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFrames, runImmediately, cancelIfRoomChanges)
158
159
  if cancelIfRoomChanges == nil then
@@ -173,8 +174,8 @@ function RunInNFrames.prototype.setIntervalRenderFrames(self, func, numRenderFra
173
174
  cancelIfRoomChanges = cancelIfRoomChanges,
174
175
  numIntervalFrames = numRenderFrames
175
176
  }
176
- local ____self_v_run_intervalRenderFunctions_3 = self.v.run.intervalRenderFunctions
177
- ____self_v_run_intervalRenderFunctions_3[#____self_v_run_intervalRenderFunctions_3 + 1] = intervalFunction
177
+ local ____v_run_intervalRenderFunctions_3 = v.run.intervalRenderFunctions
178
+ ____v_run_intervalRenderFunctions_3[#____v_run_intervalRenderFunctions_3 + 1] = intervalFunction
178
179
  end
179
180
  __TS__Decorate({Exported}, RunInNFrames.prototype, "restartNextRenderFrame", true)
180
181
  __TS__Decorate({Exported}, RunInNFrames.prototype, "runInNGameFrames", true)
@@ -1 +1 @@
1
- {"version":3,"file":"RunNextRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunNextRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,WAAY,SAAQ,OAAO;IAQtB,gBAAgB,QAAO,OAAO,CAAU;IAYxD,OAAO,CAAC,oBAAoB,CAM1B;IAEF;;;;;;;;OAQG;IAEI,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;CAG3C"}
1
+ {"version":3,"file":"RunNextRoom.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RunNextRoom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,WAAY,SAAQ,OAAO;IAItB,gBAAgB,QAAO,OAAO,CAAU;IAYxD,OAAO,CAAC,oBAAoB,CAM1B;IAEF;;;;;;;;OAQG;IAEI,WAAW,CAAC,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;CAG3C"}
@@ -11,25 +11,26 @@ local ____array = require("src.functions.array")
11
11
  local emptyArray = ____array.emptyArray
12
12
  local ____Feature = require("src.classes.private.Feature")
13
13
  local Feature = ____Feature.Feature
14
+ local v = {run = {queuedFunctions = {}}}
14
15
  ____exports.RunNextRoom = __TS__Class()
15
16
  local RunNextRoom = ____exports.RunNextRoom
16
17
  RunNextRoom.name = "RunNextRoom"
17
18
  __TS__ClassExtends(RunNextRoom, Feature)
18
19
  function RunNextRoom.prototype.____constructor(self)
19
20
  Feature.prototype.____constructor(self)
20
- self.v = {run = {queuedFunctions = {}}}
21
+ self.v = v
21
22
  self.vConditionalFunc = function() return false end
22
23
  self.postNewRoomReordered = function()
23
- for ____, func in ipairs(self.v.run.queuedFunctions) do
24
+ for ____, func in ipairs(v.run.queuedFunctions) do
24
25
  func(nil)
25
26
  end
26
- emptyArray(nil, self.v.run.queuedFunctions)
27
+ emptyArray(nil, v.run.queuedFunctions)
27
28
  end
28
29
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
29
30
  end
30
31
  function RunNextRoom.prototype.runNextRoom(self, func)
31
- local ____self_v_run_queuedFunctions_0 = self.v.run.queuedFunctions
32
- ____self_v_run_queuedFunctions_0[#____self_v_run_queuedFunctions_0 + 1] = func
32
+ local ____v_run_queuedFunctions_0 = v.run.queuedFunctions
33
+ ____v_run_queuedFunctions_0[#____v_run_queuedFunctions_0 + 1] = func
33
34
  end
34
35
  __TS__Decorate({Exported}, RunNextRoom.prototype, "runNextRoom", true)
35
36
  return ____exports
@@ -235,5 +235,6 @@ export declare class SaveDataManager extends Feature {
235
235
  * In order to use this function, you must upgrade your mod with `ISCFeature.SAVE_DATA_MANAGER`.
236
236
  */
237
237
  saveDataManagerInMenu(): boolean;
238
+ saveDataManagerLogSubscribers(): void;
238
239
  }
239
240
  //# sourceMappingURL=SaveDataManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SaveDataManager.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/S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____lualib.__TS__ObjectKeys
7
7
  local __TS__Decorate = ____lualib.__TS__Decorate
8
+ local __TS__ArraySort = ____lualib.__TS__ArraySort
8
9
  local ____exports = {}
9
10
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
10
11
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
@@ -21,6 +22,8 @@ local ____SerializationType = require("src.enums.SerializationType")
21
22
  local SerializationType = ____SerializationType.SerializationType
22
23
  local ____deepCopy = require("src.functions.deepCopy")
23
24
  local deepCopy = ____deepCopy.deepCopy
25
+ local ____log = require("src.functions.log")
26
+ local log = ____log.log
24
27
  local ____stage = require("src.functions.stage")
25
28
  local onFirstFloor = ____stage.onFirstFloor
26
29
  local ____tstlClass = require("src.functions.tstlClass")
@@ -194,6 +197,14 @@ end
194
197
  function SaveDataManager.prototype.saveDataManagerInMenu(self)
195
198
  return not self.loadedDataOnThisRun
196
199
  end
200
+ function SaveDataManager.prototype.saveDataManagerLogSubscribers(self)
201
+ log("List of save data manager subscribers:")
202
+ local keys = __TS__ObjectKeys(self.saveDataMap)
203
+ __TS__ArraySort(keys)
204
+ for ____, key in ipairs(keys) do
205
+ log("- " .. key)
206
+ end
207
+ end
197
208
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManager", true)
198
209
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLoad", true)
199
210
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerSave", true)
@@ -202,4 +213,5 @@ __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRegisterCl
202
213
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerRemove", true)
203
214
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerReset", true)
204
215
  __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerInMenu", true)
216
+ __TS__Decorate({Exported}, SaveDataManager.prototype, "saveDataManagerLogSubscribers", true)
205
217
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"StageHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/StageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,YAAa,SAAQ,OAAO;IAkBvC,OAAO,CAAC,qBAAqB,CAM3B;IAEF;;;;;;;;;;;;OAYG;IAEI,2BAA2B,CAAC,OAAO,UAAQ,GAAG,SAAS;IAiG9D;;;;;;;;;OASG;IAEI,uBAAuB,IAAI,UAAU;IA8H5C;;;;OAIG;IAEI,eAAe,IAAI,aAAa,CACrC;QAAC,KAAK,EAAE,UAAU;QAAE,SAAS,EAAE,SAAS;KAAC,CAC1C;IAID;;;;;;;;;OASG;IAEI,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO;CAY1E"}
1
+ {"version":3,"file":"StageHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/StageHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,YAAa,SAAQ,OAAO;IAcvC,OAAO,CAAC,qBAAqB,CAM3B;IAEF;;;;;;;;;;;;OAYG;IAEI,2BAA2B,CAAC,OAAO,UAAQ,GAAG,SAAS;IAiG9D;;;;;;;;;OASG;IAEI,uBAAuB,IAAI,UAAU;IA8H5C;;;;OAIG;IAEI,eAAe,IAAI,aAAa,CACrC;QAAC,KAAK,EAAE,UAAU;QAAE,SAAS,EAAE,SAAS;KAAC,CAC1C;IAID;;;;;;;;;OASG;IAEI,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO;CAY1E"}
@@ -24,19 +24,20 @@ local ____types = require("src.functions.types")
24
24
  local asNumber = ____types.asNumber
25
25
  local ____Feature = require("src.classes.private.Feature")
26
26
  local Feature = ____Feature.Feature
27
+ local v = {run = {stageHistory = {}}}
27
28
  ____exports.StageHistory = __TS__Class()
28
29
  local StageHistory = ____exports.StageHistory
29
30
  StageHistory.name = "StageHistory"
30
31
  __TS__ClassExtends(StageHistory, Feature)
31
32
  function StageHistory.prototype.____constructor(self)
32
33
  Feature.prototype.____constructor(self)
33
- self.v = {run = {stageHistory = {}}}
34
+ self.v = v
34
35
  self.postNewLevelReordered = function()
35
36
  local level = game:GetLevel()
36
37
  local stage = level:GetStage()
37
38
  local stageType = level:GetStageType()
38
- local ____self_v_run_stageHistory_0 = self.v.run.stageHistory
39
- ____self_v_run_stageHistory_0[#____self_v_run_stageHistory_0 + 1] = {stage, stageType}
39
+ local ____v_run_stageHistory_0 = v.run.stageHistory
40
+ ____v_run_stageHistory_0[#____v_run_stageHistory_0 + 1] = {stage, stageType}
40
41
  end
41
42
  self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_LEVEL_REORDERED, self.postNewLevelReordered}}
42
43
  end
@@ -169,12 +170,12 @@ function StageHistory.prototype.getNextStageWithHistory(self)
169
170
  return asNumber(nil, stage) - 1
170
171
  end
171
172
  function StageHistory.prototype.getStageHistory(self)
172
- return self.v.run.stageHistory
173
+ return v.run.stageHistory
173
174
  end
174
175
  function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
175
176
  if stageType == nil then
176
177
  return __TS__ArraySome(
177
- self.v.run.stageHistory,
178
+ v.run.stageHistory,
178
179
  function(____, ____bindingPattern0)
179
180
  local previousStage
180
181
  previousStage = ____bindingPattern0[1]
@@ -183,7 +184,7 @@ function StageHistory.prototype.hasVisitedStage(self, stage, stageType)
183
184
  )
184
185
  end
185
186
  return __TS__ArraySome(
186
- self.v.run.stageHistory,
187
+ v.run.stageHistory,
187
188
  function(____, ____bindingPattern0)
188
189
  local previousStageType
189
190
  local previousStage
@@ -1 +1 @@
1
- {"version":3,"file":"TaintedLazarusPlayers.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/TaintedLazarusPlayers.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,OAAO;IAwBhC,gBAAgB,QAAO,OAAO,CAAU;IAaxD,OAAO,CAAC,cAAc,CAYpB;IAEF;;;;;;;;OAQG;IACH,OAAO,CAAC,YAAY;IA6BpB;;;;;;;;;;;;;OAaG;IAEI,0BAA0B,CAC/B,MAAM,EAAE,YAAY,GACnB,YAAY,GAAG,SAAS;CAI5B"}
1
+ {"version":3,"file":"TaintedLazarusPlayers.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/TaintedLazarusPlayers.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAuBhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,OAAO;IAIhC,gBAAgB,QAAO,OAAO,CAAU;IAaxD,OAAO,CAAC,cAAc,CAYpB;IAEF;;;;;;;;OAQG;IACH,OAAO,CAAC,YAAY;IA6BpB;;;;;;;;;;;;;OAaG;IAEI,0BAA0B,CAC/B,MAAM,EAAE,YAAY,GACnB,YAAY,GAAG,SAAS;CAI5B"}
@@ -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")
@@ -14,6 +14,11 @@ local ____logMisc = require("src.functions.logMisc")
14
14
  local logError = ____logMisc.logError
15
15
  local ____Feature = require("src.classes.private.Feature")
16
16
  local Feature = ____Feature.Feature
17
+ local v = {run = {
18
+ queuedTaintedLazarus = {},
19
+ queuedDeadTaintedLazarus = {},
20
+ subPlayerMap = __TS__New(Map)
21
+ }}
17
22
  --- This feature provides a way for end-users to get the `EntityPlayer` object for the other Tainted
18
23
  -- Lazarus.
19
24
  ____exports.TaintedLazarusPlayers = __TS__Class()
@@ -22,20 +27,16 @@ TaintedLazarusPlayers.name = "TaintedLazarusPlayers"
22
27
  __TS__ClassExtends(TaintedLazarusPlayers, Feature)
23
28
  function TaintedLazarusPlayers.prototype.____constructor(self)
24
29
  Feature.prototype.____constructor(self)
25
- self.v = {run = {
26
- queuedTaintedLazarus = {},
27
- queuedDeadTaintedLazarus = {},
28
- subPlayerMap = __TS__New(Map)
29
- }}
30
+ self.v = v
30
31
  self.vConditionalFunc = function() return false end
31
32
  self.postPlayerInit = function(____, player)
32
33
  local character = player:GetPlayerType()
33
34
  if character == PlayerType.LAZARUS_B then
34
- local ____self_v_run_queuedTaintedLazarus_0 = self.v.run.queuedTaintedLazarus
35
- ____self_v_run_queuedTaintedLazarus_0[#____self_v_run_queuedTaintedLazarus_0 + 1] = player
35
+ local ____v_run_queuedTaintedLazarus_0 = v.run.queuedTaintedLazarus
36
+ ____v_run_queuedTaintedLazarus_0[#____v_run_queuedTaintedLazarus_0 + 1] = player
36
37
  elseif character == PlayerType.LAZARUS_2_B then
37
- local ____self_v_run_queuedDeadTaintedLazarus_1 = self.v.run.queuedDeadTaintedLazarus
38
- ____self_v_run_queuedDeadTaintedLazarus_1[#____self_v_run_queuedDeadTaintedLazarus_1 + 1] = player
38
+ local ____v_run_queuedDeadTaintedLazarus_1 = v.run.queuedDeadTaintedLazarus
39
+ ____v_run_queuedDeadTaintedLazarus_1[#____v_run_queuedDeadTaintedLazarus_1 + 1] = player
39
40
  else
40
41
  return
41
42
  end
@@ -44,11 +45,11 @@ function TaintedLazarusPlayers.prototype.____constructor(self)
44
45
  self.callbacksUsed = {{ModCallback.POST_PLAYER_INIT, self.postPlayerInit}}
45
46
  end
46
47
  function TaintedLazarusPlayers.prototype.checkDequeue(self)
47
- if #self.v.run.queuedTaintedLazarus == 0 or #self.v.run.queuedDeadTaintedLazarus == 0 then
48
+ if #v.run.queuedTaintedLazarus == 0 or #v.run.queuedDeadTaintedLazarus == 0 then
48
49
  return
49
50
  end
50
- local taintedLazarus = table.remove(self.v.run.queuedTaintedLazarus, 1)
51
- local deadTaintedLazarus = table.remove(self.v.run.queuedDeadTaintedLazarus, 1)
51
+ local taintedLazarus = table.remove(v.run.queuedTaintedLazarus, 1)
52
+ local deadTaintedLazarus = table.remove(v.run.queuedDeadTaintedLazarus, 1)
52
53
  if taintedLazarus == nil or deadTaintedLazarus == nil then
53
54
  return
54
55
  end
@@ -58,12 +59,12 @@ function TaintedLazarusPlayers.prototype.checkDequeue(self)
58
59
  logError("Failed to cache the Tainted Lazarus player objects, since the hash for Tainted Lazarus and Dead Tainted Lazarus were the same.")
59
60
  return
60
61
  end
61
- self.v.run.subPlayerMap:set(taintedLazarusPtrHash, deadTaintedLazarus)
62
- self.v.run.subPlayerMap:set(deadTaintedLazarusPtrHash, taintedLazarus)
62
+ v.run.subPlayerMap:set(taintedLazarusPtrHash, deadTaintedLazarus)
63
+ v.run.subPlayerMap:set(deadTaintedLazarusPtrHash, taintedLazarus)
63
64
  end
64
65
  function TaintedLazarusPlayers.prototype.getTaintedLazarusSubPlayer(self, player)
65
66
  local ptrHash = GetPtrHash(player)
66
- return self.v.run.subPlayerMap:get(ptrHash)
67
+ return v.run.subPlayerMap:get(ptrHash)
67
68
  end
68
69
  __TS__Decorate({Exported}, TaintedLazarusPlayers.prototype, "getTaintedLazarusSubPlayer", true)
69
70
  return ____exports
@@ -1,27 +1,5 @@
1
- import { ControllerIndex } from "isaac-typescript-definitions";
2
- import { UIStreakAnimation } from "../../../../enums/private/UIStreakAnimation";
3
1
  import { CustomStage } from "../../../../interfaces/private/CustomStage";
4
- interface StreakTextVars {
5
- run: {
6
- /** Whether we are on e.g. Caves 1 or Caves 2. */
7
- firstFloor: boolean;
8
- /** Values are the render frame that the controller first pressed the map button. */
9
- controllerIndexPushingMapRenderFrame: Map<ControllerIndex, int>;
10
- topStreakTextStartedRenderFrame: int | null;
11
- topStreakText: {
12
- animation: UIStreakAnimation;
13
- frame: int;
14
- pauseFrame: boolean;
15
- };
16
- bottomStreakText: {
17
- animation: UIStreakAnimation;
18
- frame: int;
19
- pauseFrame: boolean;
20
- };
21
- };
22
- }
23
- export declare function streakTextPostRender(v: StreakTextVars): void;
24
- export declare function streakTextGetShaderParams(v: StreakTextVars, customStage: CustomStage, shaderName: string): void;
25
- export declare function topStreakTextStart(v: StreakTextVars): void;
26
- export {};
2
+ export declare function streakTextPostRender(): void;
3
+ export declare function streakTextGetShaderParams(customStage: CustomStage, shaderName: string): void;
4
+ export declare function topStreakTextStart(): void;
27
5
  //# sourceMappingURL=streakText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"streakText.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/streakText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAI7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAKhF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AA0EzE,UAAU,cAAc;IACtB,GAAG,EAAE;QACH,iDAAiD;QACjD,UAAU,EAAE,OAAO,CAAC;QAEpB,oFAAoF;QACpF,oCAAoC,EAAE,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;QAEhE,+BAA+B,EAAE,GAAG,GAAG,IAAI,CAAC;QAE5C,aAAa,EAAE;YACb,SAAS,EAAE,iBAAiB,CAAC;YAC7B,KAAK,EAAE,GAAG,CAAC;YACX,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;QAEF,gBAAgB,EAAE;YAChB,SAAS,EAAE,iBAAiB,CAAC;YAC7B,KAAK,EAAE,GAAG,CAAC;YACX,UAAU,EAAE,OAAO,CAAC;SACrB,CAAC;KACH,CAAC;CACH;AAGD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,IAAI,CAS5D;AA0FD,wBAAgB,yBAAyB,CACvC,CAAC,EAAE,cAAc,EACjB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,GACjB,IAAI,CAiBN;AA2ED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,cAAc,GAAG,IAAI,CAW1D"}
1
+ {"version":3,"file":"streakText.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/streakText.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AA4EzE,wBAAgB,oBAAoB,IAAI,IAAI,CAS3C;AA0FD,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,GACjB,IAAI,CAYN;AA0ED,wBAAgB,kBAAkB,IAAI,IAAI,CAWzC"}
@@ -17,7 +17,9 @@ local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
17
17
  local ____ui = require("src.functions.ui")
18
18
  local getScreenBottomCenterPos = ____ui.getScreenBottomCenterPos
19
19
  local getScreenTopCenterPos = ____ui.getScreenTopCenterPos
20
- function checkEndTopStreakText(self, v)
20
+ local ____v = require("src.classes.features.other.customStages.v")
21
+ local v = ____v.v
22
+ function checkEndTopStreakText(self)
21
23
  if v.run.topStreakTextStartedRenderFrame == nil or v.run.topStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
22
24
  return
23
25
  end
@@ -28,7 +30,7 @@ function checkEndTopStreakText(self, v)
28
30
  v.run.topStreakText.frame = TEXT_OUT_FRAME - 2
29
31
  end
30
32
  end
31
- function trackMapInputPressed(self, v)
33
+ function trackMapInputPressed(self)
32
34
  for ____, controllerIndex in ipairs(CONTROLLER_INDEX_VALUES) do
33
35
  local gameFrameCount = game:GetFrameCount()
34
36
  local oldPushedMapFrame = v.run.controllerIndexPushingMapRenderFrame:get(controllerIndex)
@@ -42,7 +44,7 @@ function trackMapInputPressed(self, v)
42
44
  end
43
45
  end
44
46
  end
45
- function checkStartBottomStreakText(self, v)
47
+ function checkStartBottomStreakText(self)
46
48
  if v.run.bottomStreakText.animation ~= UIStreakAnimation.NONE then
47
49
  return
48
50
  end
@@ -58,7 +60,7 @@ function checkStartBottomStreakText(self, v)
58
60
  v.run.bottomStreakText.frame = 0
59
61
  end
60
62
  end
61
- function checkEndBottomStreakText(self, v)
63
+ function checkEndBottomStreakText(self)
62
64
  if v.run.bottomStreakText.animation ~= UIStreakAnimation.TEXT_STAY then
63
65
  return
64
66
  end
@@ -68,7 +70,7 @@ function checkEndBottomStreakText(self, v)
68
70
  v.run.bottomStreakText.frame = TEXT_OUT_FRAME - 2
69
71
  end
70
72
  end
71
- function renderStreakText(self, v, customStage, streakText, position)
73
+ function renderStreakText(self, customStage, streakText, position)
72
74
  if streakText.animation == UIStreakAnimation.NONE then
73
75
  return
74
76
  end
@@ -179,36 +181,24 @@ TEXT_OUT_SCALES = {
179
181
  Vector(2.59, 0.38),
180
182
  Vector(3, 0.2)
181
183
  }
182
- function ____exports.streakTextPostRender(self, v)
183
- checkEndTopStreakText(nil, v)
184
- trackMapInputPressed(nil, v)
185
- checkStartBottomStreakText(nil, v)
186
- checkEndBottomStreakText(nil, v)
184
+ function ____exports.streakTextPostRender(self)
185
+ checkEndTopStreakText(nil)
186
+ trackMapInputPressed(nil)
187
+ checkStartBottomStreakText(nil)
188
+ checkEndBottomStreakText(nil)
187
189
  end
188
- function ____exports.streakTextGetShaderParams(self, v, customStage, shaderName)
190
+ function ____exports.streakTextGetShaderParams(self, customStage, shaderName)
189
191
  if shaderName ~= EMPTY_SHADER_NAME then
190
192
  return
191
193
  end
192
194
  local topCenterPos = getScreenTopCenterPos(nil)
193
195
  local topStreakPosition = topCenterPos + STREAK_SPRITE_TOP_OFFSET
194
- renderStreakText(
195
- nil,
196
- v,
197
- customStage,
198
- v.run.topStreakText,
199
- topStreakPosition
200
- )
196
+ renderStreakText(nil, customStage, v.run.topStreakText, topStreakPosition)
201
197
  local bottomCenterPos = getScreenBottomCenterPos(nil)
202
198
  local bottomStreakPosition = bottomCenterPos + STREAK_SPRITE_BOTTOM_OFFSET
203
- renderStreakText(
204
- nil,
205
- v,
206
- customStage,
207
- v.run.bottomStreakText,
208
- bottomStreakPosition
209
- )
199
+ renderStreakText(nil, customStage, v.run.bottomStreakText, bottomStreakPosition)
210
200
  end
211
- function ____exports.topStreakTextStart(self, v)
201
+ function ____exports.topStreakTextStart(self)
212
202
  local level = game:GetLevel()
213
203
  local renderFrameCount = Isaac.GetFrameCount()
214
204
  level:ShowName(false)
@@ -0,0 +1,25 @@
1
+ import { ControllerIndex } from "isaac-typescript-definitions";
2
+ import { UIStreakAnimation } from "../../../../enums/private/UIStreakAnimation";
3
+ import { CustomStage } from "../../../../interfaces/private/CustomStage";
4
+ export declare const v: {
5
+ run: {
6
+ currentCustomStage: CustomStage | null;
7
+ /** Whether we are on e.g. Caves 1 or Caves 2. */
8
+ firstFloor: boolean;
9
+ showingBossVersusScreen: boolean;
10
+ /** Values are the render frame that the controller first pressed the map button. */
11
+ controllerIndexPushingMapRenderFrame: Map<ControllerIndex, number>;
12
+ topStreakTextStartedRenderFrame: number | null;
13
+ topStreakText: {
14
+ animation: UIStreakAnimation;
15
+ frame: number;
16
+ pauseFrame: boolean;
17
+ };
18
+ bottomStreakText: {
19
+ animation: UIStreakAnimation;
20
+ frame: number;
21
+ pauseFrame: boolean;
22
+ };
23
+ };
24
+ };
25
+ //# sourceMappingURL=v.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/v.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,eAAO,MAAM,CAAC;;;QAIV,iDAAiD;;;QAKjD,oFAAoF;;;;;;;;;;;;;;CAiBvF,CAAC"}
@@ -0,0 +1,16 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local ____UIStreakAnimation = require("src.enums.private.UIStreakAnimation")
6
+ local UIStreakAnimation = ____UIStreakAnimation.UIStreakAnimation
7
+ ____exports.v = {run = {
8
+ currentCustomStage = nil,
9
+ firstFloor = true,
10
+ showingBossVersusScreen = false,
11
+ controllerIndexPushingMapRenderFrame = __TS__New(Map),
12
+ topStreakTextStartedRenderFrame = nil,
13
+ topStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false},
14
+ bottomStreakText = {animation = UIStreakAnimation.NONE, frame = 0, pauseFrame = false}
15
+ }}
16
+ return ____exports
@@ -2,12 +2,6 @@ import { CustomStage } from "../../../../interfaces/private/CustomStage";
2
2
  import { DisableAllSound } from "../DisableAllSound";
3
3
  import { Pause } from "../Pause";
4
4
  import { RunInNFrames } from "../RunInNFrames";
5
- interface VersusScreenVars {
6
- run: {
7
- showingBossVersusScreen: boolean;
8
- };
9
- }
10
- export declare function playVersusScreenAnimation(v: VersusScreenVars, customStage: CustomStage, disableAllSound: DisableAllSound, pause: Pause, runInNFrames: RunInNFrames): void;
11
- export declare function versusScreenPostRender(v: VersusScreenVars, pause: Pause, disableAllSound: DisableAllSound): void;
12
- export {};
5
+ export declare function playVersusScreenAnimation(customStage: CustomStage, disableAllSound: DisableAllSound, pause: Pause, runInNFrames: RunInNFrames): void;
6
+ export declare function versusScreenPostRender(pause: Pause, disableAllSound: DisableAllSound): void;
13
7
  //# sourceMappingURL=versusScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"versusScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/versusScreen.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAOzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAU/C,UAAU,gBAAgB;IACxB,GAAG,EAAE;QACH,uBAAuB,EAAE,OAAO,CAAC;KAClC,CAAC;CACH;AA8ED,wBAAgB,yBAAyB,CACvC,CAAC,EAAE,gBAAgB,EACnB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,GACzB,IAAI,CA0GN;AAiGD,wBAAgB,sBAAsB,CACpC,CAAC,EAAE,gBAAgB,EACnB,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,GAC/B,IAAI,CAsCN"}
1
+ {"version":3,"file":"versusScreen.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/customStages/versusScreen.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAOzE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAuF/C,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,GACzB,IAAI,CA0GN;AAgGD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,eAAe,GAC/B,IAAI,CAsCN"}
@@ -43,6 +43,8 @@ local CUSTOM_STAGE_FEATURE_NAME = ____constants.CUSTOM_STAGE_FEATURE_NAME
43
43
  local DEFAULT_BASE_STAGE = ____constants.DEFAULT_BASE_STAGE
44
44
  local DEFAULT_BASE_STAGE_TYPE = ____constants.DEFAULT_BASE_STAGE_TYPE
45
45
  local ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH = ____constants.ISAACSCRIPT_CUSTOM_STAGE_GFX_PATH
46
+ local ____v = require("src.classes.features.other.customStages.v")
47
+ local v = ____v.v
46
48
  function willVanillaVersusScreenPlay(self)
47
49
  local bosses = getBosses(nil)
48
50
  return __TS__ArraySome(
@@ -157,7 +159,7 @@ local versusScreenBackgroundSprite = Sprite()
157
159
  -- Unfortunately, we must split the dirt layer into an entirely different sprite so that we can
158
160
  -- color it with the `Color` field.
159
161
  local versusScreenDirtSpotSprite = Sprite()
160
- function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllSound, pause, runInNFrames)
162
+ function ____exports.playVersusScreenAnimation(self, customStage, disableAllSound, pause, runInNFrames)
161
163
  local room = game:GetRoom()
162
164
  local roomType = room:GetType()
163
165
  local roomCleared = room:IsClear()
@@ -234,7 +236,7 @@ function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllS
234
236
  sprite.PlaybackSpeed = VANILLA_VERSUS_PLAYBACK_SPEED
235
237
  end
236
238
  end
237
- local function finishVersusScreenAnimation(self, v, pause, disableAllSound)
239
+ local function finishVersusScreenAnimation(self, pause, disableAllSound)
238
240
  local hud = game:GetHUD()
239
241
  v.run.showingBossVersusScreen = false
240
242
  pause:unpause()
@@ -242,12 +244,12 @@ local function finishVersusScreenAnimation(self, v, pause, disableAllSound)
242
244
  disableAllSound:enableAllSound(CUSTOM_STAGE_FEATURE_NAME)
243
245
  sfxManager:Play(SoundEffect.CASTLE_PORTCULLIS)
244
246
  end
245
- function ____exports.versusScreenPostRender(self, v, pause, disableAllSound)
247
+ function ____exports.versusScreenPostRender(self, pause, disableAllSound)
246
248
  if not v.run.showingBossVersusScreen then
247
249
  return
248
250
  end
249
251
  if versusScreenSprite:IsFinished(VERSUS_SCREEN_ANIMATION_NAME) then
250
- finishVersusScreenAnimation(nil, v, pause, disableAllSound)
252
+ finishVersusScreenAnimation(nil, pause, disableAllSound)
251
253
  return
252
254
  end
253
255
  local position = getScreenCenterPos(nil)