isaacscript-common 1.2.290 → 2.0.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 (487) hide show
  1. package/README.md +2 -2
  2. package/dist/cachedClasses.d.ts +1 -1
  3. package/dist/cachedClasses.lua +0 -1
  4. package/dist/callbacks/customRevive.lua +13 -8
  5. package/dist/callbacks/itemPickup.lua +3 -1
  6. package/dist/callbacks/postBombInitLate.lua +3 -1
  7. package/dist/callbacks/postBoneSwing.lua +5 -2
  8. package/dist/callbacks/postCollectibleInitFirst.lua +4 -1
  9. package/dist/callbacks/postCursedTeleport.lua +16 -8
  10. package/dist/callbacks/postCustomDoorEnter.d.ts +1 -1
  11. package/dist/callbacks/postCustomDoorEnter.lua +20 -14
  12. package/dist/callbacks/postEffectInitLate.lua +3 -1
  13. package/dist/callbacks/postEffectStateChanged.lua +3 -1
  14. package/dist/callbacks/postEsauJr.lua +5 -2
  15. package/dist/callbacks/postFamiliarInitLate.lua +3 -1
  16. package/dist/callbacks/postFamiliarStateChanged.lua +3 -1
  17. package/dist/callbacks/postFlip.lua +9 -5
  18. package/dist/callbacks/postGreedModeWave.d.ts +1 -0
  19. package/dist/callbacks/postGreedModeWave.lua +32 -0
  20. package/dist/callbacks/postGreedWave.d.ts +1 -0
  21. package/dist/callbacks/postGreedWave.lua +31 -0
  22. package/dist/callbacks/postGridEntity.lua +9 -7
  23. package/dist/callbacks/postGridEntityCollision.lua +5 -2
  24. package/dist/callbacks/postHolyMantleRemoved.d.ts +1 -0
  25. package/dist/callbacks/postHolyMantleRemoved.lua +39 -0
  26. package/dist/callbacks/postItemDischarged.lua +35 -14
  27. package/dist/callbacks/postKnifeInitLate.lua +3 -1
  28. package/dist/callbacks/postLaserInitLate.lua +3 -1
  29. package/dist/callbacks/postNPCInitLate.lua +3 -1
  30. package/dist/callbacks/postNPCStateChanged.lua +3 -1
  31. package/dist/callbacks/postNewRoomEarly.lua +7 -5
  32. package/dist/callbacks/postPickupCollect.lua +3 -1
  33. package/dist/callbacks/postPickupInitLate.lua +3 -1
  34. package/dist/callbacks/postPickupStateChanged.lua +3 -1
  35. package/dist/callbacks/postPlayerChangeHealth.lua +2 -2
  36. package/dist/callbacks/postPlayerFatalDamage.lua +4 -1
  37. package/dist/callbacks/postPlayerInitLate.lua +3 -1
  38. package/dist/callbacks/postPlayerReordered.lua +7 -6
  39. package/dist/callbacks/postProjectileInitLate.lua +3 -1
  40. package/dist/callbacks/postRoomClearChanged.d.ts +1 -0
  41. package/dist/callbacks/postRoomClearChanged.lua +40 -0
  42. package/dist/callbacks/postSacrifice.lua +8 -4
  43. package/dist/callbacks/postSlotInitUpdate.lua +4 -2
  44. package/dist/callbacks/postSlotRender.lua +3 -1
  45. package/dist/callbacks/postTearInitLate.lua +3 -1
  46. package/dist/callbacks/postTearInitVeryLate.lua +3 -1
  47. package/dist/callbacks/postTransformation.lua +7 -12
  48. package/dist/callbacks/postTrinketBreak.lua +8 -3
  49. package/dist/callbacks/preBerserkDeath.lua +3 -2
  50. package/dist/callbacks/preNewLevel.lua +5 -3
  51. package/dist/callbacks/reorderedCallbacks.lua +7 -5
  52. package/dist/callbacks/subscriptions/postBombInitLate.d.ts +5 -2
  53. package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -3
  54. package/dist/callbacks/subscriptions/postBoneSwing.d.ts +3 -1
  55. package/dist/callbacks/subscriptions/postBoneSwing.lua +3 -3
  56. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +5 -2
  57. package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +3 -3
  58. package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +3 -1
  59. package/dist/callbacks/subscriptions/postCursedTeleport.lua +3 -3
  60. package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +5 -2
  61. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +3 -3
  62. package/dist/callbacks/subscriptions/postCustomRevive.d.ts +4 -1
  63. package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -3
  64. package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +5 -2
  65. package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -3
  66. package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +5 -2
  67. package/dist/callbacks/subscriptions/postEffectStateChanged.lua +3 -3
  68. package/dist/callbacks/subscriptions/postEsauJr.d.ts +3 -1
  69. package/dist/callbacks/subscriptions/postEsauJr.lua +3 -3
  70. package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +5 -2
  71. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -3
  72. package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +5 -2
  73. package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +3 -3
  74. package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +3 -1
  75. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +3 -3
  76. package/dist/callbacks/subscriptions/postFirstFlip.d.ts +3 -1
  77. package/dist/callbacks/subscriptions/postFirstFlip.lua +3 -3
  78. package/dist/callbacks/subscriptions/postFlip.d.ts +3 -1
  79. package/dist/callbacks/subscriptions/postFlip.lua +3 -3
  80. package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +3 -1
  81. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +3 -3
  82. package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +4 -0
  83. package/dist/callbacks/subscriptions/postGreedModeWave.lua +16 -0
  84. package/dist/callbacks/subscriptions/postGreedWave.d.ts +2 -0
  85. package/dist/callbacks/subscriptions/postGreedWave.lua +16 -0
  86. package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +5 -2
  87. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +3 -3
  88. package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +5 -2
  89. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +3 -3
  90. package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +5 -2
  91. package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -3
  92. package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +5 -2
  93. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -3
  94. package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +5 -0
  95. package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +23 -0
  96. package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +5 -2
  97. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -3
  98. package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +6 -0
  99. package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +28 -0
  100. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +5 -2
  101. package/dist/callbacks/subscriptions/postItemDischarged.lua +3 -3
  102. package/dist/callbacks/subscriptions/postItemPickup.d.ts +6 -2
  103. package/dist/callbacks/subscriptions/postItemPickup.lua +3 -3
  104. package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +5 -2
  105. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -3
  106. package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +5 -2
  107. package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -3
  108. package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +5 -2
  109. package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -3
  110. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +6 -2
  111. package/dist/callbacks/subscriptions/postNPCStateChanged.lua +3 -3
  112. package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +1 -1
  113. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +3 -3
  114. package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +1 -1
  115. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +3 -3
  116. package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +1 -1
  117. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +3 -3
  118. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +6 -2
  119. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +8 -4
  120. package/dist/callbacks/subscriptions/postPickupCollect.d.ts +5 -2
  121. package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -3
  122. package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +5 -2
  123. package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -3
  124. package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +5 -2
  125. package/dist/callbacks/subscriptions/postPickupStateChanged.lua +3 -3
  126. package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +5 -2
  127. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -3
  128. package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +4 -2
  129. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +3 -3
  130. package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +5 -2
  131. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -3
  132. package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +5 -2
  133. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -3
  134. package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +5 -2
  135. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -3
  136. package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +5 -2
  137. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -3
  138. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +5 -2
  139. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -3
  140. package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +5 -2
  141. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -3
  142. package/dist/callbacks/subscriptions/postPurchase.d.ts +6 -2
  143. package/dist/callbacks/subscriptions/postPurchase.lua +3 -3
  144. package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +3 -0
  145. package/dist/callbacks/subscriptions/postRoomClearChanged.lua +16 -0
  146. package/dist/callbacks/subscriptions/postSacrifice.d.ts +3 -1
  147. package/dist/callbacks/subscriptions/postSacrifice.lua +3 -3
  148. package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +5 -2
  149. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +3 -3
  150. package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +5 -2
  151. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -3
  152. package/dist/callbacks/subscriptions/postSlotInit.d.ts +5 -2
  153. package/dist/callbacks/subscriptions/postSlotInit.lua +3 -3
  154. package/dist/callbacks/subscriptions/postSlotRender.d.ts +5 -2
  155. package/dist/callbacks/subscriptions/postSlotRender.lua +3 -3
  156. package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +5 -2
  157. package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -3
  158. package/dist/callbacks/subscriptions/postTearInitLate.d.ts +5 -2
  159. package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -3
  160. package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +5 -2
  161. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +3 -3
  162. package/dist/callbacks/subscriptions/postTransformation.d.ts +5 -2
  163. package/dist/callbacks/subscriptions/postTransformation.lua +3 -3
  164. package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +5 -2
  165. package/dist/callbacks/subscriptions/postTrinketBreak.lua +3 -3
  166. package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +5 -2
  167. package/dist/callbacks/subscriptions/preBerserkDeath.lua +3 -3
  168. package/dist/callbacks/subscriptions/preCustomRevive.d.ts +3 -1
  169. package/dist/callbacks/subscriptions/preCustomRevive.lua +3 -3
  170. package/dist/callbacks/subscriptions/preItemPickup.d.ts +6 -2
  171. package/dist/callbacks/subscriptions/preItemPickup.lua +3 -3
  172. package/dist/callbacks/subscriptions/preNewLevel.d.ts +3 -1
  173. package/dist/callbacks/subscriptions/preNewLevel.lua +3 -3
  174. package/dist/classes/ModUpgraded.d.ts +5 -5
  175. package/dist/constants.d.ts +9 -43
  176. package/dist/constants.lua +16 -13
  177. package/dist/constantsMax.d.ts +16 -0
  178. package/dist/constantsMax.lua +27 -0
  179. package/dist/enums/CardType.lua +1 -1
  180. package/dist/enums/CollectiblePedestalType.lua +1 -1
  181. package/dist/enums/HealthType.d.ts +3 -3
  182. package/dist/enums/HealthType.lua +1 -2
  183. package/dist/enums/ModCallbacksCustom.d.ts +89 -59
  184. package/dist/enums/ModCallbacksCustom.lua +110 -107
  185. package/dist/enums/PillEffectClass.lua +1 -1
  186. package/dist/enums/PillEffectType.lua +1 -1
  187. package/dist/enums/PocketItemType.lua +1 -2
  188. package/dist/enums/SerializationType.lua +1 -2
  189. package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +1 -1
  190. package/dist/enums/private/CopyableIsaacAPIClassType.lua +2 -3
  191. package/dist/enums/private/SaveDataKeys.d.ts +4 -4
  192. package/dist/enums/private/SaveDataKeys.lua +5 -6
  193. package/dist/enums/private/SerializationBrand.d.ts +3 -4
  194. package/dist/enums/private/SerializationBrand.lua +2 -15
  195. package/dist/features/characterHealthConversion.d.ts +2 -2
  196. package/dist/features/characterHealthConversion.lua +8 -4
  197. package/dist/features/characterStats.d.ts +4 -4
  198. package/dist/features/characterStats.lua +3 -1
  199. package/dist/features/debugDisplay.lua +12 -11
  200. package/dist/features/deployJSONRoom.d.ts +3 -3
  201. package/dist/features/deployJSONRoom.lua +35 -21
  202. package/dist/features/disableInputs.d.ts +1 -1
  203. package/dist/features/disableInputs.lua +6 -3
  204. package/dist/features/disableSound.lua +3 -1
  205. package/dist/features/extraConsoleCommands/commands.d.ts +5 -3
  206. package/dist/features/extraConsoleCommands/commands.lua +96 -56
  207. package/dist/features/extraConsoleCommands/commandsDisplay.lua +0 -1
  208. package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +1 -1
  209. package/dist/features/extraConsoleCommands/commandsSubroutines.lua +13 -10
  210. package/dist/features/extraConsoleCommands/init.lua +17 -9
  211. package/dist/features/extraConsoleCommands/v.lua +0 -1
  212. package/dist/features/fadeInRemover.lua +3 -2
  213. package/dist/features/fastReset.lua +7 -5
  214. package/dist/features/forgottenSwitch.lua +6 -3
  215. package/dist/features/getCollectibleItemPoolType.d.ts +1 -1
  216. package/dist/features/getCollectibleItemPoolType.lua +6 -2
  217. package/dist/features/isPonyActive.lua +5 -2
  218. package/dist/features/playerInventory.d.ts +1 -1
  219. package/dist/features/playerInventory.lua +7 -3
  220. package/dist/features/preventCollectibleRotate.d.ts +1 -1
  221. package/dist/features/preventCollectibleRotate.lua +9 -4
  222. package/dist/features/runInNFrames.lua +4 -2
  223. package/dist/features/saveDataManager/constants.lua +0 -1
  224. package/dist/features/saveDataManager/exports.d.ts +9 -8
  225. package/dist/features/saveDataManager/main.lua +11 -9
  226. package/dist/features/saveDataManager/maps.d.ts +5 -0
  227. package/dist/features/saveDataManager/merge.d.ts +1 -1
  228. package/dist/features/saveDataManager/merge.lua +2 -1
  229. package/dist/features/saveDataManager/serializationBrand.d.ts +1 -0
  230. package/dist/features/saveDataManager/serializationBrand.lua +17 -0
  231. package/dist/features/sirenHelpers.d.ts +1 -1
  232. package/dist/features/sirenHelpers.lua +5 -2
  233. package/dist/features/taintedLazarusPlayers.lua +6 -3
  234. package/dist/featuresInitialized.lua +0 -1
  235. package/dist/functions/array.d.ts +18 -2
  236. package/dist/functions/array.lua +29 -3
  237. package/dist/functions/bitwise.lua +0 -1
  238. package/dist/functions/boss.d.ts +1 -1
  239. package/dist/functions/boss.lua +12 -9
  240. package/dist/functions/cacheFlag.d.ts +2 -2
  241. package/dist/functions/cacheFlag.lua +0 -1
  242. package/dist/functions/cards.d.ts +9 -17
  243. package/dist/functions/cards.lua +22 -23
  244. package/dist/functions/challenges.d.ts +1 -1
  245. package/dist/functions/challenges.lua +0 -1
  246. package/dist/functions/character.d.ts +6 -4
  247. package/dist/functions/character.lua +16 -7
  248. package/dist/functions/charge.d.ts +1 -1
  249. package/dist/functions/charge.lua +14 -9
  250. package/dist/functions/chargeBar.lua +0 -1
  251. package/dist/functions/collectibleCacheFlag.d.ts +4 -4
  252. package/dist/functions/collectibleCacheFlag.lua +8 -5
  253. package/dist/functions/collectibleSet.d.ts +1 -1
  254. package/dist/functions/collectibleSet.lua +4 -5
  255. package/dist/functions/collectibleTag.d.ts +1 -2
  256. package/dist/functions/collectibleTag.lua +12 -10
  257. package/dist/functions/collectibles.d.ts +21 -28
  258. package/dist/functions/collectibles.lua +29 -26
  259. package/dist/functions/color.lua +9 -1
  260. package/dist/functions/debug.d.ts +12 -0
  261. package/dist/functions/debug.lua +3 -1
  262. package/dist/functions/deepCopy.d.ts +1 -1
  263. package/dist/functions/deepCopy.lua +4 -2
  264. package/dist/functions/direction.d.ts +4 -0
  265. package/dist/functions/direction.lua +17 -0
  266. package/dist/functions/doors.d.ts +12 -16
  267. package/dist/functions/doors.lua +34 -26
  268. package/dist/functions/easing.lua +0 -1
  269. package/dist/functions/entity.d.ts +4 -5
  270. package/dist/functions/entity.lua +4 -12
  271. package/dist/functions/entitySpecific.d.ts +35 -33
  272. package/dist/functions/entitySpecific.lua +20 -19
  273. package/dist/functions/enums.d.ts +70 -0
  274. package/dist/functions/enums.lua +71 -0
  275. package/dist/functions/familiars.d.ts +2 -2
  276. package/dist/functions/familiars.lua +0 -1
  277. package/dist/functions/flag.d.ts +42 -10
  278. package/dist/functions/flag.lua +31 -13
  279. package/dist/functions/flying.d.ts +2 -2
  280. package/dist/functions/flying.lua +20 -14
  281. package/dist/functions/globals.lua +5 -2
  282. package/dist/functions/gridEntity.d.ts +18 -16
  283. package/dist/functions/gridEntity.lua +39 -26
  284. package/dist/functions/input.d.ts +14 -4
  285. package/dist/functions/input.lua +38 -80
  286. package/dist/functions/jsonHelpers.d.ts +9 -7
  287. package/dist/functions/jsonHelpers.lua +0 -1
  288. package/dist/functions/kColor.lua +14 -3
  289. package/dist/functions/language.lua +9 -8
  290. package/dist/functions/log.d.ts +21 -15
  291. package/dist/functions/log.lua +61 -36
  292. package/dist/functions/math.d.ts +19 -8
  293. package/dist/functions/math.lua +33 -22
  294. package/dist/functions/mergeTests.lua +0 -1
  295. package/dist/functions/npc.d.ts +1 -1
  296. package/dist/functions/npc.lua +32 -16
  297. package/dist/functions/pickups.d.ts +10 -26
  298. package/dist/functions/pickups.lua +31 -29
  299. package/dist/functions/pills.d.ts +14 -13
  300. package/dist/functions/pills.lua +9 -3
  301. package/dist/functions/player.d.ts +11 -11
  302. package/dist/functions/player.lua +79 -66
  303. package/dist/functions/playerHealth.lua +19 -16
  304. package/dist/functions/playerIndex.d.ts +3 -3
  305. package/dist/functions/playerIndex.lua +9 -6
  306. package/dist/functions/pocketItems.d.ts +6 -1
  307. package/dist/functions/pocketItems.lua +30 -12
  308. package/dist/functions/positionVelocity.lua +4 -1
  309. package/dist/functions/random.d.ts +2 -3
  310. package/dist/functions/random.lua +0 -1
  311. package/dist/functions/revive.lua +18 -13
  312. package/dist/functions/roomData.d.ts +2 -2
  313. package/dist/functions/roomData.lua +11 -13
  314. package/dist/functions/roomGrid.d.ts +2 -2
  315. package/dist/functions/roomGrid.lua +0 -1
  316. package/dist/functions/roomShape.d.ts +2 -2
  317. package/dist/functions/rooms.d.ts +19 -14
  318. package/dist/functions/rooms.lua +42 -22
  319. package/dist/functions/run.d.ts +1 -1
  320. package/dist/functions/run.lua +3 -2
  321. package/dist/functions/seeds.d.ts +7 -0
  322. package/dist/functions/seeds.lua +7 -1
  323. package/dist/functions/sound.lua +4 -3
  324. package/dist/functions/spawnCollectible.d.ts +5 -5
  325. package/dist/functions/spawnCollectible.lua +7 -4
  326. package/dist/functions/sprite.d.ts +1 -1
  327. package/dist/functions/sprite.lua +3 -4
  328. package/dist/functions/stage.d.ts +4 -4
  329. package/dist/functions/stage.lua +3 -2
  330. package/dist/functions/string.d.ts +8 -1
  331. package/dist/functions/string.lua +10 -2
  332. package/dist/functions/tears.d.ts +4 -4
  333. package/dist/functions/tears.lua +0 -1
  334. package/dist/functions/transformations.d.ts +5 -3
  335. package/dist/functions/transformations.lua +31 -20
  336. package/dist/functions/trinketCacheFlag.d.ts +1 -1
  337. package/dist/functions/trinketCacheFlag.lua +8 -6
  338. package/dist/functions/trinketGive.d.ts +14 -3
  339. package/dist/functions/trinketGive.lua +46 -28
  340. package/dist/functions/trinketSet.d.ts +1 -1
  341. package/dist/functions/trinketSet.lua +4 -5
  342. package/dist/functions/trinkets.d.ts +8 -17
  343. package/dist/functions/trinkets.lua +17 -34
  344. package/dist/functions/ui.lua +7 -5
  345. package/dist/functions/utils.d.ts +1 -61
  346. package/dist/functions/utils.lua +3 -50
  347. package/dist/functions/vector.d.ts +1 -2
  348. package/dist/functions/vector.lua +8 -6
  349. package/dist/index.d.ts +4 -6
  350. package/dist/index.lua +17 -34
  351. package/dist/initCustomCallbacks.d.ts +2 -0
  352. package/dist/initCustomCallbacks.lua +133 -0
  353. package/dist/initFeatures.d.ts +3 -0
  354. package/dist/initFeatures.lua +54 -0
  355. package/dist/lualib_bundle.lua +14 -1
  356. package/dist/maps/cardMap.d.ts +1 -1
  357. package/dist/maps/characterMap.d.ts +1 -1
  358. package/dist/maps/collectibleDescriptionMap.d.ts +1 -1
  359. package/dist/maps/collectibleNameMap.d.ts +1 -1
  360. package/dist/maps/defaultPlayerStatMap.d.ts +1 -1
  361. package/dist/maps/defaultPlayerStatMap.lua +8 -6
  362. package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
  363. package/dist/maps/gridEntityTypeToBrokenStateMap.lua +19 -12
  364. package/dist/maps/gridEntityXMLMap.d.ts +1 -1
  365. package/dist/maps/gridEntityXMLMap.lua +44 -34
  366. package/dist/maps/pillEffectMap.d.ts +1 -1
  367. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
  368. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +7 -5
  369. package/dist/maps/roomTypeMap.d.ts +1 -1
  370. package/dist/maps/roomTypeMap.lua +37 -35
  371. package/dist/maps/trinketDescriptionMap.d.ts +1 -1
  372. package/dist/maps/trinketNameMap.d.ts +1 -1
  373. package/dist/objects/LRoomShapeToRectangles.d.ts +1 -1
  374. package/dist/objects/LRoomShapeToRectangles.lua +6 -5
  375. package/dist/objects/callbackRegisterFunctions.d.ts +2 -2
  376. package/dist/objects/callbackRegisterFunctions.lua +57 -52
  377. package/dist/objects/cardDescriptions.d.ts +1 -1
  378. package/dist/objects/cardDescriptions.lua +89 -90
  379. package/dist/objects/cardNames.d.ts +1 -1
  380. package/dist/objects/cardNames.lua +89 -90
  381. package/dist/objects/cardTypes.d.ts +3 -4
  382. package/dist/objects/cardTypes.lua +102 -104
  383. package/dist/objects/challengeNames.d.ts +1 -1
  384. package/dist/objects/challengeNames.lua +48 -48
  385. package/dist/objects/characterNames.d.ts +1 -1
  386. package/dist/objects/characterNames.lua +44 -44
  387. package/dist/objects/coinSubTypeToValue.d.ts +1 -1
  388. package/dist/objects/coinSubTypeToValue.lua +10 -8
  389. package/dist/objects/colors.lua +0 -1
  390. package/dist/objects/directionNames.d.ts +1 -1
  391. package/dist/objects/directionNames.lua +2 -1
  392. package/dist/objects/directionToDegrees.d.ts +1 -1
  393. package/dist/objects/directionToDegrees.lua +2 -1
  394. package/dist/objects/directionToVector.d.ts +1 -1
  395. package/dist/objects/directionToVector.lua +2 -1
  396. package/dist/objects/doorSlotFlagToDoorSlot.d.ts +5 -0
  397. package/dist/objects/doorSlotFlagToDoorSlot.lua +16 -0
  398. package/dist/objects/doorSlotToDirection.d.ts +1 -1
  399. package/dist/objects/doorSlotToDirection.lua +11 -10
  400. package/dist/objects/isaacAPIClassTypeToBrand.lua +1 -2
  401. package/dist/objects/isaacAPIClassTypeToCopyFunction.lua +1 -2
  402. package/dist/objects/pillEffectClasses.d.ts +3 -4
  403. package/dist/objects/pillEffectClasses.lua +55 -57
  404. package/dist/objects/pillEffectNames.d.ts +1 -1
  405. package/dist/objects/pillEffectNames.lua +52 -53
  406. package/dist/objects/pillEffectTypes.d.ts +3 -4
  407. package/dist/objects/pillEffectTypes.lua +54 -56
  408. package/dist/objects/roomShapeBounds.d.ts +1 -1
  409. package/dist/objects/roomShapeBounds.lua +14 -16
  410. package/dist/objects/roomShapeLayoutSizes.d.ts +1 -1
  411. package/dist/objects/roomShapeLayoutSizes.lua +14 -14
  412. package/dist/objects/roomShapeToBottomRightPosition.d.ts +1 -1
  413. package/dist/objects/roomShapeToBottomRightPosition.lua +14 -16
  414. package/dist/objects/roomShapeToDoorSlots.d.ts +1 -1
  415. package/dist/objects/roomShapeToDoorSlots.lua +35 -33
  416. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts +2 -2
  417. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +68 -66
  418. package/dist/objects/roomShapeToGridWidth.d.ts +1 -1
  419. package/dist/objects/roomShapeToGridWidth.lua +14 -14
  420. package/dist/objects/roomShapeToTopLeftPosition.d.ts +1 -1
  421. package/dist/objects/roomShapeToTopLeftPosition.lua +14 -14
  422. package/dist/objects/roomShapeVolumes.d.ts +1 -1
  423. package/dist/objects/roomShapeVolumes.lua +14 -14
  424. package/dist/objects/roomTypeNames.d.ts +1 -1
  425. package/dist/objects/roomTypeNames.lua +32 -32
  426. package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +1 -2
  427. package/dist/objects/stageTypeToLetter.d.ts +1 -1
  428. package/dist/objects/stageTypeToLetter.lua +8 -7
  429. package/dist/objects/transformationNames.d.ts +1 -1
  430. package/dist/objects/transformationNames.lua +16 -17
  431. package/dist/patchErrorFunctions.lua +1 -2
  432. package/dist/sets/LRoomShapesSet.d.ts +1 -1
  433. package/dist/sets/LRoomShapesSet.lua +3 -1
  434. package/dist/sets/bossSets.lua +241 -211
  435. package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +1 -1
  436. package/dist/sets/charactersThatStartWithAnActiveItemSet.lua +13 -11
  437. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +1 -1
  438. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -1
  439. package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +1 -1
  440. package/dist/sets/charactersWithFreeDevilDealsSet.lua +3 -1
  441. package/dist/sets/charactersWithNoRedHeartsSet.d.ts +1 -1
  442. package/dist/sets/charactersWithNoRedHeartsSet.lua +10 -8
  443. package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +1 -1
  444. package/dist/sets/charactersWithNoSoulHeartsSet.lua +7 -5
  445. package/dist/sets/chestPickupVariantsSet.d.ts +1 -1
  446. package/dist/sets/chestPickupVariantsSet.lua +14 -12
  447. package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +1 -1
  448. package/dist/sets/familiarsThatShootPlayerTearsSet.lua +2 -0
  449. package/dist/sets/lostStyleCharactersSet.d.ts +1 -1
  450. package/dist/sets/lostStyleCharactersSet.lua +7 -5
  451. package/dist/sets/redHeartSubTypesSet.d.ts +1 -1
  452. package/dist/sets/redHeartSubTypesSet.lua +3 -1
  453. package/dist/sets/sinEntityTypesSet.d.ts +1 -1
  454. package/dist/sets/sinEntityTypesSet.lua +9 -7
  455. package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +1 -1
  456. package/dist/sets/singleUseActiveCollectibleTypesSet.lua +10 -8
  457. package/dist/sets/storyBossesSet.d.ts +1 -1
  458. package/dist/sets/storyBossesSet.lua +15 -13
  459. package/dist/types/AddCallbackParameterCustom.d.ts +123 -0
  460. package/dist/types/AddCallbackParameterCustom.lua +4 -0
  461. package/dist/types/AddCallbackParametersCustom.d.ts +120 -271
  462. package/dist/types/AnyEntity.lua +0 -1
  463. package/dist/types/CollectibleIndex.lua +0 -1
  464. package/dist/types/EntityTypeNonNPC.lua +0 -1
  465. package/dist/types/JSONDoor.lua +0 -1
  466. package/dist/types/JSONEntity.lua +0 -1
  467. package/dist/types/JSONRoom.lua +0 -1
  468. package/dist/types/JSONRooms.lua +0 -1
  469. package/dist/types/JSONSpawn.lua +0 -1
  470. package/dist/types/PickingUpItem.d.ts +1 -1
  471. package/dist/types/PickingUpItem.lua +5 -3
  472. package/dist/types/PlayerHealth.d.ts +1 -1
  473. package/dist/types/PlayerHealth.lua +0 -1
  474. package/dist/types/PlayerIndex.lua +0 -1
  475. package/dist/types/PocketItemDescription.d.ts +1 -1
  476. package/dist/types/PocketItemDescription.lua +0 -1
  477. package/dist/types/Primitive.lua +0 -1
  478. package/dist/types/TrinketSituation.d.ts +1 -1
  479. package/dist/types/TrinketSituation.lua +0 -1
  480. package/dist/types/private/IsaacAPIClass.lua +0 -1
  481. package/dist/types/private/SaveData.lua +0 -1
  482. package/dist/types/private/SerializedIsaacAPIClass.lua +0 -1
  483. package/dist/types/private/TSTLClass.lua +0 -1
  484. package/dist/types/private/TSTLClassMetatable.lua +0 -1
  485. package/dist/upgradeMod.d.ts +1 -1
  486. package/dist/upgradeMod.lua +5 -178
  487. package/package.json +11 -6
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postGridEntityUpdateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postGridEntityUpdateRegister(self, callback, gridEntityType)
8
- subscriptions[#subscriptions + 1] = {callback, gridEntityType}
6
+ function ____exports.postGridEntityUpdateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postGridEntityUpdateFire(self, gridEntity)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -0,0 +1,6 @@
1
+ import { PlayerType, PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostHolyMantleRemovedRegisterParameters = [
3
+ callback: (player: EntityPlayer, oldNumHolyMantles: int, newNumHolyMantles: int) => void,
4
+ playerVariant?: PlayerVariant | int,
5
+ character?: PlayerType | int
6
+ ];
@@ -0,0 +1,28 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ function ____exports.postHolyMantleRemovedHasSubscriptions(self)
4
+ return #subscriptions > 0
5
+ end
6
+ function ____exports.postHolyMantleRemovedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
+ end
10
+ function ____exports.postHolyMantleRemovedFire(self, player, oldNumHolyMantles, newNumHolyMantles)
11
+ local character = player:GetPlayerType()
12
+ for ____, ____value in ipairs(subscriptions) do
13
+ local callback = ____value[1]
14
+ local callbackVariant = ____value[2]
15
+ local callbackCharacter = ____value[3]
16
+ do
17
+ if callbackVariant ~= nil and callbackVariant ~= player.Variant then
18
+ goto __continue5
19
+ end
20
+ if callbackCharacter ~= nil and callbackCharacter ~= character then
21
+ goto __continue5
22
+ end
23
+ callback(nil, player, oldNumHolyMantles, newNumHolyMantles)
24
+ end
25
+ ::__continue5::
26
+ end
27
+ end
28
+ return ____exports
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostItemDischargedCallbackType = (player: EntityPlayer, collectibleType: CollectibleType | int, activeSlot: ActiveSlot) => void;
1
+ import { ActiveSlot, CollectibleType } from "isaac-typescript-definitions";
2
+ export declare type PostItemDischargedRegisterParameters = [
3
+ callback: (player: EntityPlayer, collectibleType: CollectibleType | int, activeSlot: ActiveSlot) => void,
4
+ collectibleType?: CollectibleType | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postItemDischargeHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postItemDischargeRegister(self, callback, activeSlot)
8
- subscriptions[#subscriptions + 1] = {callback, activeSlot}
6
+ function ____exports.postItemDischargeRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postItemDischargeFire(self, player, collectibleType, activeSlot)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,3 +1,7 @@
1
- /// <reference types="isaac-typescript-definitions" />
1
+ import { CollectibleType, ItemType, TrinketType } from "isaac-typescript-definitions";
2
2
  import { PickingUpItem } from "../../types/PickingUpItem";
3
- export declare type PostItemPickupCallbackType = (player: EntityPlayer, pickingUpItem: PickingUpItem) => void;
3
+ export declare type PostItemPickupRegisterParameters = [
4
+ callback: (player: EntityPlayer, pickingUpItem: PickingUpItem) => void,
5
+ itemType?: ItemType,
6
+ itemID?: CollectibleType | TrinketType | int
7
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postItemPickupHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postItemPickupRegister(self, callback, itemType, itemID)
8
- subscriptions[#subscriptions + 1] = {callback, itemType, itemID}
6
+ function ____exports.postItemPickupRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postItemPickupFire(self, player, pickingUpItem)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostKnifeInitLateCallbackType = (knife: EntityKnife) => void;
1
+ import { KnifeVariant } from "isaac-typescript-definitions";
2
+ export declare type PostKnifeInitLateRegisterParameters = [
3
+ callback: (knife: EntityKnife) => void,
4
+ knifeVariant?: KnifeVariant | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postKnifeInitLateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postKnifeInitLateRegister(self, callback, knifeVariant)
8
- subscriptions[#subscriptions + 1] = {callback, knifeVariant}
6
+ function ____exports.postKnifeInitLateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postKnifeInitLateFire(self, knife)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostLaserInitLateCallbackType = (laser: EntityLaser) => void;
1
+ import { LaserVariant } from "isaac-typescript-definitions";
2
+ export declare type PostLaserInitLateRegisterParameters = [
3
+ callback: (laser: EntityLaser) => void,
4
+ laserVariant?: LaserVariant | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postLaserInitLateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postLaserInitLateRegister(self, callback, laserVariant)
8
- subscriptions[#subscriptions + 1] = {callback, laserVariant}
6
+ function ____exports.postLaserInitLateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postLaserInitLateFire(self, laser)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostNPCInitLateCallbackType = (npc: EntityNPC) => void;
1
+ import { EntityType } from "isaac-typescript-definitions";
2
+ export declare type PostNPCInitLateRegisterParameters = [
3
+ callback: (npc: EntityNPC) => void,
4
+ entityType?: EntityType | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postNPCInitLateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postNPCInitLateRegister(self, callback, entityType)
8
- subscriptions[#subscriptions + 1] = {callback, entityType}
6
+ function ____exports.postNPCInitLateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postNPCInitLateFire(self, npc)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,6 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostNPCStateChangedCallbackType = (npc: EntityNPC, previousState: int, currentState: int) => void;
1
+ import { EntityType } from "isaac-typescript-definitions";
2
+ export declare type PostNPCStateChangedRegisterParameters = [
3
+ callback: (npc: EntityNPC, previousState: int, currentState: int) => void,
4
+ entityType?: EntityType | int,
5
+ variant?: int
6
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postNPCStateChangedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postNPCStateChangedRegister(self, callback, entityType, variant)
8
- subscriptions[#subscriptions + 1] = {callback, entityType, variant}
6
+ function ____exports.postNPCStateChangedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postNPCStateChangedFire(self, npc, previousState, currentState)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1 +1 @@
1
- export declare type PostNewLevelReorderedCallbackType = () => void;
1
+ export declare type PostNewLevelReorderedRegisterParameters = [callback: () => void];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postNewLevelReorderedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postNewLevelReorderedRegister(self, callback)
8
- subscriptions[#subscriptions + 1] = {callback}
6
+ function ____exports.postNewLevelReorderedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postNewLevelReorderedFire(self)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1 +1 @@
1
- export declare type PostNewRoomEarlyCallbackType = () => void;
1
+ export declare type PostNewRoomEarlyRegisterParameters = [callback: () => void];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postNewRoomEarlyHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postNewRoomEarlyRegister(self, callback)
8
- subscriptions[#subscriptions + 1] = {callback}
6
+ function ____exports.postNewRoomEarlyRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postNewRoomEarlyFire(self)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1 +1 @@
1
- export declare type PostNewRoomReorderedCallbackType = () => void;
1
+ export declare type PostNewRoomReorderedRegisterParameters = [callback: () => void];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postNewRoomReorderedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postNewRoomReorderedRegister(self, callback)
8
- subscriptions[#subscriptions + 1] = {callback}
6
+ function ____exports.postNewRoomReorderedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postNewRoomReorderedFire(self)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,6 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPEffectUpdateReorderedCallbackType = (player: EntityPlayer) => void;
1
+ import { PlayerType, PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPEffectUpdateReorderedRegisterParameters = [
3
+ callback: (player: EntityPlayer) => void,
4
+ playerVariant?: PlayerVariant | int,
5
+ character?: PlayerType | int
6
+ ];
@@ -1,18 +1,22 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPEffectUpdateReorderedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPEffectUpdateReorderedRegister(self, callback, character)
8
- subscriptions[#subscriptions + 1] = {callback, character}
6
+ function ____exports.postPEffectUpdateReorderedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPEffectUpdateReorderedFire(self, player)
11
11
  local character = player:GetPlayerType()
12
12
  for ____, ____value in ipairs(subscriptions) do
13
13
  local callback = ____value[1]
14
- local callbackCharacter = ____value[2]
14
+ local callbackVariant = ____value[2]
15
+ local callbackCharacter = ____value[3]
15
16
  do
17
+ if callbackVariant ~= nil and callbackVariant ~= player.Variant then
18
+ goto __continue5
19
+ end
16
20
  if callbackCharacter ~= nil and callbackCharacter ~= character then
17
21
  goto __continue5
18
22
  end
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPickupCollectCallbackType = (pickup: EntityPickup, player: EntityPlayer) => void;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupCollectRegisterParameters = [
3
+ callback: (pickup: EntityPickup, player: EntityPlayer) => void,
4
+ pickupVariant?: PickupVariant | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPickupCollectHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPickupCollectRegister(self, callback, pickupVariant)
8
- subscriptions[#subscriptions + 1] = {callback, pickupVariant}
6
+ function ____exports.postPickupCollectRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPickupCollectFire(self, pickup, player)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPickupInitLateCallbackType = (pickup: EntityPickup) => void;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupInitLateRegisterParameters = [
3
+ callback: (pickup: EntityPickup) => void,
4
+ pickupVariant?: PickupVariant | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPickupInitLateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPickupInitLateRegister(self, callback, pickupVariant)
8
- subscriptions[#subscriptions + 1] = {callback, pickupVariant}
6
+ function ____exports.postPickupInitLateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPickupInitLateFire(self, pickup)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPickupStateChangedCallbackType = (pickup: EntityPickup, previousState: int, currentState: int) => void;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPickupStateChangedRegisterParameters = [
3
+ callback: (pickup: EntityPickup, previousState: int, currentState: int) => void,
4
+ pickupVariant?: PickupVariant
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPickupStateChangedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPickupStateChangedRegister(self, callback, pickupVariant)
8
- subscriptions[#subscriptions + 1] = {callback, pickupVariant}
6
+ function ____exports.postPickupStateChangedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPickupStateChangedFire(self, pickup, previousState, currentState)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,3 +1,6 @@
1
- /// <reference types="isaac-typescript-definitions" />
1
+ import { PlayerVariant } from "isaac-typescript-definitions";
2
2
  import { HealthType } from "../../enums/HealthType";
3
- export declare type PostPlayerChangeHealthCallbackType = (player: EntityPlayer, healthType: HealthType, amount: int) => void;
3
+ export declare type PostPlayerChangeHealthRegisterParameters = [
4
+ callback: (player: EntityPlayer, healthType: HealthType, amount: int) => void,
5
+ playerVariant?: PlayerVariant
6
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerChangeHealthHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerChangeHealthRegister(self, callback, playerVariant)
8
- subscriptions[#subscriptions + 1] = {callback, playerVariant}
6
+ function ____exports.postPlayerChangeHealthRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerChangeHealthFire(self, player, healthType, amount)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,4 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerChangeTypeCallbackType = (player: EntityPlayer, oldCharacter: PlayerType | int, newCharacter: PlayerType | int) => void;
1
+ import { PlayerType } from "isaac-typescript-definitions";
2
+ export declare type PostPlayerChangeTypeRegisterParameters = [
3
+ callback: (player: EntityPlayer, oldCharacter: PlayerType | int, newCharacter: PlayerType | int) => void
4
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerChangeTypeHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerChangeTypeRegister(self, callback)
8
- subscriptions[#subscriptions + 1] = {callback}
6
+ function ____exports.postPlayerChangeTypeRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerChangeTypeFire(self, player, oldCharacter, newCharacter)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerFatalDamageCallbackType = (player: EntityPlayer, damageAmount: float, damageFlags: int, damageSource: EntityRef, damageCountdownFrames: int) => boolean | void;
1
+ import { DamageFlag, PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPlayerFatalDamageRegisterParameters = [
3
+ callback: (player: EntityPlayer, damageAmount: float, damageFlags: BitFlags<DamageFlag>, damageSource: EntityRef, damageCountdownFrames: int) => boolean | void,
4
+ playerVariant?: PlayerVariant
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerFatalDamageHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerFatalDamageRegister(self, callback, playerVariant)
8
- subscriptions[#subscriptions + 1] = {callback, playerVariant}
6
+ function ____exports.postPlayerFatalDamageRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerFatalDamageFire(self, player, damageAmount, damageFlags, damageSource, damageCountdownFrames)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerInitLateCallbackType = (player: EntityPlayer) => void;
1
+ import { PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPlayerInitLateRegisterParameters = [
3
+ callback: (player: EntityPlayer) => void,
4
+ playerVariant?: PlayerVariant
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerInitLateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerInitLateRegister(self, callback, playerVariant)
8
- subscriptions[#subscriptions + 1] = {callback, playerVariant}
6
+ function ____exports.postPlayerInitLateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerInitLateFire(self, player)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerInitReorderedCallbackType = (player: EntityPlayer) => void;
1
+ import { PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPlayerInitReorderedRegisterParameters = [
3
+ callback: (player: EntityPlayer) => void,
4
+ playerVariant?: PlayerVariant
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerInitReorderedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerInitReorderedRegister(self, callback, playerVariant)
8
- subscriptions[#subscriptions + 1] = {callback, playerVariant}
6
+ function ____exports.postPlayerInitReorderedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerInitReorderedFire(self, player)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerRenderReorderedCallbackType = (player: EntityPlayer) => void;
1
+ import { PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPlayerRenderReorderedRegisterParameters = [
3
+ callback: (player: EntityPlayer) => void,
4
+ playerVariant?: PlayerVariant
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerRenderReorderedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerRenderReorderedRegister(self, callback, playerVariant)
8
- subscriptions[#subscriptions + 1] = {callback, playerVariant}
6
+ function ____exports.postPlayerRenderReorderedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerRenderReorderedFire(self, player)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerUpdateReorderedCallbackType = (player: EntityPlayer) => void;
1
+ import { PlayerVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPlayerUpdateReorderedRegisterParameters = [
3
+ callback: (player: EntityPlayer) => void,
4
+ playerVariant?: PlayerVariant
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPlayerUpdateReorderedHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPlayerUpdateReorderedRegister(self, callback, playerVariant)
8
- subscriptions[#subscriptions + 1] = {callback, playerVariant}
6
+ function ____exports.postPlayerUpdateReorderedRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPlayerUpdateReorderedFire(self, player)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,5 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostProjectileInitLateCallbackType = (projectile: EntityProjectile) => void;
1
+ import { ProjectileVariant } from "isaac-typescript-definitions";
2
+ export declare type PostProjectileInitLateRegisterParameters = [
3
+ callback: (projectile: EntityProjectile) => void,
4
+ projectileVariant?: ProjectileVariant | int
5
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postProjectileInitLateHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postProjectileInitLateRegister(self, callback, projectileVariant)
8
- subscriptions[#subscriptions + 1] = {callback, projectileVariant}
6
+ function ____exports.postProjectileInitLateRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postProjectileInitLateFire(self, projectile)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -1,2 +1,6 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPurchaseCallbackType = (player: EntityPlayer, pickup: EntityPickup) => void;
1
+ import { PickupVariant } from "isaac-typescript-definitions";
2
+ export declare type PostPurchaseRegisterParameters = [
3
+ callback: (player: EntityPlayer, pickup: EntityPickup) => void,
4
+ pickupVariant?: PickupVariant | int,
5
+ pickupSubType?: int
6
+ ];
@@ -1,11 +1,11 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local subscriptions = {}
4
3
  function ____exports.postPurchaseHasSubscriptions(self)
5
4
  return #subscriptions > 0
6
5
  end
7
- function ____exports.postPurchaseRegister(self, callback, pickupVariant, pickupSubType)
8
- subscriptions[#subscriptions + 1] = {callback, pickupVariant, pickupSubType}
6
+ function ____exports.postPurchaseRegister(self, ...)
7
+ local args = {...}
8
+ subscriptions[#subscriptions + 1] = args
9
9
  end
10
10
  function ____exports.postPurchaseFire(self, player, pickup)
11
11
  for ____, ____value in ipairs(subscriptions) do
@@ -0,0 +1,3 @@
1
+ export declare type PostRoomClearChangedRegisterParameters = [
2
+ callback: (roomClear: boolean) => void
3
+ ];