isaacscript-common 18.2.1 → 18.3.1

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 (359) hide show
  1. package/dist/index.d.ts +179 -119
  2. package/dist/isaacscript-common.lua +464 -416
  3. package/dist/src/callbackClasses.d.ts +2 -0
  4. package/dist/src/callbackClasses.d.ts.map +1 -1
  5. package/dist/src/callbackClasses.lua +10 -0
  6. package/dist/src/callbacks.d.ts +101 -99
  7. package/dist/src/callbacks.d.ts.map +1 -1
  8. package/dist/src/callbacks.lua +2 -0
  9. package/dist/src/classes/ModFeature.d.ts +2 -2
  10. package/dist/src/classes/ModFeature.d.ts.map +1 -1
  11. package/dist/src/classes/ModFeature.lua +18 -17
  12. package/dist/src/classes/ModUpgradedBase.d.ts.map +1 -1
  13. package/dist/src/classes/ModUpgradedBase.lua +10 -10
  14. package/dist/src/classes/callbacks/EntityTakeDmgFilter.lua +1 -1
  15. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -1
  16. package/dist/src/classes/callbacks/EntityTakeDmgPlayer.lua +1 -1
  17. package/dist/src/classes/callbacks/InputActionFilter.d.ts +11 -0
  18. package/dist/src/classes/callbacks/InputActionFilter.d.ts.map +1 -0
  19. package/dist/src/classes/callbacks/InputActionFilter.lua +23 -0
  20. package/dist/src/classes/callbacks/InputActionPlayer.d.ts +11 -0
  21. package/dist/src/classes/callbacks/InputActionPlayer.d.ts.map +1 -0
  22. package/dist/src/classes/callbacks/InputActionPlayer.lua +33 -0
  23. package/dist/src/classes/callbacks/PostAmbushFinished.lua +1 -1
  24. package/dist/src/classes/callbacks/PostAmbushStarted.lua +1 -1
  25. package/dist/src/classes/callbacks/PostBombExploded.lua +1 -1
  26. package/dist/src/classes/callbacks/PostBombInitLate.lua +1 -1
  27. package/dist/src/classes/callbacks/PostBoneSwing.lua +1 -1
  28. package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  29. package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +1 -1
  30. package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
  31. package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +1 -1
  32. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts +2 -2
  33. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  34. package/dist/src/classes/callbacks/PostCursedTeleport.lua +19 -21
  35. package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  36. package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +1 -1
  37. package/dist/src/classes/callbacks/PostDoorRender.lua +1 -1
  38. package/dist/src/classes/callbacks/PostDoorUpdate.lua +1 -1
  39. package/dist/src/classes/callbacks/PostEffectInitLate.lua +1 -1
  40. package/dist/src/classes/callbacks/PostEffectStateChanged.lua +1 -1
  41. package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +1 -1
  42. package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +1 -1
  43. package/dist/src/classes/callbacks/PostGreedModeWave.lua +1 -1
  44. package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +1 -1
  45. package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  46. package/dist/src/classes/callbacks/PostItemDischarge.lua +2 -2
  47. package/dist/src/classes/callbacks/PostKnifeInitLate.lua +1 -1
  48. package/dist/src/classes/callbacks/PostLaserInitLate.lua +1 -1
  49. package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +1 -1
  50. package/dist/src/classes/callbacks/PostNPCInitFilter.lua +1 -1
  51. package/dist/src/classes/callbacks/PostNPCInitLate.lua +1 -1
  52. package/dist/src/classes/callbacks/PostNPCRenderFilter.lua +1 -1
  53. package/dist/src/classes/callbacks/PostNPCStateChanged.lua +1 -1
  54. package/dist/src/classes/callbacks/PostNPCUpdateFilter.lua +1 -1
  55. package/dist/src/classes/callbacks/PostNewRoomEarly.lua +1 -1
  56. package/dist/src/classes/callbacks/PostPickupCollect.lua +1 -1
  57. package/dist/src/classes/callbacks/PostPickupInitFirst.lua +1 -1
  58. package/dist/src/classes/callbacks/PostPickupInitLate.lua +1 -1
  59. package/dist/src/classes/callbacks/PostPickupStateChanged.lua +1 -1
  60. package/dist/src/classes/callbacks/PostPitRender.lua +1 -1
  61. package/dist/src/classes/callbacks/PostPitUpdate.lua +1 -1
  62. package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +1 -1
  63. package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +1 -1
  64. package/dist/src/classes/callbacks/PostPlayerChangeType.lua +1 -1
  65. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +1 -1
  66. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  67. package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +19 -21
  68. package/dist/src/classes/callbacks/PostPlayerInitFirst.lua +1 -1
  69. package/dist/src/classes/callbacks/PostPlayerInitLate.lua +1 -1
  70. package/dist/src/classes/callbacks/PostPoopRender.lua +1 -1
  71. package/dist/src/classes/callbacks/PostPoopUpdate.lua +1 -1
  72. package/dist/src/classes/callbacks/PostPressurePlateRender.lua +1 -1
  73. package/dist/src/classes/callbacks/PostPressurePlateUpdate.lua +1 -1
  74. package/dist/src/classes/callbacks/PostProjectileInitLate.lua +1 -1
  75. package/dist/src/classes/callbacks/PostPurchase.lua +1 -1
  76. package/dist/src/classes/callbacks/PostRockRender.lua +1 -1
  77. package/dist/src/classes/callbacks/PostRockUpdate.lua +1 -1
  78. package/dist/src/classes/callbacks/PostRoomClearChanged.lua +2 -2
  79. package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  80. package/dist/src/classes/callbacks/PostSacrifice.lua +4 -8
  81. package/dist/src/classes/callbacks/PostSlotCollision.lua +1 -1
  82. package/dist/src/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
  83. package/dist/src/classes/callbacks/PostSlotDestroyed.lua +2 -2
  84. package/dist/src/classes/callbacks/PostSpikesRender.lua +1 -1
  85. package/dist/src/classes/callbacks/PostSpikesUpdate.lua +1 -1
  86. package/dist/src/classes/callbacks/PostTNTRender.lua +1 -1
  87. package/dist/src/classes/callbacks/PostTNTUpdate.lua +1 -1
  88. package/dist/src/classes/callbacks/PostTearInitLate.lua +1 -1
  89. package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +1 -1
  90. package/dist/src/classes/callbacks/PostTransformation.lua +1 -1
  91. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  92. package/dist/src/classes/callbacks/PostTrinketBreak.lua +5 -11
  93. package/dist/src/classes/callbacks/PreBerserkDeath.lua +1 -1
  94. package/dist/src/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
  95. package/dist/src/classes/callbacks/PreGetPedestal.lua +1 -1
  96. package/dist/src/classes/callbacks/PreNPCCollisionFilter.lua +1 -1
  97. package/dist/src/classes/callbacks/PreNPCUpdateFilter.lua +1 -1
  98. package/dist/src/classes/callbacks/PreNewLevel.lua +1 -1
  99. package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  100. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +2 -2
  101. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts +2 -2
  102. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  103. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +5 -5
  104. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  105. package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +1 -1
  106. package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  107. package/dist/src/classes/features/callbackLogic/FlipDetection.lua +1 -1
  108. package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
  109. package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +1 -1
  110. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  111. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +1 -1
  112. package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.d.ts.map +1 -1
  113. package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.lua +1 -1
  114. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  115. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +2 -2
  116. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts +1 -1
  117. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  118. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +4 -3
  119. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +8 -3
  120. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  121. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +16 -21
  122. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  123. package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +2 -2
  124. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  125. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +1 -1
  126. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  127. package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +2 -2
  128. package/dist/src/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
  129. package/dist/src/classes/features/other/CharacterHealthConversion.lua +2 -2
  130. package/dist/src/classes/features/other/CharacterStats.lua +1 -1
  131. package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  132. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +1 -1
  133. package/dist/src/classes/features/other/CustomHotkeys.lua +1 -1
  134. package/dist/src/classes/features/other/CustomItemPools.lua +1 -1
  135. package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
  136. package/dist/src/classes/features/other/CustomPickups.lua +1 -1
  137. package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
  138. package/dist/src/classes/features/other/CustomStages.lua +2 -2
  139. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  140. package/dist/src/classes/features/other/CustomTrapdoors.lua +2 -2
  141. package/dist/src/classes/features/other/DisableAllSound.lua +1 -1
  142. package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
  143. package/dist/src/classes/features/other/DisableInputs.lua +1 -1
  144. package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts +1 -1
  145. package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  146. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +17 -16
  147. package/dist/src/classes/features/other/FadeInRemover.lua +1 -1
  148. package/dist/src/classes/features/other/FastReset.lua +1 -1
  149. package/dist/src/classes/features/other/ModdedElementDetection.lua +1 -1
  150. package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  151. package/dist/src/classes/features/other/NoSirenSteal.lua +1 -1
  152. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  153. package/dist/src/classes/features/other/Pause.lua +1 -1
  154. package/dist/src/classes/features/other/PersistentEntities.lua +2 -2
  155. package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  156. package/dist/src/classes/features/other/PickupIndexCreation.lua +1 -1
  157. package/dist/src/classes/features/other/PlayerInventory.lua +1 -1
  158. package/dist/src/classes/features/other/PonyDetection.lua +1 -1
  159. package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
  160. package/dist/src/classes/features/other/PressInput.lua +1 -1
  161. package/dist/src/classes/features/other/PreventChildEntities.lua +1 -1
  162. package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
  163. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +1 -1
  164. package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  165. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +2 -2
  166. package/dist/src/classes/features/other/RoomClearFrame.lua +1 -1
  167. package/dist/src/classes/features/other/RoomHistory.lua +1 -1
  168. package/dist/src/classes/features/other/RunInNFrames.lua +1 -1
  169. package/dist/src/classes/features/other/RunNextRoom.lua +1 -1
  170. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  171. package/dist/src/classes/features/other/SaveDataManager.lua +2 -2
  172. package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
  173. package/dist/src/classes/features/other/StageHistory.lua +1 -1
  174. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +1 -1
  175. package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.lua +1 -1
  176. package/dist/src/classes/features/other/debugDisplay/DebugDisplayDoor.lua +1 -1
  177. package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.lua +1 -1
  178. package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +1 -1
  179. package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.lua +1 -1
  180. package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.lua +1 -1
  181. package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.lua +1 -1
  182. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.lua +1 -1
  183. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPit.lua +1 -1
  184. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +1 -1
  185. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPoop.lua +1 -1
  186. package/dist/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +1 -1
  187. package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +1 -1
  188. package/dist/src/classes/features/other/debugDisplay/DebugDisplayRock.lua +1 -1
  189. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySlot.lua +1 -1
  190. package/dist/src/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +1 -1
  191. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTNT.lua +1 -1
  192. package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.lua +1 -1
  193. package/dist/src/classes/private/CustomCallback.d.ts +2 -2
  194. package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
  195. package/dist/src/classes/private/CustomCallback.lua +7 -10
  196. package/dist/src/enums/ModCallbackCustom.d.ts +141 -99
  197. package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
  198. package/dist/src/enums/ModCallbackCustom.lua +103 -99
  199. package/dist/src/functions/array.d.ts +5 -1
  200. package/dist/src/functions/array.d.ts.map +1 -1
  201. package/dist/src/functions/array.lua +17 -8
  202. package/dist/src/functions/decorators.d.ts.map +1 -1
  203. package/dist/src/functions/decorators.lua +12 -22
  204. package/dist/src/functions/logMisc.d.ts +1 -0
  205. package/dist/src/functions/logMisc.d.ts.map +1 -1
  206. package/dist/src/functions/logMisc.lua +2 -1
  207. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +13 -1
  208. package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  209. package/dist/src/types/ModUpgraded.d.ts +1 -1
  210. package/dist/src/types/ModUpgraded.d.ts.map +1 -1
  211. package/dist/src/types/private/CallbackTuple.d.ts +17 -8
  212. package/dist/src/types/private/CallbackTuple.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/src/callbackClasses.ts +2 -0
  215. package/src/callbacks.ts +2 -0
  216. package/src/classes/ModFeature.ts +43 -21
  217. package/src/classes/ModUpgradedBase.ts +18 -10
  218. package/src/classes/callbacks/EntityTakeDmgFilter.ts +1 -1
  219. package/src/classes/callbacks/EntityTakeDmgPlayer.ts +2 -1
  220. package/src/classes/callbacks/InputActionFilter.ts +46 -0
  221. package/src/classes/callbacks/InputActionPlayer.ts +67 -0
  222. package/src/classes/callbacks/PostAmbushFinished.ts +1 -1
  223. package/src/classes/callbacks/PostAmbushStarted.ts +1 -1
  224. package/src/classes/callbacks/PostBombExploded.ts +1 -1
  225. package/src/classes/callbacks/PostBombInitLate.ts +1 -1
  226. package/src/classes/callbacks/PostBoneSwing.ts +1 -1
  227. package/src/classes/callbacks/PostCollectibleEmpty.ts +2 -1
  228. package/src/classes/callbacks/PostCollectibleInitFirst.ts +2 -1
  229. package/src/classes/callbacks/PostCursedTeleport.ts +52 -60
  230. package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -1
  231. package/src/classes/callbacks/PostDoorRender.ts +1 -1
  232. package/src/classes/callbacks/PostDoorUpdate.ts +1 -1
  233. package/src/classes/callbacks/PostEffectInitLate.ts +1 -1
  234. package/src/classes/callbacks/PostEffectStateChanged.ts +1 -1
  235. package/src/classes/callbacks/PostFamiliarInitLate.ts +1 -1
  236. package/src/classes/callbacks/PostFamiliarStateChanged.ts +1 -1
  237. package/src/classes/callbacks/PostGreedModeWave.ts +1 -1
  238. package/src/classes/callbacks/PostHolyMantleRemoved.ts +1 -1
  239. package/src/classes/callbacks/PostItemDischarge.ts +3 -2
  240. package/src/classes/callbacks/PostKnifeInitLate.ts +1 -1
  241. package/src/classes/callbacks/PostLaserInitLate.ts +1 -1
  242. package/src/classes/callbacks/PostNPCDeathFilter.ts +1 -1
  243. package/src/classes/callbacks/PostNPCInitFilter.ts +1 -1
  244. package/src/classes/callbacks/PostNPCInitLate.ts +1 -1
  245. package/src/classes/callbacks/PostNPCRenderFilter.ts +1 -1
  246. package/src/classes/callbacks/PostNPCStateChanged.ts +1 -1
  247. package/src/classes/callbacks/PostNPCUpdateFilter.ts +1 -1
  248. package/src/classes/callbacks/PostNewRoomEarly.ts +2 -2
  249. package/src/classes/callbacks/PostPickupCollect.ts +1 -1
  250. package/src/classes/callbacks/PostPickupInitFirst.ts +1 -1
  251. package/src/classes/callbacks/PostPickupInitLate.ts +1 -1
  252. package/src/classes/callbacks/PostPickupStateChanged.ts +1 -1
  253. package/src/classes/callbacks/PostPitRender.ts +1 -1
  254. package/src/classes/callbacks/PostPitUpdate.ts +1 -1
  255. package/src/classes/callbacks/PostPlayerChangeHealth.ts +1 -1
  256. package/src/classes/callbacks/PostPlayerChangeStat.ts +1 -1
  257. package/src/classes/callbacks/PostPlayerChangeType.ts +1 -1
  258. package/src/classes/callbacks/PostPlayerFatalDamage.ts +39 -48
  259. package/src/classes/callbacks/PostPlayerInitFirst.ts +2 -2
  260. package/src/classes/callbacks/PostPlayerInitLate.ts +1 -1
  261. package/src/classes/callbacks/PostPoopRender.ts +1 -1
  262. package/src/classes/callbacks/PostPoopUpdate.ts +1 -1
  263. package/src/classes/callbacks/PostPressurePlateRender.ts +1 -1
  264. package/src/classes/callbacks/PostPressurePlateUpdate.ts +1 -1
  265. package/src/classes/callbacks/PostProjectileInitLate.ts +1 -1
  266. package/src/classes/callbacks/PostPurchase.ts +1 -1
  267. package/src/classes/callbacks/PostRockRender.ts +1 -1
  268. package/src/classes/callbacks/PostRockUpdate.ts +1 -1
  269. package/src/classes/callbacks/PostRoomClearChanged.ts +2 -2
  270. package/src/classes/callbacks/PostSacrifice.ts +5 -20
  271. package/src/classes/callbacks/PostSlotCollision.ts +1 -1
  272. package/src/classes/callbacks/PostSlotDestroyed.ts +3 -2
  273. package/src/classes/callbacks/PostSpikesRender.ts +1 -1
  274. package/src/classes/callbacks/PostSpikesUpdate.ts +1 -1
  275. package/src/classes/callbacks/PostTNTRender.ts +1 -1
  276. package/src/classes/callbacks/PostTNTUpdate.ts +1 -1
  277. package/src/classes/callbacks/PostTearInitLate.ts +1 -1
  278. package/src/classes/callbacks/PostTearInitVeryLate.ts +1 -1
  279. package/src/classes/callbacks/PostTransformation.ts +1 -1
  280. package/src/classes/callbacks/PostTrinketBreak.ts +4 -18
  281. package/src/classes/callbacks/PreBerserkDeath.ts +1 -1
  282. package/src/classes/callbacks/PreGetPedestal.ts +2 -1
  283. package/src/classes/callbacks/PreNPCCollisionFilter.ts +1 -1
  284. package/src/classes/callbacks/PreNPCUpdateFilter.ts +1 -1
  285. package/src/classes/callbacks/PreNewLevel.ts +1 -1
  286. package/src/classes/features/callbackLogic/CustomGridEntities.ts +5 -3
  287. package/src/classes/features/callbackLogic/CustomRevive.ts +19 -18
  288. package/src/classes/features/callbackLogic/EsauJrDetection.ts +6 -2
  289. package/src/classes/features/callbackLogic/FlipDetection.ts +2 -1
  290. package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +13 -5
  291. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +2 -1
  292. package/src/classes/features/callbackLogic/GridEntityRenderDetection.ts +2 -1
  293. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +3 -2
  294. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +8 -5
  295. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +67 -71
  296. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +10 -5
  297. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +2 -1
  298. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +3 -2
  299. package/src/classes/features/other/CharacterHealthConversion.ts +3 -2
  300. package/src/classes/features/other/CharacterStats.ts +1 -1
  301. package/src/classes/features/other/CollectibleItemPoolType.ts +2 -1
  302. package/src/classes/features/other/CustomHotkeys.ts +1 -1
  303. package/src/classes/features/other/CustomItemPools.ts +1 -1
  304. package/src/classes/features/other/CustomPickups.ts +3 -2
  305. package/src/classes/features/other/CustomStages.ts +7 -6
  306. package/src/classes/features/other/CustomTrapdoors.ts +4 -6
  307. package/src/classes/features/other/DisableAllSound.ts +1 -1
  308. package/src/classes/features/other/DisableInputs.ts +6 -3
  309. package/src/classes/features/other/ExtraConsoleCommands.ts +32 -31
  310. package/src/classes/features/other/FadeInRemover.ts +1 -1
  311. package/src/classes/features/other/FastReset.ts +1 -1
  312. package/src/classes/features/other/ModdedElementDetection.ts +1 -1
  313. package/src/classes/features/other/NoSirenSteal.ts +2 -1
  314. package/src/classes/features/other/Pause.ts +3 -2
  315. package/src/classes/features/other/PersistentEntities.ts +2 -2
  316. package/src/classes/features/other/PickupIndexCreation.ts +3 -2
  317. package/src/classes/features/other/PlayerInventory.ts +2 -2
  318. package/src/classes/features/other/PonyDetection.ts +1 -1
  319. package/src/classes/features/other/PressInput.ts +2 -1
  320. package/src/classes/features/other/PreventChildEntities.ts +1 -1
  321. package/src/classes/features/other/PreventCollectibleRotation.ts +4 -2
  322. package/src/classes/features/other/PreventGridEntityRespawn.ts +3 -2
  323. package/src/classes/features/other/RoomClearFrame.ts +1 -1
  324. package/src/classes/features/other/RoomHistory.ts +1 -1
  325. package/src/classes/features/other/RunInNFrames.ts +2 -2
  326. package/src/classes/features/other/RunNextRoom.ts +1 -1
  327. package/src/classes/features/other/SaveDataManager.ts +6 -5
  328. package/src/classes/features/other/StageHistory.ts +1 -4
  329. package/src/classes/features/other/TaintedLazarusPlayers.ts +1 -1
  330. package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +1 -1
  331. package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +1 -1
  332. package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +1 -1
  333. package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +1 -1
  334. package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +1 -1
  335. package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +1 -1
  336. package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +1 -1
  337. package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +1 -1
  338. package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +1 -1
  339. package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +1 -1
  340. package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +1 -1
  341. package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +1 -1
  342. package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +1 -1
  343. package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +1 -1
  344. package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +1 -1
  345. package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +1 -1
  346. package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +1 -1
  347. package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +1 -1
  348. package/src/classes/private/CustomCallback.ts +19 -15
  349. package/src/enums/ModCallbackCustom.ts +44 -0
  350. package/src/functions/array.ts +14 -5
  351. package/src/functions/decorators.ts +14 -20
  352. package/src/functions/logMisc.ts +4 -1
  353. package/src/interfaces/private/AddCallbackParametersCustom.ts +24 -0
  354. package/src/types/ModUpgraded.ts +1 -1
  355. package/src/types/private/CallbackTuple.ts +17 -8
  356. package/dist/src/types/private/AllButFirst.d.ts +0 -5
  357. package/dist/src/types/private/AllButFirst.d.ts.map +0 -1
  358. package/dist/src/types/private/AllButFirst.lua +0 -2
  359. package/src/types/private/AllButFirst.ts +0 -6
@@ -62,7 +62,7 @@ function PostSlotDestroyed.prototype.____constructor(self)
62
62
  self.v.room.slotPrizeAnimationGameFrame:delete(ptrHash)
63
63
  end
64
64
  end
65
- self.callbacksUsed = {{ModCallback.POST_ENTITY_REMOVE, {self.postEntityRemoveSlot, EntityType.SLOT}}}
66
- self.customCallbacksUsed = {{ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED, {self.postSlotAnimationChanged}}}
65
+ self.callbacksUsed = {{ModCallback.POST_ENTITY_REMOVE, self.postEntityRemoveSlot, {EntityType.SLOT}}}
66
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_SLOT_ANIMATION_CHANGED, self.postSlotAnimationChanged}}
67
67
  end
68
68
  return ____exports
@@ -22,6 +22,6 @@ function PostSpikesRender.prototype.____constructor(self)
22
22
  self:fire(spikes)
23
23
  end
24
24
  end
25
- self.callbacksUsed = {{ModCallback.POST_RENDER, {self.postRender}}}
25
+ self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
26
26
  end
27
27
  return ____exports
@@ -22,6 +22,6 @@ function PostSpikesUpdate.prototype.____constructor(self)
22
22
  self:fire(spikes)
23
23
  end
24
24
  end
25
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
25
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
26
26
  end
27
27
  return ____exports
@@ -22,6 +22,6 @@ function PostTNTRender.prototype.____constructor(self)
22
22
  self:fire(tnt)
23
23
  end
24
24
  end
25
- self.callbacksUsed = {{ModCallback.POST_RENDER, {self.postRender}}}
25
+ self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
26
26
  end
27
27
  return ____exports
@@ -22,6 +22,6 @@ function PostTNTUpdate.prototype.____constructor(self)
22
22
  self:fire(tnt)
23
23
  end
24
24
  end
25
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
25
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
26
26
  end
27
27
  return ____exports
@@ -25,6 +25,6 @@ function PostTearInitLate.prototype.____constructor(self)
25
25
  self:fire(tear)
26
26
  end
27
27
  end
28
- self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE, {self.postTearUpdate}}}
28
+ self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE, self.postTearUpdate}}
29
29
  end
30
30
  return ____exports
@@ -28,6 +28,6 @@ function PostTearInitVeryLate.prototype.____constructor(self)
28
28
  self:fire(tear)
29
29
  end
30
30
  end
31
- self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE, {self.postTearUpdate}}}
31
+ self.callbacksUsed = {{ModCallback.POST_TEAR_UPDATE, self.postTearUpdate}}
32
32
  end
33
33
  return ____exports
@@ -45,6 +45,6 @@ function PostTransformation.prototype.____constructor(self)
45
45
  end
46
46
  end
47
47
  end
48
- self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, {self.postPEffectUpdateReordered}}}
48
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
49
49
  end
50
50
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"PostTrinketBreak.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTrinketBreak.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO3D,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IACxE,CAAC;;;;MAOf;;IAqBF,UAAmB,UAAU,+BAAyB;IAItD,OAAO,CAAC,mBAAmB,CA6CzB;IAGF,OAAO,CAAC,0BAA0B,CAWhC;CACH"}
1
+ {"version":3,"file":"PostTrinketBreak.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTrinketBreak.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO3D,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IACxE,CAAC;;;;MAOf;;IAcF,UAAmB,UAAU,+BAAyB;IAGtD,OAAO,CAAC,mBAAmB,CAwCzB;IAGF,OAAO,CAAC,0BAA0B,CAWhC;CACH"}
@@ -6,7 +6,6 @@ local __TS__New = ____lualib.__TS__New
6
6
  local ____exports = {}
7
7
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
8
8
  local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
9
- local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
10
9
  local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
11
10
  local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
12
11
  local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
@@ -31,11 +30,7 @@ function PostTrinketBreak.prototype.____constructor(self)
31
30
  function() return __TS__New(Map) end
32
31
  )}}
33
32
  self.shouldFire = shouldFireTrinketType
34
- self.entityTakeDmgPlayer = function(____, entity, _amount, _damageFlags, _source, _countdownFrames)
35
- local player = entity:ToPlayer()
36
- if player == nil then
37
- return nil
38
- end
33
+ self.entityTakeDmgPlayer = function(____, player, _amount, _damageFlags, _source, _countdownFrames)
39
34
  local trinketMap = defaultMapGetPlayer(nil, self.v.run.playersTrinketMap, player)
40
35
  for ____, trinketType in ipairs(TRINKETS_THAT_CAN_BREAK) do
41
36
  do
@@ -45,16 +40,16 @@ function PostTrinketBreak.prototype.____constructor(self)
45
40
  oldNumTrinketsHeld = 0
46
41
  end
47
42
  if numTrinketsHeld >= oldNumTrinketsHeld then
48
- goto __continue6
43
+ goto __continue5
49
44
  end
50
45
  trinketMap:set(trinketType, numTrinketsHeld)
51
46
  local numTrinketsOnGround = Isaac.CountEntities(nil, EntityType.PICKUP, PickupVariant.TRINKET, trinketType)
52
47
  if numTrinketsOnGround > 0 then
53
- goto __continue6
48
+ goto __continue5
54
49
  end
55
50
  self:fire(player, trinketType)
56
51
  end
57
- ::__continue6::
52
+ ::__continue5::
58
53
  end
59
54
  return nil
60
55
  end
@@ -65,7 +60,6 @@ function PostTrinketBreak.prototype.____constructor(self)
65
60
  trinketMap:set(trinketType, numTrinkets)
66
61
  end
67
62
  end
68
- self.callbacksUsed = {{ModCallback.ENTITY_TAKE_DMG, {self.entityTakeDmgPlayer, EntityType.PLAYER}}}
69
- self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, {self.postPEffectUpdateReordered}}}
63
+ self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
70
64
  end
71
65
  return ____exports
@@ -34,6 +34,6 @@ function PreBerserkDeath.prototype.____constructor(self)
34
34
  self:fire(player)
35
35
  end
36
36
  end
37
- self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, {self.postPEffectUpdateReordered}}}
37
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
38
38
  end
39
39
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"PreGetPedestal.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreGetPedestal.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,cAAe,SAAQ,cAAc,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;;IAapF,UAAmB,UAAU,0BAAoB;IAGjD,OAAO,CAAC,kBAAkB,CAiCxB;CACH"}
1
+ {"version":3,"file":"PreGetPedestal.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreGetPedestal.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,qBAAa,cAAe,SAAQ,cAAc,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;;IAcpF,UAAmB,UAAU,0BAAoB;IAGjD,OAAO,CAAC,kBAAkB,CAiCxB;CACH"}
@@ -38,6 +38,6 @@ function PreGetPedestal.prototype.____constructor(self)
38
38
  end
39
39
  return self:fire(player, collectible)
40
40
  end
41
- self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, {self.prePickupCollision, PickupVariant.COLLECTIBLE}}}
41
+ self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, self.prePickupCollision, {PickupVariant.COLLECTIBLE}}}
42
42
  end
43
43
  return ____exports
@@ -16,6 +16,6 @@ function PreNPCCollisionFilter.prototype.____constructor(self)
16
16
  CustomCallback.prototype.____constructor(self)
17
17
  self.shouldFire = shouldFireNPC
18
18
  self.preNPCCollision = function(____, npc, collider, low) return self:fire(npc, collider, low) end
19
- self.callbacksUsed = {{ModCallback.PRE_NPC_COLLISION, {self.preNPCCollision}}}
19
+ self.callbacksUsed = {{ModCallback.PRE_NPC_COLLISION, self.preNPCCollision}}
20
20
  end
21
21
  return ____exports
@@ -16,6 +16,6 @@ function PreNPCUpdateFilter.prototype.____constructor(self)
16
16
  CustomCallback.prototype.____constructor(self)
17
17
  self.shouldFire = shouldFireNPC
18
18
  self.preNPCUpdate = function(____, npc) return self:fire(npc) end
19
- self.callbacksUsed = {{ModCallback.PRE_NPC_UPDATE, {self.preNPCUpdate}}}
19
+ self.callbacksUsed = {{ModCallback.PRE_NPC_UPDATE, self.preNPCUpdate}}
20
20
  end
21
21
  return ____exports
@@ -37,6 +37,6 @@ function PreNewLevel.prototype.____constructor(self)
37
37
  self:fire(player)
38
38
  end
39
39
  end
40
- self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER, {self.postPlayerRender}}}
40
+ self.callbacksUsed = {{ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
41
41
  end
42
42
  return ____exports
@@ -1 +1 @@
1
- {"version":3,"file":"CustomGridEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomGridEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EAClB,cAAc,EAGf,MAAM,8BAA8B,CAAC;AAatC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,kBAAmB,SAAQ,OAAO;IAgB7C,OAAO,CAAC,YAAY,CAAe;IAwBnC,OAAO,CAAC,0BAA0B,CA+ChC;IAGF,OAAO,CAAC,oBAAoB,CA4B1B;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IAEI,qBAAqB,CAC1B,oBAAoB,EAAE,cAAc,EACpC,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,kBAAkB,CAAC,EAAE,kBAAkB,EACvC,QAAQ,CAAC,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,EACzB,kBAAkB,iBAA4B,EAC9C,qBAAqB,SAAI,GACxB,UAAU;IA8Cb;;;;;;;;;;;;;;;;;OAiBG;IAEI,sBAAsB,CAC3B,+BAA+B,EAAE,GAAG,GAAG,MAAM,GAAG,UAAU,EAC1D,UAAU,UAAO,GAChB,UAAU,GAAG,SAAS;IAuCzB;;;;;;OAMG;IAEI,qBAAqB,IAAI,KAAK,CACnC;QAAC,UAAU,EAAE,UAAU;QAAE,IAAI,EAAE,oBAAoB;KAAC,CACrD;IAoBD;;;;;;;OAOG;IAEI,uBAAuB,CAC5B,qBAAqB,EAAE,UAAU,GAAG,GAAG,GACtC,cAAc,GAAG,SAAS;IAyB7B;;;;;;OAMG;IAEI,kBAAkB,CAAC,qBAAqB,EAAE,UAAU,GAAG,GAAG,GAAG,OAAO;CAM5E"}
1
+ {"version":3,"file":"CustomGridEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomGridEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,kBAAkB,EAClB,cAAc,EAGf,MAAM,8BAA8B,CAAC;AAatC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,kBAAmB,SAAQ,OAAO;IAgB7C,OAAO,CAAC,YAAY,CAAe;IA0BnC,OAAO,CAAC,0BAA0B,CA+ChC;IAGF,OAAO,CAAC,oBAAoB,CA4B1B;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+EG;IAEI,qBAAqB,CAC1B,oBAAoB,EAAE,cAAc,EACpC,mBAAmB,EAAE,GAAG,GAAG,MAAM,EACjC,kBAAkB,CAAC,EAAE,kBAAkB,EACvC,QAAQ,CAAC,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,EACzB,kBAAkB,iBAA4B,EAC9C,qBAAqB,SAAI,GACxB,UAAU;IA8Cb;;;;;;;;;;;;;;;;;OAiBG;IAEI,sBAAsB,CAC3B,+BAA+B,EAAE,GAAG,GAAG,MAAM,GAAG,UAAU,EAC1D,UAAU,UAAO,GAChB,UAAU,GAAG,SAAS;IAuCzB;;;;;;OAMG;IAEI,qBAAqB,IAAI,KAAK,CACnC;QAAC,UAAU,EAAE,UAAU;QAAE,IAAI,EAAE,oBAAoB;KAAC,CACrD;IAoBD;;;;;;;OAOG;IAEI,uBAAuB,CAC5B,qBAAqB,EAAE,UAAU,GAAG,GAAG,GACtC,cAAc,GAAG,SAAS;IAyB7B;;;;;;OAMG;IAEI,kBAAkB,CAAC,qBAAqB,EAAE,UAAU,GAAG,GAAG,GAAG,OAAO;CAM5E"}
@@ -106,8 +106,8 @@ function CustomGridEntities.prototype.____constructor(self, runInNFrames)
106
106
  end
107
107
  end
108
108
  self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
109
- self.callbacksUsed = {{ModCallback.PRE_USE_ITEM, {self.preUseItemWeNeedToGoDeeper, CollectibleType.WE_NEED_TO_GO_DEEPER}}}
110
- self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, {self.postNewRoomReordered}}}
109
+ self.callbacksUsed = {{ModCallback.PRE_USE_ITEM, self.preUseItemWeNeedToGoDeeper, {CollectibleType.WE_NEED_TO_GO_DEEPER}}}
110
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
111
111
  self.runInNFrames = runInNFrames
112
112
  end
113
113
  function CustomGridEntities.prototype.spawnCustomGridEntity(self, gridEntityTypeCustom, gridIndexOrPosition, gridCollisionClass, anm2Path, defaultAnimation, baseGridEntityType, baseGridEntityVariant)
@@ -25,9 +25,9 @@ export declare class CustomRevive extends Feature {
25
25
  private runInNFrames;
26
26
  constructor(preCustomRevive: PreCustomRevive, postCustomRevive: PostCustomRevive, runInNFrames: RunInNFrames);
27
27
  private postRender;
28
- private postPEffectUpdate;
29
- private checkWaitingForItemAnimation;
30
28
  private postNewRoomReordered;
29
+ private postPEffectUpdateReordered;
30
+ private checkWaitingForItemAnimation;
31
31
  private postPlayerFatalDamage;
32
32
  private preBerserkDeath;
33
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"CustomRevive.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomRevive.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,aAAK,iBAAiB;IACpB,QAAQ,IAAA;IAER;;;OAGG;IACH,2BAA2B,IAAA;IAE3B,0BAA0B,IAAA;CAC3B;AAED,qBAAa,YAAa,SAAQ,OAAO;IACvB,CAAC;;;;;;MAMf;IAEF,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;gBAGjC,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IA0B5B,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,iBAAiB,CAEvB;IAEF,OAAO,CAAC,4BAA4B;IA6CpC,OAAO,CAAC,oBAAoB,CAO1B;IAGF,OAAO,CAAC,qBAAqB,CAK3B;IAGF,OAAO,CAAC,eAAe,CAErB;IAEF;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAoC1B,OAAO,CAAC,eAAe;CASxB"}
1
+ {"version":3,"file":"CustomRevive.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/CustomRevive.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,aAAK,iBAAiB;IACpB,QAAQ,IAAA;IAER;;;OAGG;IACH,2BAA2B,IAAA;IAE3B,0BAA0B,IAAA;CAC3B;AAED,qBAAa,YAAa,SAAQ,OAAO;IACvB,CAAC;;;;;;MAMf;IAEF,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,YAAY,CAAe;gBAGjC,eAAe,EAAE,eAAe,EAChC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IA2B5B,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,oBAAoB,CAO1B;IAGF,OAAO,CAAC,0BAA0B,CAEhC;IAEF,OAAO,CAAC,4BAA4B;IA6CpC,OAAO,CAAC,qBAAqB,CAK3B;IAGF,OAAO,CAAC,eAAe,CAErB;IAEF;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAoC1B,OAAO,CAAC,eAAe;CASxB"}
@@ -50,9 +50,6 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
50
50
  end
51
51
  sfxManager:Stop(SoundEffect.ONE_UP)
52
52
  end
53
- self.postPEffectUpdate = function(____, player)
54
- self:checkWaitingForItemAnimation(player)
55
- end
56
53
  self.postNewRoomReordered = function()
57
54
  if self.v.run.state ~= CustomReviveState.WAITING_FOR_ROOM_TRANSITION then
58
55
  return
@@ -60,6 +57,9 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
60
57
  self.v.run.state = CustomReviveState.WAITING_FOR_ITEM_ANIMATION
61
58
  self:logStateChanged()
62
59
  end
60
+ self.postPEffectUpdateReordered = function(____, player)
61
+ self:checkWaitingForItemAnimation(player)
62
+ end
63
63
  self.postPlayerFatalDamage = function(____, player)
64
64
  self:playerIsAboutToDie(player)
65
65
  return nil
@@ -68,8 +68,8 @@ function CustomRevive.prototype.____constructor(self, preCustomRevive, postCusto
68
68
  self:playerIsAboutToDie(player)
69
69
  end
70
70
  self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
71
- self.callbacksUsed = {{ModCallback.POST_RENDER, {self.postRender}}, {ModCallback.POST_PEFFECT_UPDATE, {self.postPEffectUpdate}}}
72
- self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, {self.postNewRoomReordered}}, {ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE, {self.postPlayerFatalDamage}}, {ModCallbackCustom.PRE_BERSERK_DEATH, {self.preBerserkDeath}}}
71
+ self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
72
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}, {ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE, self.postPlayerFatalDamage}, {ModCallbackCustom.PRE_BERSERK_DEATH, self.preBerserkDeath}}
73
73
  self.preCustomRevive = preCustomRevive
74
74
  self.postCustomRevive = postCustomRevive
75
75
  self.runInNFrames = runInNFrames
@@ -1 +1 @@
1
- {"version":3,"file":"EsauJrDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/EsauJrDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,eAAgB,SAAQ,OAAO;IAC1B,CAAC;;;;;;MAMf;IAEF,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,eAAe,CAAkB;gBAE7B,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe;IAgBpE,OAAO,CAAC,UAAU,CAiChB;IAIF,OAAO,CAAC,aAAa,CAenB;CACH"}
1
+ {"version":3,"file":"EsauJrDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/EsauJrDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,eAAgB,SAAQ,OAAO;IAC1B,CAAC;;;;;;MAMf;IAEF,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,eAAe,CAAkB;gBAE7B,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe;IAoBpE,OAAO,CAAC,UAAU,CAiChB;IAIF,OAAO,CAAC,aAAa,CAenB;CACH"}
@@ -45,7 +45,7 @@ function EsauJrDetection.prototype.____constructor(self, postEsauJr, postFirstEs
45
45
  self.v.run.usedEsauJrControllerIndex = player.ControllerIndex
46
46
  return nil
47
47
  end
48
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}, {ModCallback.POST_USE_ITEM, {self.useItemEsauJr, CollectibleType.ESAU_JR}}}
48
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}, {ModCallback.POST_USE_ITEM, self.useItemEsauJr, {CollectibleType.ESAU_JR}}}
49
49
  self.postEsauJr = postEsauJr
50
50
  self.postFirstEsauJr = postFirstEsauJr
51
51
  end
@@ -1 +1 @@
1
- {"version":3,"file":"FlipDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/FlipDetection.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,aAAc,SAAQ,OAAO;IACxB,CAAC;;YAEb,2FAA2F;;;MAG7F;IAEF,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa;IAa5D,OAAO,CAAC,WAAW,CA2BjB;CACH"}
1
+ {"version":3,"file":"FlipDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/FlipDetection.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,aAAc,SAAQ,OAAO;IACxB,CAAC;;YAEb,2FAA2F;;;MAG7F;IAEF,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa;IAc5D,OAAO,CAAC,WAAW,CA2BjB;CACH"}
@@ -51,7 +51,7 @@ function FlipDetection.prototype.____constructor(self, postFlip, postFirstFlip)
51
51
  self.postFlip:fire(newLazarus, player)
52
52
  return nil
53
53
  end
54
- self.callbacksUsed = {{ModCallback.POST_USE_ITEM, {self.useItemFlip, CollectibleType.FLIP}}}
54
+ self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.useItemFlip, {CollectibleType.FLIP}}}
55
55
  self.postFlip = postFlip
56
56
  self.postFirstFlip = postFirstFlip
57
57
  end
@@ -1 +1 @@
1
- {"version":3,"file":"GameReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GameReorderedCallbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,sBAAuB,SAAQ,OAAO;IACjD,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,gBAAgB,CAAoB;IAC5C,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,qBAAqB,CAAwB;IACrD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,4BAA4B,CAA+B;IA6BnE,OAAO,CAAC,uBAAuB,CAM7B;IAGF,OAAO,CAAC,eAAe,CAMrB;IAGF,OAAO,CAAC,YAAY,CAYlB;IAGF,OAAO,CAAC,WAAW,CA+BjB;IAEF,OAAO,CAAC,kBAAkB;IAS1B;;;;;;;;;;;;OAYG;IAEI,qBAAqB,IAAI,IAAI;IAIpC;;;;;;;;;;;;OAYG;IAEI,oBAAoB,IAAI,IAAI;IAInC;;;;;;;;;OASG;IAEI,0BAA0B,CAC/B,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI;CAIR"}
1
+ {"version":3,"file":"GameReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GameReorderedCallbacks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,sBAAuB,SAAQ,OAAO;IACjD,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,gBAAgB,CAAoB;IAC5C,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,qBAAqB,CAAwB;IACrD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,4BAA4B,CAA+B;IAqCnE,OAAO,CAAC,uBAAuB,CAM7B;IAGF,OAAO,CAAC,eAAe,CAMrB;IAGF,OAAO,CAAC,YAAY,CAYlB;IAGF,OAAO,CAAC,WAAW,CA+BjB;IAEF,OAAO,CAAC,kBAAkB;IAS1B;;;;;;;;;;;;OAYG;IAEI,qBAAqB,IAAI,IAAI;IAIpC;;;;;;;;;;;;OAYG;IAEI,oBAAoB,IAAI,IAAI;IAInC;;;;;;;;;OASG;IAEI,0BAA0B,CAC/B,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI;CAIR"}
@@ -77,7 +77,7 @@ function GameReorderedCallbacks.prototype.____constructor(self, postGameStartedR
77
77
  self.forceNewRoom = false
78
78
  self.postNewRoomReordered:fire()
79
79
  end
80
- self.callbacksUsed = {{ModCallback.POST_USE_ITEM, {self.useItemGlowingHourGlass, CollectibleType.GLOWING_HOUR_GLASS}}, {ModCallback.POST_GAME_STARTED, {self.postGameStarted}}, {ModCallback.POST_NEW_LEVEL, {self.postNewLevel}}, {ModCallback.POST_NEW_ROOM, {self.postNewRoom}}}
80
+ self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.useItemGlowingHourGlass, {CollectibleType.GLOWING_HOUR_GLASS}}, {ModCallback.POST_GAME_STARTED, self.postGameStarted}, {ModCallback.POST_NEW_LEVEL, self.postNewLevel}, {ModCallback.POST_NEW_ROOM, self.postNewRoom}}
81
81
  self.postGameStartedReordered = postGameStartedReordered
82
82
  self.postNewLevelReordered = postNewLevelReordered
83
83
  self.postNewRoomReordered = postNewRoomReordered
@@ -1 +1 @@
1
- {"version":3,"file":"GridEntityCollisionDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityCollisionDetection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,4BAA6B,SAAQ,OAAO;IACvC,CAAC;;YAEb,2CAA2C;;;MAK7C;IAEF,OAAO,CAAC,uBAAuB,CAA0B;IACzD,OAAO,CAAC,6BAA6B,CAAgC;IACrE,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,uBAAuB,EAAE,uBAAuB,EAChD,6BAA6B,EAAE,6BAA6B,EAC5D,kBAAkB,EAAE,kBAAkB;IAcxC,OAAO,CAAC,UAAU,CA0ChB;CACH"}
1
+ {"version":3,"file":"GridEntityCollisionDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityCollisionDetection.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,4BAA6B,SAAQ,OAAO;IACvC,CAAC;;YAEb,2CAA2C;;;MAK7C;IAEF,OAAO,CAAC,uBAAuB,CAA0B;IACzD,OAAO,CAAC,6BAA6B,CAAgC;IACrE,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,uBAAuB,EAAE,uBAAuB,EAChD,6BAA6B,EAAE,6BAA6B,EAC5D,kBAAkB,EAAE,kBAAkB;IAexC,OAAO,CAAC,UAAU,CA0ChB;CACH"}
@@ -61,7 +61,7 @@ function GridEntityCollisionDetection.prototype.____constructor(self, postGridEn
61
61
  end
62
62
  end
63
63
  end
64
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
64
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
65
65
  self.postGridEntityCollision = postGridEntityCollision
66
66
  self.postGridEntityCustomCollision = postGridEntityCustomCollision
67
67
  self.customGridEntities = customGridEntities
@@ -1 +1 @@
1
- {"version":3,"file":"GridEntityRenderDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityRenderDetection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,yBAA0B,SAAQ,OAAO;IACpD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,kBAAkB,EAAE,kBAAkB;IAcxC,OAAO,CAAC,UAAU,CAWhB;CACH"}
1
+ {"version":3,"file":"GridEntityRenderDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityRenderDetection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,yBAA0B,SAAQ,OAAO;IACpD,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,kBAAkB,EAAE,kBAAkB;IAexC,OAAO,CAAC,UAAU,CAWhB;CACH"}
@@ -25,7 +25,7 @@ function GridEntityRenderDetection.prototype.____constructor(self, postGridEntit
25
25
  end
26
26
  end
27
27
  end
28
- self.callbacksUsed = {{ModCallback.POST_RENDER, {self.postRender}}}
28
+ self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
29
29
  self.postGridEntityRender = postGridEntityRender
30
30
  self.postGridEntityCustomRender = postGridEntityCustomRender
31
31
  self.customGridEntities = customGridEntities
@@ -1 +1 @@
1
- {"version":3,"file":"GridEntityUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityUpdateDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,8BAA8B,CAAC;AAO3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,eAAe,GAAG;IACrB,cAAc,EAAE,cAAc;IAC9B,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,OAAO;IACpC,CAAC;;YAEb,6BAA6B;;;MAG/B;IAEF,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,gCAAgC,CAAmC;IAC3E,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,kBAAkB,EAAE,kBAAkB,EACtC,wBAAwB,EAAE,wBAAwB,EAClD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,0BAA0B,EAAE,0BAA0B,EACtD,gCAAgC,EAAE,gCAAgC,EAClE,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,kBAAkB,EAAE,kBAAkB;IA4BxC,OAAO,CAAC,UAAU,CAmBhB;IAEF,OAAO,CAAC,wBAAwB;IA8BhC,OAAO,CAAC,2BAA2B;IA0CnC,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,oBAAoB,CAM1B;CACH"}
1
+ {"version":3,"file":"GridEntityUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityUpdateDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,8BAA8B,CAAC;AAO3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,eAAe,GAAG;IACrB,cAAc,EAAE,cAAc;IAC9B,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,OAAO;IACpC,CAAC;;YAEb,6BAA6B;;;MAG/B;IAEF,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,gCAAgC,CAAmC;IAC3E,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,kBAAkB,EAAE,kBAAkB,EACtC,wBAAwB,EAAE,wBAAwB,EAClD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,0BAA0B,EAAE,0BAA0B,EACtD,gCAAgC,EAAE,gCAAgC,EAClE,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,kBAAkB,EAAE,kBAAkB;IA6BxC,OAAO,CAAC,UAAU,CAmBhB;IAEF,OAAO,CAAC,wBAAwB;IA8BhC,OAAO,CAAC,2BAA2B;IA0CnC,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,oBAAoB,CAM1B;CACH"}
@@ -48,8 +48,8 @@ function GridEntityUpdateDetection.prototype.____constructor(self, postGridEntit
48
48
  end
49
49
  end
50
50
  self.featuresUsed = {ISCFeature.RUN_IN_N_FRAMES}
51
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
52
- self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, {self.postNewRoomReordered}}}
51
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
52
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
53
53
  self.postGridEntityInit = postGridEntityInit
54
54
  self.postGridEntityCustomInit = postGridEntityCustomInit
55
55
  self.postGridEntityUpdate = postGridEntityUpdate
@@ -13,7 +13,7 @@ export declare class ItemPickupDetection extends Feature {
13
13
  private postItemPickup;
14
14
  private preItemPickup;
15
15
  constructor(postItemPickup: PostItemPickup, preItemPickup: PreItemPickup);
16
- private postPEffectUpdate;
16
+ private postPEffectUpdateReordered;
17
17
  private queueEmpty;
18
18
  private queueNotEmpty;
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ItemPickupDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/ItemPickupDetection.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,aAAa,EAEd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;MAMf;IAEF,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa;IAYxE,OAAO,CAAC,iBAAiB,CAevB;IAEF,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,aAAa;CAkBtB"}
1
+ {"version":3,"file":"ItemPickupDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/ItemPickupDetection.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,aAAa,EAEd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;MAMf;IAEF,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,aAAa,CAAgB;gBAEzB,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa;IAexE,OAAO,CAAC,0BAA0B,CAehC;IAEF,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,aAAa;CAkBtB"}
@@ -5,7 +5,8 @@ local __TS__New = ____lualib.__TS__New
5
5
  local ____exports = {}
6
6
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
7
  local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
8
- local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
8
+ local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
9
+ local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
9
10
  local ____playerDataStructures = require("src.functions.playerDataStructures")
10
11
  local defaultMapGetPlayer = ____playerDataStructures.defaultMapGetPlayer
11
12
  local ____types = require("src.functions.types")
@@ -27,7 +28,7 @@ function ItemPickupDetection.prototype.____constructor(self, postItemPickup, pre
27
28
  DefaultMap,
28
29
  function() return newPickingUpItem(nil) end
29
30
  )}}
30
- self.postPEffectUpdate = function(____, player)
31
+ self.postPEffectUpdateReordered = function(____, player)
31
32
  local pickingUpItem = defaultMapGetPlayer(nil, self.v.run.playersPickingUpItemMap, player)
32
33
  if player:IsItemQueueEmpty() then
33
34
  self:queueEmpty(player, pickingUpItem)
@@ -35,7 +36,7 @@ function ItemPickupDetection.prototype.____constructor(self, postItemPickup, pre
35
36
  self:queueNotEmpty(player, pickingUpItem)
36
37
  end
37
38
  end
38
- self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, {self.postPEffectUpdate}}}
39
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
39
40
  self.postItemPickup = postItemPickup
40
41
  self.preItemPickup = preItemPickup
41
42
  end
@@ -33,7 +33,14 @@ export declare class PlayerCollectibleDetection extends Feature {
33
33
  */
34
34
  private updateCollectibleMapAndFire;
35
35
  private useItemD4;
36
- private postPEffectUpdate;
36
+ /** We need to handle the case of Tainted Eden taking damage. */
37
+ private entityTakeDmgPlayer;
38
+ /**
39
+ * We need to handle TMTRAINER collectibles, since they do not cause the player's collectible
40
+ * count to change.
41
+ */
42
+ private postItemPickup;
43
+ private postPEffectUpdateReordered;
37
44
  /**
38
45
  * Checking for collectible count will work to detect when a player swaps their active item for
39
46
  * another active item. This is because the collectible count will decrement by 1 when the item is
@@ -44,7 +51,5 @@ export declare class PlayerCollectibleDetection extends Feature {
44
51
  * collectible on the same frame, since doing so is cheap.
45
52
  */
46
53
  private checkActiveItemsChanged;
47
- private entityTakeDmgPlayer;
48
- private postItemPickup;
49
54
  }
50
55
  //# sourceMappingURL=PlayerCollectibleDetection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerCollectibleDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/PlayerCollectibleDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAMhB,MAAM,8BAA8B,CAAC;AAatC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBAAa,0BAA2B,SAAQ,OAAO;IACrC,CAAC;;;;;;MAYf;IAEF,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,4BAA4B,CAA+B;IACnE,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,YAAY,CAAe;gBAGjC,0BAA0B,EAAE,0BAA0B,EACtD,4BAA4B,EAAE,4BAA4B,EAC1D,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY;IA4B5B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,2BAA2B;IA0CnC,OAAO,CAAC,SAAS,CAqBf;IAGF,OAAO,CAAC,iBAAiB,CAqBvB;IAEF;;;;;;;;OAQG;IACH,OAAO,CAAC,uBAAuB;IAmC/B,OAAO,CAAC,mBAAmB,CAgCzB;IAKF,OAAO,CAAC,cAAc,CAmBpB;CACH"}
1
+ {"version":3,"file":"PlayerCollectibleDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/PlayerCollectibleDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAKhB,MAAM,8BAA8B,CAAC;AAatC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBAAa,0BAA2B,SAAQ,OAAO;IACrC,CAAC;;;;;;MAYf;IAEF,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,4BAA4B,CAA+B;IACnE,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,YAAY,CAAe;gBAGjC,0BAA0B,EAAE,0BAA0B,EACtD,4BAA4B,EAAE,4BAA4B,EAC1D,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY;IA6B5B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,2BAA2B;IA0CnC,OAAO,CAAC,SAAS,CAqBf;IAEF,gEAAgE;IAEhE,OAAO,CAAC,mBAAmB,CA2BzB;IAEF;;;OAGG;IAEH,OAAO,CAAC,cAAc,CAmBpB;IAGF,OAAO,CAAC,0BAA0B,CAqBhC;IAEF;;;;;;;;OAQG;IACH,OAAO,CAAC,uBAAuB;CA+BhC"}
@@ -15,7 +15,6 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
15
15
  local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
16
16
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
17
17
  local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
18
- local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
19
18
  local ItemType = ____isaac_2Dtypescript_2Ddefinitions.ItemType
20
19
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
21
20
  local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
@@ -61,27 +60,10 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
61
60
  self:updateCollectibleMapAndFire(player, nil)
62
61
  return nil
63
62
  end
64
- self.postPEffectUpdate = function(____, player)
65
- local oldCollectibleCount = defaultMapGetPlayer(nil, self.v.run.playersCollectibleCount, player)
66
- local newCollectibleCount = player:GetCollectibleCount()
67
- mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
68
- local difference = newCollectibleCount - oldCollectibleCount
69
- if difference > 0 then
70
- self:updateCollectibleMapAndFire(player, difference)
71
- elseif difference < 0 then
72
- self:updateCollectibleMapAndFire(player, difference * -1)
73
- elseif difference == 0 then
74
- self:checkActiveItemsChanged(player)
75
- end
76
- end
77
- self.entityTakeDmgPlayer = function(____, entity, _amount, damageFlags, _source, _countdownFrames)
63
+ self.entityTakeDmgPlayer = function(____, player, _amount, damageFlags, _source, _countdownFrames)
78
64
  if hasFlag(nil, damageFlags, DamageFlag.FAKE) then
79
65
  return nil
80
66
  end
81
- local player = entity:ToPlayer()
82
- if player == nil then
83
- return nil
84
- end
85
67
  local character = player:GetPlayerType()
86
68
  if character ~= PlayerType.EDEN_B then
87
69
  return nil
@@ -103,9 +85,22 @@ function PlayerCollectibleDetection.prototype.____constructor(self, postPlayerCo
103
85
  mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
104
86
  self:updateCollectibleMapAndFire(player, 1)
105
87
  end
88
+ self.postPEffectUpdateReordered = function(____, player)
89
+ local oldCollectibleCount = defaultMapGetPlayer(nil, self.v.run.playersCollectibleCount, player)
90
+ local newCollectibleCount = player:GetCollectibleCount()
91
+ mapSetPlayer(nil, self.v.run.playersCollectibleCount, player, newCollectibleCount)
92
+ local difference = newCollectibleCount - oldCollectibleCount
93
+ if difference > 0 then
94
+ self:updateCollectibleMapAndFire(player, difference)
95
+ elseif difference < 0 then
96
+ self:updateCollectibleMapAndFire(player, difference * -1)
97
+ elseif difference == 0 then
98
+ self:checkActiveItemsChanged(player)
99
+ end
100
+ end
106
101
  self.featuresUsed = {ISCFeature.MODDED_ELEMENT_SETS, ISCFeature.RUN_IN_N_FRAMES}
107
- self.callbacksUsed = {{ModCallback.POST_USE_ITEM, {self.useItemD4, CollectibleType.D4}}, {ModCallback.POST_PEFFECT_UPDATE, {self.postPEffectUpdate}}, {ModCallback.ENTITY_TAKE_DMG, {self.entityTakeDmgPlayer, EntityType.PLAYER}}}
108
- self.customCallbacksUsed = {{ModCallbackCustom.POST_ITEM_PICKUP, {self.postItemPickup}}}
102
+ self.callbacksUsed = {{ModCallback.POST_USE_ITEM, self.useItemD4, {CollectibleType.D4}}}
103
+ self.customCallbacksUsed = {{ModCallbackCustom.ENTITY_TAKE_DMG_PLAYER, self.entityTakeDmgPlayer}, {ModCallbackCustom.POST_ITEM_PICKUP, self.postItemPickup}, {ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
109
104
  self.postPlayerCollectibleAdded = postPlayerCollectibleAdded
110
105
  self.postPlayerCollectibleRemoved = postPlayerCollectibleRemoved
111
106
  self.moddedElementSets = moddedElementSets
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,wBAAyB,SAAQ,OAAO;IACnC,CAAC;;;;;;;MAQf;IAEF,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,yBAAyB,CAA4B;gBAG3D,0BAA0B,EAAE,0BAA0B,EACtD,yBAAyB,EAAE,yBAAyB,EACpD,yBAAyB,EAAE,yBAAyB;IAuBtD,OAAO,CAAC,iBAAiB,CAQvB;IAGF,OAAO,CAAC,gBAAgB,CAQtB;IAGF,OAAO,CAAC,gBAAgB,CAWtB;IAGF,OAAO,CAAC,4BAA4B,CAelC;CACH"}
1
+ {"version":3,"file":"PlayerReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,wBAAyB,SAAQ,OAAO;IACnC,CAAC;;;;;;;MAQf;IAEF,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,yBAAyB,CAA4B;IAC7D,OAAO,CAAC,yBAAyB,CAA4B;gBAG3D,0BAA0B,EAAE,0BAA0B,EACtD,yBAAyB,EAAE,yBAAyB,EACpD,yBAAyB,EAAE,yBAAyB;IA4BtD,OAAO,CAAC,iBAAiB,CAQvB;IAGF,OAAO,CAAC,gBAAgB,CAQtB;IAGF,OAAO,CAAC,gBAAgB,CAWtB;IAGF,OAAO,CAAC,4BAA4B,CAelC;CACH"}
@@ -63,8 +63,8 @@ function PlayerReorderedCallbacks.prototype.____constructor(self, postPEffectUpd
63
63
  dequeue(nil, self.v.run.postPlayerUpdateQueue, self.postPlayerUpdateReordered.fire)
64
64
  dequeue(nil, self.v.run.postPlayerRenderQueue, self.postPlayerRenderReordered.fire)
65
65
  end
66
- self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, {self.postPEffectUpdate}}, {ModCallback.POST_PLAYER_UPDATE, {self.postPlayerUpdate}}, {ModCallback.POST_PLAYER_RENDER, {self.postPlayerRender}}}
67
- self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST, {self.postGameStartedReorderedLast}}}
66
+ self.callbacksUsed = {{ModCallback.POST_PEFFECT_UPDATE, self.postPEffectUpdate}, {ModCallback.POST_PLAYER_UPDATE, self.postPlayerUpdate}, {ModCallback.POST_PLAYER_RENDER, self.postPlayerRender}}
67
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_GAME_STARTED_REORDERED_LAST, self.postGameStartedReorderedLast}}
68
68
  self.postPEffectUpdateReordered = postPEffectUpdateReordered
69
69
  self.postPlayerRenderReordered = postPlayerRenderReordered
70
70
  self.postPlayerUpdateReordered = postPlayerUpdateReordered
@@ -1 +1 @@
1
- {"version":3,"file":"SlotRenderDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotRenderDetection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;;MAUf;IAEF,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,wBAAwB,CAA2B;gBAGzD,cAAc,EAAE,cAAc,EAC9B,wBAAwB,EAAE,wBAAwB;IAapD,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,yBAAyB;CAkBlC"}
1
+ {"version":3,"file":"SlotRenderDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotRenderDetection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;;MAUf;IAEF,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,wBAAwB,CAA2B;gBAGzD,cAAc,EAAE,cAAc,EAC9B,wBAAwB,EAAE,wBAAwB;IAcpD,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,yBAAyB;CAkBlC"}
@@ -34,7 +34,7 @@ function SlotRenderDetection.prototype.____constructor(self, postSlotRender, pos
34
34
  self:checkSlotAnimationChanged(slot)
35
35
  end
36
36
  end
37
- self.callbacksUsed = {{ModCallback.POST_RENDER, {self.postRender}}}
37
+ self.callbacksUsed = {{ModCallback.POST_RENDER, self.postRender}}
38
38
  self.postSlotRender = postSlotRender
39
39
  self.postSlotAnimationChanged = postSlotAnimationChanged
40
40
  end
@@ -1 +1 @@
1
- {"version":3,"file":"SlotUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotUpdateDetection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;MAIf;IAEF,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,cAAc,CAAiB;gBAE3B,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAkBtE,OAAO,CAAC,UAAU,CAKhB;IAGF,OAAO,CAAC,oBAAoB,CAI1B;IAEF,OAAO,CAAC,cAAc;CAOvB"}
1
+ {"version":3,"file":"SlotUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/SlotUpdateDetection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,OAAO;IAC9B,CAAC;;;;MAIf;IAEF,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,cAAc,CAAiB;gBAE3B,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc;IAmBtE,OAAO,CAAC,UAAU,CAKhB;IAGF,OAAO,CAAC,oBAAoB,CAI1B;IAEF,OAAO,CAAC,cAAc;CAOvB"}
@@ -30,8 +30,8 @@ function SlotUpdateDetection.prototype.____constructor(self, postSlotInit, postS
30
30
  self:checkNewEntity(slot)
31
31
  end
32
32
  end
33
- self.callbacksUsed = {{ModCallback.POST_UPDATE, {self.postUpdate}}}
34
- self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, {self.postNewRoomReordered}}}
33
+ self.callbacksUsed = {{ModCallback.POST_UPDATE, self.postUpdate}}
34
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, self.postNewRoomReordered}}
35
35
  self.postSlotInit = postSlotInit
36
36
  self.postSlotUpdate = postSlotUpdate
37
37
  end
@@ -1 +1 @@
1
- {"version":3,"file":"CharacterHealthConversion.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CharacterHealthConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACX,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,yBAA0B,SAAQ,OAAO;IACpD,OAAO,CAAC,6BAA6B,CAGjC;IAwBJ,OAAO,CAAC,uBAAuB,CAuB7B;IAGF,OAAO,CAAC,0BAA0B,CAUhC;IAEF;;;;;;;;OAQG;IAEI,iCAAiC,CACtC,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,sBAAsB,GAC7C,IAAI;CASR"}
1
+ {"version":3,"file":"CharacterHealthConversion.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CharacterHealthConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACX,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,yBAA0B,SAAQ,OAAO;IACpD,OAAO,CAAC,6BAA6B,CAGjC;IAyBJ,OAAO,CAAC,uBAAuB,CAuB7B;IAGF,OAAO,CAAC,0BAA0B,CAUhC;IAEF;;;;;;;;OAQG;IAEI,iCAAiC,CACtC,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,sBAAsB,GAC7C,IAAI;CASR"}
@@ -79,8 +79,8 @@ function CharacterHealthConversion.prototype.____constructor(self)
79
79
  convertRedHeartContainers(nil, player, conversionHeartSubType)
80
80
  removeRedHearts(nil, player)
81
81
  end
82
- self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, {self.prePickupCollisionHeart, PickupVariant.HEART}}}
83
- self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, {self.postPEffectUpdateReordered}}}
82
+ self.callbacksUsed = {{ModCallback.PRE_PICKUP_COLLISION, self.prePickupCollisionHeart, {PickupVariant.HEART}}}
83
+ self.customCallbacksUsed = {{ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, self.postPEffectUpdateReordered}}
84
84
  end
85
85
  function CharacterHealthConversion.prototype.registerCharacterHealthConversion(self, playerType, conversionHeartSubType)
86
86
  if self.characterHealthReplacementMap:has(playerType) then
@@ -36,7 +36,7 @@ function CharacterStats.prototype.____constructor(self)
36
36
  local delta = stat - defaultStat
37
37
  addStat(nil, player, cacheFlag, delta)
38
38
  end
39
- self.callbacksUsed = {{ModCallback.EVALUATE_CACHE, {self.evaluateCache}}}
39
+ self.callbacksUsed = {{ModCallback.EVALUATE_CACHE, self.evaluateCache}}
40
40
  end
41
41
  function CharacterStats.prototype.registerCharacterStats(self, playerType, statMap)
42
42
  self.charactersStatMap:set(playerType, statMap)
@@ -1 +1 @@
1
- {"version":3,"file":"CollectibleItemPoolType.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CollectibleItemPoolType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,uBAAwB,SAAQ,OAAO;IAQlD,OAAO,CAAC,mBAAmB,CAAsB;IAqBjD,OAAO,CAAC,yBAAyB,CAM/B;IAEF;;;;;;;;OAQG;IAEI,0BAA0B,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY;CAY3E"}
1
+ {"version":3,"file":"CollectibleItemPoolType.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CollectibleItemPoolType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,uBAAwB,SAAQ,OAAO;IAQlD,OAAO,CAAC,mBAAmB,CAAsB;IAsBjD,OAAO,CAAC,yBAAyB,CAM/B;IAEF;;;;;;;;OAQG;IAEI,0BAA0B,CAAC,WAAW,EAAE,YAAY,GAAG,YAAY;CAY3E"}