isaacscript-common 25.2.0 → 25.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/dist/index.rollup.d.ts +27 -2
  2. package/dist/isaacscript-common.lua +803 -693
  3. package/dist/src/classes/ModFeature.d.ts.map +1 -1
  4. package/dist/src/classes/ModFeature.lua +12 -5
  5. package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  6. package/dist/src/classes/callbacks/PostAmbushFinished.lua +4 -3
  7. package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  8. package/dist/src/classes/callbacks/PostAmbushStarted.lua +4 -3
  9. package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  10. package/dist/src/classes/callbacks/PostBombInitLate.lua +6 -5
  11. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  12. package/dist/src/classes/callbacks/PostBoneSwing.lua +5 -4
  13. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  14. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +6 -5
  15. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +6 -5
  17. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  18. package/dist/src/classes/callbacks/PostCursedTeleport.lua +14 -13
  19. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  20. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +4 -3
  21. package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  22. package/dist/src/classes/callbacks/PostEffectInitLate.lua +6 -5
  23. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +8 -7
  25. package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  26. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +6 -5
  27. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  28. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +8 -7
  29. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts +2 -0
  30. package/dist/src/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostGameStartedReordered.lua +3 -0
  32. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts +2 -0
  33. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostGameStartedReorderedLast.lua +3 -0
  35. package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostGreedModeWave.lua +4 -3
  37. package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
  38. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +5 -4
  39. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  40. package/dist/src/classes/callbacks/PostItemDischarge.lua +20 -19
  41. package/dist/src/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  42. package/dist/src/classes/callbacks/PostKeyboardChanged.lua +8 -7
  43. package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  44. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +6 -5
  45. package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostLaserInitLate.lua +6 -5
  47. package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  48. package/dist/src/classes/callbacks/PostNPCInitLate.lua +6 -5
  49. package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  50. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +8 -7
  51. package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  52. package/dist/src/classes/callbacks/PostPickupCollect.lua +6 -5
  53. package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  54. package/dist/src/classes/callbacks/PostPickupInitLate.lua +6 -5
  55. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  56. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +8 -7
  57. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  58. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +8 -7
  59. package/dist/src/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  60. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +8 -7
  61. package/dist/src/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +8 -7
  63. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +6 -5
  65. package/dist/src/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
  66. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +6 -5
  67. package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  68. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +6 -5
  69. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  70. package/dist/src/classes/callbacks/PostPurchase.lua +5 -4
  71. package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  72. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +5 -4
  73. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  74. package/dist/src/classes/callbacks/PostSacrifice.lua +5 -4
  75. package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  76. package/dist/src/classes/callbacks/PostTearInitLate.lua +6 -5
  77. package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  78. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +6 -5
  79. package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostTransformation.lua +8 -7
  81. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  82. package/dist/src/classes/callbacks/PostTrinketBreak.lua +9 -8
  83. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  84. package/dist/src/classes/callbacks/PreNewLevel.lua +4 -3
  85. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  86. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +21 -20
  87. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  88. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +18 -17
  89. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  90. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +11 -10
  91. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  92. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +4 -3
  93. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  94. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +8 -7
  95. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  96. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +9 -8
  97. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  98. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +7 -6
  99. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.lua +11 -10
  101. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  102. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +20 -19
  103. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  104. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +15 -14
  105. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
  106. package/dist/src/classes/features/callbackLogic/SlotDestroyedDetection.lua +6 -5
  107. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  108. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +15 -14
  109. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  110. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +6 -5
  111. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  112. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +6 -5
  113. package/dist/src/classes/features/other/CustomItemPools.d.ts.map +1 -1
  114. package/dist/src/classes/features/other/CustomItemPools.lua +6 -5
  115. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  116. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  117. package/dist/src/classes/features/other/CustomStages.lua +17 -26
  118. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  119. package/dist/src/classes/features/other/CustomTrapdoors.lua +36 -35
  120. package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
  121. package/dist/src/classes/features/other/DisableAllSound.lua +10 -9
  122. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  123. package/dist/src/classes/features/other/DisableInputs.lua +21 -20
  124. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +19 -19
  125. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  126. package/dist/src/classes/features/other/NoSirenSteal.lua +5 -4
  127. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  128. package/dist/src/classes/features/other/Pause.lua +20 -19
  129. package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
  130. package/dist/src/classes/features/other/PersistentEntities.lua +20 -19
  131. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/PickupIndexCreation.lua +29 -28
  133. package/dist/src/classes/features/other/PlayerInventory.d.ts.map +1 -1
  134. package/dist/src/classes/features/other/PlayerInventory.lua +9 -8
  135. package/dist/src/classes/features/other/PonyDetection.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/PonyDetection.lua +8 -7
  137. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/PressInput.lua +7 -6
  139. package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/PreventChildEntities.lua +7 -6
  141. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  142. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +7 -6
  143. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  144. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +16 -15
  145. package/dist/src/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/RoomClearFrame.lua +6 -5
  147. package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
  148. package/dist/src/classes/features/other/RoomHistory.lua +9 -8
  149. package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
  150. package/dist/src/classes/features/other/RunInNFrames.lua +14 -13
  151. package/dist/src/classes/features/other/RunNextRoom.d.ts.map +1 -1
  152. package/dist/src/classes/features/other/RunNextRoom.lua +6 -5
  153. package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -0
  154. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  155. package/dist/src/classes/features/other/SaveDataManager.lua +12 -0
  156. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  157. package/dist/src/classes/features/other/StageHistory.lua +7 -6
  158. package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  159. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +18 -17
  160. package/dist/src/classes/features/other/customStages/streakText.d.ts +3 -25
  161. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  162. package/dist/src/classes/features/other/customStages/streakText.lua +16 -26
  163. package/dist/src/classes/features/other/customStages/v.d.ts +25 -0
  164. package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -0
  165. package/dist/src/classes/features/other/customStages/v.lua +16 -0
  166. package/dist/src/classes/features/other/customStages/versusScreen.d.ts +2 -8
  167. package/dist/src/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
  168. package/dist/src/classes/features/other/customStages/versusScreen.lua +6 -4
  169. package/dist/src/enums/ModCallbackCustom.d.ts +6 -0
  170. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  171. package/dist/src/functions/decorators.d.ts +15 -0
  172. package/dist/src/functions/decorators.d.ts.map +1 -1
  173. package/dist/src/functions/decorators.lua +21 -5
  174. package/dist/src/interfaces/SaveData.d.ts.map +1 -1
  175. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +4 -2
  176. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  177. package/dist/src/shouldFire.d.ts +1 -0
  178. package/dist/src/shouldFire.d.ts.map +1 -1
  179. package/dist/src/shouldFire.lua +5 -0
  180. package/package.json +1 -1
  181. package/src/classes/ModFeature.ts +16 -4
  182. package/src/classes/callbacks/PostAmbushFinished.ts +9 -7
  183. package/src/classes/callbacks/PostAmbushStarted.ts +9 -7
  184. package/src/classes/callbacks/PostBombInitLate.ts +9 -7
  185. package/src/classes/callbacks/PostBoneSwing.ts +9 -7
  186. package/src/classes/callbacks/PostCollectibleEmpty.ts +9 -7
  187. package/src/classes/callbacks/PostCollectibleInitFirst.ts +9 -7
  188. package/src/classes/callbacks/PostCursedTeleport.ts +20 -24
  189. package/src/classes/callbacks/PostDiceRoomActivated.ts +9 -7
  190. package/src/classes/callbacks/PostEffectInitLate.ts +9 -7
  191. package/src/classes/callbacks/PostEffectStateChanged.ts +9 -7
  192. package/src/classes/callbacks/PostFamiliarInitLate.ts +9 -7
  193. package/src/classes/callbacks/PostFamiliarStateChanged.ts +9 -7
  194. package/src/classes/callbacks/PostGameStartedReordered.ts +3 -0
  195. package/src/classes/callbacks/PostGameStartedReorderedLast.ts +3 -0
  196. package/src/classes/callbacks/PostGreedModeWave.ts +9 -7
  197. package/src/classes/callbacks/PostHolyMantleRemoved.ts +9 -7
  198. package/src/classes/callbacks/PostItemDischarge.ts +21 -27
  199. package/src/classes/callbacks/PostKeyboardChanged.ts +11 -9
  200. package/src/classes/callbacks/PostKnifeInitLate.ts +9 -7
  201. package/src/classes/callbacks/PostLaserInitLate.ts +9 -7
  202. package/src/classes/callbacks/PostNPCInitLate.ts +9 -7
  203. package/src/classes/callbacks/PostNPCStateChanged.ts +11 -12
  204. package/src/classes/callbacks/PostPickupCollect.ts +9 -7
  205. package/src/classes/callbacks/PostPickupInitLate.ts +9 -7
  206. package/src/classes/callbacks/PostPickupStateChanged.ts +9 -7
  207. package/src/classes/callbacks/PostPlayerChangeHealth.ts +10 -8
  208. package/src/classes/callbacks/PostPlayerChangeStat.ts +11 -10
  209. package/src/classes/callbacks/PostPlayerChangeType.ts +13 -11
  210. package/src/classes/callbacks/PostPlayerFatalDamage.ts +10 -8
  211. package/src/classes/callbacks/PostPlayerInitLate.ts +9 -7
  212. package/src/classes/callbacks/PostProjectileInitLate.ts +9 -7
  213. package/src/classes/callbacks/PostPurchase.ts +11 -9
  214. package/src/classes/callbacks/PostRoomClearChanged.ts +10 -8
  215. package/src/classes/callbacks/PostSacrifice.ts +9 -7
  216. package/src/classes/callbacks/PostTearInitLate.ts +9 -7
  217. package/src/classes/callbacks/PostTearInitVeryLate.ts +9 -7
  218. package/src/classes/callbacks/PostTransformation.ts +12 -10
  219. package/src/classes/callbacks/PostTrinketBreak.ts +12 -16
  220. package/src/classes/callbacks/PreNewLevel.ts +9 -7
  221. package/src/classes/features/callbackLogic/CustomGridEntities.ts +23 -21
  222. package/src/classes/features/callbackLogic/CustomRevive.ts +26 -27
  223. package/src/classes/features/callbackLogic/EsauJrDetection.ts +19 -17
  224. package/src/classes/features/callbackLogic/FlipDetection.ts +10 -8
  225. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +11 -9
  226. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +13 -12
  227. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +10 -8
  228. package/src/classes/features/callbackLogic/PickupChangeDetection.ts +12 -10
  229. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +21 -27
  230. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +22 -29
  231. package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +9 -7
  232. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +15 -13
  233. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +9 -7
  234. package/src/classes/features/other/CollectibleItemPoolType.ts +9 -7
  235. package/src/classes/features/other/CustomItemPools.ts +9 -7
  236. package/src/classes/features/other/CustomPickups.ts +0 -1
  237. package/src/classes/features/other/CustomStages.ts +16 -44
  238. package/src/classes/features/other/CustomTrapdoors.ts +53 -54
  239. package/src/classes/features/other/DisableAllSound.ts +13 -11
  240. package/src/classes/features/other/DisableInputs.ts +39 -37
  241. package/src/classes/features/other/ExtraConsoleCommands.ts +19 -19
  242. package/src/classes/features/other/NoSirenSteal.ts +11 -9
  243. package/src/classes/features/other/Pause.ts +21 -19
  244. package/src/classes/features/other/PersistentEntities.ts +33 -31
  245. package/src/classes/features/other/PickupIndexCreation.ts +35 -33
  246. package/src/classes/features/other/PlayerInventory.ts +14 -12
  247. package/src/classes/features/other/PonyDetection.ts +11 -9
  248. package/src/classes/features/other/PressInput.ts +11 -9
  249. package/src/classes/features/other/PreventChildEntities.ts +10 -8
  250. package/src/classes/features/other/PreventCollectibleRotation.ts +20 -18
  251. package/src/classes/features/other/PreventGridEntityRespawn.ts +18 -18
  252. package/src/classes/features/other/RoomClearFrame.ts +12 -10
  253. package/src/classes/features/other/RoomHistory.ts +13 -11
  254. package/src/classes/features/other/RunInNFrames.ts +19 -17
  255. package/src/classes/features/other/RunNextRoom.ts +10 -8
  256. package/src/classes/features/other/SaveDataManager.ts +11 -0
  257. package/src/classes/features/other/StageHistory.ts +11 -9
  258. package/src/classes/features/other/TaintedLazarusPlayers.ts +31 -30
  259. package/src/classes/features/other/customStages/streakText.ts +14 -44
  260. package/src/classes/features/other/customStages/v.ts +31 -0
  261. package/src/classes/features/other/customStages/versusScreen.ts +2 -10
  262. package/src/enums/ModCallbackCustom.ts +6 -0
  263. package/src/functions/decorators.ts +45 -4
  264. package/src/interfaces/SaveData.ts +0 -1
  265. package/src/interfaces/private/AddCallbackParametersCustom.ts +2 -0
  266. package/src/shouldFire.ts +10 -0
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
2
  local __TS__New = ____lualib.__TS__New
3
+ local Map = ____lualib.Map
3
4
  local __TS__Class = ____lualib.__TS__Class
4
5
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
5
- local Map = ____lualib.Map
6
6
  local Set = ____lualib.Set
7
7
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
8
8
  local __TS__Decorate = ____lualib.__TS__Decorate
@@ -122,6 +122,13 @@ ANIMATIONS_THAT_PREVENT_STAGE_TRAVEL = __TS__New(ReadonlySet, {"Death", "Happy",
122
122
  local PIXELATION_TO_BLACK_FRAMES = 60
123
123
  local OTHER_PLAYER_TRAPDOOR_JUMP_DELAY_GAME_FRAMES = 6
124
124
  local OTHER_PLAYER_TRAPDOOR_JUMP_DURATION_GAME_FRAMES = 5
125
+ local v = {
126
+ run = {state = StageTravelState.NONE, stateRenderFrame = nil, customTrapdoorActivated = nil},
127
+ level = {trapdoors = __TS__New(
128
+ DefaultMap,
129
+ function() return __TS__New(Map) end
130
+ )}
131
+ }
125
132
  ____exports.CustomTrapdoors = __TS__Class()
126
133
  local CustomTrapdoors = ____exports.CustomTrapdoors
127
134
  CustomTrapdoors.name = "CustomTrapdoors"
@@ -129,13 +136,7 @@ __TS__ClassExtends(CustomTrapdoors, Feature)
129
136
  function CustomTrapdoors.prototype.____constructor(self, customGridEntities, disableInputs, ponyDetection, roomClearFrame, runInNFrames, runNextRoom, stageHistory)
130
137
  Feature.prototype.____constructor(self)
131
138
  self.destinationFuncMap = __TS__New(Map)
132
- self.v = {
133
- run = {state = StageTravelState.NONE, stateRenderFrame = nil, customTrapdoorActivated = nil},
134
- level = {trapdoors = __TS__New(
135
- DefaultMap,
136
- function() return __TS__New(Map) end
137
- )}
138
- }
139
+ self.v = v
139
140
  self.blackSprite = Sprite()
140
141
  self.postRender = function()
141
142
  self:checkAllPlayersJumpComplete()
@@ -147,7 +148,7 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
147
148
  self.postGridEntityCustomUpdateTrapdoor = function(____, gridEntity)
148
149
  local roomListIndex = getRoomListIndex(nil)
149
150
  local gridIndex = gridEntity:GetGridIndex()
150
- local roomTrapdoorMap = self.v.level.trapdoors:getAndSetDefault(roomListIndex)
151
+ local roomTrapdoorMap = v.level.trapdoors:getAndSetDefault(roomListIndex)
151
152
  local trapdoorDescription = roomTrapdoorMap:get(gridIndex)
152
153
  if trapdoorDescription == nil then
153
154
  return
@@ -178,7 +179,7 @@ function CustomTrapdoors.prototype.____constructor(self, customGridEntities, dis
178
179
  self.stageHistory = stageHistory
179
180
  end
180
181
  function CustomTrapdoors.prototype.checkAllPlayersJumpComplete(self)
181
- if self.v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
182
+ if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
182
183
  return
183
184
  end
184
185
  if anyPlayerPlayingExtraAnimation(nil) then
@@ -186,37 +187,37 @@ function CustomTrapdoors.prototype.checkAllPlayersJumpComplete(self)
186
187
  end
187
188
  local renderFrameCount = Isaac.GetFrameCount()
188
189
  local roomGridIndex = getRoomGridIndex(nil)
189
- self.v.run.state = StageTravelState.PIXELATION_TO_BLACK
190
- self.v.run.stateRenderFrame = renderFrameCount
190
+ v.run.state = StageTravelState.PIXELATION_TO_BLACK
191
+ v.run.stateRenderFrame = renderFrameCount
191
192
  self:logStateChanged()
192
193
  teleport(nil, roomGridIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
193
194
  end
194
195
  function CustomTrapdoors.prototype.checkPixelationToBlackComplete(self)
195
- if self.v.run.state ~= StageTravelState.PIXELATION_TO_BLACK or self.v.run.stateRenderFrame == nil then
196
+ if v.run.state ~= StageTravelState.PIXELATION_TO_BLACK or v.run.stateRenderFrame == nil then
196
197
  return
197
198
  end
198
199
  local hud = game:GetHUD()
199
200
  local renderFrameCount = Isaac.GetFrameCount()
200
- local renderFrameScreenBlack = self.v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
201
+ local renderFrameScreenBlack = v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
201
202
  if renderFrameCount < renderFrameScreenBlack then
202
203
  return
203
204
  end
204
- self.v.run.state = StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END
205
+ v.run.state = StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END
205
206
  self:logStateChanged()
206
207
  hud:SetVisible(false)
207
208
  self.runInNFrames:runNextGameFrame(function()
208
209
  local level = game:GetLevel()
209
210
  local startingRoomIndex = level:GetStartingRoomIndex()
210
211
  local futureRenderFrameCount = Isaac.GetFrameCount()
211
- self.v.run.state = StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY
212
- self.v.run.stateRenderFrame = futureRenderFrameCount
212
+ v.run.state = StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY
213
+ v.run.stateRenderFrame = futureRenderFrameCount
213
214
  self:goToCustomTrapdoorDestination()
214
215
  teleport(nil, startingRoomIndex, Direction.NO_DIRECTION, RoomTransitionAnim.PIXELATION)
215
216
  end)
216
217
  end
217
218
  function CustomTrapdoors.prototype.goToCustomTrapdoorDestination(self)
218
- if self.v.run.customTrapdoorActivated == nil then
219
- self.v.run.customTrapdoorActivated = {
219
+ if v.run.customTrapdoorActivated == nil then
220
+ v.run.customTrapdoorActivated = {
220
221
  destinationName = nil,
221
222
  destinationStage = LevelStage.BASEMENT_1,
222
223
  destinationStageType = StageType.ORIGINAL,
@@ -224,8 +225,8 @@ function CustomTrapdoors.prototype.goToCustomTrapdoorDestination(self)
224
225
  firstSpawn = true
225
226
  }
226
227
  end
227
- local destinationFunc = self:getDestinationFunc(self.v.run.customTrapdoorActivated)
228
- destinationFunc(nil, self.v.run.customTrapdoorActivated.destinationName, self.v.run.customTrapdoorActivated.destinationStage, self.v.run.customTrapdoorActivated.destinationStageType)
228
+ local destinationFunc = self:getDestinationFunc(v.run.customTrapdoorActivated)
229
+ destinationFunc(nil, v.run.customTrapdoorActivated.destinationName, v.run.customTrapdoorActivated.destinationStage, v.run.customTrapdoorActivated.destinationStageType)
229
230
  end
230
231
  function CustomTrapdoors.prototype.getDestinationFunc(self, customTrapdoorDescription)
231
232
  if customTrapdoorDescription.destinationName == nil then
@@ -238,20 +239,20 @@ function CustomTrapdoors.prototype.getDestinationFunc(self, customTrapdoorDescri
238
239
  return destinationFunc
239
240
  end
240
241
  function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
241
- if self.v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY or self.v.run.stateRenderFrame == nil then
242
+ if v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY or v.run.stateRenderFrame == nil then
242
243
  return
243
244
  end
244
245
  local hud = game:GetHUD()
245
246
  local renderFrameCount = Isaac.GetFrameCount()
246
- local renderFrameScreenBlack = self.v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
247
+ local renderFrameScreenBlack = v.run.stateRenderFrame + PIXELATION_TO_BLACK_FRAMES
247
248
  if renderFrameCount < renderFrameScreenBlack then
248
249
  return
249
250
  end
250
- self.v.run.state = StageTravelState.PIXELATION_TO_ROOM
251
+ v.run.state = StageTravelState.PIXELATION_TO_ROOM
251
252
  self:logStateChanged()
252
253
  hud:SetVisible(true)
253
254
  self.runNextRoom:runNextRoom(function()
254
- self.v.run.state = StageTravelState.PLAYERS_LAYING_DOWN
255
+ v.run.state = StageTravelState.PLAYERS_LAYING_DOWN
255
256
  self:logStateChanged()
256
257
  movePlayersToCenter(nil)
257
258
  for ____, player in ipairs(getAllPlayers(nil)) do
@@ -267,13 +268,13 @@ function CustomTrapdoors.prototype.checkSecondPixelationHalfWay(self)
267
268
  end)
268
269
  end
269
270
  function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
270
- if self.v.run.state ~= StageTravelState.PLAYERS_LAYING_DOWN then
271
+ if v.run.state ~= StageTravelState.PLAYERS_LAYING_DOWN then
271
272
  return
272
273
  end
273
274
  if anyPlayerPlayingExtraAnimation(nil) then
274
275
  return
275
276
  end
276
- self.v.run.state = StageTravelState.NONE
277
+ v.run.state = StageTravelState.NONE
277
278
  self:logStateChanged()
278
279
  local tstlClassName = getTSTLClassName(nil, self)
279
280
  if tstlClassName == nil then
@@ -282,7 +283,7 @@ function CustomTrapdoors.prototype.checkAllPlayersLayingDownComplete(self)
282
283
  self.disableInputs:enableAllInputs(tstlClassName)
283
284
  end
284
285
  function CustomTrapdoors.prototype.drawBlackSprite(self)
285
- if self.v.run.state ~= StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END and self.v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY then
286
+ if v.run.state ~= StageTravelState.WAITING_FOR_FIRST_PIXELATION_TO_END and v.run.state ~= StageTravelState.WAITING_FOR_SECOND_PIXELATION_TO_GET_HALF_WAY then
286
287
  return
287
288
  end
288
289
  if not self.blackSprite:IsLoaded() then
@@ -316,7 +317,7 @@ function CustomTrapdoors.prototype.isPlayerCloseAfterBoss(self, position)
316
317
  return anyPlayerCloserThan(nil, position, TRAPDOOR_OPEN_DISTANCE_AFTER_BOSS)
317
318
  end
318
319
  function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEntity, trapdoorDescription)
319
- if self.v.run.state ~= StageTravelState.NONE then
320
+ if v.run.state ~= StageTravelState.NONE then
320
321
  return
321
322
  end
322
323
  if not trapdoorDescription.open then
@@ -338,8 +339,8 @@ function CustomTrapdoors.prototype.checkCustomTrapdoorPlayerTouched(self, gridEn
338
339
  end
339
340
  end
340
341
  function CustomTrapdoors.prototype.playerTouchedCustomTrapdoor(self, gridEntity, trapdoorDescription, player)
341
- self.v.run.state = StageTravelState.PLAYERS_JUMPING_DOWN
342
- self.v.run.customTrapdoorActivated = trapdoorDescription
342
+ v.run.state = StageTravelState.PLAYERS_JUMPING_DOWN
343
+ v.run.customTrapdoorActivated = trapdoorDescription
343
344
  self:logStateChanged()
344
345
  local tstlClassName = getTSTLClassName(nil, self)
345
346
  if tstlClassName == nil then
@@ -378,7 +379,7 @@ function CustomTrapdoors.prototype.startDelayedJump(self, entityPtr, trapdoorPos
378
379
  self:adjustPlayerPositionToTrapdoor(entityPtr, player.Position, trapdoorPosition)
379
380
  end
380
381
  function CustomTrapdoors.prototype.adjustPlayerPositionToTrapdoor(self, entityPtr, startPos, endPos)
381
- if self.v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
382
+ if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
382
383
  return
383
384
  end
384
385
  local entity = entityPtr.Ref
@@ -413,7 +414,7 @@ function CustomTrapdoors.prototype.adjustPlayerPositionToTrapdoor(self, entityPt
413
414
  player.Velocity = VectorZero
414
415
  end
415
416
  function CustomTrapdoors.prototype.checkJumpComplete(self, player)
416
- if self.v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
417
+ if v.run.state ~= StageTravelState.PLAYERS_JUMPING_DOWN then
417
418
  return
418
419
  end
419
420
  local sprite = player:GetSprite()
@@ -435,7 +436,7 @@ function CustomTrapdoors.prototype.shouldTrapdoorSpawnOpen(self, gridEntity, fir
435
436
  end
436
437
  function CustomTrapdoors.prototype.logStateChanged(self)
437
438
  if DEBUG then
438
- log(((("Custom trapdoors state changed: " .. StageTravelState[self.v.run.state]) .. " (") .. tostring(self.v.run.state)) .. ")")
439
+ log(((("Custom trapdoors state changed: " .. StageTravelState[v.run.state]) .. " (") .. tostring(v.run.state)) .. ")")
439
440
  end
440
441
  end
441
442
  function CustomTrapdoors.prototype.registerCustomTrapdoorDestination(self, destinationName, destinationFunc)
@@ -476,7 +477,7 @@ function CustomTrapdoors.prototype.spawnCustomTrapdoor(self, gridIndexOrPosition
476
477
  ____temp_0 = spawnOpen
477
478
  end
478
479
  local open = ____temp_0
479
- local roomTrapdoorMap = self.v.level.trapdoors:getAndSetDefault(roomListIndex)
480
+ local roomTrapdoorMap = v.level.trapdoors:getAndSetDefault(roomListIndex)
480
481
  local customTrapdoorDescription = {
481
482
  destinationName = destinationName,
482
483
  destinationStage = destinationStage,
@@ -1 +1 @@
1
- {"version":3,"file":"DisableAllSound.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DisableAllSound.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,eAAgB,SAAQ,OAAO;IAQ1C,OAAO,CAAC,eAAe,CAAS;IAahC,OAAO,CAAC,UAAU,CAMhB;IAEF;;;;;;;;;OASG;IAEI,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAexC;;;;;;;;;OASG;IAEI,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAU1C"}
1
+ {"version":3,"file":"DisableAllSound.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DisableAllSound.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,eAAgB,SAAQ,OAAO;IAI1C,OAAO,CAAC,eAAe,CAAS;IAahC,OAAO,CAAC,UAAU,CAMhB;IAEF;;;;;;;;;OASG;IAEI,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAexC;;;;;;;;;OASG;IAEI,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAU1C"}
@@ -1,8 +1,8 @@
1
1
  local ____lualib = require("lualib_bundle")
2
- local __TS__Class = ____lualib.__TS__Class
3
- local __TS__ClassExtends = ____lualib.__TS__ClassExtends
4
2
  local Set = ____lualib.Set
5
3
  local __TS__New = ____lualib.__TS__New
4
+ local __TS__Class = ____lualib.__TS__Class
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
6
  local __TS__Decorate = ____lualib.__TS__Decorate
7
7
  local ____exports = {}
8
8
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
@@ -15,16 +15,17 @@ local ____sound = require("src.functions.sound")
15
15
  local stopAllSoundEffects = ____sound.stopAllSoundEffects
16
16
  local ____Feature = require("src.classes.private.Feature")
17
17
  local Feature = ____Feature.Feature
18
+ local v = {run = {disableSoundSet = __TS__New(Set)}}
18
19
  ____exports.DisableAllSound = __TS__Class()
19
20
  local DisableAllSound = ____exports.DisableAllSound
20
21
  DisableAllSound.name = "DisableAllSound"
21
22
  __TS__ClassExtends(DisableAllSound, Feature)
22
23
  function DisableAllSound.prototype.____constructor(self)
23
24
  Feature.prototype.____constructor(self)
24
- self.v = {run = {disableSoundSet = __TS__New(Set)}}
25
+ self.v = v
25
26
  self.musicWasEnabled = false
26
27
  self.postRender = function()
27
- if self.v.run.disableSoundSet.size == 0 then
28
+ if v.run.disableSoundSet.size == 0 then
28
29
  return
29
30
  end
30
31
  stopAllSoundEffects(nil)
@@ -32,20 +33,20 @@ function DisableAllSound.prototype.____constructor(self)
32
33
  self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
33
34
  end
34
35
  function DisableAllSound.prototype.enableAllSound(self, key)
35
- if not self.v.run.disableSoundSet:has(key) then
36
+ if not v.run.disableSoundSet:has(key) then
36
37
  return
37
38
  end
38
- self.v.run.disableSoundSet:delete(key)
39
- if self.v.run.disableSoundSet.size == 0 and self.musicWasEnabled then
39
+ v.run.disableSoundSet:delete(key)
40
+ if v.run.disableSoundSet.size == 0 and self.musicWasEnabled then
40
41
  musicManager:Enable()
41
42
  end
42
43
  stopAllSoundEffects(nil)
43
44
  end
44
45
  function DisableAllSound.prototype.disableAllSound(self, key)
45
- if self.v.run.disableSoundSet.size == 0 then
46
+ if v.run.disableSoundSet.size == 0 then
46
47
  self.musicWasEnabled = musicManager:IsEnabled()
47
48
  end
48
- self.v.run.disableSoundSet:add(key)
49
+ v.run.disableSoundSet:add(key)
49
50
  stopAllSoundEffects(nil)
50
51
  end
51
52
  __TS__Decorate({Exported}, DisableAllSound.prototype, "enableAllSound", true)
@@ -1 +1 @@
1
- {"version":3,"file":"DisableInputs.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DisableInputs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,aAAc,SAAQ,OAAO;IAyDxC,OAAO,CAAC,eAAe,CAIsB;IAG7C,OAAO,CAAC,iBAAiB,CAIoB;IAG7C,OAAO,CAAC,cAAc,CAIwB;IAE9C,OAAO,CAAC,cAAc;IAwBtB;;;;;;;;OAQG;IAEI,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKzC;;;;;;;;;;;;;OAaG;IAEI,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,YAAY,EAAE,GAAG,IAAI;IAKzE;;;;;;;;;;OAUG;IAEI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK1C;;;;;;;;;;;OAWG;IAEI,wBAAwB,CAC7B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,yBAAyB,CAC9B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK/C;;;;;;;;;;OAUG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAIhD"}
1
+ {"version":3,"file":"DisableInputs.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/DisableInputs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AA4BhD,qBAAa,aAAc,SAAQ,OAAO;IAiCxC,OAAO,CAAC,eAAe,CAIsB;IAG7C,OAAO,CAAC,iBAAiB,CAIoB;IAG7C,OAAO,CAAC,cAAc,CAIwB;IAE9C,OAAO,CAAC,cAAc;IAwBtB;;;;;;;;OAQG;IAEI,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKzC;;;;;;;;;;;;;OAaG;IAEI,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,YAAY,EAAE,GAAG,IAAI;IAKzE;;;;;;;;;;OAUG;IAEI,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK1C;;;;;;;;;;;OAWG;IAEI,wBAAwB,CAC7B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,yBAAyB,CAC9B,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,GACvD,IAAI;IAKP;;;;;;;;;;;OAWG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK/C;;;;;;;;;;OAUG;IAEI,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAIhD"}
@@ -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__Iterator = ____lualib.__TS__Iterator
7
7
  local __TS__Decorate = ____lualib.__TS__Decorate
8
8
  local Set = ____lualib.Set
@@ -17,18 +17,19 @@ local getMoveActions = ____input.getMoveActions
17
17
  local getShootActions = ____input.getShootActions
18
18
  local ____Feature = require("src.classes.private.Feature")
19
19
  local Feature = ____Feature.Feature
20
+ local v = {run = {
21
+ __ignoreGlowingHourGlass = true,
22
+ disableInputs = __TS__New(Map),
23
+ enableAllInputsWithBlacklistMap = __TS__New(Map),
24
+ disableAllInputsWithWhitelistMap = __TS__New(Map)
25
+ }}
20
26
  ____exports.DisableInputs = __TS__Class()
21
27
  local DisableInputs = ____exports.DisableInputs
22
28
  DisableInputs.name = "DisableInputs"
23
29
  __TS__ClassExtends(DisableInputs, Feature)
24
30
  function DisableInputs.prototype.____constructor(self)
25
31
  Feature.prototype.____constructor(self)
26
- self.v = {run = {
27
- __ignoreGlowingHourGlass = true,
28
- disableInputs = __TS__New(Map),
29
- enableAllInputsWithBlacklistMap = __TS__New(Map),
30
- disableAllInputsWithWhitelistMap = __TS__New(Map)
31
- }}
32
+ self.v = v
32
33
  self.isActionPressed = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
33
34
  self.isActionTriggered = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, true) end
34
35
  self.getActionValue = function(____, _entity, _inputHook, buttonAction) return self:getReturnValue(buttonAction, false) end
@@ -42,17 +43,17 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
42
43
  ____booleanCallback_0 = 0
43
44
  end
44
45
  local disableValue = ____booleanCallback_0
45
- for ____, blacklist in __TS__Iterator(self.v.run.disableInputs:values()) do
46
+ for ____, blacklist in __TS__Iterator(v.run.disableInputs:values()) do
46
47
  if blacklist:has(buttonAction) then
47
48
  return disableValue
48
49
  end
49
50
  end
50
- for ____, whitelist in __TS__Iterator(self.v.run.disableAllInputsWithWhitelistMap:values()) do
51
+ for ____, whitelist in __TS__Iterator(v.run.disableAllInputsWithWhitelistMap:values()) do
51
52
  if not whitelist:has(buttonAction) then
52
53
  return disableValue
53
54
  end
54
55
  end
55
- for ____, blacklist in __TS__Iterator(self.v.run.enableAllInputsWithBlacklistMap:values()) do
56
+ for ____, blacklist in __TS__Iterator(v.run.enableAllInputsWithBlacklistMap:values()) do
56
57
  if blacklist:has(buttonAction) then
57
58
  return disableValue
58
59
  end
@@ -60,28 +61,28 @@ function DisableInputs.prototype.getReturnValue(self, buttonAction, booleanCallb
60
61
  return nil
61
62
  end
62
63
  function DisableInputs.prototype.enableAllInputs(self, key)
63
- self.v.run.disableAllInputsWithWhitelistMap:delete(key)
64
- self.v.run.enableAllInputsWithBlacklistMap:delete(key)
64
+ v.run.disableAllInputsWithWhitelistMap:delete(key)
65
+ v.run.enableAllInputsWithBlacklistMap:delete(key)
65
66
  end
66
67
  function DisableInputs.prototype.disableInputs(self, key, ...)
67
68
  local buttonActions = {...}
68
69
  local buttonActionsSet = __TS__New(Set, buttonActions)
69
- self.v.run.disableInputs:set(key, buttonActionsSet)
70
+ v.run.disableInputs:set(key, buttonActionsSet)
70
71
  end
71
72
  function DisableInputs.prototype.disableAllInputs(self, key)
72
- self.v.run.disableAllInputsWithWhitelistMap:set(
73
+ v.run.disableAllInputsWithWhitelistMap:set(
73
74
  key,
74
75
  __TS__New(Set)
75
76
  )
76
- self.v.run.enableAllInputsWithBlacklistMap:delete(key)
77
+ v.run.enableAllInputsWithBlacklistMap:delete(key)
77
78
  end
78
79
  function DisableInputs.prototype.enableAllInputsExceptFor(self, key, blacklist)
79
- self.v.run.disableAllInputsWithWhitelistMap:delete(key)
80
- self.v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
80
+ v.run.disableAllInputsWithWhitelistMap:delete(key)
81
+ v.run.enableAllInputsWithBlacklistMap:set(key, blacklist)
81
82
  end
82
83
  function DisableInputs.prototype.disableAllInputsExceptFor(self, key, whitelist)
83
- self.v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
84
- self.v.run.enableAllInputsWithBlacklistMap:delete(key)
84
+ v.run.disableAllInputsWithWhitelistMap:set(key, whitelist)
85
+ v.run.enableAllInputsWithBlacklistMap:delete(key)
85
86
  end
86
87
  function DisableInputs.prototype.disableMovementInputs(self, key)
87
88
  local moveActions = getMoveActions(nil)
@@ -37,58 +37,58 @@ function ExtraConsoleCommands.prototype.____constructor(self)
37
37
  self.v = v
38
38
  self.commandFunctionMap = __TS__New(Map)
39
39
  self.postUpdate = function()
40
- if self.v.persistent.spamBloodRights then
40
+ if v.persistent.spamBloodRights then
41
41
  local player = Isaac.GetPlayer()
42
42
  player:UseActiveItem(CollectibleType.BLOOD_RIGHTS)
43
43
  end
44
44
  end
45
45
  self.evaluateCacheDamage = function(____, player)
46
- if self.v.persistent.damage then
47
- player.Damage = self.v.persistent.damageAmount
46
+ if v.persistent.damage then
47
+ player.Damage = v.persistent.damageAmount
48
48
  end
49
49
  end
50
50
  self.evaluateCacheFireDelay = function(____, player)
51
- if self.v.persistent.tears then
52
- player.FireDelay = self.v.persistent.tearsAmount
51
+ if v.persistent.tears then
52
+ player.FireDelay = v.persistent.tearsAmount
53
53
  end
54
54
  end
55
55
  self.evaluateCacheSpeed = function(____, player)
56
- if self.v.persistent.speed then
57
- player.MoveSpeed = self.v.persistent.speedAmount
56
+ if v.persistent.speed then
57
+ player.MoveSpeed = v.persistent.speedAmount
58
58
  end
59
59
  end
60
60
  self.evaluateCacheFlying = function(____, player)
61
- if self.v.persistent.flight then
61
+ if v.persistent.flight then
62
62
  player.CanFly = true
63
63
  end
64
64
  end
65
65
  self.postCurseEval = function(____, curses)
66
- if self.v.persistent.disableCurses then
66
+ if v.persistent.disableCurses then
67
67
  return bitFlags(nil, LevelCurse.NONE)
68
68
  end
69
69
  local newCurses = curses
70
- if self.v.persistent.darkness then
70
+ if v.persistent.darkness then
71
71
  newCurses = addFlag(nil, newCurses, LevelCurse.DARKNESS)
72
72
  end
73
- if self.v.persistent.labyrinth then
73
+ if v.persistent.labyrinth then
74
74
  newCurses = addFlag(nil, newCurses, LevelCurse.LABYRINTH)
75
75
  end
76
- if self.v.persistent.lost then
76
+ if v.persistent.lost then
77
77
  newCurses = addFlag(nil, newCurses, LevelCurse.LOST)
78
78
  end
79
- if self.v.persistent.unknown then
79
+ if v.persistent.unknown then
80
80
  newCurses = addFlag(nil, newCurses, LevelCurse.UNKNOWN)
81
81
  end
82
- if self.v.persistent.cursed then
82
+ if v.persistent.cursed then
83
83
  newCurses = addFlag(nil, newCurses, LevelCurse.CURSED)
84
84
  end
85
- if self.v.persistent.maze then
85
+ if v.persistent.maze then
86
86
  newCurses = addFlag(nil, newCurses, LevelCurse.MAZE)
87
87
  end
88
- if self.v.persistent.blind then
88
+ if v.persistent.blind then
89
89
  newCurses = addFlag(nil, newCurses, LevelCurse.BLIND)
90
90
  end
91
- if self.v.persistent.giant then
91
+ if v.persistent.giant then
92
92
  newCurses = addFlag(nil, newCurses, LevelCurse.GIANT)
93
93
  end
94
94
  local ____temp_0
@@ -109,12 +109,12 @@ function ExtraConsoleCommands.prototype.____constructor(self)
109
109
  commandFunction(nil, params)
110
110
  end
111
111
  self.postFireTear = function(____, tear)
112
- if self.v.persistent.chaosCardTears then
112
+ if v.persistent.chaosCardTears then
113
113
  tear:ChangeVariant(TearVariant.CHAOS_CARD)
114
114
  end
115
115
  end
116
116
  self.entityTakeDmgPlayer = function(____, _player, _damageAmount, _damageFlags, _damageSource, _damageCountdownFrames)
117
- if self.v.persistent.spamBloodRights then
117
+ if v.persistent.spamBloodRights then
118
118
  return false
119
119
  end
120
120
  return nil
@@ -1 +1 @@
1
- {"version":3,"file":"NoSirenSteal.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/NoSirenSteal.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,YAAa,SAAQ,OAAO;IA0BvC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,2BAA2B;IAgBnC,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;OASG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,GAAG,GACpB,IAAI;CAOR"}
1
+ {"version":3,"file":"NoSirenSteal.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/NoSirenSteal.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAUhD,qBAAa,YAAa,SAAQ,OAAO;IAoBvC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,2BAA2B;IAgBnC,OAAO,CAAC,oBAAoB;IA2B5B;;;;;;;;;OASG;IAEI,uBAAuB,CAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,GAAG,GACpB,IAAI;CAOR"}
@@ -10,13 +10,14 @@ local ____decorators = require("src.decorators")
10
10
  local Exported = ____decorators.Exported
11
11
  local ____Feature = require("src.classes.private.Feature")
12
12
  local Feature = ____Feature.Feature
13
+ local v = {run = {familiarBlacklist = {}}}
13
14
  ____exports.NoSirenSteal = __TS__Class()
14
15
  local NoSirenSteal = ____exports.NoSirenSteal
15
16
  NoSirenSteal.name = "NoSirenSteal"
16
17
  __TS__ClassExtends(NoSirenSteal, Feature)
17
18
  function NoSirenSteal.prototype.____constructor(self)
18
19
  Feature.prototype.____constructor(self)
19
- self.v = {run = {familiarBlacklist = {}}}
20
+ self.v = v
20
21
  self.postNPCInitSirenHelper = function(____, npc)
21
22
  self:checkReturnFamiliarToPlayer(npc)
22
23
  end
@@ -36,7 +37,7 @@ function NoSirenSteal.prototype.checkReturnFamiliarToPlayer(self, npc)
36
37
  end
37
38
  end
38
39
  function NoSirenSteal.prototype.blacklistEntryExists(self, incomingFamiliarVariant, incomingFamiliarSubType)
39
- for ____, familiarTuple in ipairs(self.v.run.familiarBlacklist) do
40
+ for ____, familiarTuple in ipairs(v.run.familiarBlacklist) do
40
41
  local familiarVariant, familiarSubType = table.unpack(familiarTuple)
41
42
  if familiarVariant == incomingFamiliarVariant and familiarSubType == incomingFamiliarSubType then
42
43
  return true
@@ -51,8 +52,8 @@ function NoSirenSteal.prototype.setFamiliarNoSirenSteal(self, familiarVariant, f
51
52
  if self:blacklistEntryExists(familiarVariant, familiarSubType) then
52
53
  return
53
54
  end
54
- local ____self_v_run_familiarBlacklist_0 = self.v.run.familiarBlacklist
55
- ____self_v_run_familiarBlacklist_0[#____self_v_run_familiarBlacklist_0 + 1] = {familiarVariant, familiarSubType}
55
+ local ____v_run_familiarBlacklist_0 = v.run.familiarBlacklist
56
+ ____v_run_familiarBlacklist_0[#____v_run_familiarBlacklist_0 + 1] = {familiarVariant, familiarSubType}
56
57
  end
57
58
  __TS__Decorate({Exported}, NoSirenSteal.prototype, "setFamiliarNoSirenSteal", true)
58
59
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAYhD,qBAAa,KAAM,SAAQ,OAAO;IAUhC,OAAO,CAAC,aAAa,CAAgB;IAsBrC,OAAO,CAAC,UAAU,CAShB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,yBAAyB,CAiB/B;IAGK,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;OAUG;IAEI,KAAK,IAAI,IAAI;IAwDpB;;;;OAIG;IAEI,OAAO,IAAI,IAAI;CA4BvB"}
1
+ {"version":3,"file":"Pause.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/Pause.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoBhD,qBAAa,KAAM,SAAQ,OAAO;IAIhC,OAAO,CAAC,aAAa,CAAgB;IAsBrC,OAAO,CAAC,UAAU,CAShB;IAEF,OAAO,CAAC,iCAAiC;IA0BzC,OAAO,CAAC,yBAAyB,CAiB/B;IAGK,QAAQ,IAAI,OAAO;IAI1B;;;;;;;;;;OAUG;IAEI,KAAK,IAAI,IAAI;IAwDpB;;;;OAIG;IAEI,OAAO,IAAI,IAAI;CA4BvB"}
@@ -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__SparseArrayNew = ____lualib.__TS__SparseArrayNew
7
7
  local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
8
8
  local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
@@ -35,19 +35,20 @@ local ____tstlClass = require("src.functions.tstlClass")
35
35
  local getTSTLClassName = ____tstlClass.getTSTLClassName
36
36
  local ____Feature = require("src.classes.private.Feature")
37
37
  local Feature = ____Feature.Feature
38
+ local v = {run = {
39
+ isPseudoPaused = false,
40
+ shouldUnpause = false,
41
+ initialDescriptions = __TS__New(Map)
42
+ }}
38
43
  ____exports.Pause = __TS__Class()
39
44
  local Pause = ____exports.Pause
40
45
  Pause.name = "Pause"
41
46
  __TS__ClassExtends(Pause, Feature)
42
47
  function Pause.prototype.____constructor(self, disableInputs)
43
48
  Feature.prototype.____constructor(self)
44
- self.v = {run = {
45
- isPseudoPaused = false,
46
- shouldUnpause = false,
47
- initialDescriptions = __TS__New(Map)
48
- }}
49
+ self.v = v
49
50
  self.postUpdate = function()
50
- if not self.v.run.isPseudoPaused then
51
+ if not v.run.isPseudoPaused then
51
52
  return
52
53
  end
53
54
  local firstPlayer = Isaac.GetPlayer()
@@ -58,10 +59,10 @@ function Pause.prototype.____constructor(self, disableInputs)
58
59
  if buttonAction ~= ButtonAction.SHOOT_RIGHT then
59
60
  return
60
61
  end
61
- if not self.v.run.shouldUnpause then
62
+ if not v.run.shouldUnpause then
62
63
  return
63
64
  end
64
- self.v.run.shouldUnpause = false
65
+ v.run.shouldUnpause = false
65
66
  return 1
66
67
  end
67
68
  self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.INPUT_ACTION, self.inputActionGetActionValue, {InputHook.GET_ACTION_VALUE}}}
@@ -77,7 +78,7 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
77
78
  for ____, tearOrProjectile in ipairs(tearsAndProjectiles) do
78
79
  do
79
80
  local ptrHash = GetPtrHash(tearOrProjectile)
80
- local initialDescription = self.v.run.initialDescriptions:get(ptrHash)
81
+ local initialDescription = v.run.initialDescriptions:get(ptrHash)
81
82
  if initialDescription == nil then
82
83
  goto __continue9
83
84
  end
@@ -96,15 +97,15 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
96
97
  end
97
98
  end
98
99
  function Pause.prototype.isPaused(self)
99
- return self.v.run.isPseudoPaused
100
+ return v.run.isPseudoPaused
100
101
  end
101
102
  function Pause.prototype.pause(self)
102
- if self.v.run.isPseudoPaused then
103
+ if v.run.isPseudoPaused then
103
104
  logError("Failed to pseudo-pause the game, since it was already pseudo-paused.")
104
105
  return
105
106
  end
106
- self.v.run.isPseudoPaused = true
107
- self.v.run.initialDescriptions:clear()
107
+ v.run.isPseudoPaused = true
108
+ v.run.initialDescriptions:clear()
108
109
  local ____array_1 = __TS__SparseArrayNew(table.unpack(getTears(nil)))
109
110
  __TS__SparseArrayPush(
110
111
  ____array_1,
@@ -121,7 +122,7 @@ function Pause.prototype.pause(self)
121
122
  fallingSpeed = tearOrProjectile.FallingSpeed,
122
123
  fallingAcceleration = isTear(nil, tearOrProjectile) and tearOrProjectile.FallingAcceleration or tearOrProjectile.FallingAccel
123
124
  }
124
- self.v.run.initialDescriptions:set(ptrHash, initialDescription)
125
+ v.run.initialDescriptions:set(ptrHash, initialDescription)
125
126
  end
126
127
  local firstPlayer = Isaac.GetPlayer()
127
128
  useActiveItemTemp(nil, firstPlayer, CollectibleType.PAUSE)
@@ -138,12 +139,12 @@ function Pause.prototype.pause(self)
138
139
  self:stopTearsAndProjectilesFromMoving()
139
140
  end
140
141
  function Pause.prototype.unpause(self)
141
- if not self.v.run.isPseudoPaused then
142
+ if not v.run.isPseudoPaused then
142
143
  logError("Failed to pseudo-unpause the game, since it was not already pseudo-paused.")
143
144
  return
144
145
  end
145
- self.v.run.isPseudoPaused = false
146
- self.v.run.shouldUnpause = true
146
+ v.run.isPseudoPaused = false
147
+ v.run.shouldUnpause = true
147
148
  local tstlClassName = getTSTLClassName(nil, self)
148
149
  if tstlClassName == nil then
149
150
  error("Failed to find get the class name for the pause feature.")
@@ -1 +1 @@
1
- {"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAchD,qBAAa,kBAAmB,SAAQ,OAAO;IAuB7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf,CAAC,MAAM,EAAE,GAAG,CAAC;CAajB"}
1
+ {"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf,CAAC,MAAM,EAAE,GAAG,CAAC;CAajB"}