isaacscript-common 87.5.0 → 87.6.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 (684) hide show
  1. package/README.md +1 -1
  2. package/dist/callbackClasses.d.ts +7 -6
  3. package/dist/callbackClasses.d.ts.map +1 -1
  4. package/dist/callbackClasses.js +17 -15
  5. package/dist/callbackClasses.lua +163 -300
  6. package/dist/callbacks.d.ts +118 -117
  7. package/dist/callbacks.d.ts.map +1 -1
  8. package/dist/callbacks.js +19 -9
  9. package/dist/callbacks.lua +1 -0
  10. package/dist/classes/DefaultMap.d.ts +5 -1
  11. package/dist/classes/DefaultMap.d.ts.map +1 -1
  12. package/dist/classes/ModFeature.js +3 -3
  13. package/dist/classes/ModUpgraded.d.ts.map +1 -1
  14. package/dist/classes/ModUpgraded.js +4 -6
  15. package/dist/classes/callbacks/InputActionFilter.d.ts +2 -2
  16. package/dist/classes/callbacks/InputActionFilter.d.ts.map +1 -1
  17. package/dist/classes/callbacks/InputActionFilter.js +3 -3
  18. package/dist/classes/callbacks/InputActionPlayer.d.ts +2 -2
  19. package/dist/classes/callbacks/InputActionPlayer.d.ts.map +1 -1
  20. package/dist/classes/callbacks/InputActionPlayer.js +6 -6
  21. package/dist/classes/callbacks/PostBoneSwing.js +2 -2
  22. package/dist/classes/callbacks/PostCollectibleEmpty.d.ts +2 -2
  23. package/dist/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  24. package/dist/classes/callbacks/PostCollectibleEmpty.js +3 -5
  25. package/dist/classes/callbacks/PostCursedTeleport.js +5 -5
  26. package/dist/classes/callbacks/PostCustomRevive.d.ts +2 -4
  27. package/dist/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
  28. package/dist/classes/callbacks/PostDiceRoomActivated.d.ts +2 -3
  29. package/dist/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  30. package/dist/classes/callbacks/PostDiceRoomActivated.js +2 -2
  31. package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts +9 -0
  32. package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts.map +1 -0
  33. package/dist/classes/callbacks/PostEntityRemoveFilter.js +21 -0
  34. package/dist/classes/callbacks/PostEntityRemoveFilter.lua +23 -0
  35. package/dist/classes/callbacks/PostGridEntityCollision.d.ts +2 -4
  36. package/dist/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
  37. package/dist/classes/callbacks/PostGridEntityCollision.js +10 -10
  38. package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts +2 -4
  39. package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
  40. package/dist/classes/callbacks/PostGridEntityCustomCollision.js +8 -8
  41. package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts +2 -3
  42. package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
  43. package/dist/classes/callbacks/PostGridEntityCustomRemove.js +2 -2
  44. package/dist/classes/callbacks/PostGridEntityRemove.d.ts +2 -2
  45. package/dist/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
  46. package/dist/classes/callbacks/PostGridEntityRemove.js +3 -3
  47. package/dist/classes/callbacks/PostItemDischarge.d.ts +2 -2
  48. package/dist/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  49. package/dist/classes/callbacks/PostItemDischarge.js +5 -8
  50. package/dist/classes/callbacks/PostKeyboardChanged.d.ts +2 -1
  51. package/dist/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  52. package/dist/classes/callbacks/PostKeyboardChanged.js +2 -2
  53. package/dist/classes/callbacks/PostNewRoomEarly.js +3 -3
  54. package/dist/classes/callbacks/PostPickupSelectionFilter.d.ts +2 -2
  55. package/dist/classes/callbacks/PostPickupSelectionFilter.d.ts.map +1 -1
  56. package/dist/classes/callbacks/PostPickupSelectionFilter.js +4 -3
  57. package/dist/classes/callbacks/PostPlayerChangeHealth.js +2 -2
  58. package/dist/classes/callbacks/PostPlayerChangeType.js +1 -1
  59. package/dist/classes/callbacks/PostPurchase.d.ts +2 -4
  60. package/dist/classes/callbacks/PostPurchase.d.ts.map +1 -1
  61. package/dist/classes/callbacks/PostPurchase.js +9 -9
  62. package/dist/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  63. package/dist/classes/callbacks/PostTransformation.d.ts +2 -2
  64. package/dist/classes/callbacks/PostTransformation.d.ts.map +1 -1
  65. package/dist/classes/callbacks/PostTransformation.js +1 -3
  66. package/dist/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  67. package/dist/classes/callbacks/PostTrinketBreak.js +1 -3
  68. package/dist/classes/callbacks/PostUsePillFilter.js +2 -2
  69. package/dist/classes/callbacks/PreBerserkDeath.js +4 -4
  70. package/dist/classes/callbacks/PreEntitySpawnFilter.d.ts +2 -2
  71. package/dist/classes/callbacks/PreEntitySpawnFilter.d.ts.map +1 -1
  72. package/dist/classes/callbacks/PreEntitySpawnFilter.js +3 -3
  73. package/dist/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  74. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.d.ts +2 -2
  75. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.d.ts.map +1 -1
  76. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.js +5 -5
  77. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts +1 -1
  78. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  79. package/dist/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  80. package/dist/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  81. package/dist/classes/features/callbackLogic/EsauJrDetection.js +2 -2
  82. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
  83. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.js +9 -11
  84. package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.js +4 -4
  85. package/dist/classes/features/callbackLogic/ItemPickupDetection.js +4 -4
  86. package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.js +2 -2
  87. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts +0 -1
  88. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  89. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.js +4 -4
  90. package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
  91. package/dist/classes/features/other/CustomPickups.js +1 -0
  92. package/dist/classes/features/other/CustomStages.js +19 -9
  93. package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  94. package/dist/classes/features/other/CustomTrapdoors.js +44 -38
  95. package/dist/classes/features/other/CustomTrapdoors.lua +14 -7
  96. package/dist/classes/features/other/DebugDisplay.d.ts +0 -18
  97. package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
  98. package/dist/classes/features/other/DeployJSONRoom.d.ts +0 -2
  99. package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  100. package/dist/classes/features/other/DeployJSONRoom.js +6 -4
  101. package/dist/classes/features/other/DisableInputs.js +3 -3
  102. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +1 -1
  103. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
  104. package/dist/classes/features/other/ExtraConsoleCommands.d.ts +14 -10
  105. package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  106. package/dist/classes/features/other/ExtraConsoleCommands.js +31 -17
  107. package/dist/classes/features/other/ExtraConsoleCommands.lua +2 -1
  108. package/dist/classes/features/other/FlyingDetection.d.ts +0 -1
  109. package/dist/classes/features/other/FlyingDetection.d.ts.map +1 -1
  110. package/dist/classes/features/other/ForgottenSwitch.d.ts +0 -1
  111. package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
  112. package/dist/classes/features/other/ModdedElementDetection.js +4 -4
  113. package/dist/classes/features/other/ModdedElementSets.d.ts +2 -2
  114. package/dist/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  115. package/dist/classes/features/other/ModdedElementSets.js +3 -3
  116. package/dist/classes/features/other/NoSirenSteal.js +4 -4
  117. package/dist/classes/features/other/PickupIndexCreation.d.ts +0 -1
  118. package/dist/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  119. package/dist/classes/features/other/PickupIndexCreation.js +7 -8
  120. package/dist/classes/features/other/PickupIndexCreation.lua +10 -10
  121. package/dist/classes/features/other/PonyDetection.d.ts +0 -1
  122. package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
  123. package/dist/classes/features/other/PonyDetection.js +2 -2
  124. package/dist/classes/features/other/PressInput.js +2 -2
  125. package/dist/classes/features/other/PreventChildEntities.d.ts +0 -1
  126. package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  127. package/dist/classes/features/other/PreventChildEntities.js +4 -4
  128. package/dist/classes/features/other/RoomClearFrame.d.ts +0 -1
  129. package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  130. package/dist/classes/features/other/RoomHistory.d.ts +0 -1
  131. package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
  132. package/dist/classes/features/other/RoomHistory.js +5 -5
  133. package/dist/classes/features/other/RunInNFrames.js +2 -2
  134. package/dist/classes/features/other/SaveDataManager.js +3 -3
  135. package/dist/classes/features/other/SpawnRockAltRewards.d.ts +0 -4
  136. package/dist/classes/features/other/SpawnRockAltRewards.d.ts.map +1 -1
  137. package/dist/classes/features/other/StageHistory.js +2 -2
  138. package/dist/classes/features/other/StartAmbush.js +2 -2
  139. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +0 -1
  140. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  141. package/dist/classes/features/other/TaintedLazarusPlayers.js +2 -2
  142. package/dist/classes/features/other/customStages/backdrop.js +2 -3
  143. package/dist/classes/features/other/customStages/constants.d.ts.map +1 -1
  144. package/dist/classes/features/other/customStages/gridEntities.d.ts +0 -1
  145. package/dist/classes/features/other/customStages/gridEntities.d.ts.map +1 -1
  146. package/dist/classes/features/other/customStages/gridEntities.js +9 -10
  147. package/dist/classes/features/other/customStages/shadows.js +1 -2
  148. package/dist/classes/features/other/customStages/streakText.js +7 -8
  149. package/dist/classes/features/other/customStages/utils.d.ts +0 -2
  150. package/dist/classes/features/other/customStages/utils.d.ts.map +1 -1
  151. package/dist/classes/features/other/customStages/utils.js +2 -3
  152. package/dist/classes/features/other/customStages/v.d.ts.map +1 -1
  153. package/dist/classes/features/other/customStages/versusScreen.js +2 -3
  154. package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts +0 -1
  155. package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts.map +1 -1
  156. package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts +0 -1
  157. package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts.map +1 -1
  158. package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts +0 -1
  159. package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts.map +1 -1
  160. package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts +0 -1
  161. package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts.map +1 -1
  162. package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts +0 -1
  163. package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts.map +1 -1
  164. package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts +0 -1
  165. package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts.map +1 -1
  166. package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts +0 -1
  167. package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts.map +1 -1
  168. package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts +0 -1
  169. package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts.map +1 -1
  170. package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts +0 -1
  171. package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts.map +1 -1
  172. package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts +0 -1
  173. package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts.map +1 -1
  174. package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts +0 -1
  175. package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts.map +1 -1
  176. package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts +0 -1
  177. package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts.map +1 -1
  178. package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts +0 -1
  179. package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts.map +1 -1
  180. package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts +0 -1
  181. package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts.map +1 -1
  182. package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts +0 -1
  183. package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts.map +1 -1
  184. package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts +0 -1
  185. package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts.map +1 -1
  186. package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts +0 -1
  187. package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts.map +1 -1
  188. package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts +0 -1
  189. package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts.map +1 -1
  190. package/dist/classes/features/other/debugDisplay/utils.d.ts +0 -2
  191. package/dist/classes/features/other/debugDisplay/utils.d.ts.map +1 -1
  192. package/dist/classes/features/other/debugDisplay/utils.js +2 -3
  193. package/dist/classes/features/other/extraConsoleCommands/commands.js +155 -158
  194. package/dist/classes/features/other/extraConsoleCommands/subroutines.js +8 -9
  195. package/dist/classes/features/other/saveDataManager/constants.d.ts.map +1 -1
  196. package/dist/classes/features/other/saveDataManager/glowingHourGlass.d.ts +0 -1
  197. package/dist/classes/features/other/saveDataManager/glowingHourGlass.d.ts.map +1 -1
  198. package/dist/classes/features/other/saveDataManager/glowingHourGlass.js +4 -5
  199. package/dist/classes/features/other/saveDataManager/loadFromDisk.d.ts +0 -2
  200. package/dist/classes/features/other/saveDataManager/loadFromDisk.d.ts.map +1 -1
  201. package/dist/classes/features/other/saveDataManager/loadFromDisk.js +5 -2
  202. package/dist/classes/features/other/saveDataManager/loadFromDisk.lua +3 -0
  203. package/dist/classes/features/other/saveDataManager/restoreDefaults.d.ts +0 -1
  204. package/dist/classes/features/other/saveDataManager/restoreDefaults.d.ts.map +1 -1
  205. package/dist/classes/features/other/saveDataManager/restoreDefaults.js +3 -4
  206. package/dist/classes/features/other/saveDataManager/saveToDisk.d.ts +0 -2
  207. package/dist/classes/features/other/saveDataManager/saveToDisk.d.ts.map +1 -1
  208. package/dist/classes/features/other/saveDataManager/saveToDisk.js +1 -2
  209. package/dist/classes/private/CustomCallback.d.ts.map +1 -1
  210. package/dist/core/cachedClasses.d.ts +0 -5
  211. package/dist/core/cachedClasses.d.ts.map +1 -1
  212. package/dist/core/constants.js +1 -1
  213. package/dist/core/constantsVanilla.js +4 -4
  214. package/dist/core/upgradeMod.d.ts +0 -2
  215. package/dist/core/upgradeMod.d.ts.map +1 -1
  216. package/dist/core/upgradeMod.js +1 -2
  217. package/dist/decorators.js +2 -2
  218. package/dist/enums/ModCallbackCustom.d.ts +134 -117
  219. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  220. package/dist/enums/ModCallbackCustom.js +134 -117
  221. package/dist/enums/ModCallbackCustom.lua +119 -117
  222. package/dist/enums/private/GridEntityTypeCustom.d.ts.map +1 -1
  223. package/dist/features.js +1 -2
  224. package/dist/functions/ambush.js +1 -2
  225. package/dist/functions/array.d.ts +5 -8
  226. package/dist/functions/array.d.ts.map +1 -1
  227. package/dist/functions/array.js +55 -55
  228. package/dist/functions/array.lua +2 -2
  229. package/dist/functions/arrayLua.d.ts +1 -1
  230. package/dist/functions/arrayLua.d.ts.map +1 -1
  231. package/dist/functions/arrayLua.js +7 -8
  232. package/dist/functions/benchmark.d.ts +0 -1
  233. package/dist/functions/benchmark.d.ts.map +1 -1
  234. package/dist/functions/benchmark.js +1 -2
  235. package/dist/functions/bitSet128.d.ts +0 -1
  236. package/dist/functions/bitSet128.d.ts.map +1 -1
  237. package/dist/functions/bitSet128.js +5 -6
  238. package/dist/functions/bitwise.d.ts +0 -4
  239. package/dist/functions/bitwise.d.ts.map +1 -1
  240. package/dist/functions/bitwise.js +7 -8
  241. package/dist/functions/bitwise.lua +3 -3
  242. package/dist/functions/bombs.d.ts +0 -1
  243. package/dist/functions/bombs.d.ts.map +1 -1
  244. package/dist/functions/bombs.js +1 -2
  245. package/dist/functions/bosses.d.ts.map +1 -1
  246. package/dist/functions/bosses.js +19 -19
  247. package/dist/functions/cards.js +16 -17
  248. package/dist/functions/challenges.js +9 -10
  249. package/dist/functions/characters.js +17 -18
  250. package/dist/functions/charge.d.ts.map +1 -1
  251. package/dist/functions/charge.js +12 -13
  252. package/dist/functions/charge.lua +1 -1
  253. package/dist/functions/chargeBar.d.ts +0 -2
  254. package/dist/functions/chargeBar.d.ts.map +1 -1
  255. package/dist/functions/chargeBar.js +2 -3
  256. package/dist/functions/collectibleTag.js +2 -3
  257. package/dist/functions/collectibles.js +39 -40
  258. package/dist/functions/color.d.ts +0 -1
  259. package/dist/functions/color.d.ts.map +1 -1
  260. package/dist/functions/color.js +7 -8
  261. package/dist/functions/console.js +2 -3
  262. package/dist/functions/curses.js +2 -3
  263. package/dist/functions/debugFunctions.d.ts +0 -1
  264. package/dist/functions/debugFunctions.d.ts.map +1 -1
  265. package/dist/functions/debugFunctions.js +5 -6
  266. package/dist/functions/decorators.d.ts +4 -4
  267. package/dist/functions/decorators.d.ts.map +1 -1
  268. package/dist/functions/decorators.js +4 -5
  269. package/dist/functions/deepCopy.d.ts +0 -1
  270. package/dist/functions/deepCopy.d.ts.map +1 -1
  271. package/dist/functions/deepCopy.js +7 -10
  272. package/dist/functions/deepCopy.lua +0 -2
  273. package/dist/functions/deepCopyTests.js +5 -6
  274. package/dist/functions/dimensions.js +2 -3
  275. package/dist/functions/direction.js +6 -7
  276. package/dist/functions/doors.d.ts.map +1 -1
  277. package/dist/functions/doors.js +56 -52
  278. package/dist/functions/easing.js +32 -33
  279. package/dist/functions/effects.d.ts +0 -2
  280. package/dist/functions/effects.d.ts.map +1 -1
  281. package/dist/functions/effects.js +2 -2
  282. package/dist/functions/emptyRoom.js +7 -8
  283. package/dist/functions/entities.d.ts +0 -1
  284. package/dist/functions/entities.d.ts.map +1 -1
  285. package/dist/functions/entities.js +36 -38
  286. package/dist/functions/entitiesSpecific.js +40 -41
  287. package/dist/functions/entityTypes.d.ts +0 -1
  288. package/dist/functions/entityTypes.d.ts.map +1 -1
  289. package/dist/functions/entityTypes.js +1 -2
  290. package/dist/functions/enums.d.ts +1 -6
  291. package/dist/functions/enums.d.ts.map +1 -1
  292. package/dist/functions/enums.js +12 -13
  293. package/dist/functions/external.js +2 -3
  294. package/dist/functions/familiars.js +8 -9
  295. package/dist/functions/flag.d.ts +1 -1
  296. package/dist/functions/flag.d.ts.map +1 -1
  297. package/dist/functions/flag.js +9 -10
  298. package/dist/functions/frames.d.ts +0 -1
  299. package/dist/functions/frames.d.ts.map +1 -1
  300. package/dist/functions/frames.js +18 -19
  301. package/dist/functions/globals.d.ts +0 -1
  302. package/dist/functions/globals.d.ts.map +1 -1
  303. package/dist/functions/globals.js +23 -15
  304. package/dist/functions/gridEntities.d.ts.map +1 -1
  305. package/dist/functions/gridEntities.js +68 -62
  306. package/dist/functions/gridEntitiesSpecific.js +40 -41
  307. package/dist/functions/gridIndex.js +1 -2
  308. package/dist/functions/hash.js +1 -2
  309. package/dist/functions/hex.d.ts +0 -2
  310. package/dist/functions/hex.d.ts.map +1 -1
  311. package/dist/functions/hex.js +2 -3
  312. package/dist/functions/input.js +21 -21
  313. package/dist/functions/isaacAPIClass.d.ts +0 -20
  314. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  315. package/dist/functions/isaacAPIClass.js +25 -26
  316. package/dist/functions/itemPool.js +7 -8
  317. package/dist/functions/jsonHelpers.d.ts +4 -5
  318. package/dist/functions/jsonHelpers.d.ts.map +1 -1
  319. package/dist/functions/jsonHelpers.js +23 -14
  320. package/dist/functions/jsonHelpers.lua +4 -4
  321. package/dist/functions/jsonRoom.js +5 -6
  322. package/dist/functions/kColor.d.ts +0 -1
  323. package/dist/functions/kColor.d.ts.map +1 -1
  324. package/dist/functions/kColor.js +7 -8
  325. package/dist/functions/language.js +1 -2
  326. package/dist/functions/level.js +7 -8
  327. package/dist/functions/levelGrid.d.ts.map +1 -1
  328. package/dist/functions/levelGrid.js +33 -38
  329. package/dist/functions/log.js +4 -5
  330. package/dist/functions/logEntities.d.ts.map +1 -1
  331. package/dist/functions/logEntities.js +19 -17
  332. package/dist/functions/logMisc.d.ts +1 -2
  333. package/dist/functions/logMisc.d.ts.map +1 -1
  334. package/dist/functions/logMisc.js +35 -48
  335. package/dist/functions/logMisc.lua +3 -3
  336. package/dist/functions/map.d.ts +0 -2
  337. package/dist/functions/map.d.ts.map +1 -1
  338. package/dist/functions/map.js +12 -13
  339. package/dist/functions/math.js +17 -18
  340. package/dist/functions/merge.d.ts +0 -1
  341. package/dist/functions/merge.d.ts.map +1 -1
  342. package/dist/functions/merge.js +2 -3
  343. package/dist/functions/mergeTests.js +1 -2
  344. package/dist/functions/minimap.d.ts.map +1 -1
  345. package/dist/functions/minimap.js +12 -17
  346. package/dist/functions/modFeatures.js +1 -2
  347. package/dist/functions/newArray.d.ts +0 -1
  348. package/dist/functions/newArray.d.ts.map +1 -1
  349. package/dist/functions/newArray.js +2 -3
  350. package/dist/functions/nextStage.d.ts.map +1 -1
  351. package/dist/functions/nextStage.js +16 -13
  352. package/dist/functions/npcDataStructures.d.ts +0 -2
  353. package/dist/functions/npcDataStructures.d.ts.map +1 -1
  354. package/dist/functions/npcDataStructures.js +14 -15
  355. package/dist/functions/npcs.d.ts.map +1 -1
  356. package/dist/functions/npcs.js +19 -17
  357. package/dist/functions/pickupVariants.d.ts +0 -1
  358. package/dist/functions/pickupVariants.d.ts.map +1 -1
  359. package/dist/functions/pickupVariants.js +17 -18
  360. package/dist/functions/pickups.js +14 -15
  361. package/dist/functions/pickupsSpecific.js +40 -41
  362. package/dist/functions/pills.js +18 -19
  363. package/dist/functions/playerCenter.d.ts +0 -1
  364. package/dist/functions/playerCenter.d.ts.map +1 -1
  365. package/dist/functions/playerCenter.js +1 -2
  366. package/dist/functions/playerCollectibles.d.ts.map +1 -1
  367. package/dist/functions/playerCollectibles.js +21 -24
  368. package/dist/functions/playerCollectibles.lua +9 -9
  369. package/dist/functions/playerDataStructures.d.ts +0 -1
  370. package/dist/functions/playerDataStructures.d.ts.map +1 -1
  371. package/dist/functions/playerDataStructures.js +14 -15
  372. package/dist/functions/playerEffects.js +5 -6
  373. package/dist/functions/playerHealth.d.ts +0 -2
  374. package/dist/functions/playerHealth.d.ts.map +1 -1
  375. package/dist/functions/playerHealth.js +28 -29
  376. package/dist/functions/playerHealth.lua +26 -26
  377. package/dist/functions/playerIndex.d.ts +0 -3
  378. package/dist/functions/playerIndex.d.ts.map +1 -1
  379. package/dist/functions/playerIndex.js +12 -13
  380. package/dist/functions/playerTrinkets.js +10 -11
  381. package/dist/functions/players.js +41 -42
  382. package/dist/functions/pocketItems.js +10 -11
  383. package/dist/functions/positionVelocity.d.ts +0 -4
  384. package/dist/functions/positionVelocity.d.ts.map +1 -1
  385. package/dist/functions/positionVelocity.js +11 -20
  386. package/dist/functions/positionVelocity.lua +4 -4
  387. package/dist/functions/pressurePlate.js +1 -2
  388. package/dist/functions/projectiles.js +2 -3
  389. package/dist/functions/random.d.ts +0 -3
  390. package/dist/functions/random.d.ts.map +1 -1
  391. package/dist/functions/random.js +3 -4
  392. package/dist/functions/readOnly.d.ts +0 -4
  393. package/dist/functions/readOnly.d.ts.map +1 -1
  394. package/dist/functions/readOnly.js +3 -4
  395. package/dist/functions/render.d.ts +0 -3
  396. package/dist/functions/render.d.ts.map +1 -1
  397. package/dist/functions/render.js +3 -4
  398. package/dist/functions/revive.d.ts +0 -3
  399. package/dist/functions/revive.d.ts.map +1 -1
  400. package/dist/functions/revive.js +20 -21
  401. package/dist/functions/rng.d.ts +0 -1
  402. package/dist/functions/rng.d.ts.map +1 -1
  403. package/dist/functions/rng.js +15 -15
  404. package/dist/functions/rockAlt.d.ts +0 -1
  405. package/dist/functions/rockAlt.d.ts.map +1 -1
  406. package/dist/functions/rockAlt.js +2 -3
  407. package/dist/functions/roomData.d.ts.map +1 -1
  408. package/dist/functions/roomData.js +15 -18
  409. package/dist/functions/roomGrid.js +8 -9
  410. package/dist/functions/roomShape.js +14 -15
  411. package/dist/functions/roomShapeWalls.js +2 -3
  412. package/dist/functions/roomTransition.js +2 -3
  413. package/dist/functions/rooms.d.ts +1 -2
  414. package/dist/functions/rooms.d.ts.map +1 -1
  415. package/dist/functions/rooms.js +116 -105
  416. package/dist/functions/rooms.lua +3 -4
  417. package/dist/functions/run.js +8 -9
  418. package/dist/functions/seeds.d.ts +0 -1
  419. package/dist/functions/seeds.d.ts.map +1 -1
  420. package/dist/functions/seeds.js +2 -3
  421. package/dist/functions/serialization.js +5 -6
  422. package/dist/functions/set.d.ts +0 -2
  423. package/dist/functions/set.d.ts.map +1 -1
  424. package/dist/functions/set.js +22 -23
  425. package/dist/functions/slots.js +2 -3
  426. package/dist/functions/sort.d.ts.map +1 -1
  427. package/dist/functions/sort.js +8 -9
  428. package/dist/functions/sound.d.ts.map +1 -1
  429. package/dist/functions/sound.js +4 -9
  430. package/dist/functions/spawnCollectible.d.ts.map +1 -1
  431. package/dist/functions/spawnCollectible.js +7 -10
  432. package/dist/functions/sprites.d.ts +0 -3
  433. package/dist/functions/sprites.d.ts.map +1 -1
  434. package/dist/functions/sprites.js +6 -7
  435. package/dist/functions/stage.d.ts.map +1 -1
  436. package/dist/functions/stage.js +60 -69
  437. package/dist/functions/stage.lua +5 -5
  438. package/dist/functions/stats.js +4 -5
  439. package/dist/functions/storyBosses.js +2 -3
  440. package/dist/functions/string.d.ts +0 -1
  441. package/dist/functions/string.d.ts.map +1 -1
  442. package/dist/functions/string.js +18 -19
  443. package/dist/functions/table.d.ts +0 -1
  444. package/dist/functions/table.d.ts.map +1 -1
  445. package/dist/functions/table.js +8 -9
  446. package/dist/functions/tears.js +8 -9
  447. package/dist/functions/transformations.js +5 -6
  448. package/dist/functions/trinketGive.js +9 -10
  449. package/dist/functions/trinkets.d.ts.map +1 -1
  450. package/dist/functions/trinkets.js +14 -17
  451. package/dist/functions/tstlClass.d.ts +2 -3
  452. package/dist/functions/tstlClass.d.ts.map +1 -1
  453. package/dist/functions/tstlClass.js +9 -10
  454. package/dist/functions/tstlClass.lua +2 -2
  455. package/dist/functions/types.d.ts +15 -17
  456. package/dist/functions/types.d.ts.map +1 -1
  457. package/dist/functions/types.js +41 -42
  458. package/dist/functions/types.lua +14 -14
  459. package/dist/functions/ui.d.ts +0 -3
  460. package/dist/functions/ui.d.ts.map +1 -1
  461. package/dist/functions/ui.js +13 -14
  462. package/dist/functions/utils.d.ts +0 -1
  463. package/dist/functions/utils.d.ts.map +1 -1
  464. package/dist/functions/utils.js +11 -12
  465. package/dist/functions/vector.d.ts +0 -1
  466. package/dist/functions/vector.d.ts.map +1 -1
  467. package/dist/functions/vector.js +11 -12
  468. package/dist/functions/versusScreen.js +4 -5
  469. package/dist/functions/weighted.d.ts +0 -3
  470. package/dist/functions/weighted.d.ts.map +1 -1
  471. package/dist/functions/weighted.js +2 -3
  472. package/dist/index.d.ts +58 -58
  473. package/dist/index.d.ts.map +1 -1
  474. package/dist/index.js +4 -58
  475. package/dist/index.lua +18 -18
  476. package/dist/index.rollup.d.ts +222 -181
  477. package/dist/indexLua.d.ts +58 -58
  478. package/dist/indexLua.d.ts.map +1 -1
  479. package/dist/indexLua.js +4 -58
  480. package/dist/indexLua.lua +18 -18
  481. package/dist/interfaces/ChargeBarSprites.d.ts +0 -2
  482. package/dist/interfaces/ChargeBarSprites.d.ts.map +1 -1
  483. package/dist/interfaces/Corner.d.ts +0 -2
  484. package/dist/interfaces/Corner.d.ts.map +1 -1
  485. package/dist/interfaces/SaveData.d.ts +0 -1
  486. package/dist/interfaces/SaveData.d.ts.map +1 -1
  487. package/dist/interfaces/TSTLClassMetatable.d.ts +0 -4
  488. package/dist/interfaces/TSTLClassMetatable.d.ts.map +1 -1
  489. package/dist/interfaces/private/AddCallbackParametersCustom.d.ts +6 -0
  490. package/dist/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  491. package/dist/interfaces/private/ModUpgradedInterface.d.ts +0 -1
  492. package/dist/interfaces/private/ModUpgradedInterface.d.ts.map +1 -1
  493. package/dist/isaacscript-common.lua +786 -871
  494. package/dist/lib/jsonLua.js +34 -34
  495. package/dist/lualib_bundle.lua +49 -38
  496. package/dist/objects/LRoomShapeToRectangles.js +1 -1
  497. package/dist/objects/colors.d.ts +0 -1
  498. package/dist/objects/colors.d.ts.map +1 -1
  499. package/dist/objects/directionToVector.d.ts +0 -1
  500. package/dist/objects/directionToVector.d.ts.map +1 -1
  501. package/dist/objects/doorSlotFlagToDoorSlot.d.ts +9 -2
  502. package/dist/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -1
  503. package/dist/objects/doorSlotToDoorSlotFlag.d.ts +0 -1
  504. package/dist/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -1
  505. package/dist/objects/itemPoolTypeToCollectibleTypesSet.js +17 -7
  506. package/dist/objects/kColors.d.ts +0 -1
  507. package/dist/objects/kColors.d.ts.map +1 -1
  508. package/dist/objects/roomShapeToBottomRightPosition.d.ts +0 -1
  509. package/dist/objects/roomShapeToBottomRightPosition.d.ts.map +1 -1
  510. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js +1 -1
  511. package/dist/objects/roomShapeToTopLeftPosition.d.ts +0 -1
  512. package/dist/objects/roomShapeToTopLeftPosition.d.ts.map +1 -1
  513. package/dist/objects/versusScreenBackgroundColors.d.ts +0 -1
  514. package/dist/objects/versusScreenBackgroundColors.d.ts.map +1 -1
  515. package/dist/objects/versusScreenDirtSpotColors.d.ts +0 -1
  516. package/dist/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
  517. package/dist/patchErrorFunctions.js +1 -2
  518. package/dist/serialization.js +1 -2
  519. package/dist/shaderCrashFix.d.ts +0 -1
  520. package/dist/shaderCrashFix.d.ts.map +1 -1
  521. package/dist/shaderCrashFix.js +1 -2
  522. package/dist/shouldFire.d.ts.map +1 -1
  523. package/dist/shouldFire.js +83 -86
  524. package/dist/tsdoc-metadata.json +1 -1
  525. package/dist/types/AddSubtract.d.ts +10 -2
  526. package/dist/types/AddSubtract.d.ts.map +1 -1
  527. package/dist/types/AnyEntity.d.ts +0 -11
  528. package/dist/types/AnyEntity.d.ts.map +1 -1
  529. package/dist/types/AnyGridEntity.d.ts +0 -8
  530. package/dist/types/AnyGridEntity.d.ts.map +1 -1
  531. package/dist/types/Increment.d.ts.map +1 -1
  532. package/dist/types/PickingUpItem.d.ts +10 -3
  533. package/dist/types/PickingUpItem.d.ts.map +1 -1
  534. package/dist/types/PickingUpItem.js +15 -9
  535. package/dist/types/PickingUpItem.lua +8 -3
  536. package/dist/types/PickupIndex.d.ts +0 -1
  537. package/dist/types/PickupIndex.d.ts.map +1 -1
  538. package/dist/types/PlayerIndex.d.ts +0 -1
  539. package/dist/types/PlayerIndex.d.ts.map +1 -1
  540. package/dist/types/ReadonlyMap.d.ts.map +1 -1
  541. package/dist/types/ReadonlySet.d.ts.map +1 -1
  542. package/dist/types/TSTLClass.d.ts +0 -1
  543. package/dist/types/TSTLClass.d.ts.map +1 -1
  544. package/dist/types/TupleWithLengthBetween.js +2 -2
  545. package/dist/types/TupleWithMaxLength.js +2 -2
  546. package/dist/types/WeightedArray.d.ts +0 -1
  547. package/dist/types/WeightedArray.d.ts.map +1 -1
  548. package/package.json +9 -2
  549. package/src/callbackClasses.ts +7 -6
  550. package/src/callbacks.ts +1 -0
  551. package/src/classes/DefaultMap.ts +5 -2
  552. package/src/classes/ModFeature.ts +3 -3
  553. package/src/classes/ModUpgraded.ts +4 -6
  554. package/src/classes/callbacks/InputActionFilter.ts +3 -3
  555. package/src/classes/callbacks/InputActionPlayer.ts +6 -6
  556. package/src/classes/callbacks/PostBoneSwing.ts +2 -2
  557. package/src/classes/callbacks/PostCollectibleEmpty.ts +3 -5
  558. package/src/classes/callbacks/PostCursedTeleport.ts +5 -5
  559. package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -2
  560. package/src/classes/callbacks/PostEntityRemoveFilter.ts +22 -0
  561. package/src/classes/callbacks/PostGridEntityCollision.ts +10 -10
  562. package/src/classes/callbacks/PostGridEntityCustomCollision.ts +8 -8
  563. package/src/classes/callbacks/PostGridEntityCustomRemove.ts +2 -2
  564. package/src/classes/callbacks/PostGridEntityRemove.ts +3 -3
  565. package/src/classes/callbacks/PostItemDischarge.ts +5 -8
  566. package/src/classes/callbacks/PostKeyboardChanged.ts +2 -2
  567. package/src/classes/callbacks/PostNPCStateChanged.ts +1 -1
  568. package/src/classes/callbacks/PostNewRoomEarly.ts +3 -3
  569. package/src/classes/callbacks/PostPickupSelectionFilter.ts +4 -3
  570. package/src/classes/callbacks/PostPlayerChangeHealth.ts +2 -2
  571. package/src/classes/callbacks/PostPlayerChangeType.ts +1 -1
  572. package/src/classes/callbacks/PostPurchase.ts +9 -9
  573. package/src/classes/callbacks/PostTransformation.ts +1 -3
  574. package/src/classes/callbacks/PostTrinketBreak.ts +1 -3
  575. package/src/classes/callbacks/PostUsePillFilter.ts +2 -2
  576. package/src/classes/callbacks/PreBerserkDeath.ts +4 -4
  577. package/src/classes/callbacks/PreEntitySpawnFilter.ts +3 -3
  578. package/src/classes/callbacks/PreRoomEntitySpawnFilter.ts +5 -5
  579. package/src/classes/features/callbackLogic/CustomGridEntities.ts +1 -1
  580. package/src/classes/features/callbackLogic/EsauJrDetection.ts +2 -2
  581. package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +9 -11
  582. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +4 -4
  583. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +4 -4
  584. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +2 -2
  585. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +4 -4
  586. package/src/classes/features/other/CustomPickups.ts +1 -0
  587. package/src/classes/features/other/CustomStages.ts +2 -2
  588. package/src/classes/features/other/CustomTrapdoors.ts +46 -39
  589. package/src/classes/features/other/DeployJSONRoom.ts +6 -4
  590. package/src/classes/features/other/DisableInputs.ts +3 -3
  591. package/src/classes/features/other/EdenStartingStatsHealth.ts +3 -1
  592. package/src/classes/features/other/ExtraConsoleCommands.ts +14 -10
  593. package/src/classes/features/other/ModdedElementDetection.ts +4 -4
  594. package/src/classes/features/other/ModdedElementSets.ts +5 -5
  595. package/src/classes/features/other/NoSirenSteal.ts +4 -4
  596. package/src/classes/features/other/PickupIndexCreation.ts +7 -8
  597. package/src/classes/features/other/PonyDetection.ts +2 -2
  598. package/src/classes/features/other/PressInput.ts +2 -2
  599. package/src/classes/features/other/PreventChildEntities.ts +4 -4
  600. package/src/classes/features/other/RoomHistory.ts +5 -5
  601. package/src/classes/features/other/RunInNFrames.ts +2 -2
  602. package/src/classes/features/other/SaveDataManager.ts +3 -3
  603. package/src/classes/features/other/StageHistory.ts +2 -2
  604. package/src/classes/features/other/StartAmbush.ts +2 -2
  605. package/src/classes/features/other/TaintedLazarusPlayers.ts +2 -2
  606. package/src/classes/features/other/customStages/backdrop.ts +1 -1
  607. package/src/classes/features/other/customStages/gridEntities.ts +4 -4
  608. package/src/classes/features/other/customStages/streakText.ts +4 -4
  609. package/src/classes/features/other/extraConsoleCommands/commands.ts +15 -15
  610. package/src/classes/features/other/saveDataManager/glowingHourGlass.ts +4 -2
  611. package/src/classes/features/other/saveDataManager/loadFromDisk.ts +5 -0
  612. package/src/core/constants.ts +1 -1
  613. package/src/core/constantsVanilla.ts +4 -4
  614. package/src/enums/ModCallbackCustom.ts +18 -0
  615. package/src/functions/array.ts +33 -29
  616. package/src/functions/arrayLua.ts +1 -1
  617. package/src/functions/bosses.ts +4 -3
  618. package/src/functions/charge.ts +3 -4
  619. package/src/functions/collectibles.ts +2 -2
  620. package/src/functions/decorators.ts +6 -9
  621. package/src/functions/deepCopy.ts +6 -10
  622. package/src/functions/deepCopyTests.ts +4 -4
  623. package/src/functions/doors.ts +8 -3
  624. package/src/functions/easing.ts +2 -2
  625. package/src/functions/emptyRoom.ts +5 -5
  626. package/src/functions/entities.ts +11 -12
  627. package/src/functions/enums.ts +4 -4
  628. package/src/functions/familiars.ts +2 -2
  629. package/src/functions/flag.ts +3 -3
  630. package/src/functions/globals.ts +2 -3
  631. package/src/functions/gridEntities.ts +30 -24
  632. package/src/functions/gridEntitiesSpecific.ts +2 -2
  633. package/src/functions/isaacAPIClass.ts +2 -2
  634. package/src/functions/jsonHelpers.ts +7 -5
  635. package/src/functions/level.ts +3 -3
  636. package/src/functions/levelGrid.ts +9 -12
  637. package/src/functions/logEntities.ts +11 -8
  638. package/src/functions/logMisc.ts +9 -20
  639. package/src/functions/map.ts +4 -4
  640. package/src/functions/math.ts +4 -4
  641. package/src/functions/merge.ts +1 -1
  642. package/src/functions/minimap.ts +2 -6
  643. package/src/functions/newArray.ts +1 -1
  644. package/src/functions/nextStage.ts +14 -10
  645. package/src/functions/npcDataStructures.ts +5 -5
  646. package/src/functions/npcs.ts +13 -10
  647. package/src/functions/pickupVariants.ts +6 -6
  648. package/src/functions/playerCollectibles.ts +3 -5
  649. package/src/functions/playerDataStructures.ts +5 -5
  650. package/src/functions/playerHealth.ts +8 -8
  651. package/src/functions/playerIndex.ts +3 -3
  652. package/src/functions/players.ts +4 -4
  653. package/src/functions/pocketItems.ts +2 -2
  654. package/src/functions/positionVelocity.ts +4 -12
  655. package/src/functions/revive.ts +15 -15
  656. package/src/functions/rng.ts +4 -3
  657. package/src/functions/roomData.ts +1 -3
  658. package/src/functions/roomGrid.ts +2 -2
  659. package/src/functions/rooms.ts +55 -42
  660. package/src/functions/set.ts +8 -8
  661. package/src/functions/sort.ts +4 -4
  662. package/src/functions/sound.ts +2 -7
  663. package/src/functions/spawnCollectible.ts +4 -6
  664. package/src/functions/stage.ts +20 -30
  665. package/src/functions/string.ts +6 -6
  666. package/src/functions/tears.ts +2 -2
  667. package/src/functions/trinketGive.ts +4 -4
  668. package/src/functions/trinkets.ts +1 -3
  669. package/src/functions/tstlClass.ts +2 -2
  670. package/src/functions/types.ts +19 -19
  671. package/src/index.ts +58 -58
  672. package/src/interfaces/SaveData.ts +2 -1
  673. package/src/interfaces/private/AddCallbackParametersCustom.ts +7 -0
  674. package/src/lib/jsonLua.js +34 -34
  675. package/src/objects/LRoomShapeToRectangles.ts +1 -1
  676. package/src/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +1 -1
  677. package/src/shouldFire.ts +55 -57
  678. package/src/types/AddSubtract.ts +10 -2
  679. package/src/types/HasFunction.ts +1 -1
  680. package/src/types/Immutable.ts +1 -1
  681. package/src/types/Increment.ts +2 -2
  682. package/src/types/PickingUpItem.ts +10 -3
  683. package/src/types/TupleWithLengthBetween.ts +2 -2
  684. package/src/types/TupleWithMaxLength.ts +2 -2
@@ -1,7 +1,3 @@
1
- /// <reference types="@typescript-to-lua/language-extensions" />
2
- /// <reference types="isaac-typescript-definitions" />
3
- /// <reference types="lua-types/5.3" />
4
-
5
1
  import { ActiveSlot } from 'isaac-typescript-definitions';
6
2
  import type { BackdropType } from 'isaac-typescript-definitions';
7
3
  import type { BatterySubType } from 'isaac-typescript-definitions';
@@ -84,7 +80,11 @@ import type { TrapdoorVariant } from 'isaac-typescript-definitions';
84
80
  import { TrinketType } from 'isaac-typescript-definitions';
85
81
  import { UseFlag } from 'isaac-typescript-definitions';
86
82
 
87
- /** From: https://gist.github.com/ryandabler/8b4ff4f36aed47bc09acc03174638468 */
83
+ /**
84
+ * Helper type to add two other types.
85
+ *
86
+ * From: https://gist.github.com/ryandabler/8b4ff4f36aed47bc09acc03174638468
87
+ */
88
88
  export declare type Add<A extends number, B extends number> = Length<[
89
89
  ...BuildTuple<A>,
90
90
  ...BuildTuple<B>
@@ -204,6 +204,12 @@ declare interface AddCallbackParametersCustom {
204
204
  variant?: int,
205
205
  subType?: int
206
206
  ];
207
+ [ModCallbackCustom.POST_ENTITY_REMOVE_FILTER]: [
208
+ callback: (entity: Entity) => void,
209
+ entityType?: EntityType,
210
+ variant?: int,
211
+ subType?: int
212
+ ];
207
213
  [ModCallbackCustom.POST_ESAU_JR]: [callback: (player: EntityPlayer) => void];
208
214
  [ModCallbackCustom.POST_FAMILIAR_INIT_FILTER]: [
209
215
  callback: (familiar: EntityFamiliar) => void,
@@ -1156,7 +1162,7 @@ export declare function arrayToString(array: readonly unknown[]): string;
1156
1162
  * Helper function to safely cast an `int` to a `CardType`. (This is better than using the `as`
1157
1163
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1158
1164
  *
1159
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1165
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1160
1166
  */
1161
1167
  export declare function asCardType(num: int): CardType;
1162
1168
 
@@ -1164,7 +1170,7 @@ export declare function asCardType(num: int): CardType;
1164
1170
  * Helper function to safely cast an `int` to a `CollectibleType`. (This is better than using the
1165
1171
  * `as` TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1166
1172
  *
1167
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1173
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1168
1174
  */
1169
1175
  export declare function asCollectibleType(num: int): CollectibleType;
1170
1176
 
@@ -1172,7 +1178,7 @@ export declare function asCollectibleType(num: int): CollectibleType;
1172
1178
  * Helper function to safely cast an enum to an `int`. (This is better than using the `as`
1173
1179
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1174
1180
  *
1175
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1181
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1176
1182
  */
1177
1183
  export declare function asFloat(num: number): float;
1178
1184
 
@@ -1180,7 +1186,7 @@ export declare function asFloat(num: number): float;
1180
1186
  * Helper function to safely cast an enum to an `int`. (This is better than using the `as`
1181
1187
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1182
1188
  *
1183
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1189
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1184
1190
  */
1185
1191
  export declare function asInt(num: number): int;
1186
1192
 
@@ -1188,7 +1194,7 @@ export declare function asInt(num: number): int;
1188
1194
  * Helper function to safely cast an `int` to a `LevelStage`. (This is better than using the `as`
1189
1195
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1190
1196
  *
1191
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1197
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1192
1198
  */
1193
1199
  export declare function asLevelStage(num: int): LevelStage;
1194
1200
 
@@ -1196,7 +1202,7 @@ export declare function asLevelStage(num: int): LevelStage;
1196
1202
  * Helper function to safely cast an `int` to a `NPCState`. (This is better than using the `as`
1197
1203
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1198
1204
  *
1199
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1205
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1200
1206
  */
1201
1207
  export declare function asNPCState(num: int): NPCState;
1202
1208
 
@@ -1204,7 +1210,7 @@ export declare function asNPCState(num: int): NPCState;
1204
1210
  * Helper function to safely cast an enum to a `number`. (This is better than using the `as`
1205
1211
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1206
1212
  *
1207
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1213
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1208
1214
  */
1209
1215
  export declare function asNumber(num: number): number;
1210
1216
 
@@ -1212,7 +1218,7 @@ export declare function asNumber(num: number): number;
1212
1218
  * Helper function to safely cast an `int` to a `PillColor`. (This is better than using the `as`
1213
1219
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1214
1220
  *
1215
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1221
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1216
1222
  */
1217
1223
  export declare function asPillColor(num: int): PillColor;
1218
1224
 
@@ -1220,7 +1226,7 @@ export declare function asPillColor(num: int): PillColor;
1220
1226
  * Helper function to safely cast an `int` to a `PillEffect`. (This is better than using the `as`
1221
1227
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1222
1228
  *
1223
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1229
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1224
1230
  */
1225
1231
  export declare function asPillEffect(num: int): PillEffect;
1226
1232
 
@@ -1228,7 +1234,7 @@ export declare function asPillEffect(num: int): PillEffect;
1228
1234
  * Helper function to safely cast an `int` to a `PlayerType`. (This is better than using the `as`
1229
1235
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1230
1236
  *
1231
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1237
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1232
1238
  */
1233
1239
  export declare function asPlayerType(num: int): PlayerType;
1234
1240
 
@@ -1236,7 +1242,7 @@ export declare function asPlayerType(num: int): PlayerType;
1236
1242
  * Helper function to safely cast an `int` to a `RoomType`. (This is better than using the `as`
1237
1243
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1238
1244
  *
1239
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1245
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1240
1246
  */
1241
1247
  export declare function asRoomType(num: int): RoomType;
1242
1248
 
@@ -1264,7 +1270,7 @@ export declare function assertNotNull<T>(value: T, ...[msg]: [null] extends [T]
1264
1270
  * Helper function to safely cast an enum to a `string`. (This is better than using the `as`
1265
1271
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1266
1272
  *
1267
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1273
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1268
1274
  */
1269
1275
  export declare function asString(str: string): string;
1270
1276
 
@@ -1272,7 +1278,7 @@ export declare function asString(str: string): string;
1272
1278
  * Helper function to safely cast an `int` to a `TrinketType`. (This is better than using the `as`
1273
1279
  * TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
1274
1280
  *
1275
- * This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
1281
+ * This is useful to satisfy the "complete/strict-enums" ESLint rule.
1276
1282
  */
1277
1283
  export declare function asTrinketType(num: int): TrinketType;
1278
1284
 
@@ -1344,7 +1350,7 @@ export declare function calculateStageTypeRepentance(stage: LevelStage): StageTy
1344
1350
  * @allowEmptyVariadic
1345
1351
  * @ignore
1346
1352
  */
1347
- export declare function Callback<T extends ModCallback>(modCallback: T, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Class extends ModFeature, Fn extends AddCallbackParameters[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
1353
+ export declare function Callback<T extends ModCallback>(modCallback: T, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Fn extends AddCallbackParameters[T][0]>(target: ModFeature, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
1348
1354
 
1349
1355
  /**
1350
1356
  * A decorator function that signifies that the decorated class method should be automatically
@@ -1353,7 +1359,7 @@ export declare function Callback<T extends ModCallback>(modCallback: T, ...optio
1353
1359
  * @allowEmptyVariadic
1354
1360
  * @ignore
1355
1361
  */
1356
- export declare function CallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Class extends ModFeature, Fn extends AddCallbackParametersCustom[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
1362
+ export declare function CallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Fn extends AddCallbackParametersCustom[T][0]>(target: ModFeature, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
1357
1363
 
1358
1364
  /**
1359
1365
  * Helper function to determine if the given character can have red heart containers. Returns true
@@ -1996,7 +2002,7 @@ declare class CustomGridEntities extends Feature {
1996
2002
  *
1997
2003
  * @public
1998
2004
  */
1999
- getCustomGridEntities(): Array<{
2005
+ getCustomGridEntities(): ReadonlyArray<{
2000
2006
  gridEntity: GridEntity;
2001
2007
  data: GridEntityCustomData;
2002
2008
  }>;
@@ -4291,7 +4297,7 @@ declare class EdenStartingStatsHealth extends Feature {
4291
4297
  *
4292
4298
  * @public
4293
4299
  */
4294
- getEdenStartingCollectibles(player: EntityPlayer): CollectibleType[];
4300
+ getEdenStartingCollectibles(player: EntityPlayer): readonly CollectibleType[];
4295
4301
  /**
4296
4302
  * Helper function to get the health that Eden started with at the beginning of the run before any
4297
4303
  * of the random collectibles were added.
@@ -4352,7 +4358,7 @@ export declare const EGGY_STATE_FRAME_OF_FINAL_SPIDER = 45;
4352
4358
  export declare const EMPTY_PNG_PATH = "gfx/none.png";
4353
4359
 
4354
4360
  /** Helper function to remove all of the elements in an array in-place. */
4355
- export declare function emptyArray<T>(array: T[]): void;
4361
+ export declare function emptyArray(array: unknown[]): void;
4356
4362
 
4357
4363
  /**
4358
4364
  * Helper function to remove all naturally spawning entities and grid entities from a room. Notably,
@@ -4446,7 +4452,8 @@ export declare function every<T>(array: readonly T[], func: (value: T, index: nu
4446
4452
 
4447
4453
  /**
4448
4454
  * When you enable this feature, many custom commands will be added to the in-game console. See the
4449
- * [dedicated command list](ExtraConsoleCommandsList) for more information about them.
4455
+ * [dedicated command list](/isaacscript-common/features/ExtraConsoleCommandsList) for more
4456
+ * information about them.
4450
4457
  *
4451
4458
  * Note that in order to avoid conflicts, if two or more mods enable this feature, then the first
4452
4459
  * loaded one will control all of the command logic. When this occurs, a global variable of
@@ -4470,10 +4477,11 @@ declare class ExtraConsoleCommands extends Feature {
4470
4477
  /**
4471
4478
  * Helper function to add a custom console command.
4472
4479
  *
4473
- * The standard library comes with [many existing console commands](ExtraConsoleCommandsList) that
4474
- * are useful for debugging, but you can also add your own commands that are useful for your
4475
- * particular mod. It's easier to add commands to the existing command system than to add your own
4476
- * logic manually to the `EXECUTE_CMD` callback.
4480
+ * The standard library comes with [many existing console
4481
+ * commands](/isaacscript-common/features/ExtraConsoleCommandsList) that are useful for debugging,
4482
+ * but you can also add your own commands that are useful for your particular mod. It's easier to
4483
+ * add commands to the existing command system than to add your own logic manually to the
4484
+ * `EXECUTE_CMD` callback.
4477
4485
  *
4478
4486
  * This function is intended to be called when your mod is first loading.
4479
4487
  *
@@ -4486,8 +4494,9 @@ declare class ExtraConsoleCommands extends Feature {
4486
4494
  /**
4487
4495
  * Helper function to remove a custom console command.
4488
4496
  *
4489
- * The standard library comes with [many existing console commands](ExtraConsoleCommandsList) that
4490
- * are useful for debugging. If you want to disable one of them, use this function.
4497
+ * The standard library comes with [many existing console
4498
+ * commands](/isaacscript-common/features/ExtraConsoleCommandsList) that are useful for debugging.
4499
+ * If you want to disable one of them, use this function.
4491
4500
  *
4492
4501
  * This function is intended to be called when your mod is first loading.
4493
4502
  *
@@ -4500,9 +4509,10 @@ declare class ExtraConsoleCommands extends Feature {
4500
4509
  /**
4501
4510
  * Helper function to remove all custom console commands.
4502
4511
  *
4503
- * The standard library comes with [many existing console commands](ExtraConsoleCommandsList) that
4504
- * are useful for debugging. If you want to disable all of them after this feature has already
4505
- * been initialized, use this function.
4512
+ * The standard library comes with [many existing console
4513
+ * commands](/isaacscript-common/features/ExtraConsoleCommandsList) that are useful for debugging.
4514
+ * If you want to disable all of them after this feature has already been initialized, use this
4515
+ * function.
4506
4516
  *
4507
4517
  * In order to use this function, you must upgrade your mod with
4508
4518
  * `ISCFeature.EXTRA_CONSOLE_COMMANDS`.
@@ -4514,7 +4524,11 @@ declare class ExtraConsoleCommands extends Feature {
4514
4524
 
4515
4525
  /**
4516
4526
  * A function that creates the default value for your `DefaultMap`. For example, if it was a
4517
- * `DefaultMap` containing maps, the factory function would be: `() => new Map()`
4527
+ * `DefaultMap` containing maps, the factory function would be:
4528
+ *
4529
+ * ```ts
4530
+ * () => new Map()
4531
+ * ```
4518
4532
  */
4519
4533
  export declare type FactoryFunction<V, Args extends unknown[]> = (...args: Args) => V;
4520
4534
 
@@ -5062,7 +5076,7 @@ export declare function getArrayDuplicateElements<T extends number | string>(arr
5062
5076
  * due to implementation details of TypeScriptToLua, this results in an array of 1 through N
5063
5077
  * (instead of an array of 0 through N -1).
5064
5078
  */
5065
- export declare function getArrayIndexes<T>(array: readonly T[]): readonly int[];
5079
+ export declare function getArrayIndexes(array: readonly unknown[]): readonly int[];
5066
5080
 
5067
5081
  /**
5068
5082
  * Helper function to get how long Azazel's Brimstone laser should be. You can pass either an
@@ -7087,7 +7101,7 @@ export declare function getRandomArrayElementAndRemove<T>(array: T[], seedOrRNG:
7087
7101
  * @param exceptions Optional. An array of indexes that will be skipped over when getting the random
7088
7102
  * index. Default is an empty array.
7089
7103
  */
7090
- export declare function getRandomArrayIndex<T>(array: readonly T[], seedOrRNG: Seed | RNG | undefined, exceptions?: readonly int[]): int;
7104
+ export declare function getRandomArrayIndex(array: readonly unknown[], seedOrRNG: Seed | RNG | undefined, exceptions?: readonly int[]): int;
7091
7105
 
7092
7106
  /**
7093
7107
  * Helper function to get a random `Color` object.
@@ -7696,8 +7710,7 @@ export declare function getRoomShapeWidth(roomShape: RoomShape): int;
7696
7710
  * Room descriptors without any data are assumed to be non-existent and are not included.
7697
7711
  *
7698
7712
  * @param includeExtraDimensionalRooms Optional. On some floors (e.g. Downpour 2, Mines 2),
7699
- * extra-dimensional rooms are automatically be generated. Default
7700
- * is false.
7713
+ * extra-dimensional rooms will be generated. Default is false.
7701
7714
  */
7702
7715
  export declare function getRoomsInsideGrid(includeExtraDimensionalRooms?: boolean): readonly RoomDescriptor[];
7703
7716
 
@@ -9474,10 +9487,10 @@ export declare function isDeadEnd(roomGridIndex?: int): boolean;
9474
9487
  export declare function isDeathCertificateArea(roomData: RoomConfig): boolean;
9475
9488
 
9476
9489
  /**
9477
- * Helper function to determine if a given object is a TypeScriptToLua `Map`.
9490
+ * Helper function to determine if a given object is a `DefaultMap` from `isaacscript-common`.
9478
9491
  *
9479
9492
  * It is not reliable to use the `instanceof` operator to determine this because each Lua module has
9480
- * their own copies of the entire lualib and thus their own instantiated version of a `Map`.
9493
+ * their own copies of the entire lualib and thus their own instantiated version of a `DefaultMap`.
9481
9494
  */
9482
9495
  export declare function isDefaultMap(object: unknown): object is DefaultMap<AnyNotNil, unknown>;
9483
9496
 
@@ -9588,7 +9601,7 @@ export declare function isEffect(variable: unknown): variable is EntityEffect;
9588
9601
  * (This is equivalent to checking if the flag is equal to 0, but this is not possible without
9589
9602
  * casting the flag to a number.)
9590
9603
  */
9591
- export declare function isEmptyFlag<T extends BitFlag | BitFlag128>(flag: T): boolean;
9604
+ export declare function isEmptyFlag(flag: BitFlag | BitFlag128): boolean;
9592
9605
 
9593
9606
  /**
9594
9607
  * Helper function to detect if a variable is of type `Entity`. This will return false for child
@@ -9927,13 +9940,19 @@ export declare function isOdd(num: int): boolean;
9927
9940
  */
9928
9941
  export declare function isPassiveOrFamiliarCollectible(collectibleOrCollectibleType: EntityPickup | CollectibleType): boolean;
9929
9942
 
9930
- /** Helper function to narrow the type of `PickingUpItem`. */
9943
+ /**
9944
+ * Helper function to narrow the type of `PickingUpItem` to one of the following:
9945
+ *
9946
+ * - `ItemType.PASSIVE` (1)
9947
+ * - `ItemType.ACTIVE` (3)
9948
+ * - `ItemType.FAMILIAR` (4)
9949
+ */
9931
9950
  export declare function isPickingUpItemCollectible(pickingUpItem: PickingUpItem): pickingUpItem is PickingUpItemCollectible;
9932
9951
 
9933
- /** Helper function to narrow the type of `PickingUpItem`. */
9952
+ /** Helper function to narrow the type of `PickingUpItem` to `ItemType.NULL` (0). */
9934
9953
  export declare function isPickingUpItemNull(pickingUpItem: PickingUpItem): pickingUpItem is PickingUpItemTrinket;
9935
9954
 
9936
- /** Helper function to narrow the type of `PickingUpItem`. */
9955
+ /** Helper function to narrow the type of `PickingUpItem` to `ItemType.TRINKET` (2). */
9937
9956
  export declare function isPickingUpItemTrinket(pickingUpItem: PickingUpItem): pickingUpItem is PickingUpItemTrinket;
9938
9957
 
9939
9958
  /** Helper function to detect if a variable is of type `EntityPickup`. */
@@ -10543,20 +10562,20 @@ export declare function iterateTableInOrder<K extends AnyNotNil, V>(luaMap: LuaM
10543
10562
  *
10544
10563
  * Internally, this just calls `Array.join`.
10545
10564
  */
10546
- export declare function join<T>(array: readonly T[], separator: string): string;
10565
+ export declare function join(array: readonly unknown[], separator: string): string;
10547
10566
 
10548
10567
  /**
10549
10568
  * Converts a JSON string to a Lua table.
10550
10569
  *
10551
10570
  * In most cases, this function will be used for reading data from a "save#.dat" file. If decoding
10552
- * fails, it will return a blank Lua table instead of throwing an error. (This allows execution to
10553
- * continue in cases where users have no current save data or have manually removed their existing
10554
- * save data.)
10571
+ * fails, it will return undefined instead of throwing an error. (This allows execution to continue
10572
+ * in cases where users have no current save data or have manually removed their existing save
10573
+ * data.)
10555
10574
  *
10556
10575
  * Under the hood, this uses a custom JSON parser that was measured to be 11.8 times faster than the
10557
10576
  * vanilla JSON parser.
10558
10577
  */
10559
- export declare function jsonDecode(jsonString: string): LuaMap<AnyNotNil, unknown>;
10578
+ export declare function jsonDecode(jsonString: string): LuaMap<AnyNotNil, unknown> | undefined;
10560
10579
 
10561
10580
  /** Part of `JSONRoomsFile`. */
10562
10581
  export declare interface JSONDoor {
@@ -10849,7 +10868,7 @@ export declare function logAndPrint(msg: string): void;
10849
10868
  * @param array The array to log.
10850
10869
  * @param name Optional. The name of the array, which will be logged before the elements.
10851
10870
  */
10852
- export declare function logArray<T>(this: void, array: readonly T[], name?: string): void;
10871
+ export declare function logArray(this: void, array: readonly unknown[], name?: string): void;
10853
10872
 
10854
10873
  /**
10855
10874
  * Helper function to log the names of a collectible type array.
@@ -11666,6 +11685,23 @@ export declare enum ModCallbackCustom {
11666
11685
  * ```
11667
11686
  */
11668
11687
  POST_ENTITY_KILL_FILTER = 23,
11688
+ /**
11689
+ * The exact same thing as the vanilla `POST_ENTITY_REMOVE` callback, except this callback allows
11690
+ * you to specify extra arguments for additional filtration.
11691
+ *
11692
+ * When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
11693
+ * - You can provide an optional third argument that will make the callback only fire if it
11694
+ * matches the `EntityType` provided.
11695
+ * - You can provide an optional fourth argument that will make the callback only fire if it
11696
+ * matches the variant provided.
11697
+ * - You can provide an optional fifth argument that will make the callback only fire if it
11698
+ * matches the sub-type provided.
11699
+ *
11700
+ * ```ts
11701
+ * function postEntityRemoveFilter(entity: Entity): void {}
11702
+ * ```
11703
+ */
11704
+ POST_ENTITY_REMOVE_FILTER = 24,
11669
11705
  /**
11670
11706
  * Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
11671
11707
  * updated to the new character until a game frame has passed.)
@@ -11674,7 +11710,7 @@ export declare enum ModCallbackCustom {
11674
11710
  * function postEsauJr(player: EntityPlayer): void {}
11675
11711
  * ```
11676
11712
  */
11677
- POST_ESAU_JR = 24,
11713
+ POST_ESAU_JR = 25,
11678
11714
  /**
11679
11715
  * The exact same thing as the vanilla `POST_FAMILIAR_INIT` callback, except this callback allows
11680
11716
  * you to specify extra arguments for additional filtration.
@@ -11689,7 +11725,7 @@ export declare enum ModCallbackCustom {
11689
11725
  * function postFamiliarInitFilter(familiar: EntityFamiliar): void {}
11690
11726
  * ```
11691
11727
  */
11692
- POST_FAMILIAR_INIT_FILTER = 25,
11728
+ POST_FAMILIAR_INIT_FILTER = 26,
11693
11729
  /**
11694
11730
  * Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
11695
11731
  *
@@ -11706,7 +11742,7 @@ export declare enum ModCallbackCustom {
11706
11742
  * function postFamiliarInitLate(familiar: EntityFamiliar): void {}
11707
11743
  * ```
11708
11744
  */
11709
- POST_FAMILIAR_INIT_LATE = 26,
11745
+ POST_FAMILIAR_INIT_LATE = 27,
11710
11746
  /**
11711
11747
  * The exact same thing as the vanilla `POST_FAMILIAR_RENDER` callback, except this callback
11712
11748
  * allows you to specify extra arguments for additional filtration.
@@ -11721,7 +11757,7 @@ export declare enum ModCallbackCustom {
11721
11757
  * function postFamiliarRenderFilter(familiar: EntityFamiliar, renderOffset: Vector): void {}
11722
11758
  * ```
11723
11759
  */
11724
- POST_FAMILIAR_RENDER_FILTER = 27,
11760
+ POST_FAMILIAR_RENDER_FILTER = 28,
11725
11761
  /**
11726
11762
  * Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
11727
11763
  * was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
@@ -11741,7 +11777,7 @@ export declare enum ModCallbackCustom {
11741
11777
  * ): void {}
11742
11778
  * ```
11743
11779
  */
11744
- POST_FAMILIAR_STATE_CHANGED = 28,
11780
+ POST_FAMILIAR_STATE_CHANGED = 29,
11745
11781
  /**
11746
11782
  * The exact same thing as the vanilla `POST_FAMILIAR_UPDATE` callback, except this callback
11747
11783
  * allows you to specify extra arguments for additional filtration.
@@ -11756,7 +11792,7 @@ export declare enum ModCallbackCustom {
11756
11792
  * function postFamiliarUpdateFilter(familiar: EntityFamiliar): void {}
11757
11793
  * ```
11758
11794
  */
11759
- POST_FAMILIAR_UPDATE_FILTER = 29,
11795
+ POST_FAMILIAR_UPDATE_FILTER = 30,
11760
11796
  /**
11761
11797
  * Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
11762
11798
  * not updated to the new character until a game frame has passed.)
@@ -11768,7 +11804,7 @@ export declare enum ModCallbackCustom {
11768
11804
  * function postFirstEsauJr(player: EntityPlayer): void {}
11769
11805
  * ```
11770
11806
  */
11771
- POST_FIRST_ESAU_JR = 30,
11807
+ POST_FIRST_ESAU_JR = 31,
11772
11808
  /**
11773
11809
  * Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
11774
11810
  * callback, this callback will return the player object for the new Lazarus (not the one who used
@@ -11781,7 +11817,7 @@ export declare enum ModCallbackCustom {
11781
11817
  * function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
11782
11818
  * ```
11783
11819
  */
11784
- POST_FIRST_FLIP = 31,
11820
+ POST_FIRST_FLIP = 32,
11785
11821
  /**
11786
11822
  * Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
11787
11823
  * callback will return the player object for the new Lazarus (not the one who used the Flip
@@ -11794,7 +11830,7 @@ export declare enum ModCallbackCustom {
11794
11830
  * function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
11795
11831
  * ```
11796
11832
  */
11797
- POST_FLIP = 32,
11833
+ POST_FLIP = 33,
11798
11834
  /**
11799
11835
  * The exact same thing as the vanilla `POST_GAME_END` callback, except this callback allows you
11800
11836
  * to specify extra arguments for additional filtration.
@@ -11807,7 +11843,7 @@ export declare enum ModCallbackCustom {
11807
11843
  * function postGameEndFilter(isGameOver: boolean): void {}
11808
11844
  * ```
11809
11845
  */
11810
- POST_GAME_END_FILTER = 33,
11846
+ POST_GAME_END_FILTER = 34,
11811
11847
  /**
11812
11848
  * Similar to the vanilla callback of the same name, but fires in the correct order with respect
11813
11849
  * to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
@@ -11826,7 +11862,7 @@ export declare enum ModCallbackCustom {
11826
11862
  * function postGameStartedReordered(isContinued: boolean): void {}
11827
11863
  * ```
11828
11864
  */
11829
- POST_GAME_STARTED_REORDERED = 34,
11865
+ POST_GAME_STARTED_REORDERED = 35,
11830
11866
  /**
11831
11867
  * Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
11832
11868
  * callbacks have finished firing. Thus, you can use this callback to do perform things after a
@@ -11845,7 +11881,7 @@ export declare enum ModCallbackCustom {
11845
11881
  * function postGameStartedReorderedLast(isContinued: boolean): void {}
11846
11882
  * ```
11847
11883
  */
11848
- POST_GAME_STARTED_REORDERED_LAST = 35,
11884
+ POST_GAME_STARTED_REORDERED_LAST = 36,
11849
11885
  /**
11850
11886
  * Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
11851
11887
  *
@@ -11853,7 +11889,7 @@ export declare enum ModCallbackCustom {
11853
11889
  * function postGreedModeWave(oldWave: int, newWave: int): void {}
11854
11890
  * ```
11855
11891
  */
11856
- POST_GREED_MODE_WAVE = 36,
11892
+ POST_GREED_MODE_WAVE = 37,
11857
11893
  /**
11858
11894
  * Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
11859
11895
  * the broken state for the respective grid entity type. (For example, this will fire for a
@@ -11872,7 +11908,7 @@ export declare enum ModCallbackCustom {
11872
11908
  * function postGridEntityBroken(gridEntity: GridEntity): void {}
11873
11909
  * ```
11874
11910
  */
11875
- POST_GRID_ENTITY_BROKEN = 37,
11911
+ POST_GRID_ENTITY_BROKEN = 38,
11876
11912
  /**
11877
11913
  * Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
11878
11914
  * this, the callback will not continue to fire. It will only fire again once the entity moves out
@@ -11900,7 +11936,7 @@ export declare enum ModCallbackCustom {
11900
11936
  * ): void {}
11901
11937
  * ```
11902
11938
  */
11903
- POST_GRID_ENTITY_COLLISION = 38,
11939
+ POST_GRID_ENTITY_COLLISION = 39,
11904
11940
  /**
11905
11941
  * The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
11906
11942
  * with the `spawnCustomGridEntity` helper function.
@@ -11917,7 +11953,7 @@ export declare enum ModCallbackCustom {
11917
11953
  * ): void {}
11918
11954
  * ```
11919
11955
  */
11920
- POST_GRID_ENTITY_CUSTOM_BROKEN = 39,
11956
+ POST_GRID_ENTITY_CUSTOM_BROKEN = 40,
11921
11957
  /**
11922
11958
  * The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
11923
11959
  * with the `spawnCustomGridEntity` helper function.
@@ -11941,7 +11977,7 @@ export declare enum ModCallbackCustom {
11941
11977
  * ): void {}
11942
11978
  * ```
11943
11979
  */
11944
- POST_GRID_ENTITY_CUSTOM_COLLISION = 40,
11980
+ POST_GRID_ENTITY_CUSTOM_COLLISION = 41,
11945
11981
  /**
11946
11982
  * The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
11947
11983
  * the `spawnCustomGridEntity` helper function.
@@ -11958,7 +11994,7 @@ export declare enum ModCallbackCustom {
11958
11994
  * ): void {}
11959
11995
  * ```
11960
11996
  */
11961
- POST_GRID_ENTITY_CUSTOM_INIT = 41,
11997
+ POST_GRID_ENTITY_CUSTOM_INIT = 42,
11962
11998
  /**
11963
11999
  * The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
11964
12000
  * with the `spawnCustomGridEntity` helper function.
@@ -11975,7 +12011,7 @@ export declare enum ModCallbackCustom {
11975
12011
  * ): void {}
11976
12012
  * ```
11977
12013
  */
11978
- POST_GRID_ENTITY_CUSTOM_REMOVE = 42,
12014
+ POST_GRID_ENTITY_CUSTOM_REMOVE = 43,
11979
12015
  /**
11980
12016
  * The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
11981
12017
  * with the `spawnCustomGridEntity` helper function.
@@ -11992,7 +12028,7 @@ export declare enum ModCallbackCustom {
11992
12028
  * ): void {}
11993
12029
  * ```
11994
12030
  */
11995
- POST_GRID_ENTITY_CUSTOM_RENDER = 43,
12031
+ POST_GRID_ENTITY_CUSTOM_RENDER = 44,
11996
12032
  /**
11997
12033
  * The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
11998
12034
  * created with the `spawnCustomGridEntity` helper function.
@@ -12011,7 +12047,7 @@ export declare enum ModCallbackCustom {
12011
12047
  * ): void {}
12012
12048
  * ```
12013
12049
  */
12014
- POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 44,
12050
+ POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 45,
12015
12051
  /**
12016
12052
  * The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
12017
12053
  * with the `spawnCustomGridEntity` helper function.
@@ -12028,7 +12064,7 @@ export declare enum ModCallbackCustom {
12028
12064
  * ): void {}
12029
12065
  * ```
12030
12066
  */
12031
- POST_GRID_ENTITY_CUSTOM_UPDATE = 45,
12067
+ POST_GRID_ENTITY_CUSTOM_UPDATE = 46,
12032
12068
  /**
12033
12069
  * Fires when a new grid entity is initialized. Specifically, this is either:
12034
12070
  *
@@ -12050,7 +12086,7 @@ export declare enum ModCallbackCustom {
12050
12086
  * function postGridEntityInit(gridEntity: GridEntity): void {}
12051
12087
  * ```
12052
12088
  */
12053
- POST_GRID_ENTITY_INIT = 46,
12089
+ POST_GRID_ENTITY_INIT = 47,
12054
12090
  /**
12055
12091
  * Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
12056
12092
  * the frame after it no longer exists (where it did exist a frame ago).
@@ -12075,7 +12111,7 @@ export declare enum ModCallbackCustom {
12075
12111
  * ): void {}
12076
12112
  * ```
12077
12113
  */
12078
- POST_GRID_ENTITY_REMOVE = 47,
12114
+ POST_GRID_ENTITY_REMOVE = 48,
12079
12115
  /**
12080
12116
  * Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
12081
12117
  *
@@ -12092,7 +12128,7 @@ export declare enum ModCallbackCustom {
12092
12128
  * function postGridEntityRender(gridEntity: GridEntity): void {}
12093
12129
  * ```
12094
12130
  */
12095
- POST_GRID_ENTITY_RENDER = 48,
12131
+ POST_GRID_ENTITY_RENDER = 49,
12096
12132
  /**
12097
12133
  * Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
12098
12134
  * "state" refers to the `GridEntity.State` field.)
@@ -12114,7 +12150,7 @@ export declare enum ModCallbackCustom {
12114
12150
  * ): void {}
12115
12151
  * ```
12116
12152
  */
12117
- POST_GRID_ENTITY_STATE_CHANGED = 49,
12153
+ POST_GRID_ENTITY_STATE_CHANGED = 50,
12118
12154
  /**
12119
12155
  * Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
12120
12156
  *
@@ -12131,7 +12167,7 @@ export declare enum ModCallbackCustom {
12131
12167
  * function postGridEntityUpdate(gridEntity: GridEntity): void {}
12132
12168
  * ```
12133
12169
  */
12134
- POST_GRID_ENTITY_UPDATE = 50,
12170
+ POST_GRID_ENTITY_UPDATE = 51,
12135
12171
  /**
12136
12172
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
12137
12173
  * temporary collectible effect.
@@ -12154,7 +12190,7 @@ export declare enum ModCallbackCustom {
12154
12190
  * ): void {}
12155
12191
  * ```
12156
12192
  */
12157
- POST_HOLY_MANTLE_REMOVED = 51,
12193
+ POST_HOLY_MANTLE_REMOVED = 52,
12158
12194
  /**
12159
12195
  * Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
12160
12196
  * active collectible item, implying that the item was just used.
@@ -12177,7 +12213,7 @@ export declare enum ModCallbackCustom {
12177
12213
  * ): void {}
12178
12214
  * ```
12179
12215
  */
12180
- POST_ITEM_DISCHARGE = 52,
12216
+ POST_ITEM_DISCHARGE = 53,
12181
12217
  /**
12182
12218
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
12183
12219
  * when the animation of the player holding the item above their head is finished and the item is
@@ -12198,7 +12234,7 @@ export declare enum ModCallbackCustom {
12198
12234
  * ): void {}
12199
12235
  * ```
12200
12236
  */
12201
- POST_ITEM_PICKUP = 53,
12237
+ POST_ITEM_PICKUP = 54,
12202
12238
  /**
12203
12239
  * Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
12204
12240
  * released. (In other words, the callback only fires when the "pressed" status is different than
@@ -12214,7 +12250,7 @@ export declare enum ModCallbackCustom {
12214
12250
  * function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
12215
12251
  * ```
12216
12252
  */
12217
- POST_KEYBOARD_CHANGED = 54,
12253
+ POST_KEYBOARD_CHANGED = 55,
12218
12254
  /**
12219
12255
  * The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
12220
12256
  * to specify extra arguments for additional filtration.
@@ -12229,7 +12265,7 @@ export declare enum ModCallbackCustom {
12229
12265
  * function postKnifeInitFilter(knife: EntityKnife): void {}
12230
12266
  * ```
12231
12267
  */
12232
- POST_KNIFE_INIT_FILTER = 55,
12268
+ POST_KNIFE_INIT_FILTER = 56,
12233
12269
  /**
12234
12270
  * Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
12235
12271
  *
@@ -12246,7 +12282,7 @@ export declare enum ModCallbackCustom {
12246
12282
  * function postKnifeInitLate(knife: EntityKnife): void {}
12247
12283
  * ```
12248
12284
  */
12249
- POST_KNIFE_INIT_LATE = 56,
12285
+ POST_KNIFE_INIT_LATE = 57,
12250
12286
  /**
12251
12287
  * The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
12252
12288
  * you to specify extra arguments for additional filtration.
@@ -12261,7 +12297,7 @@ export declare enum ModCallbackCustom {
12261
12297
  * function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
12262
12298
  * ```
12263
12299
  */
12264
- POST_KNIFE_RENDER_FILTER = 57,
12300
+ POST_KNIFE_RENDER_FILTER = 58,
12265
12301
  /**
12266
12302
  * The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
12267
12303
  * you to specify extra arguments for additional filtration.
@@ -12276,7 +12312,7 @@ export declare enum ModCallbackCustom {
12276
12312
  * function postKnifeUpdateFilter(knife: EntityKnife): void {}
12277
12313
  * ```
12278
12314
  */
12279
- POST_KNIFE_UPDATE_FILTER = 58,
12315
+ POST_KNIFE_UPDATE_FILTER = 59,
12280
12316
  /**
12281
12317
  * The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
12282
12318
  * to specify extra arguments for additional filtration.
@@ -12291,7 +12327,7 @@ export declare enum ModCallbackCustom {
12291
12327
  * function postLaserInitFilter(laser: EntityLaser): void {}
12292
12328
  * ```
12293
12329
  */
12294
- POST_LASER_INIT_FILTER = 59,
12330
+ POST_LASER_INIT_FILTER = 60,
12295
12331
  /**
12296
12332
  * Fires on the first `POST_LASER_UPDATE` frame for each laser.
12297
12333
  *
@@ -12308,7 +12344,7 @@ export declare enum ModCallbackCustom {
12308
12344
  * function postLaserInitLate(laser: EntityLaser): void {}
12309
12345
  * ```
12310
12346
  */
12311
- POST_LASER_INIT_LATE = 60,
12347
+ POST_LASER_INIT_LATE = 61,
12312
12348
  /**
12313
12349
  * The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
12314
12350
  * you to specify extra arguments for additional filtration.
@@ -12323,7 +12359,7 @@ export declare enum ModCallbackCustom {
12323
12359
  * function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
12324
12360
  * ```
12325
12361
  */
12326
- POST_LASER_RENDER_FILTER = 61,
12362
+ POST_LASER_RENDER_FILTER = 62,
12327
12363
  /**
12328
12364
  * The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
12329
12365
  * you to specify extra arguments for additional filtration.
@@ -12338,7 +12374,7 @@ export declare enum ModCallbackCustom {
12338
12374
  * function postLaserUpdateFilter(laser: EntityLaser): void {}
12339
12375
  * ```
12340
12376
  */
12341
- POST_LASER_UPDATE_FILTER = 62,
12377
+ POST_LASER_UPDATE_FILTER = 63,
12342
12378
  /**
12343
12379
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
12344
12380
  * to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
@@ -12368,7 +12404,7 @@ export declare enum ModCallbackCustom {
12368
12404
  * function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
12369
12405
  * ```
12370
12406
  */
12371
- POST_NEW_LEVEL_REORDERED = 63,
12407
+ POST_NEW_LEVEL_REORDERED = 64,
12372
12408
  /**
12373
12409
  * Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
12374
12410
  * detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
@@ -12385,7 +12421,7 @@ export declare enum ModCallbackCustom {
12385
12421
  * function postNewRoomEarly(roomType: RoomType): void {}
12386
12422
  * ```
12387
12423
  */
12388
- POST_NEW_ROOM_EARLY = 64,
12424
+ POST_NEW_ROOM_EARLY = 65,
12389
12425
  /**
12390
12426
  * The same as the vanilla callback of the same name, but fires in the correct order with respect
12391
12427
  * to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
@@ -12408,7 +12444,7 @@ export declare enum ModCallbackCustom {
12408
12444
  * function postNewRoomReordered(roomType: RoomType): void {}
12409
12445
  * ```
12410
12446
  */
12411
- POST_NEW_ROOM_REORDERED = 65,
12447
+ POST_NEW_ROOM_REORDERED = 66,
12412
12448
  /**
12413
12449
  * The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
12414
12450
  * to specify extra arguments for additional filtration.
@@ -12425,7 +12461,7 @@ export declare enum ModCallbackCustom {
12425
12461
  * function postNPCDeathFilter(npc: EntityNPC): void {}
12426
12462
  * ```
12427
12463
  */
12428
- POST_NPC_DEATH_FILTER = 66,
12464
+ POST_NPC_DEATH_FILTER = 67,
12429
12465
  /**
12430
12466
  * The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
12431
12467
  * to specify extra arguments for additional filtration.
@@ -12442,7 +12478,7 @@ export declare enum ModCallbackCustom {
12442
12478
  * function postNPCInitFilter(npc: EntityNPC): void {}
12443
12479
  * ```
12444
12480
  */
12445
- POST_NPC_INIT_FILTER = 67,
12481
+ POST_NPC_INIT_FILTER = 68,
12446
12482
  /**
12447
12483
  * Fires on the first `NPC_UPDATE` frame for each NPC.
12448
12484
  *
@@ -12461,7 +12497,7 @@ export declare enum ModCallbackCustom {
12461
12497
  * function postNPCInitLate(npc: EntityNPC): void {}
12462
12498
  * ```
12463
12499
  */
12464
- POST_NPC_INIT_LATE = 68,
12500
+ POST_NPC_INIT_LATE = 69,
12465
12501
  /**
12466
12502
  * The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
12467
12503
  * to specify extra arguments for additional filtration.
@@ -12478,7 +12514,7 @@ export declare enum ModCallbackCustom {
12478
12514
  * function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
12479
12515
  * ```
12480
12516
  */
12481
- POST_NPC_RENDER_FILTER = 69,
12517
+ POST_NPC_RENDER_FILTER = 70,
12482
12518
  /**
12483
12519
  * Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
12484
12520
  * the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
@@ -12499,7 +12535,7 @@ export declare enum ModCallbackCustom {
12499
12535
  * ): void {}
12500
12536
  * ```
12501
12537
  */
12502
- POST_NPC_STATE_CHANGED = 70,
12538
+ POST_NPC_STATE_CHANGED = 71,
12503
12539
  /**
12504
12540
  * The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
12505
12541
  * to specify extra arguments for additional filtration.
@@ -12516,7 +12552,7 @@ export declare enum ModCallbackCustom {
12516
12552
  * function postNPCUpdateFilter(npc: EntityNPC): void {}
12517
12553
  * ```
12518
12554
  */
12519
- POST_NPC_UPDATE_FILTER = 71,
12555
+ POST_NPC_UPDATE_FILTER = 72,
12520
12556
  /**
12521
12557
  * Similar to the vanilla callback of the same name, but fires after the
12522
12558
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -12541,7 +12577,7 @@ export declare enum ModCallbackCustom {
12541
12577
  * function postPEffectUpdateReordered(player: EntityPlayer): void {}
12542
12578
  * ```
12543
12579
  */
12544
- POST_PEFFECT_UPDATE_REORDERED = 72,
12580
+ POST_PEFFECT_UPDATE_REORDERED = 73,
12545
12581
  /**
12546
12582
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
12547
12583
  * than what it was on the previous frame.
@@ -12562,7 +12598,7 @@ export declare enum ModCallbackCustom {
12562
12598
  * ): void {}
12563
12599
  * ```
12564
12600
  */
12565
- POST_PICKUP_CHANGED = 73,
12601
+ POST_PICKUP_CHANGED = 74,
12566
12602
  /**
12567
12603
  * Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
12568
12604
  *
@@ -12581,7 +12617,7 @@ export declare enum ModCallbackCustom {
12581
12617
  * function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
12582
12618
  * ```
12583
12619
  */
12584
- POST_PICKUP_COLLECT = 74,
12620
+ POST_PICKUP_COLLECT = 75,
12585
12621
  /**
12586
12622
  * The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
12587
12623
  * you to specify extra arguments for additional filtration.
@@ -12596,7 +12632,7 @@ export declare enum ModCallbackCustom {
12596
12632
  * function postPickupInitFilter(pickup: EntityPickup): void {}
12597
12633
  * ```
12598
12634
  */
12599
- POST_PICKUP_INIT_FILTER = 75,
12635
+ POST_PICKUP_INIT_FILTER = 76,
12600
12636
  /**
12601
12637
  * Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
12602
12638
  * respective pickup on the run.
@@ -12614,7 +12650,7 @@ export declare enum ModCallbackCustom {
12614
12650
  * function postPickupInitFirst(pickup: EntityPickup): void {}
12615
12651
  * ```
12616
12652
  */
12617
- POST_PICKUP_INIT_FIRST = 76,
12653
+ POST_PICKUP_INIT_FIRST = 77,
12618
12654
  /**
12619
12655
  * Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
12620
12656
  *
@@ -12631,7 +12667,7 @@ export declare enum ModCallbackCustom {
12631
12667
  * function postPickupInitLate(pickup: EntityPickup): void {}
12632
12668
  * ```
12633
12669
  */
12634
- POST_PICKUP_INIT_LATE = 77,
12670
+ POST_PICKUP_INIT_LATE = 78,
12635
12671
  /**
12636
12672
  * The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
12637
12673
  * you to specify extra arguments for additional filtration.
@@ -12646,7 +12682,7 @@ export declare enum ModCallbackCustom {
12646
12682
  * function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
12647
12683
  * ```
12648
12684
  */
12649
- POST_PICKUP_RENDER_FILTER = 78,
12685
+ POST_PICKUP_RENDER_FILTER = 79,
12650
12686
  /**
12651
12687
  * The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
12652
12688
  * allows you to specify extra arguments for additional filtration.
@@ -12665,7 +12701,7 @@ export declare enum ModCallbackCustom {
12665
12701
  * ): [pickupVariant: PickupVariant, subType: int] | undefined {}
12666
12702
  * ```
12667
12703
  */
12668
- POST_PICKUP_SELECTION_FILTER = 79,
12704
+ POST_PICKUP_SELECTION_FILTER = 80,
12669
12705
  /**
12670
12706
  * Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
12671
12707
  * on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
@@ -12684,7 +12720,7 @@ export declare enum ModCallbackCustom {
12684
12720
  * ): void {}
12685
12721
  * ```
12686
12722
  */
12687
- POST_PICKUP_STATE_CHANGED = 80,
12723
+ POST_PICKUP_STATE_CHANGED = 81,
12688
12724
  /**
12689
12725
  * The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
12690
12726
  * you to specify extra arguments for additional filtration.
@@ -12699,7 +12735,7 @@ export declare enum ModCallbackCustom {
12699
12735
  * function postPickupUpdateFilter(pickup: EntityPickup): void {}
12700
12736
  * ```
12701
12737
  */
12702
- POST_PICKUP_UPDATE_FILTER = 81,
12738
+ POST_PICKUP_UPDATE_FILTER = 82,
12703
12739
  /**
12704
12740
  * Fires from the `POST_RENDER` callback on every frame that a pit exists.
12705
12741
  *
@@ -12711,7 +12747,7 @@ export declare enum ModCallbackCustom {
12711
12747
  * function postPitRender(pit: GridEntityPit): void {}
12712
12748
  * ```
12713
12749
  */
12714
- POST_PIT_RENDER = 82,
12750
+ POST_PIT_RENDER = 83,
12715
12751
  /**
12716
12752
  * Fires from the `POST_UPDATE` callback on every frame that a pit exists.
12717
12753
  *
@@ -12723,7 +12759,7 @@ export declare enum ModCallbackCustom {
12723
12759
  * function postPitUpdate(pit: GridEntityPit): void {}
12724
12760
  * ```
12725
12761
  */
12726
- POST_PIT_UPDATE = 83,
12762
+ POST_PIT_UPDATE = 84,
12727
12763
  /**
12728
12764
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
12729
12765
  * different than what it was on the previous frame. For more information, see the `PlayerHealth`
@@ -12745,7 +12781,7 @@ export declare enum ModCallbackCustom {
12745
12781
  * ): void {}
12746
12782
  * ```
12747
12783
  */
12748
- POST_PLAYER_CHANGE_HEALTH = 84,
12784
+ POST_PLAYER_CHANGE_HEALTH = 85,
12749
12785
  /**
12750
12786
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
12751
12787
  * from what they were on the previous frame.
@@ -12775,7 +12811,7 @@ export declare enum ModCallbackCustom {
12775
12811
  * ) => void {}
12776
12812
  * ```
12777
12813
  */
12778
- POST_PLAYER_CHANGE_STAT = 85,
12814
+ POST_PLAYER_CHANGE_STAT = 86,
12779
12815
  /**
12780
12816
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
12781
12817
  * type
@@ -12798,7 +12834,7 @@ export declare enum ModCallbackCustom {
12798
12834
  * ): void {}
12799
12835
  * ```
12800
12836
  */
12801
- POST_PLAYER_CHANGE_TYPE = 86,
12837
+ POST_PLAYER_CHANGE_TYPE = 87,
12802
12838
  /**
12803
12839
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
12804
12840
  * higher than what it was on the previous frame, or when the active items change, or when the
@@ -12815,7 +12851,7 @@ export declare enum ModCallbackCustom {
12815
12851
  * ): void {}
12816
12852
  * ```
12817
12853
  */
12818
- POST_PLAYER_COLLECTIBLE_ADDED = 87,
12854
+ POST_PLAYER_COLLECTIBLE_ADDED = 88,
12819
12855
  /**
12820
12856
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
12821
12857
  * lower than what it was on the previous frame, or when the active items change, or when the
@@ -12832,7 +12868,7 @@ export declare enum ModCallbackCustom {
12832
12868
  * ): void {}
12833
12869
  * ```
12834
12870
  */
12835
- POST_PLAYER_COLLECTIBLE_REMOVED = 88,
12871
+ POST_PLAYER_COLLECTIBLE_REMOVED = 89,
12836
12872
  /**
12837
12873
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. You can optionally
12838
12874
  * return false to prevent the fatal damage.
@@ -12850,7 +12886,7 @@ export declare enum ModCallbackCustom {
12850
12886
  * function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
12851
12887
  * ```
12852
12888
  */
12853
- POST_PLAYER_FATAL_DAMAGE = 89,
12889
+ POST_PLAYER_FATAL_DAMAGE = 90,
12854
12890
  /**
12855
12891
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
12856
12892
  * `POST_PLAYER_INIT_LATE` callback, with two changes:
@@ -12872,7 +12908,7 @@ export declare enum ModCallbackCustom {
12872
12908
  * function postPlayerInitFirst(player: EntityPlayer): void {}
12873
12909
  * ```
12874
12910
  */
12875
- POST_PLAYER_INIT_FIRST = 90,
12911
+ POST_PLAYER_INIT_FIRST = 91,
12876
12912
  /**
12877
12913
  * Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
12878
12914
  *
@@ -12892,7 +12928,7 @@ export declare enum ModCallbackCustom {
12892
12928
  * function postPlayerInitLate(pickup: EntityPickup): void {}
12893
12929
  * ```
12894
12930
  */
12895
- POST_PLAYER_INIT_LATE = 91,
12931
+ POST_PLAYER_INIT_LATE = 92,
12896
12932
  /**
12897
12933
  * Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
12898
12934
  * callback fires (if the player is spawning on the 0th game frame of the run).
@@ -12916,7 +12952,7 @@ export declare enum ModCallbackCustom {
12916
12952
  * function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
12917
12953
  * ```
12918
12954
  */
12919
- POST_PLAYER_RENDER_REORDERED = 92,
12955
+ POST_PLAYER_RENDER_REORDERED = 93,
12920
12956
  /**
12921
12957
  * Similar to the vanilla callback of the same name, but fires after the
12922
12958
  * `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
@@ -12941,7 +12977,7 @@ export declare enum ModCallbackCustom {
12941
12977
  * function postPlayerUpdateReordered(player: EntityPlayer): void {}
12942
12978
  * ```
12943
12979
  */
12944
- POST_PLAYER_UPDATE_REORDERED = 93,
12980
+ POST_PLAYER_UPDATE_REORDERED = 94,
12945
12981
  /**
12946
12982
  * Fires from the `POST_RENDER` callback on every frame that a poop exists.
12947
12983
  *
@@ -12953,7 +12989,7 @@ export declare enum ModCallbackCustom {
12953
12989
  * function postPoopRender(poop: GridEntityPoop): void {}
12954
12990
  * ```
12955
12991
  */
12956
- POST_POOP_RENDER = 94,
12992
+ POST_POOP_RENDER = 95,
12957
12993
  /**
12958
12994
  * Fires from the `POST_UPDATE` callback on every frame that a poop exists.
12959
12995
  *
@@ -12965,7 +13001,7 @@ export declare enum ModCallbackCustom {
12965
13001
  * function postPoopUpdate(poop: GridEntityPoop): void {}
12966
13002
  * ```
12967
13003
  */
12968
- POST_POOP_UPDATE = 95,
13004
+ POST_POOP_UPDATE = 96,
12969
13005
  /**
12970
13006
  * Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
12971
13007
  *
@@ -12977,7 +13013,7 @@ export declare enum ModCallbackCustom {
12977
13013
  * function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
12978
13014
  * ```
12979
13015
  */
12980
- POST_PRESSURE_PLATE_RENDER = 96,
13016
+ POST_PRESSURE_PLATE_RENDER = 97,
12981
13017
  /**
12982
13018
  * Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
12983
13019
  *
@@ -12989,7 +13025,7 @@ export declare enum ModCallbackCustom {
12989
13025
  * function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
12990
13026
  * ```
12991
13027
  */
12992
- POST_PRESSURE_PLATE_UPDATE = 97,
13028
+ POST_PRESSURE_PLATE_UPDATE = 98,
12993
13029
  /**
12994
13030
  * The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
12995
13031
  * allows you to specify extra arguments for additional filtration.
@@ -13004,7 +13040,7 @@ export declare enum ModCallbackCustom {
13004
13040
  * function postProjectileInitFilter(projectile: EntityProjectile): void {}
13005
13041
  * ```
13006
13042
  */
13007
- POST_PROJECTILE_INIT_FILTER = 98,
13043
+ POST_PROJECTILE_INIT_FILTER = 99,
13008
13044
  /**
13009
13045
  * Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
13010
13046
  *
@@ -13021,7 +13057,7 @@ export declare enum ModCallbackCustom {
13021
13057
  * function postProjectileInitLate(projectile: EntityProjectile): void {}
13022
13058
  * ```
13023
13059
  */
13024
- POST_PROJECTILE_INIT_LATE = 99,
13060
+ POST_PROJECTILE_INIT_LATE = 100,
13025
13061
  /**
13026
13062
  * Fires when the provided projectile is removed after colliding with an entity or grid entity.
13027
13063
  *
@@ -13035,7 +13071,7 @@ export declare enum ModCallbackCustom {
13035
13071
  * function postProjectileKill(projectile: EntityProjectile): void {}
13036
13072
  * ```
13037
13073
  */
13038
- POST_PROJECTILE_KILL = 100,
13074
+ POST_PROJECTILE_KILL = 101,
13039
13075
  /**
13040
13076
  * The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
13041
13077
  * allows you to specify extra arguments for additional filtration.
@@ -13050,7 +13086,7 @@ export declare enum ModCallbackCustom {
13050
13086
  * function postProjectileRenderFilter(projectile: EntityProjectile, renderOffset: Vector): void {}
13051
13087
  * ```
13052
13088
  */
13053
- POST_PROJECTILE_RENDER_FILTER = 101,
13089
+ POST_PROJECTILE_RENDER_FILTER = 102,
13054
13090
  /**
13055
13091
  * The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
13056
13092
  * allows you to specify extra arguments for additional filtration.
@@ -13065,7 +13101,7 @@ export declare enum ModCallbackCustom {
13065
13101
  * function postProjectileUpdateFilter(projectile: EntityProjectile): void {}
13066
13102
  * ```
13067
13103
  */
13068
- POST_PROJECTILE_UPDATE_FILTER = 102,
13104
+ POST_PROJECTILE_UPDATE_FILTER = 103,
13069
13105
  /**
13070
13106
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
13071
13107
  * item. The pickup returned in the callback is assumed to be the first pickup that no longer
@@ -13081,7 +13117,7 @@ export declare enum ModCallbackCustom {
13081
13117
  * function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
13082
13118
  * ```
13083
13119
  */
13084
- POST_PURCHASE = 103,
13120
+ POST_PURCHASE = 104,
13085
13121
  /**
13086
13122
  * Fires from the `POST_RENDER` callback on every frame that a rock exists.
13087
13123
  *
@@ -13095,7 +13131,7 @@ export declare enum ModCallbackCustom {
13095
13131
  * function postRockRender(rock: GridEntityRock): void {}
13096
13132
  * ```
13097
13133
  */
13098
- POST_ROCK_RENDER = 104,
13134
+ POST_ROCK_RENDER = 105,
13099
13135
  /**
13100
13136
  * Fires from the `POST_UPDATE` callback on every frame that a rock exists.
13101
13137
  *
@@ -13109,7 +13145,7 @@ export declare enum ModCallbackCustom {
13109
13145
  * function postRockUpdate(rock: GridEntityRock): void {}
13110
13146
  * ```
13111
13147
  */
13112
- POST_ROCK_UPDATE = 105,
13148
+ POST_ROCK_UPDATE = 106,
13113
13149
  /**
13114
13150
  * Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
13115
13151
  * the `Room.IsClear` method).
@@ -13126,7 +13162,7 @@ export declare enum ModCallbackCustom {
13126
13162
  * function postRoomClearChanged(roomClear: boolean): void {}
13127
13163
  * ```
13128
13164
  */
13129
- POST_ROOM_CLEAR_CHANGED = 106,
13165
+ POST_ROOM_CLEAR_CHANGED = 107,
13130
13166
  /**
13131
13167
  * Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
13132
13168
  * Room.
@@ -13141,7 +13177,7 @@ export declare enum ModCallbackCustom {
13141
13177
  * function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
13142
13178
  * ```
13143
13179
  */
13144
- POST_SACRIFICE = 107,
13180
+ POST_SACRIFICE = 108,
13145
13181
  /**
13146
13182
  * Fires from the `POST_RENDER` callback when a slot entity's animation changes.
13147
13183
  *
@@ -13159,7 +13195,7 @@ export declare enum ModCallbackCustom {
13159
13195
  * ): void {}
13160
13196
  * ```
13161
13197
  */
13162
- POST_SLOT_ANIMATION_CHANGED = 108,
13198
+ POST_SLOT_ANIMATION_CHANGED = 109,
13163
13199
  /**
13164
13200
  * Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
13165
13201
  * (It will not fire if any other type of entity collides with the slot entity.)
@@ -13183,7 +13219,7 @@ export declare enum ModCallbackCustom {
13183
13219
  * ): void {}
13184
13220
  * ```
13185
13221
  */
13186
- POST_SLOT_COLLISION = 109,
13222
+ POST_SLOT_COLLISION = 110,
13187
13223
  /**
13188
13224
  * Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
13189
13225
  * destroyed or a beggar is removed.
@@ -13225,7 +13261,7 @@ export declare enum ModCallbackCustom {
13225
13261
  * function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
13226
13262
  * ```
13227
13263
  */
13228
- POST_SLOT_DESTROYED = 110,
13264
+ POST_SLOT_DESTROYED = 111,
13229
13265
  /**
13230
13266
  * Fires when a new slot entity is initialized. Specifically, this is either:
13231
13267
  *
@@ -13244,7 +13280,7 @@ export declare enum ModCallbackCustom {
13244
13280
  * function postSlotInit(slot: Entity): void {}
13245
13281
  * ```
13246
13282
  */
13247
- POST_SLOT_INIT = 111,
13283
+ POST_SLOT_INIT = 112,
13248
13284
  /**
13249
13285
  * Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
13250
13286
  *
@@ -13258,7 +13294,7 @@ export declare enum ModCallbackCustom {
13258
13294
  * function postSlotRender(slot: Entity): void {}
13259
13295
  * ```
13260
13296
  */
13261
- POST_SLOT_RENDER = 112,
13297
+ POST_SLOT_RENDER = 113,
13262
13298
  /**
13263
13299
  * Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
13264
13300
  *
@@ -13272,7 +13308,7 @@ export declare enum ModCallbackCustom {
13272
13308
  * function postSlotUpdate(slot: Entity): void {}
13273
13309
  * ```
13274
13310
  */
13275
- POST_SLOT_UPDATE = 113,
13311
+ POST_SLOT_UPDATE = 114,
13276
13312
  /**
13277
13313
  * Fires from the `POST_RENDER` callback on every frame that spikes exist.
13278
13314
  *
@@ -13284,7 +13320,7 @@ export declare enum ModCallbackCustom {
13284
13320
  * function postSpikesRender(spikes: GridEntitySpikes): void {}
13285
13321
  * ```
13286
13322
  */
13287
- POST_SPIKES_RENDER = 114,
13323
+ POST_SPIKES_RENDER = 115,
13288
13324
  /**
13289
13325
  * Fires from the `POST_UPDATE` callback on every frame that spikes exist.
13290
13326
  *
@@ -13296,7 +13332,7 @@ export declare enum ModCallbackCustom {
13296
13332
  * function postSpikesUpdate(spikes: GridEntitySpikes): void {}
13297
13333
  * ```
13298
13334
  */
13299
- POST_SPIKES_UPDATE = 115,
13335
+ POST_SPIKES_UPDATE = 116,
13300
13336
  /**
13301
13337
  * The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
13302
13338
  * to specify extra arguments for additional filtration.
@@ -13311,7 +13347,7 @@ export declare enum ModCallbackCustom {
13311
13347
  * function postTearInitFilter(tear: EntityTear): void {}
13312
13348
  * ```
13313
13349
  */
13314
- POST_TEAR_INIT_FILTER = 116,
13350
+ POST_TEAR_INIT_FILTER = 117,
13315
13351
  /**
13316
13352
  * Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
13317
13353
  * `EntityTear.FrameCount` is equal to 0).
@@ -13329,7 +13365,7 @@ export declare enum ModCallbackCustom {
13329
13365
  * function postTearInitLate(tear: EntityTear): void {}
13330
13366
  * ```
13331
13367
  */
13332
- POST_TEAR_INIT_LATE = 117,
13368
+ POST_TEAR_INIT_LATE = 118,
13333
13369
  /**
13334
13370
  * Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
13335
13371
  * `EntityTear.FrameCount` is equal to 1).
@@ -13346,7 +13382,7 @@ export declare enum ModCallbackCustom {
13346
13382
  * function postTearInitVeryLate(tear: EntityTear): void {}
13347
13383
  * ```
13348
13384
  */
13349
- POST_TEAR_INIT_VERY_LATE = 118,
13385
+ POST_TEAR_INIT_VERY_LATE = 119,
13350
13386
  /**
13351
13387
  * Fires when the provided tear is removed after colliding with an entity or grid entity.
13352
13388
  *
@@ -13360,7 +13396,7 @@ export declare enum ModCallbackCustom {
13360
13396
  * function postTearKill(tear: EntityTear): void {}
13361
13397
  * ```
13362
13398
  */
13363
- POST_TEAR_KILL = 119,
13399
+ POST_TEAR_KILL = 120,
13364
13400
  /**
13365
13401
  * The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
13366
13402
  * you to specify extra arguments for additional filtration.
@@ -13375,7 +13411,7 @@ export declare enum ModCallbackCustom {
13375
13411
  * function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
13376
13412
  * ```
13377
13413
  */
13378
- POST_TEAR_RENDER_FILTER = 120,
13414
+ POST_TEAR_RENDER_FILTER = 121,
13379
13415
  /**
13380
13416
  * The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
13381
13417
  * to specify extra arguments for additional filtration.
@@ -13390,7 +13426,7 @@ export declare enum ModCallbackCustom {
13390
13426
  * function postTearUpdateFilter(tear: EntityTear): void {}
13391
13427
  * ```
13392
13428
  */
13393
- POST_TEAR_UPDATE_FILTER = 121,
13429
+ POST_TEAR_UPDATE_FILTER = 122,
13394
13430
  /**
13395
13431
  * Fires from the `POST_RENDER` callback on every frame that a TNT exists.
13396
13432
  *
@@ -13402,7 +13438,7 @@ export declare enum ModCallbackCustom {
13402
13438
  * function postTNTRender(tnt: GridEntityTNT): void {}
13403
13439
  * ```
13404
13440
  */
13405
- POST_TNT_RENDER = 122,
13441
+ POST_TNT_RENDER = 123,
13406
13442
  /**
13407
13443
  * Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
13408
13444
  *
@@ -13414,7 +13450,7 @@ export declare enum ModCallbackCustom {
13414
13450
  * function postTNTUpdate(tnt: GridEntityTNT): void {}
13415
13451
  * ```
13416
13452
  */
13417
- POST_TNT_UPDATE = 123,
13453
+ POST_TNT_UPDATE = 124,
13418
13454
  /**
13419
13455
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
13420
13456
  * transformation.
@@ -13433,7 +13469,7 @@ export declare enum ModCallbackCustom {
13433
13469
  * ): void {}
13434
13470
  * ```
13435
13471
  */
13436
- POST_TRANSFORMATION = 124,
13472
+ POST_TRANSFORMATION = 125,
13437
13473
  /**
13438
13474
  * Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
13439
13475
  *
@@ -13448,7 +13484,7 @@ export declare enum ModCallbackCustom {
13448
13484
  * ): void {}
13449
13485
  * ```
13450
13486
  */
13451
- POST_TRINKET_BREAK = 125,
13487
+ POST_TRINKET_BREAK = 126,
13452
13488
  /**
13453
13489
  * The same thing as the vanilla `POST_USE_PILL` callback, except this callback passes the
13454
13490
  * `PillColor` of the used pill as the final argument. It allows you to filter by the `PillColor`.
@@ -13471,7 +13507,7 @@ export declare enum ModCallbackCustom {
13471
13507
  * ): void {}
13472
13508
  * ```
13473
13509
  */
13474
- POST_USE_PILL_FILTER = 126,
13510
+ POST_USE_PILL_FILTER = 127,
13475
13511
  /**
13476
13512
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
13477
13513
  * ends when the player is predicted to die (e.g. they currently have no health left or they took
@@ -13487,7 +13523,7 @@ export declare enum ModCallbackCustom {
13487
13523
  * function preBerserkDeath(player: EntityPlayer): void {}
13488
13524
  * ```
13489
13525
  */
13490
- PRE_BERSERK_DEATH = 127,
13526
+ PRE_BERSERK_DEATH = 128,
13491
13527
  /**
13492
13528
  * The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
13493
13529
  * you to specify extra arguments for additional filtration.
@@ -13506,7 +13542,7 @@ export declare enum ModCallbackCustom {
13506
13542
  * ): void {}
13507
13543
  * ```
13508
13544
  */
13509
- PRE_BOMB_COLLISION_FILTER = 128,
13545
+ PRE_BOMB_COLLISION_FILTER = 129,
13510
13546
  /**
13511
13547
  * Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
13512
13548
  * to initiate a custom revival, return an integer that corresponds to the item or type of revival
@@ -13525,7 +13561,7 @@ export declare enum ModCallbackCustom {
13525
13561
  * function preCustomRevive(player: EntityPlayer): int | undefined {}
13526
13562
  * ```
13527
13563
  */
13528
- PRE_CUSTOM_REVIVE = 129,
13564
+ PRE_CUSTOM_REVIVE = 130,
13529
13565
  /**
13530
13566
  * The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
13531
13567
  * you to specify extra arguments for additional filtration.
@@ -13550,7 +13586,7 @@ export declare enum ModCallbackCustom {
13550
13586
  * ): [entityType: EntityType, variant: int, subType: int, initSeed: Seed] | undefined {}
13551
13587
  * ```
13552
13588
  */
13553
- PRE_ENTITY_SPAWN_FILTER = 130,
13589
+ PRE_ENTITY_SPAWN_FILTER = 131,
13554
13590
  /**
13555
13591
  * The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
13556
13592
  * allows you to specify extra arguments for additional filtration.
@@ -13569,7 +13605,7 @@ export declare enum ModCallbackCustom {
13569
13605
  * ): void {}
13570
13606
  * ```
13571
13607
  */
13572
- PRE_FAMILIAR_COLLISION_FILTER = 131,
13608
+ PRE_FAMILIAR_COLLISION_FILTER = 132,
13573
13609
  /**
13574
13610
  * Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
13575
13611
  * meets all of the conditions to pick it up.
@@ -13589,7 +13625,7 @@ export declare enum ModCallbackCustom {
13589
13625
  * function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
13590
13626
  * ```
13591
13627
  */
13592
- PRE_GET_PEDESTAL = 132,
13628
+ PRE_GET_PEDESTAL = 133,
13593
13629
  /**
13594
13630
  * Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
13595
13631
  * the player begins to hold the item above their head). You can optionally return false if you
@@ -13610,7 +13646,7 @@ export declare enum ModCallbackCustom {
13610
13646
  * ): boolean | undefined {}
13611
13647
  * ```
13612
13648
  */
13613
- PRE_ITEM_PICKUP = 133,
13649
+ PRE_ITEM_PICKUP = 134,
13614
13650
  /**
13615
13651
  * The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
13616
13652
  * you to specify extra arguments for additional filtration.
@@ -13629,7 +13665,7 @@ export declare enum ModCallbackCustom {
13629
13665
  * ): void {}
13630
13666
  * ```
13631
13667
  */
13632
- PRE_KNIFE_COLLISION_FILTER = 134,
13668
+ PRE_KNIFE_COLLISION_FILTER = 135,
13633
13669
  /**
13634
13670
  * Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
13635
13671
  * player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
@@ -13643,7 +13679,7 @@ export declare enum ModCallbackCustom {
13643
13679
  * function preNewLevel(player: EntityPlayer): void {}
13644
13680
  * ```
13645
13681
  */
13646
- PRE_NEW_LEVEL = 135,
13682
+ PRE_NEW_LEVEL = 136,
13647
13683
  /**
13648
13684
  * The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
13649
13685
  * you to specify extra arguments for additional filtration.
@@ -13664,7 +13700,7 @@ export declare enum ModCallbackCustom {
13664
13700
  * ): boolean | undefined {}
13665
13701
  * ```
13666
13702
  */
13667
- PRE_NPC_COLLISION_FILTER = 136,
13703
+ PRE_NPC_COLLISION_FILTER = 137,
13668
13704
  /**
13669
13705
  * The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
13670
13706
  * to specify extra arguments for additional filtration.
@@ -13681,7 +13717,7 @@ export declare enum ModCallbackCustom {
13681
13717
  * function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
13682
13718
  * ```
13683
13719
  */
13684
- PRE_NPC_UPDATE_FILTER = 137,
13720
+ PRE_NPC_UPDATE_FILTER = 138,
13685
13721
  /**
13686
13722
  * The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
13687
13723
  * allows you to specify extra arguments for additional filtration.
@@ -13700,7 +13736,7 @@ export declare enum ModCallbackCustom {
13700
13736
  * ): void {}
13701
13737
  * ```
13702
13738
  */
13703
- PRE_PROJECTILE_COLLISION_FILTER = 138,
13739
+ PRE_PROJECTILE_COLLISION_FILTER = 139,
13704
13740
  /**
13705
13741
  * The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
13706
13742
  * allows you to specify extra arguments for additional filtration.
@@ -13726,7 +13762,7 @@ export declare enum ModCallbackCustom {
13726
13762
  * ): [type: EntityType | GridEntityXMLType, variant: int, subType: int] | undefined {}
13727
13763
  * ```
13728
13764
  */
13729
- PRE_ROOM_ENTITY_SPAWN_FILTER = 139,
13765
+ PRE_ROOM_ENTITY_SPAWN_FILTER = 140,
13730
13766
  /**
13731
13767
  * The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
13732
13768
  * you to specify extra arguments for additional filtration.
@@ -13745,7 +13781,7 @@ export declare enum ModCallbackCustom {
13745
13781
  * ): void {}
13746
13782
  * ```
13747
13783
  */
13748
- PRE_TEAR_COLLISION_FILTER = 140
13784
+ PRE_TEAR_COLLISION_FILTER = 141
13749
13785
  }
13750
13786
 
13751
13787
  /**
@@ -14127,7 +14163,7 @@ declare class ModdedElementSets extends Feature {
14127
14163
  *
14128
14164
  * @public
14129
14165
  */
14130
- getPlayerCollectibleMap(player: EntityPlayer): Map<CollectibleType, int>;
14166
+ getPlayerCollectibleMap(player: EntityPlayer): ReadonlyMap<CollectibleType, int>;
14131
14167
  /**
14132
14168
  * Returns an array containing every modded trinket type in the game.
14133
14169
  *
@@ -14369,7 +14405,7 @@ declare class ModdedElementSets extends Feature {
14369
14405
  *
14370
14406
  * @public
14371
14407
  */
14372
- getPlayerTrinketsWithCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): Map<TrinketType, int>;
14408
+ getPlayerTrinketsWithCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): ReadonlyMap<TrinketType, int>;
14373
14409
  /**
14374
14410
  * Returns a set of all of the collectibles that grant flight. This is derived from collectibles
14375
14411
  * that have `CacheFlag.FLYING` set in the "items.xml" file.
@@ -15376,7 +15412,7 @@ export declare function parseEntityTypeVariantString(entityTypeVariantString: st
15376
15412
  *
15377
15413
  * Under the hood, this uses the built-in `tonumber` and `math.floor` functions.
15378
15414
  *
15379
- * This is named `parseIntSafe` in order to match the helper function in `isaacscript-common-ts`.
15415
+ * This is named `parseIntSafe` in order to match the helper function from `complete-common`.
15380
15416
  */
15381
15417
  export declare function parseIntSafe(string: string): int | undefined;
15382
15418
 
@@ -15853,7 +15889,7 @@ export declare type PossibleStatType = number | boolean | BitFlags<TearFlag> | C
15853
15889
 
15854
15890
  declare class PostCustomRevive extends CustomCallback<ModCallbackCustom.POST_CUSTOM_REVIVE> {
15855
15891
  constructor();
15856
- protected shouldFire: (fireArgs: [player: EntityPlayer, revivalType: int], optionalArgs: OptionalArgs<T>) => boolean;
15892
+ protected shouldFire: (fireArgs: FireArgs<T>, optionalArgs: OptionalArgs<T>) => boolean;
15857
15893
  }
15858
15894
 
15859
15895
  declare class PostEsauJr extends CustomCallback<ModCallbackCustom.POST_ESAU_JR> {
@@ -15879,7 +15915,7 @@ declare class PostGridEntityBroken extends CustomCallback<ModCallbackCustom.POST
15879
15915
 
15880
15916
  declare class PostGridEntityCollision extends CustomCallback<T_2> {
15881
15917
  constructor();
15882
- protected shouldFire: (fireArgs: [gridEntity: GridEntity, entity: Entity], optionalArgs: [gridEntityType?: GridEntityType | undefined, gridEntityVariant?: int | undefined, entityType?: EntityType | undefined, entityVariant?: int | undefined, entitySubType?: int | undefined]) => boolean;
15918
+ protected shouldFire: (fireArgs: FireArgs<T_2>, optionalArgs: OptionalArgs<T_2>) => boolean;
15883
15919
  }
15884
15920
 
15885
15921
  declare class PostGridEntityCustomBroken extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_BROKEN> {
@@ -15889,7 +15925,7 @@ declare class PostGridEntityCustomBroken extends CustomCallback<ModCallbackCusto
15889
15925
 
15890
15926
  declare class PostGridEntityCustomCollision extends CustomCallback<T_3> {
15891
15927
  constructor();
15892
- protected shouldFire: (fireArgs: [gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType, entity: Entity], optionalArgs: [gridEntityTypeCustom?: GridEntityType | undefined, entityType?: EntityType | undefined, entityVariant?: int | undefined, entitySubType?: int | undefined]) => boolean;
15928
+ protected shouldFire: (fireArgs: FireArgs<T_3>, optionalArgs: OptionalArgs<T_3>) => boolean;
15893
15929
  }
15894
15930
 
15895
15931
  declare class PostGridEntityCustomInit extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_INIT> {
@@ -15899,7 +15935,7 @@ declare class PostGridEntityCustomInit extends CustomCallback<ModCallbackCustom.
15899
15935
 
15900
15936
  declare class PostGridEntityCustomRemove extends CustomCallback<T_5> {
15901
15937
  constructor();
15902
- protected shouldFire: (fireArgs: [gridIndex: int, gridEntityTypeCustom: GridEntityType], optionalArgs: OptionalArgs<T_5>) => boolean;
15938
+ protected shouldFire: (fireArgs: FireArgs<T_5>, optionalArgs: OptionalArgs<T_5>) => boolean;
15903
15939
  }
15904
15940
 
15905
15941
  declare class PostGridEntityCustomRender extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_RENDER> {
@@ -15924,7 +15960,7 @@ declare class PostGridEntityInit extends CustomCallback<ModCallbackCustom.POST_G
15924
15960
 
15925
15961
  declare class PostGridEntityRemove extends CustomCallback<T_4> {
15926
15962
  constructor();
15927
- protected shouldFire: (fireArgs: [gridIndex: int, gridEntityType: GridEntityType, variant: int], optionalArgs: [gridEntityType?: GridEntityType | undefined, variant?: int | undefined]) => boolean;
15963
+ protected shouldFire: (fireArgs: FireArgs<T_4>, optionalArgs: OptionalArgs<T_4>) => boolean;
15928
15964
  }
15929
15965
 
15930
15966
  declare class PostGridEntityRender extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_RENDER> {
@@ -16096,7 +16132,7 @@ export declare function printEnabled(enabled: boolean, description: string): voi
16096
16132
  * @allowEmptyVariadic
16097
16133
  * @ignore
16098
16134
  */
16099
- export declare function PriorityCallback<T extends ModCallback>(modCallback: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Class extends ModFeature, Fn extends AddCallbackParameters[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
16135
+ export declare function PriorityCallback<T extends ModCallback>(modCallback: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Fn extends AddCallbackParameters[T][0]>(target: ModFeature, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
16100
16136
 
16101
16137
  /**
16102
16138
  * A decorator function that signifies that the decorated class method should be automatically
@@ -16105,7 +16141,7 @@ export declare function PriorityCallback<T extends ModCallback>(modCallback: T,
16105
16141
  * @allowEmptyVariadic
16106
16142
  * @ignore
16107
16143
  */
16108
- export declare function PriorityCallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Class extends ModFeature, Fn extends AddCallbackParametersCustom[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
16144
+ export declare function PriorityCallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Fn extends AddCallbackParametersCustom[T][0]>(target: ModFeature, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
16109
16145
 
16110
16146
  /** Helper type to extract only the public interface of a class. */
16111
16147
  export declare type PublicInterface<T> = Pick<T, keyof T>;
@@ -16860,6 +16896,7 @@ declare class RerunDetection extends Feature {
16860
16896
  onRerun(): boolean;
16861
16897
  }
16862
16898
 
16899
+ /** Helper function to reset a `PickupUpItem` object to all 0 values. */
16863
16900
  export declare function resetPickingUpItem(pickingUpItem: PickingUpItem): void;
16864
16901
 
16865
16902
  /**
@@ -18155,7 +18192,7 @@ export declare function shuffleArray<T>(originalArray: readonly T[], seedOrRNG:
18155
18192
  * `RNG.Next` method will be called. If `undefined` is provided, it will default to
18156
18193
  * a random seed.
18157
18194
  */
18158
- export declare function shuffleArrayInPlace<T>(array: T[], seedOrRNG: Seed | RNG | undefined): void;
18195
+ export declare function shuffleArrayInPlace(array: unknown[], seedOrRNG: Seed | RNG | undefined): void;
18159
18196
 
18160
18197
  /** @returns 1 if n is positive, -1 if n is negative, or 0 if n is 0. */
18161
18198
  export declare function sign(n: number): int;
@@ -18939,7 +18976,11 @@ declare const STORY_BOSS_IDS: readonly [BossID.MOM, BossID.MOMS_HEART, BossID.SA
18939
18976
  */
18940
18977
  export declare type StoryBossID = (typeof STORY_BOSS_IDS)[number];
18941
18978
 
18942
- /** From: https://gist.github.com/ryandabler/8b4ff4f36aed47bc09acc03174638468 */
18979
+ /**
18980
+ * Helper type to subtract two other types.
18981
+ *
18982
+ * From: https://gist.github.com/ryandabler/8b4ff4f36aed47bc09acc03174638468
18983
+ */
18943
18984
  export declare type Subtract<A extends number, B extends number> = A extends A ? BuildTuple<A> extends [...infer U, ...BuildTuple<B>] ? Length<U> : never : never;
18944
18985
 
18945
18986
  /** Helper function to sum every value in an array together. */
@@ -18954,7 +18995,7 @@ export declare function sumSet(set: ReadonlySet<number>): number;
18954
18995
  /**
18955
18996
  * Helper function to swap two different array elements. (The elements will be swapped in-place.)
18956
18997
  */
18957
- export declare function swapArrayElements<T>(array: T[], i: number, j: number): void;
18998
+ export declare function swapArrayElements(array: unknown[], i: number, j: number): void;
18958
18999
 
18959
19000
  declare type T = ModCallbackCustom.POST_CUSTOM_REVIVE;
18960
19001
 
@@ -19281,7 +19322,7 @@ export declare function validateCustomEnum(transpiledEnumName: string, transpile
19281
19322
  *
19282
19323
  * This is useful to automate checking large enums for typos.
19283
19324
  */
19284
- export declare function validateEnumContiguous<T extends TranspiledEnum>(transpiledEnumName: string, transpiledEnum: T): void;
19325
+ export declare function validateEnumContiguous(transpiledEnumName: string, transpiledEnum: TranspiledEnum): void;
19285
19326
 
19286
19327
  /**
19287
19328
  * An array that represents the range from the first vanilla card type to the last vanilla card