isaacscript-common 9.13.5-dev.2 → 9.14.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 (1264) hide show
  1. package/dist/callbacks/customRevive.d.ts +0 -1
  2. package/dist/callbacks/customRevive.d.ts.map +1 -1
  3. package/dist/callbacks/customRevive.lua +45 -39
  4. package/dist/callbacks/itemPickup.d.ts +0 -1
  5. package/dist/callbacks/itemPickup.d.ts.map +1 -1
  6. package/dist/callbacks/itemPickup.lua +16 -16
  7. package/dist/callbacks/postAmbush.d.ts +0 -1
  8. package/dist/callbacks/postAmbush.d.ts.map +1 -1
  9. package/dist/callbacks/postAmbush.lua +12 -12
  10. package/dist/callbacks/postBombExploded.d.ts +0 -1
  11. package/dist/callbacks/postBombExploded.d.ts.map +1 -1
  12. package/dist/callbacks/postBombExploded.lua +6 -6
  13. package/dist/callbacks/postBombInitLate.d.ts +0 -1
  14. package/dist/callbacks/postBombInitLate.d.ts.map +1 -1
  15. package/dist/callbacks/postBombInitLate.lua +7 -7
  16. package/dist/callbacks/postBoneSwing.d.ts +0 -1
  17. package/dist/callbacks/postBoneSwing.d.ts.map +1 -1
  18. package/dist/callbacks/postBoneSwing.lua +11 -11
  19. package/dist/callbacks/postCollectibleEmpty.d.ts +0 -1
  20. package/dist/callbacks/postCollectibleEmpty.d.ts.map +1 -1
  21. package/dist/callbacks/postCollectibleEmpty.lua +6 -6
  22. package/dist/callbacks/postCollectibleInitFirst.d.ts +0 -1
  23. package/dist/callbacks/postCollectibleInitFirst.d.ts.map +1 -1
  24. package/dist/callbacks/postCollectibleInitFirst.lua +7 -7
  25. package/dist/callbacks/postCursedTeleport.d.ts +0 -1
  26. package/dist/callbacks/postCursedTeleport.d.ts.map +1 -1
  27. package/dist/callbacks/postCursedTeleport.lua +24 -24
  28. package/dist/callbacks/postCustomDoorEnter.d.ts +0 -1
  29. package/dist/callbacks/postCustomDoorEnter.d.ts.map +1 -1
  30. package/dist/callbacks/postCustomDoorEnter.lua +34 -28
  31. package/dist/callbacks/postDiceRoomActivated.d.ts +0 -1
  32. package/dist/callbacks/postDiceRoomActivated.d.ts.map +1 -1
  33. package/dist/callbacks/postDiceRoomActivated.lua +9 -9
  34. package/dist/callbacks/postDoorRender.d.ts +0 -1
  35. package/dist/callbacks/postDoorRender.d.ts.map +1 -1
  36. package/dist/callbacks/postDoorRender.lua +7 -7
  37. package/dist/callbacks/postDoorUpdate.d.ts +0 -1
  38. package/dist/callbacks/postDoorUpdate.d.ts.map +1 -1
  39. package/dist/callbacks/postDoorUpdate.lua +7 -7
  40. package/dist/callbacks/postEffectInitLate.d.ts +0 -1
  41. package/dist/callbacks/postEffectInitLate.d.ts.map +1 -1
  42. package/dist/callbacks/postEffectInitLate.lua +7 -7
  43. package/dist/callbacks/postEffectStateChanged.d.ts +0 -1
  44. package/dist/callbacks/postEffectStateChanged.d.ts.map +1 -1
  45. package/dist/callbacks/postEffectStateChanged.lua +8 -8
  46. package/dist/callbacks/postEsauJr.d.ts +0 -1
  47. package/dist/callbacks/postEsauJr.d.ts.map +1 -1
  48. package/dist/callbacks/postEsauJr.lua +11 -11
  49. package/dist/callbacks/postFamiliarInitLate.d.ts +0 -1
  50. package/dist/callbacks/postFamiliarInitLate.d.ts.map +1 -1
  51. package/dist/callbacks/postFamiliarInitLate.lua +7 -7
  52. package/dist/callbacks/postFamiliarStateChanged.d.ts +0 -1
  53. package/dist/callbacks/postFamiliarStateChanged.d.ts.map +1 -1
  54. package/dist/callbacks/postFamiliarStateChanged.lua +8 -8
  55. package/dist/callbacks/postFlip.d.ts +0 -1
  56. package/dist/callbacks/postFlip.d.ts.map +1 -1
  57. package/dist/callbacks/postFlip.lua +12 -12
  58. package/dist/callbacks/postGreedModeWave.d.ts +0 -1
  59. package/dist/callbacks/postGreedModeWave.d.ts.map +1 -1
  60. package/dist/callbacks/postGreedModeWave.lua +7 -7
  61. package/dist/callbacks/postGridEntity.d.ts +0 -1
  62. package/dist/callbacks/postGridEntity.d.ts.map +1 -1
  63. package/dist/callbacks/postGridEntity.lua +41 -35
  64. package/dist/callbacks/postGridEntityCollision.d.ts +0 -1
  65. package/dist/callbacks/postGridEntityCollision.d.ts.map +1 -1
  66. package/dist/callbacks/postGridEntityCollision.lua +9 -9
  67. package/dist/callbacks/postGridEntityCustomCollision.d.ts +0 -1
  68. package/dist/callbacks/postGridEntityCustomCollision.d.ts.map +1 -1
  69. package/dist/callbacks/postGridEntityCustomCollision.lua +9 -9
  70. package/dist/callbacks/postGridEntityCustomRender.d.ts +0 -1
  71. package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -1
  72. package/dist/callbacks/postGridEntityCustomRender.lua +7 -7
  73. package/dist/callbacks/postGridEntityCustomUpdate.d.ts +0 -1
  74. package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -1
  75. package/dist/callbacks/postGridEntityCustomUpdate.lua +7 -7
  76. package/dist/callbacks/postGridEntityRender.d.ts +0 -1
  77. package/dist/callbacks/postGridEntityRender.d.ts.map +1 -1
  78. package/dist/callbacks/postGridEntityRender.lua +7 -7
  79. package/dist/callbacks/postHolyMantleRemoved.d.ts +0 -1
  80. package/dist/callbacks/postHolyMantleRemoved.d.ts.map +1 -1
  81. package/dist/callbacks/postHolyMantleRemoved.lua +9 -9
  82. package/dist/callbacks/postItemDischarged.d.ts +0 -1
  83. package/dist/callbacks/postItemDischarged.d.ts.map +1 -1
  84. package/dist/callbacks/postItemDischarged.lua +18 -18
  85. package/dist/callbacks/postKnifeInitLate.d.ts +0 -1
  86. package/dist/callbacks/postKnifeInitLate.d.ts.map +1 -1
  87. package/dist/callbacks/postKnifeInitLate.lua +7 -7
  88. package/dist/callbacks/postLaserInitLate.d.ts +0 -1
  89. package/dist/callbacks/postLaserInitLate.d.ts.map +1 -1
  90. package/dist/callbacks/postLaserInitLate.lua +7 -7
  91. package/dist/callbacks/postNPCInitLate.d.ts +0 -1
  92. package/dist/callbacks/postNPCInitLate.d.ts.map +1 -1
  93. package/dist/callbacks/postNPCInitLate.lua +7 -7
  94. package/dist/callbacks/postNPCStateChanged.d.ts +0 -1
  95. package/dist/callbacks/postNPCStateChanged.d.ts.map +1 -1
  96. package/dist/callbacks/postNPCStateChanged.lua +8 -8
  97. package/dist/callbacks/postNewRoomEarly.d.ts +0 -1
  98. package/dist/callbacks/postNewRoomEarly.d.ts.map +1 -1
  99. package/dist/callbacks/postNewRoomEarly.lua +16 -16
  100. package/dist/callbacks/postPickupCollect.d.ts +0 -1
  101. package/dist/callbacks/postPickupCollect.d.ts.map +1 -1
  102. package/dist/callbacks/postPickupCollect.lua +8 -8
  103. package/dist/callbacks/postPickupInitFirst.d.ts +0 -1
  104. package/dist/callbacks/postPickupInitFirst.d.ts.map +1 -1
  105. package/dist/callbacks/postPickupInitFirst.lua +8 -8
  106. package/dist/callbacks/postPickupInitLate.d.ts +0 -1
  107. package/dist/callbacks/postPickupInitLate.d.ts.map +1 -1
  108. package/dist/callbacks/postPickupInitLate.lua +7 -7
  109. package/dist/callbacks/postPickupStateChanged.d.ts +0 -1
  110. package/dist/callbacks/postPickupStateChanged.d.ts.map +1 -1
  111. package/dist/callbacks/postPickupStateChanged.lua +8 -8
  112. package/dist/callbacks/postPitRender.d.ts +0 -1
  113. package/dist/callbacks/postPitRender.d.ts.map +1 -1
  114. package/dist/callbacks/postPitRender.lua +7 -7
  115. package/dist/callbacks/postPitUpdate.d.ts +0 -1
  116. package/dist/callbacks/postPitUpdate.d.ts.map +1 -1
  117. package/dist/callbacks/postPitUpdate.lua +7 -7
  118. package/dist/callbacks/postPlayerChangeHealth.d.ts +0 -1
  119. package/dist/callbacks/postPlayerChangeHealth.d.ts.map +1 -1
  120. package/dist/callbacks/postPlayerChangeHealth.lua +10 -9
  121. package/dist/callbacks/postPlayerChangeStat.d.ts +0 -1
  122. package/dist/callbacks/postPlayerChangeStat.d.ts.map +1 -1
  123. package/dist/callbacks/postPlayerChangeStat.lua +20 -19
  124. package/dist/callbacks/postPlayerChangeType.d.ts +0 -1
  125. package/dist/callbacks/postPlayerChangeType.d.ts.map +1 -1
  126. package/dist/callbacks/postPlayerChangeType.lua +10 -10
  127. package/dist/callbacks/postPlayerCollectible.d.ts +0 -1
  128. package/dist/callbacks/postPlayerCollectible.d.ts.map +1 -1
  129. package/dist/callbacks/postPlayerCollectible.lua +40 -36
  130. package/dist/callbacks/postPlayerFatalDamage.d.ts +0 -1
  131. package/dist/callbacks/postPlayerFatalDamage.d.ts.map +1 -1
  132. package/dist/callbacks/postPlayerFatalDamage.lua +22 -14
  133. package/dist/callbacks/postPlayerInitFirst.d.ts +0 -1
  134. package/dist/callbacks/postPlayerInitFirst.d.ts.map +1 -1
  135. package/dist/callbacks/postPlayerInitFirst.lua +12 -12
  136. package/dist/callbacks/postPlayerInitLate.d.ts +0 -1
  137. package/dist/callbacks/postPlayerInitLate.d.ts.map +1 -1
  138. package/dist/callbacks/postPlayerInitLate.lua +9 -9
  139. package/dist/callbacks/postPlayerReorderedCallbacks.d.ts +0 -1
  140. package/dist/callbacks/postPlayerReorderedCallbacks.d.ts.map +1 -1
  141. package/dist/callbacks/postPlayerReorderedCallbacks.lua +25 -25
  142. package/dist/callbacks/postPoopRender.d.ts +0 -1
  143. package/dist/callbacks/postPoopRender.d.ts.map +1 -1
  144. package/dist/callbacks/postPoopRender.lua +7 -7
  145. package/dist/callbacks/postPoopUpdate.d.ts +0 -1
  146. package/dist/callbacks/postPoopUpdate.d.ts.map +1 -1
  147. package/dist/callbacks/postPoopUpdate.lua +7 -7
  148. package/dist/callbacks/postPressurePlateRender.d.ts +0 -1
  149. package/dist/callbacks/postPressurePlateRender.d.ts.map +1 -1
  150. package/dist/callbacks/postPressurePlateRender.lua +7 -7
  151. package/dist/callbacks/postPressurePlateUpdate.d.ts +0 -1
  152. package/dist/callbacks/postPressurePlateUpdate.d.ts.map +1 -1
  153. package/dist/callbacks/postPressurePlateUpdate.lua +7 -7
  154. package/dist/callbacks/postProjectileInitLate.d.ts +0 -1
  155. package/dist/callbacks/postProjectileInitLate.d.ts.map +1 -1
  156. package/dist/callbacks/postProjectileInitLate.lua +7 -7
  157. package/dist/callbacks/postPurchase.d.ts +0 -1
  158. package/dist/callbacks/postPurchase.d.ts.map +1 -1
  159. package/dist/callbacks/postPurchase.lua +12 -12
  160. package/dist/callbacks/postRockRender.d.ts +0 -1
  161. package/dist/callbacks/postRockRender.d.ts.map +1 -1
  162. package/dist/callbacks/postRockRender.lua +7 -7
  163. package/dist/callbacks/postRockUpdate.d.ts +0 -1
  164. package/dist/callbacks/postRockUpdate.d.ts.map +1 -1
  165. package/dist/callbacks/postRockUpdate.lua +7 -7
  166. package/dist/callbacks/postRoomClearChanged.d.ts +0 -1
  167. package/dist/callbacks/postRoomClearChanged.d.ts.map +1 -1
  168. package/dist/callbacks/postRoomClearChanged.lua +9 -9
  169. package/dist/callbacks/postSacrifice.d.ts +0 -1
  170. package/dist/callbacks/postSacrifice.d.ts.map +1 -1
  171. package/dist/callbacks/postSacrifice.lua +8 -8
  172. package/dist/callbacks/postSlotCollision.d.ts +0 -1
  173. package/dist/callbacks/postSlotCollision.d.ts.map +1 -1
  174. package/dist/callbacks/postSlotCollision.lua +7 -7
  175. package/dist/callbacks/postSlotDestroyed.d.ts +0 -1
  176. package/dist/callbacks/postSlotDestroyed.d.ts.map +1 -1
  177. package/dist/callbacks/postSlotDestroyed.lua +8 -8
  178. package/dist/callbacks/postSlotInitUpdate.d.ts +0 -1
  179. package/dist/callbacks/postSlotInitUpdate.d.ts.map +1 -1
  180. package/dist/callbacks/postSlotInitUpdate.lua +15 -15
  181. package/dist/callbacks/postSlotRender.d.ts +0 -1
  182. package/dist/callbacks/postSlotRender.d.ts.map +1 -1
  183. package/dist/callbacks/postSlotRender.lua +12 -12
  184. package/dist/callbacks/postSpikesRender.d.ts +0 -1
  185. package/dist/callbacks/postSpikesRender.d.ts.map +1 -1
  186. package/dist/callbacks/postSpikesRender.lua +7 -7
  187. package/dist/callbacks/postSpikesUpdate.d.ts +0 -1
  188. package/dist/callbacks/postSpikesUpdate.d.ts.map +1 -1
  189. package/dist/callbacks/postSpikesUpdate.lua +7 -7
  190. package/dist/callbacks/postTNTRender.d.ts +0 -1
  191. package/dist/callbacks/postTNTRender.d.ts.map +1 -1
  192. package/dist/callbacks/postTNTRender.lua +7 -7
  193. package/dist/callbacks/postTNTUpdate.d.ts +0 -1
  194. package/dist/callbacks/postTNTUpdate.d.ts.map +1 -1
  195. package/dist/callbacks/postTNTUpdate.lua +7 -7
  196. package/dist/callbacks/postTearInitLate.d.ts +0 -1
  197. package/dist/callbacks/postTearInitLate.d.ts.map +1 -1
  198. package/dist/callbacks/postTearInitLate.lua +7 -7
  199. package/dist/callbacks/postTearInitVeryLate.d.ts +0 -1
  200. package/dist/callbacks/postTearInitVeryLate.d.ts.map +1 -1
  201. package/dist/callbacks/postTearInitVeryLate.lua +7 -7
  202. package/dist/callbacks/postTransformation.d.ts +0 -1
  203. package/dist/callbacks/postTransformation.d.ts.map +1 -1
  204. package/dist/callbacks/postTransformation.lua +9 -9
  205. package/dist/callbacks/postTrinketBreak.d.ts +0 -1
  206. package/dist/callbacks/postTrinketBreak.d.ts.map +1 -1
  207. package/dist/callbacks/postTrinketBreak.lua +11 -11
  208. package/dist/callbacks/preBerserkDeath.d.ts +0 -1
  209. package/dist/callbacks/preBerserkDeath.d.ts.map +1 -1
  210. package/dist/callbacks/preBerserkDeath.lua +9 -9
  211. package/dist/callbacks/preNewLevel.d.ts +0 -1
  212. package/dist/callbacks/preNewLevel.d.ts.map +1 -1
  213. package/dist/callbacks/preNewLevel.lua +8 -8
  214. package/dist/callbacks/reorderedCallbacks.d.ts +0 -1
  215. package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
  216. package/dist/callbacks/reorderedCallbacks.lua +26 -26
  217. package/dist/callbacks/subscriptions/postAmbushFinished.d.ts +0 -1
  218. package/dist/callbacks/subscriptions/postAmbushFinished.d.ts.map +1 -1
  219. package/dist/callbacks/subscriptions/postAmbushFinished.lua +4 -4
  220. package/dist/callbacks/subscriptions/postAmbushStarted.d.ts +0 -1
  221. package/dist/callbacks/subscriptions/postAmbushStarted.d.ts.map +1 -1
  222. package/dist/callbacks/subscriptions/postAmbushStarted.lua +4 -4
  223. package/dist/callbacks/subscriptions/postBombInitLate.d.ts +0 -1
  224. package/dist/callbacks/subscriptions/postBombInitLate.d.ts.map +1 -1
  225. package/dist/callbacks/subscriptions/postBombInitLate.lua +4 -4
  226. package/dist/callbacks/subscriptions/postBoneExploded.d.ts +0 -1
  227. package/dist/callbacks/subscriptions/postBoneExploded.d.ts.map +1 -1
  228. package/dist/callbacks/subscriptions/postBoneExploded.lua +4 -4
  229. package/dist/callbacks/subscriptions/postBoneSwing.d.ts +0 -1
  230. package/dist/callbacks/subscriptions/postBoneSwing.d.ts.map +1 -1
  231. package/dist/callbacks/subscriptions/postBoneSwing.lua +4 -4
  232. package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts +0 -1
  233. package/dist/callbacks/subscriptions/postCollectibleEmpty.d.ts.map +1 -1
  234. package/dist/callbacks/subscriptions/postCollectibleEmpty.lua +4 -4
  235. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +0 -1
  236. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts.map +1 -1
  237. package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +4 -4
  238. package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +0 -1
  239. package/dist/callbacks/subscriptions/postCursedTeleport.d.ts.map +1 -1
  240. package/dist/callbacks/subscriptions/postCursedTeleport.lua +4 -4
  241. package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +0 -1
  242. package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts.map +1 -1
  243. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +10 -4
  244. package/dist/callbacks/subscriptions/postCustomRevive.d.ts +0 -1
  245. package/dist/callbacks/subscriptions/postCustomRevive.d.ts.map +1 -1
  246. package/dist/callbacks/subscriptions/postCustomRevive.lua +4 -4
  247. package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts +0 -1
  248. package/dist/callbacks/subscriptions/postDiceRoomActivated.d.ts.map +1 -1
  249. package/dist/callbacks/subscriptions/postDiceRoomActivated.lua +4 -4
  250. package/dist/callbacks/subscriptions/postDoorRender.d.ts +0 -1
  251. package/dist/callbacks/subscriptions/postDoorRender.d.ts.map +1 -1
  252. package/dist/callbacks/subscriptions/postDoorRender.lua +4 -4
  253. package/dist/callbacks/subscriptions/postDoorUpdate.d.ts +0 -1
  254. package/dist/callbacks/subscriptions/postDoorUpdate.d.ts.map +1 -1
  255. package/dist/callbacks/subscriptions/postDoorUpdate.lua +4 -4
  256. package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +0 -1
  257. package/dist/callbacks/subscriptions/postEffectInitLate.d.ts.map +1 -1
  258. package/dist/callbacks/subscriptions/postEffectInitLate.lua +4 -4
  259. package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +0 -1
  260. package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts.map +1 -1
  261. package/dist/callbacks/subscriptions/postEffectStateChanged.lua +4 -4
  262. package/dist/callbacks/subscriptions/postEsauJr.d.ts +0 -1
  263. package/dist/callbacks/subscriptions/postEsauJr.d.ts.map +1 -1
  264. package/dist/callbacks/subscriptions/postEsauJr.lua +4 -4
  265. package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +0 -1
  266. package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts.map +1 -1
  267. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +4 -4
  268. package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +0 -1
  269. package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts.map +1 -1
  270. package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +4 -4
  271. package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +0 -1
  272. package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts.map +1 -1
  273. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +4 -4
  274. package/dist/callbacks/subscriptions/postFirstFlip.d.ts +0 -1
  275. package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -1
  276. package/dist/callbacks/subscriptions/postFirstFlip.lua +4 -4
  277. package/dist/callbacks/subscriptions/postFlip.d.ts +0 -1
  278. package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -1
  279. package/dist/callbacks/subscriptions/postFlip.lua +4 -4
  280. package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +0 -1
  281. package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts.map +1 -1
  282. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +4 -4
  283. package/dist/callbacks/subscriptions/postGameStartedReorderedLast.d.ts +0 -1
  284. package/dist/callbacks/subscriptions/postGameStartedReorderedLast.d.ts.map +1 -1
  285. package/dist/callbacks/subscriptions/postGameStartedReorderedLast.lua +4 -4
  286. package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +0 -1
  287. package/dist/callbacks/subscriptions/postGreedModeWave.d.ts.map +1 -1
  288. package/dist/callbacks/subscriptions/postGreedModeWave.lua +4 -4
  289. package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +0 -1
  290. package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts.map +1 -1
  291. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +4 -4
  292. package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +0 -1
  293. package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts.map +1 -1
  294. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +4 -4
  295. package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts +0 -1
  296. package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts.map +1 -1
  297. package/dist/callbacks/subscriptions/postGridEntityCustomBroken.lua +4 -4
  298. package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts +0 -1
  299. package/dist/callbacks/subscriptions/postGridEntityCustomCollision.d.ts.map +1 -1
  300. package/dist/callbacks/subscriptions/postGridEntityCustomCollision.lua +4 -4
  301. package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts +0 -1
  302. package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts.map +1 -1
  303. package/dist/callbacks/subscriptions/postGridEntityCustomInit.lua +4 -4
  304. package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts +0 -1
  305. package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts.map +1 -1
  306. package/dist/callbacks/subscriptions/postGridEntityCustomRemove.lua +4 -4
  307. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +0 -1
  308. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -1
  309. package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +4 -4
  310. package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts +0 -1
  311. package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts.map +1 -1
  312. package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.lua +10 -4
  313. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +0 -1
  314. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -1
  315. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +4 -4
  316. package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +0 -1
  317. package/dist/callbacks/subscriptions/postGridEntityInit.d.ts.map +1 -1
  318. package/dist/callbacks/subscriptions/postGridEntityInit.lua +4 -4
  319. package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +0 -1
  320. package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts.map +1 -1
  321. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +4 -4
  322. package/dist/callbacks/subscriptions/postGridEntityRender.d.ts +0 -1
  323. package/dist/callbacks/subscriptions/postGridEntityRender.d.ts.map +1 -1
  324. package/dist/callbacks/subscriptions/postGridEntityRender.lua +4 -4
  325. package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +0 -1
  326. package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts.map +1 -1
  327. package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +4 -4
  328. package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +0 -1
  329. package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts.map +1 -1
  330. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +4 -4
  331. package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +0 -1
  332. package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts.map +1 -1
  333. package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +4 -4
  334. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +0 -1
  335. package/dist/callbacks/subscriptions/postItemDischarged.d.ts.map +1 -1
  336. package/dist/callbacks/subscriptions/postItemDischarged.lua +4 -4
  337. package/dist/callbacks/subscriptions/postItemPickup.d.ts +0 -1
  338. package/dist/callbacks/subscriptions/postItemPickup.d.ts.map +1 -1
  339. package/dist/callbacks/subscriptions/postItemPickup.lua +4 -4
  340. package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +0 -1
  341. package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts.map +1 -1
  342. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +4 -4
  343. package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +0 -1
  344. package/dist/callbacks/subscriptions/postLaserInitLate.d.ts.map +1 -1
  345. package/dist/callbacks/subscriptions/postLaserInitLate.lua +4 -4
  346. package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +0 -1
  347. package/dist/callbacks/subscriptions/postNPCInitLate.d.ts.map +1 -1
  348. package/dist/callbacks/subscriptions/postNPCInitLate.lua +4 -4
  349. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +0 -1
  350. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts.map +1 -1
  351. package/dist/callbacks/subscriptions/postNPCStateChanged.lua +4 -4
  352. package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +0 -1
  353. package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts.map +1 -1
  354. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +4 -4
  355. package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +0 -1
  356. package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts.map +1 -1
  357. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +4 -4
  358. package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +0 -1
  359. package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts.map +1 -1
  360. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +4 -4
  361. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +0 -1
  362. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts.map +1 -1
  363. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +4 -4
  364. package/dist/callbacks/subscriptions/postPickupCollect.d.ts +0 -1
  365. package/dist/callbacks/subscriptions/postPickupCollect.d.ts.map +1 -1
  366. package/dist/callbacks/subscriptions/postPickupCollect.lua +4 -4
  367. package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts +0 -1
  368. package/dist/callbacks/subscriptions/postPickupInitFirst.d.ts.map +1 -1
  369. package/dist/callbacks/subscriptions/postPickupInitFirst.lua +4 -4
  370. package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +0 -1
  371. package/dist/callbacks/subscriptions/postPickupInitLate.d.ts.map +1 -1
  372. package/dist/callbacks/subscriptions/postPickupInitLate.lua +4 -4
  373. package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +0 -1
  374. package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts.map +1 -1
  375. package/dist/callbacks/subscriptions/postPickupStateChanged.lua +4 -4
  376. package/dist/callbacks/subscriptions/postPitRender.d.ts +0 -1
  377. package/dist/callbacks/subscriptions/postPitRender.d.ts.map +1 -1
  378. package/dist/callbacks/subscriptions/postPitRender.lua +4 -4
  379. package/dist/callbacks/subscriptions/postPitUpdate.d.ts +0 -1
  380. package/dist/callbacks/subscriptions/postPitUpdate.d.ts.map +1 -1
  381. package/dist/callbacks/subscriptions/postPitUpdate.lua +4 -4
  382. package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +0 -1
  383. package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts.map +1 -1
  384. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +4 -3
  385. package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts +0 -1
  386. package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts.map +1 -1
  387. package/dist/callbacks/subscriptions/postPlayerChangeStat.lua +4 -3
  388. package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +0 -1
  389. package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts.map +1 -1
  390. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +4 -4
  391. package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts +0 -1
  392. package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts.map +1 -1
  393. package/dist/callbacks/subscriptions/postPlayerCollectibleAdded.lua +4 -4
  394. package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts +0 -1
  395. package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts.map +1 -1
  396. package/dist/callbacks/subscriptions/postPlayerCollectibleRemoved.lua +4 -4
  397. package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +0 -1
  398. package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts.map +1 -1
  399. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +4 -3
  400. package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts +0 -1
  401. package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts.map +1 -1
  402. package/dist/callbacks/subscriptions/postPlayerInitFirst.lua +4 -4
  403. package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +0 -1
  404. package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts.map +1 -1
  405. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +4 -4
  406. package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +0 -1
  407. package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts.map +1 -1
  408. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +4 -4
  409. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +0 -1
  410. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts.map +1 -1
  411. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +4 -4
  412. package/dist/callbacks/subscriptions/postPoopRender.d.ts +0 -1
  413. package/dist/callbacks/subscriptions/postPoopRender.d.ts.map +1 -1
  414. package/dist/callbacks/subscriptions/postPoopRender.lua +4 -4
  415. package/dist/callbacks/subscriptions/postPoopUpdate.d.ts +0 -1
  416. package/dist/callbacks/subscriptions/postPoopUpdate.d.ts.map +1 -1
  417. package/dist/callbacks/subscriptions/postPoopUpdate.lua +4 -4
  418. package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts +0 -1
  419. package/dist/callbacks/subscriptions/postPressurePlateRender.d.ts.map +1 -1
  420. package/dist/callbacks/subscriptions/postPressurePlateRender.lua +4 -4
  421. package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts +0 -1
  422. package/dist/callbacks/subscriptions/postPressurePlateUpdate.d.ts.map +1 -1
  423. package/dist/callbacks/subscriptions/postPressurePlateUpdate.lua +4 -4
  424. package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +0 -1
  425. package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts.map +1 -1
  426. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +4 -4
  427. package/dist/callbacks/subscriptions/postPurchase.d.ts +0 -1
  428. package/dist/callbacks/subscriptions/postPurchase.d.ts.map +1 -1
  429. package/dist/callbacks/subscriptions/postPurchase.lua +4 -4
  430. package/dist/callbacks/subscriptions/postRockRender.d.ts +0 -1
  431. package/dist/callbacks/subscriptions/postRockRender.d.ts.map +1 -1
  432. package/dist/callbacks/subscriptions/postRockRender.lua +4 -4
  433. package/dist/callbacks/subscriptions/postRockUpdate.d.ts +0 -1
  434. package/dist/callbacks/subscriptions/postRockUpdate.d.ts.map +1 -1
  435. package/dist/callbacks/subscriptions/postRockUpdate.lua +4 -4
  436. package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +0 -1
  437. package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts.map +1 -1
  438. package/dist/callbacks/subscriptions/postRoomClearChanged.lua +4 -4
  439. package/dist/callbacks/subscriptions/postSacrifice.d.ts +0 -1
  440. package/dist/callbacks/subscriptions/postSacrifice.d.ts.map +1 -1
  441. package/dist/callbacks/subscriptions/postSacrifice.lua +4 -4
  442. package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +0 -1
  443. package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts.map +1 -1
  444. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +4 -4
  445. package/dist/callbacks/subscriptions/postSlotCollision.d.ts +0 -1
  446. package/dist/callbacks/subscriptions/postSlotCollision.d.ts.map +1 -1
  447. package/dist/callbacks/subscriptions/postSlotCollision.lua +4 -4
  448. package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +0 -1
  449. package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts.map +1 -1
  450. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +4 -4
  451. package/dist/callbacks/subscriptions/postSlotInit.d.ts +0 -1
  452. package/dist/callbacks/subscriptions/postSlotInit.d.ts.map +1 -1
  453. package/dist/callbacks/subscriptions/postSlotInit.lua +4 -4
  454. package/dist/callbacks/subscriptions/postSlotRender.d.ts +0 -1
  455. package/dist/callbacks/subscriptions/postSlotRender.d.ts.map +1 -1
  456. package/dist/callbacks/subscriptions/postSlotRender.lua +4 -4
  457. package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +0 -1
  458. package/dist/callbacks/subscriptions/postSlotUpdate.d.ts.map +1 -1
  459. package/dist/callbacks/subscriptions/postSlotUpdate.lua +4 -4
  460. package/dist/callbacks/subscriptions/postSpikesRender.d.ts +0 -1
  461. package/dist/callbacks/subscriptions/postSpikesRender.d.ts.map +1 -1
  462. package/dist/callbacks/subscriptions/postSpikesRender.lua +4 -4
  463. package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts +0 -1
  464. package/dist/callbacks/subscriptions/postSpikesUpdate.d.ts.map +1 -1
  465. package/dist/callbacks/subscriptions/postSpikesUpdate.lua +4 -4
  466. package/dist/callbacks/subscriptions/postTNTRender.d.ts +0 -1
  467. package/dist/callbacks/subscriptions/postTNTRender.d.ts.map +1 -1
  468. package/dist/callbacks/subscriptions/postTNTRender.lua +4 -4
  469. package/dist/callbacks/subscriptions/postTNTUpdate.d.ts +0 -1
  470. package/dist/callbacks/subscriptions/postTNTUpdate.d.ts.map +1 -1
  471. package/dist/callbacks/subscriptions/postTNTUpdate.lua +4 -4
  472. package/dist/callbacks/subscriptions/postTearInitLate.d.ts +0 -1
  473. package/dist/callbacks/subscriptions/postTearInitLate.d.ts.map +1 -1
  474. package/dist/callbacks/subscriptions/postTearInitLate.lua +4 -4
  475. package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +0 -1
  476. package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts.map +1 -1
  477. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +4 -4
  478. package/dist/callbacks/subscriptions/postTransformation.d.ts +0 -1
  479. package/dist/callbacks/subscriptions/postTransformation.d.ts.map +1 -1
  480. package/dist/callbacks/subscriptions/postTransformation.lua +4 -4
  481. package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +0 -1
  482. package/dist/callbacks/subscriptions/postTrinketBreak.d.ts.map +1 -1
  483. package/dist/callbacks/subscriptions/postTrinketBreak.lua +4 -4
  484. package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +0 -1
  485. package/dist/callbacks/subscriptions/preBerserkDeath.d.ts.map +1 -1
  486. package/dist/callbacks/subscriptions/preBerserkDeath.lua +4 -4
  487. package/dist/callbacks/subscriptions/preCustomRevive.d.ts +0 -1
  488. package/dist/callbacks/subscriptions/preCustomRevive.d.ts.map +1 -1
  489. package/dist/callbacks/subscriptions/preCustomRevive.lua +4 -4
  490. package/dist/callbacks/subscriptions/preItemPickup.d.ts +0 -1
  491. package/dist/callbacks/subscriptions/preItemPickup.d.ts.map +1 -1
  492. package/dist/callbacks/subscriptions/preItemPickup.lua +4 -4
  493. package/dist/callbacks/subscriptions/preNewLevel.d.ts +0 -1
  494. package/dist/callbacks/subscriptions/preNewLevel.d.ts.map +1 -1
  495. package/dist/callbacks/subscriptions/preNewLevel.lua +4 -4
  496. package/dist/classes/DefaultMap.d.ts +0 -1
  497. package/dist/classes/DefaultMap.d.ts.map +1 -1
  498. package/dist/classes/DefaultMap.lua +4 -4
  499. package/dist/classes/ModUpgraded.d.ts +4 -1
  500. package/dist/classes/ModUpgraded.d.ts.map +1 -1
  501. package/dist/classes/ModUpgraded.lua +1 -1
  502. package/dist/core/cachedClasses.d.ts +0 -1
  503. package/dist/core/cachedClasses.d.ts.map +1 -1
  504. package/dist/core/constants.d.ts +0 -1
  505. package/dist/core/constants.d.ts.map +1 -1
  506. package/dist/core/constants.lua +4 -4
  507. package/dist/core/constantsFirstLast.d.ts +0 -1
  508. package/dist/core/constantsFirstLast.d.ts.map +1 -1
  509. package/dist/core/constantsFirstLast.lua +11 -11
  510. package/dist/core/upgradeMod.d.ts +0 -1
  511. package/dist/core/upgradeMod.d.ts.map +1 -1
  512. package/dist/core/upgradeMod.lua +9 -9
  513. package/dist/enums/AmbushType.d.ts +0 -1
  514. package/dist/enums/AmbushType.d.ts.map +1 -1
  515. package/dist/enums/CornerType.d.ts +0 -1
  516. package/dist/enums/CornerType.d.ts.map +1 -1
  517. package/dist/enums/HealthType.d.ts +0 -1
  518. package/dist/enums/HealthType.d.ts.map +1 -1
  519. package/dist/enums/ModCallbackCustom.d.ts +0 -1
  520. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  521. package/dist/enums/PocketItemType.d.ts +0 -1
  522. package/dist/enums/PocketItemType.d.ts.map +1 -1
  523. package/dist/enums/RockAltType.d.ts +0 -1
  524. package/dist/enums/RockAltType.d.ts.map +1 -1
  525. package/dist/enums/SaveDataKey.d.ts +0 -1
  526. package/dist/enums/SaveDataKey.d.ts.map +1 -1
  527. package/dist/enums/SerializationType.d.ts +0 -1
  528. package/dist/enums/SerializationType.d.ts.map +1 -1
  529. package/dist/enums/SlotDestructionType.d.ts +0 -1
  530. package/dist/enums/SlotDestructionType.d.ts.map +1 -1
  531. package/dist/enums/StatType.d.ts +0 -1
  532. package/dist/enums/StatType.d.ts.map +1 -1
  533. package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +0 -1
  534. package/dist/enums/private/CopyableIsaacAPIClassType.d.ts.map +1 -1
  535. package/dist/enums/private/SerializationBrand.d.ts +0 -1
  536. package/dist/enums/private/SerializationBrand.d.ts.map +1 -1
  537. package/dist/enums/private/StageTravelState.d.ts +0 -1
  538. package/dist/enums/private/StageTravelState.d.ts.map +1 -1
  539. package/dist/enums/private/TrapdoorAnimation.d.ts +0 -1
  540. package/dist/enums/private/TrapdoorAnimation.d.ts.map +1 -1
  541. package/dist/features/characterHealthConversion.d.ts +0 -1
  542. package/dist/features/characterHealthConversion.d.ts.map +1 -1
  543. package/dist/features/characterHealthConversion.lua +10 -10
  544. package/dist/features/characterStats.d.ts +0 -1
  545. package/dist/features/characterStats.d.ts.map +1 -1
  546. package/dist/features/characterStats.lua +6 -6
  547. package/dist/features/collectibleItemPoolType.d.ts +0 -1
  548. package/dist/features/collectibleItemPoolType.d.ts.map +1 -1
  549. package/dist/features/collectibleItemPoolType.lua +8 -8
  550. package/dist/features/customDoor.d.ts +0 -1
  551. package/dist/features/customDoor.d.ts.map +1 -1
  552. package/dist/features/customDoor.lua +4 -4
  553. package/dist/features/customGridEntity.d.ts +0 -1
  554. package/dist/features/customGridEntity.d.ts.map +1 -1
  555. package/dist/features/customGridEntity.lua +42 -39
  556. package/dist/features/customPickup.d.ts +0 -1
  557. package/dist/features/customPickup.d.ts.map +1 -1
  558. package/dist/features/customPickup.lua +8 -8
  559. package/dist/features/customStage/backdrop.d.ts +0 -1
  560. package/dist/features/customStage/backdrop.d.ts.map +1 -1
  561. package/dist/features/customStage/backdrop.lua +40 -28
  562. package/dist/features/customStage/customStageConstants.d.ts +0 -1
  563. package/dist/features/customStage/customStageConstants.d.ts.map +1 -1
  564. package/dist/features/customStage/customStageGridEntities.d.ts +0 -1
  565. package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
  566. package/dist/features/customStage/customStageGridEntities.lua +34 -34
  567. package/dist/features/customStage/customStageUtils.d.ts +0 -1
  568. package/dist/features/customStage/customStageUtils.d.ts.map +1 -1
  569. package/dist/features/customStage/customStageUtils.lua +33 -21
  570. package/dist/features/customStage/exports.d.ts +0 -1
  571. package/dist/features/customStage/exports.d.ts.map +1 -1
  572. package/dist/features/customStage/exports.lua +36 -18
  573. package/dist/features/customStage/init.d.ts +0 -1
  574. package/dist/features/customStage/init.d.ts.map +1 -1
  575. package/dist/features/customStage/init.lua +28 -28
  576. package/dist/features/customStage/shadows.d.ts +0 -1
  577. package/dist/features/customStage/shadows.d.ts.map +1 -1
  578. package/dist/features/customStage/shadows.lua +10 -4
  579. package/dist/features/customStage/streakText.d.ts +0 -1
  580. package/dist/features/customStage/streakText.d.ts.map +1 -1
  581. package/dist/features/customStage/streakText.lua +17 -17
  582. package/dist/features/customStage/v.d.ts +0 -1
  583. package/dist/features/customStage/v.d.ts.map +1 -1
  584. package/dist/features/customStage/versusScreen.d.ts +0 -1
  585. package/dist/features/customStage/versusScreen.d.ts.map +1 -1
  586. package/dist/features/customStage/versusScreen.lua +31 -27
  587. package/dist/features/customTrapdoor/blackSprite.d.ts +0 -1
  588. package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -1
  589. package/dist/features/customTrapdoor/blackSprite.lua +1 -1
  590. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +0 -1
  591. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -1
  592. package/dist/features/customTrapdoor/exports.d.ts +0 -1
  593. package/dist/features/customTrapdoor/exports.d.ts.map +1 -1
  594. package/dist/features/customTrapdoor/exports.lua +20 -8
  595. package/dist/features/customTrapdoor/init.d.ts +0 -1
  596. package/dist/features/customTrapdoor/init.d.ts.map +1 -1
  597. package/dist/features/customTrapdoor/init.lua +65 -50
  598. package/dist/features/customTrapdoor/openClose.d.ts +0 -1
  599. package/dist/features/customTrapdoor/openClose.d.ts.map +1 -1
  600. package/dist/features/customTrapdoor/openClose.lua +12 -12
  601. package/dist/features/customTrapdoor/spawn.d.ts +0 -1
  602. package/dist/features/customTrapdoor/spawn.d.ts.map +1 -1
  603. package/dist/features/customTrapdoor/spawn.lua +5 -4
  604. package/dist/features/customTrapdoor/touched.d.ts +0 -1
  605. package/dist/features/customTrapdoor/touched.d.ts.map +1 -1
  606. package/dist/features/customTrapdoor/touched.lua +25 -21
  607. package/dist/features/customTrapdoor/v.d.ts +0 -1
  608. package/dist/features/customTrapdoor/v.d.ts.map +1 -1
  609. package/dist/features/debugDisplay/debugDisplay.d.ts +0 -1
  610. package/dist/features/debugDisplay/debugDisplay.d.ts.map +1 -1
  611. package/dist/features/debugDisplay/debugDisplay.lua +59 -59
  612. package/dist/features/debugDisplay/exports.d.ts +0 -1
  613. package/dist/features/debugDisplay/exports.d.ts.map +1 -1
  614. package/dist/features/debugDisplay/exports.lua +90 -90
  615. package/dist/features/debugDisplay/v.d.ts +0 -1
  616. package/dist/features/debugDisplay/v.d.ts.map +1 -1
  617. package/dist/features/debugDisplay/v.lua +6 -6
  618. package/dist/features/deployJSONRoom.d.ts +0 -1
  619. package/dist/features/deployJSONRoom.d.ts.map +1 -1
  620. package/dist/features/deployJSONRoom.lua +118 -93
  621. package/dist/features/disableAllSound.d.ts +0 -1
  622. package/dist/features/disableAllSound.d.ts.map +1 -1
  623. package/dist/features/disableAllSound.lua +10 -10
  624. package/dist/features/disableInputs.d.ts +0 -1
  625. package/dist/features/disableInputs.d.ts.map +1 -1
  626. package/dist/features/disableInputs.lua +25 -25
  627. package/dist/features/extraConsoleCommands/commandsDisplay.d.ts +0 -1
  628. package/dist/features/extraConsoleCommands/commandsDisplay.d.ts.map +1 -1
  629. package/dist/features/extraConsoleCommands/commandsDisplay.lua +72 -72
  630. package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +0 -1
  631. package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts.map +1 -1
  632. package/dist/features/extraConsoleCommands/commandsSubroutines.lua +42 -33
  633. package/dist/features/extraConsoleCommands/exports.d.ts +0 -1
  634. package/dist/features/extraConsoleCommands/exports.d.ts.map +1 -1
  635. package/dist/features/extraConsoleCommands/exports.lua +8 -8
  636. package/dist/features/extraConsoleCommands/init.d.ts +0 -1
  637. package/dist/features/extraConsoleCommands/init.d.ts.map +1 -1
  638. package/dist/features/extraConsoleCommands/init.lua +28 -28
  639. package/dist/features/extraConsoleCommands/listCommands.d.ts +2 -1
  640. package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  641. package/dist/features/extraConsoleCommands/listCommands.lua +367 -307
  642. package/dist/features/extraConsoleCommands/v.d.ts +0 -1
  643. package/dist/features/extraConsoleCommands/v.d.ts.map +1 -1
  644. package/dist/features/extraConsoleCommands/v.lua +1 -1
  645. package/dist/features/fadeInRemover.d.ts +0 -1
  646. package/dist/features/fadeInRemover.d.ts.map +1 -1
  647. package/dist/features/fadeInRemover.lua +9 -8
  648. package/dist/features/fastReset.d.ts +0 -1
  649. package/dist/features/fastReset.d.ts.map +1 -1
  650. package/dist/features/fastReset.lua +11 -11
  651. package/dist/features/firstLast.d.ts +0 -1
  652. package/dist/features/firstLast.d.ts.map +1 -1
  653. package/dist/features/firstLast.lua +105 -93
  654. package/dist/features/forgottenSwitch.d.ts +0 -1
  655. package/dist/features/forgottenSwitch.d.ts.map +1 -1
  656. package/dist/features/forgottenSwitch.lua +5 -5
  657. package/dist/features/pause.d.ts +0 -1
  658. package/dist/features/pause.d.ts.map +1 -1
  659. package/dist/features/pause.lua +25 -25
  660. package/dist/features/persistentEntities.d.ts +0 -1
  661. package/dist/features/persistentEntities.d.ts.map +1 -1
  662. package/dist/features/persistentEntities.lua +25 -17
  663. package/dist/features/pickupIndex.d.ts +0 -1
  664. package/dist/features/pickupIndex.d.ts.map +1 -1
  665. package/dist/features/pickupIndex.lua +25 -25
  666. package/dist/features/playerInventory.d.ts +0 -1
  667. package/dist/features/playerInventory.d.ts.map +1 -1
  668. package/dist/features/playerInventory.lua +16 -16
  669. package/dist/features/ponyDetection.d.ts +0 -1
  670. package/dist/features/ponyDetection.d.ts.map +1 -1
  671. package/dist/features/ponyDetection.lua +14 -13
  672. package/dist/features/preventChildEntities.d.ts +0 -1
  673. package/dist/features/preventChildEntities.d.ts.map +1 -1
  674. package/dist/features/preventChildEntities.lua +4 -4
  675. package/dist/features/preventCollectibleRotation.d.ts +0 -1
  676. package/dist/features/preventCollectibleRotation.d.ts.map +1 -1
  677. package/dist/features/preventCollectibleRotation.lua +13 -13
  678. package/dist/features/registerHotkey.d.ts +0 -1
  679. package/dist/features/registerHotkey.d.ts.map +1 -1
  680. package/dist/features/registerHotkey.lua +14 -14
  681. package/dist/features/roomClearFrame.d.ts +0 -1
  682. package/dist/features/roomClearFrame.d.ts.map +1 -1
  683. package/dist/features/roomClearFrame.lua +7 -7
  684. package/dist/features/roomHistory.d.ts +0 -1
  685. package/dist/features/roomHistory.d.ts.map +1 -1
  686. package/dist/features/roomHistory.lua +19 -19
  687. package/dist/features/runInNFrames.d.ts +0 -1
  688. package/dist/features/runInNFrames.d.ts.map +1 -1
  689. package/dist/features/runInNFrames.lua +30 -30
  690. package/dist/features/runNextRoom.d.ts +0 -1
  691. package/dist/features/runNextRoom.d.ts.map +1 -1
  692. package/dist/features/runNextRoom.lua +7 -7
  693. package/dist/features/saveDataManager/exports.d.ts +0 -1
  694. package/dist/features/saveDataManager/exports.d.ts.map +1 -1
  695. package/dist/features/saveDataManager/exports.lua +16 -16
  696. package/dist/features/saveDataManager/load.d.ts +0 -1
  697. package/dist/features/saveDataManager/load.d.ts.map +1 -1
  698. package/dist/features/saveDataManager/load.lua +16 -12
  699. package/dist/features/saveDataManager/main.d.ts +0 -1
  700. package/dist/features/saveDataManager/main.d.ts.map +1 -1
  701. package/dist/features/saveDataManager/main.lua +32 -31
  702. package/dist/features/saveDataManager/maps.d.ts +0 -1
  703. package/dist/features/saveDataManager/maps.d.ts.map +1 -1
  704. package/dist/features/saveDataManager/merge.d.ts +0 -1
  705. package/dist/features/saveDataManager/merge.d.ts.map +1 -1
  706. package/dist/features/saveDataManager/merge.lua +33 -30
  707. package/dist/features/saveDataManager/save.d.ts +0 -1
  708. package/dist/features/saveDataManager/save.d.ts.map +1 -1
  709. package/dist/features/saveDataManager/save.lua +9 -8
  710. package/dist/features/saveDataManager/saveDataManagerConstants.d.ts +0 -1
  711. package/dist/features/saveDataManager/saveDataManagerConstants.d.ts.map +1 -1
  712. package/dist/features/saveDataManager/serializationBrands.d.ts +0 -1
  713. package/dist/features/saveDataManager/serializationBrands.d.ts.map +1 -1
  714. package/dist/features/saveDataManager/serializationBrands.lua +3 -3
  715. package/dist/features/sirenHelpers.d.ts +0 -1
  716. package/dist/features/sirenHelpers.d.ts.map +1 -1
  717. package/dist/features/sirenHelpers.lua +15 -15
  718. package/dist/features/stageHistory.d.ts +0 -1
  719. package/dist/features/stageHistory.d.ts.map +1 -1
  720. package/dist/features/stageHistory.lua +7 -7
  721. package/dist/features/taintedLazarusPlayers.d.ts +0 -1
  722. package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
  723. package/dist/features/taintedLazarusPlayers.lua +8 -8
  724. package/dist/featuresInitialized.d.ts +0 -1
  725. package/dist/featuresInitialized.d.ts.map +1 -1
  726. package/dist/featuresInitialized.lua +4 -4
  727. package/dist/functions/ambush.d.ts +0 -1
  728. package/dist/functions/ambush.d.ts.map +1 -1
  729. package/dist/functions/ambush.lua +18 -15
  730. package/dist/functions/array.d.ts +0 -1
  731. package/dist/functions/array.d.ts.map +1 -1
  732. package/dist/functions/array.lua +62 -48
  733. package/dist/functions/benchmark.d.ts +0 -1
  734. package/dist/functions/benchmark.d.ts.map +1 -1
  735. package/dist/functions/benchmark.lua +10 -4
  736. package/dist/functions/bitSet128.d.ts +0 -1
  737. package/dist/functions/bitSet128.d.ts.map +1 -1
  738. package/dist/functions/bitSet128.lua +13 -11
  739. package/dist/functions/bitwise.d.ts +0 -1
  740. package/dist/functions/bitwise.d.ts.map +1 -1
  741. package/dist/functions/bitwise.lua +9 -9
  742. package/dist/functions/bombs.d.ts +0 -1
  743. package/dist/functions/bombs.d.ts.map +1 -1
  744. package/dist/functions/bombs.lua +1 -1
  745. package/dist/functions/bosses.d.ts +0 -1
  746. package/dist/functions/bosses.d.ts.map +1 -1
  747. package/dist/functions/bosses.lua +31 -15
  748. package/dist/functions/cards.d.ts +0 -1
  749. package/dist/functions/cards.d.ts.map +1 -1
  750. package/dist/functions/cards.lua +48 -42
  751. package/dist/functions/challenges.d.ts +0 -1
  752. package/dist/functions/challenges.d.ts.map +1 -1
  753. package/dist/functions/challenges.lua +1 -1
  754. package/dist/functions/characters.d.ts +0 -1
  755. package/dist/functions/characters.d.ts.map +1 -1
  756. package/dist/functions/characters.lua +13 -13
  757. package/dist/functions/charge.d.ts +0 -1
  758. package/dist/functions/charge.d.ts.map +1 -1
  759. package/dist/functions/charge.lua +36 -24
  760. package/dist/functions/chargeBar.d.ts +0 -1
  761. package/dist/functions/chargeBar.d.ts.map +1 -1
  762. package/dist/functions/chargeBar.lua +5 -5
  763. package/dist/functions/collectibleCacheFlag.d.ts +0 -1
  764. package/dist/functions/collectibleCacheFlag.d.ts.map +1 -1
  765. package/dist/functions/collectibleCacheFlag.lua +12 -11
  766. package/dist/functions/collectibleSet.d.ts +0 -1
  767. package/dist/functions/collectibleSet.d.ts.map +1 -1
  768. package/dist/functions/collectibleSet.lua +17 -17
  769. package/dist/functions/collectibleTag.d.ts +0 -1
  770. package/dist/functions/collectibleTag.d.ts.map +1 -1
  771. package/dist/functions/collectibleTag.lua +14 -13
  772. package/dist/functions/collectibles.d.ts +0 -1
  773. package/dist/functions/collectibles.d.ts.map +1 -1
  774. package/dist/functions/collectibles.lua +69 -68
  775. package/dist/functions/color.d.ts +0 -1
  776. package/dist/functions/color.d.ts.map +1 -1
  777. package/dist/functions/color.lua +21 -19
  778. package/dist/functions/curses.d.ts +0 -1
  779. package/dist/functions/curses.d.ts.map +1 -1
  780. package/dist/functions/curses.lua +3 -3
  781. package/dist/functions/debug.d.ts +0 -1
  782. package/dist/functions/debug.d.ts.map +1 -1
  783. package/dist/functions/debug.lua +15 -15
  784. package/dist/functions/deepCopy.d.ts +0 -1
  785. package/dist/functions/deepCopy.d.ts.map +1 -1
  786. package/dist/functions/deepCopy.lua +169 -73
  787. package/dist/functions/deepCopyTests.d.ts +0 -1
  788. package/dist/functions/deepCopyTests.d.ts.map +1 -1
  789. package/dist/functions/deepCopyTests.lua +81 -81
  790. package/dist/functions/dimensions.d.ts +0 -1
  791. package/dist/functions/dimensions.d.ts.map +1 -1
  792. package/dist/functions/dimensions.lua +7 -7
  793. package/dist/functions/direction.d.ts +0 -1
  794. package/dist/functions/direction.d.ts.map +1 -1
  795. package/dist/functions/direction.lua +4 -4
  796. package/dist/functions/doors.d.ts +0 -1
  797. package/dist/functions/doors.d.ts.map +1 -1
  798. package/dist/functions/doors.lua +77 -74
  799. package/dist/functions/easing.d.ts +0 -1
  800. package/dist/functions/easing.d.ts.map +1 -1
  801. package/dist/functions/easing.lua +32 -32
  802. package/dist/functions/eden.d.ts +0 -1
  803. package/dist/functions/eden.d.ts.map +1 -1
  804. package/dist/functions/eden.lua +9 -9
  805. package/dist/functions/effects.d.ts +0 -1
  806. package/dist/functions/effects.d.ts.map +1 -1
  807. package/dist/functions/effects.lua +2 -2
  808. package/dist/functions/entities.d.ts +0 -1
  809. package/dist/functions/entities.d.ts.map +1 -1
  810. package/dist/functions/entities.lua +48 -41
  811. package/dist/functions/entitiesSpecific.d.ts +0 -1
  812. package/dist/functions/entitiesSpecific.d.ts.map +1 -1
  813. package/dist/functions/entitiesSpecific.lua +96 -70
  814. package/dist/functions/entityTypes.d.ts +0 -1
  815. package/dist/functions/entityTypes.d.ts.map +1 -1
  816. package/dist/functions/entityTypes.lua +1 -1
  817. package/dist/functions/enums.d.ts +0 -1
  818. package/dist/functions/enums.d.ts.map +1 -1
  819. package/dist/functions/enums.lua +19 -19
  820. package/dist/functions/familiars.d.ts +0 -1
  821. package/dist/functions/familiars.d.ts.map +1 -1
  822. package/dist/functions/familiars.lua +6 -5
  823. package/dist/functions/flag.d.ts +0 -1
  824. package/dist/functions/flag.d.ts.map +1 -1
  825. package/dist/functions/flag.lua +8 -8
  826. package/dist/functions/flying.d.ts +0 -1
  827. package/dist/functions/flying.d.ts.map +1 -1
  828. package/dist/functions/flying.lua +12 -9
  829. package/dist/functions/globals.d.ts +0 -1
  830. package/dist/functions/globals.d.ts.map +1 -1
  831. package/dist/functions/globals.lua +17 -14
  832. package/dist/functions/gridEntities.d.ts +0 -1
  833. package/dist/functions/gridEntities.d.ts.map +1 -1
  834. package/dist/functions/gridEntities.lua +64 -58
  835. package/dist/functions/gridEntitiesSpecific.d.ts +3 -1
  836. package/dist/functions/gridEntitiesSpecific.d.ts.map +1 -1
  837. package/dist/functions/gridEntitiesSpecific.lua +98 -92
  838. package/dist/functions/hex.d.ts +0 -1
  839. package/dist/functions/hex.d.ts.map +1 -1
  840. package/dist/functions/hex.lua +12 -9
  841. package/dist/functions/initArray.d.ts +0 -1
  842. package/dist/functions/initArray.d.ts.map +1 -1
  843. package/dist/functions/initArray.lua +4 -3
  844. package/dist/functions/input.d.ts +0 -1
  845. package/dist/functions/input.d.ts.map +1 -1
  846. package/dist/functions/input.lua +25 -22
  847. package/dist/functions/isaacAPIClass.d.ts +0 -1
  848. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  849. package/dist/functions/isaacAPIClass.lua +47 -47
  850. package/dist/functions/itemPool.d.ts +0 -1
  851. package/dist/functions/itemPool.d.ts.map +1 -1
  852. package/dist/functions/itemPool.lua +19 -17
  853. package/dist/functions/jsonHelpers.d.ts +0 -1
  854. package/dist/functions/jsonHelpers.d.ts.map +1 -1
  855. package/dist/functions/jsonHelpers.lua +3 -3
  856. package/dist/functions/jsonRoom.d.ts +0 -1
  857. package/dist/functions/jsonRoom.d.ts.map +1 -1
  858. package/dist/functions/jsonRoom.lua +22 -16
  859. package/dist/functions/kColor.d.ts +0 -1
  860. package/dist/functions/kColor.d.ts.map +1 -1
  861. package/dist/functions/kColor.lua +21 -19
  862. package/dist/functions/language.d.ts +0 -1
  863. package/dist/functions/language.d.ts.map +1 -1
  864. package/dist/functions/language.lua +1 -1
  865. package/dist/functions/level.d.ts +0 -1
  866. package/dist/functions/level.d.ts.map +1 -1
  867. package/dist/functions/level.lua +5 -5
  868. package/dist/functions/levelGrid.d.ts +0 -1
  869. package/dist/functions/levelGrid.d.ts.map +1 -1
  870. package/dist/functions/levelGrid.lua +67 -67
  871. package/dist/functions/log.d.ts +0 -1
  872. package/dist/functions/log.d.ts.map +1 -1
  873. package/dist/functions/log.lua +240 -128
  874. package/dist/functions/logEntities.d.ts +0 -1
  875. package/dist/functions/logEntities.d.ts.map +1 -1
  876. package/dist/functions/logEntities.lua +32 -29
  877. package/dist/functions/map.d.ts +0 -1
  878. package/dist/functions/map.d.ts.map +1 -1
  879. package/dist/functions/map.lua +5 -5
  880. package/dist/functions/math.d.ts +0 -1
  881. package/dist/functions/math.d.ts.map +1 -1
  882. package/dist/functions/math.lua +14 -14
  883. package/dist/functions/mergeTests.d.ts +0 -1
  884. package/dist/functions/mergeTests.d.ts.map +1 -1
  885. package/dist/functions/mergeTests.lua +47 -47
  886. package/dist/functions/minimap.d.ts +0 -1
  887. package/dist/functions/minimap.d.ts.map +1 -1
  888. package/dist/functions/minimap.lua +12 -12
  889. package/dist/functions/nextStage.d.ts +0 -1
  890. package/dist/functions/nextStage.d.ts.map +1 -1
  891. package/dist/functions/nextStage.lua +39 -39
  892. package/dist/functions/npcs.d.ts +0 -1
  893. package/dist/functions/npcs.d.ts.map +1 -1
  894. package/dist/functions/npcs.lua +21 -15
  895. package/dist/functions/pickupVariants.d.ts +0 -1
  896. package/dist/functions/pickupVariants.d.ts.map +1 -1
  897. package/dist/functions/pickupVariants.lua +11 -11
  898. package/dist/functions/pickups.d.ts +0 -1
  899. package/dist/functions/pickups.d.ts.map +1 -1
  900. package/dist/functions/pickups.lua +9 -9
  901. package/dist/functions/pickupsSpecific.d.ts +0 -1
  902. package/dist/functions/pickupsSpecific.d.ts.map +1 -1
  903. package/dist/functions/pickupsSpecific.lua +76 -58
  904. package/dist/functions/pills.d.ts +0 -1
  905. package/dist/functions/pills.d.ts.map +1 -1
  906. package/dist/functions/pills.lua +25 -22
  907. package/dist/functions/playerCenter.d.ts +0 -1
  908. package/dist/functions/playerCenter.d.ts.map +1 -1
  909. package/dist/functions/playerCenter.lua +6 -5
  910. package/dist/functions/playerDataStructures.d.ts +0 -1
  911. package/dist/functions/playerDataStructures.d.ts.map +1 -1
  912. package/dist/functions/playerDataStructures.lua +16 -16
  913. package/dist/functions/playerHealth.d.ts +0 -1
  914. package/dist/functions/playerHealth.d.ts.map +1 -1
  915. package/dist/functions/playerHealth.lua +54 -47
  916. package/dist/functions/playerIndex.d.ts +0 -1
  917. package/dist/functions/playerIndex.d.ts.map +1 -1
  918. package/dist/functions/playerIndex.lua +17 -17
  919. package/dist/functions/playerStats.d.ts +0 -1
  920. package/dist/functions/playerStats.d.ts.map +1 -1
  921. package/dist/functions/playerStats.lua +1 -1
  922. package/dist/functions/players.d.ts +0 -1
  923. package/dist/functions/players.d.ts.map +1 -1
  924. package/dist/functions/players.lua +82 -81
  925. package/dist/functions/pocketItems.d.ts +0 -1
  926. package/dist/functions/pocketItems.d.ts.map +1 -1
  927. package/dist/functions/pocketItems.lua +12 -12
  928. package/dist/functions/positionVelocity.d.ts +0 -1
  929. package/dist/functions/positionVelocity.d.ts.map +1 -1
  930. package/dist/functions/positionVelocity.lua +15 -15
  931. package/dist/functions/pressurePlate.d.ts +0 -1
  932. package/dist/functions/pressurePlate.d.ts.map +1 -1
  933. package/dist/functions/pressurePlate.lua +2 -2
  934. package/dist/functions/projectiles.d.ts +0 -1
  935. package/dist/functions/projectiles.d.ts.map +1 -1
  936. package/dist/functions/projectiles.lua +19 -7
  937. package/dist/functions/random.d.ts +0 -1
  938. package/dist/functions/random.d.ts.map +1 -1
  939. package/dist/functions/random.lua +9 -9
  940. package/dist/functions/reorderedCallbacks.d.ts +0 -1
  941. package/dist/functions/reorderedCallbacks.d.ts.map +1 -1
  942. package/dist/functions/reorderedCallbacks.lua +6 -6
  943. package/dist/functions/revive.d.ts +0 -1
  944. package/dist/functions/revive.d.ts.map +1 -1
  945. package/dist/functions/revive.lua +16 -16
  946. package/dist/functions/rng.d.ts +0 -1
  947. package/dist/functions/rng.d.ts.map +1 -1
  948. package/dist/functions/rng.lua +27 -25
  949. package/dist/functions/rockAlt.d.ts +0 -1
  950. package/dist/functions/rockAlt.d.ts.map +1 -1
  951. package/dist/functions/rockAlt.lua +111 -74
  952. package/dist/functions/roomData.d.ts +0 -1
  953. package/dist/functions/roomData.d.ts.map +1 -1
  954. package/dist/functions/roomData.lua +30 -30
  955. package/dist/functions/roomGrid.d.ts +0 -1
  956. package/dist/functions/roomGrid.d.ts.map +1 -1
  957. package/dist/functions/roomGrid.lua +17 -17
  958. package/dist/functions/roomShape.d.ts +0 -1
  959. package/dist/functions/roomShape.d.ts.map +1 -1
  960. package/dist/functions/roomShape.lua +13 -13
  961. package/dist/functions/roomTransition.d.ts +0 -1
  962. package/dist/functions/roomTransition.d.ts.map +1 -1
  963. package/dist/functions/roomTransition.lua +19 -10
  964. package/dist/functions/rooms.d.ts +0 -1
  965. package/dist/functions/rooms.d.ts.map +1 -1
  966. package/dist/functions/rooms.lua +87 -87
  967. package/dist/functions/run.d.ts +0 -1
  968. package/dist/functions/run.d.ts.map +1 -1
  969. package/dist/functions/run.lua +17 -11
  970. package/dist/functions/saveFile.d.ts +0 -1
  971. package/dist/functions/saveFile.d.ts.map +1 -1
  972. package/dist/functions/saveFile.lua +3 -3
  973. package/dist/functions/seeds.d.ts +0 -1
  974. package/dist/functions/seeds.d.ts.map +1 -1
  975. package/dist/functions/seeds.lua +3 -3
  976. package/dist/functions/serialization.d.ts +0 -1
  977. package/dist/functions/serialization.d.ts.map +1 -1
  978. package/dist/functions/serialization.lua +11 -11
  979. package/dist/functions/set.d.ts +0 -1
  980. package/dist/functions/set.d.ts.map +1 -1
  981. package/dist/functions/set.lua +15 -15
  982. package/dist/functions/sound.d.ts +0 -1
  983. package/dist/functions/sound.d.ts.map +1 -1
  984. package/dist/functions/sound.lua +2 -2
  985. package/dist/functions/spawnCollectible.d.ts +0 -1
  986. package/dist/functions/spawnCollectible.d.ts.map +1 -1
  987. package/dist/functions/spawnCollectible.lua +11 -9
  988. package/dist/functions/sprites.d.ts +0 -1
  989. package/dist/functions/sprites.d.ts.map +1 -1
  990. package/dist/functions/sprites.lua +13 -7
  991. package/dist/functions/stage.d.ts +0 -1
  992. package/dist/functions/stage.d.ts.map +1 -1
  993. package/dist/functions/stage.lua +29 -26
  994. package/dist/functions/stats.d.ts +0 -1
  995. package/dist/functions/stats.d.ts.map +1 -1
  996. package/dist/functions/stats.lua +3 -3
  997. package/dist/functions/string.d.ts +0 -1
  998. package/dist/functions/string.d.ts.map +1 -1
  999. package/dist/functions/string.lua +7 -7
  1000. package/dist/functions/table.d.ts +0 -1
  1001. package/dist/functions/table.d.ts.map +1 -1
  1002. package/dist/functions/table.lua +16 -16
  1003. package/dist/functions/tears.d.ts +0 -1
  1004. package/dist/functions/tears.d.ts.map +1 -1
  1005. package/dist/functions/tears.lua +5 -5
  1006. package/dist/functions/transformations.d.ts +0 -1
  1007. package/dist/functions/transformations.d.ts.map +1 -1
  1008. package/dist/functions/transformations.lua +14 -13
  1009. package/dist/functions/trinketCacheFlag.d.ts +0 -1
  1010. package/dist/functions/trinketCacheFlag.d.ts.map +1 -1
  1011. package/dist/functions/trinketCacheFlag.lua +10 -10
  1012. package/dist/functions/trinketGive.d.ts +0 -1
  1013. package/dist/functions/trinketGive.d.ts.map +1 -1
  1014. package/dist/functions/trinketGive.lua +14 -12
  1015. package/dist/functions/trinketSet.d.ts +0 -1
  1016. package/dist/functions/trinketSet.d.ts.map +1 -1
  1017. package/dist/functions/trinketSet.lua +17 -17
  1018. package/dist/functions/trinkets.d.ts +0 -1
  1019. package/dist/functions/trinkets.d.ts.map +1 -1
  1020. package/dist/functions/trinkets.lua +22 -22
  1021. package/dist/functions/tstlClass.d.ts +0 -1
  1022. package/dist/functions/tstlClass.d.ts.map +1 -1
  1023. package/dist/functions/tstlClass.lua +19 -19
  1024. package/dist/functions/types.d.ts +0 -1
  1025. package/dist/functions/types.d.ts.map +1 -1
  1026. package/dist/functions/types.lua +17 -17
  1027. package/dist/functions/ui.d.ts +0 -1
  1028. package/dist/functions/ui.d.ts.map +1 -1
  1029. package/dist/functions/ui.lua +19 -19
  1030. package/dist/functions/utils.d.ts +0 -1
  1031. package/dist/functions/utils.d.ts.map +1 -1
  1032. package/dist/functions/utils.lua +12 -12
  1033. package/dist/functions/vector.d.ts +0 -1
  1034. package/dist/functions/vector.d.ts.map +1 -1
  1035. package/dist/functions/vector.lua +23 -21
  1036. package/dist/index.d.ts +11912 -11988
  1037. package/dist/index.d.ts.map +1 -1
  1038. package/dist/initCustomCallbacks.d.ts +0 -1
  1039. package/dist/initCustomCallbacks.d.ts.map +1 -1
  1040. package/dist/initCustomCallbacks.lua +72 -72
  1041. package/dist/initFeatures.d.ts +0 -1
  1042. package/dist/initFeatures.d.ts.map +1 -1
  1043. package/dist/initFeatures.lua +34 -34
  1044. package/dist/interfaces/ChargeBarSprites.d.ts +0 -1
  1045. package/dist/interfaces/ChargeBarSprites.d.ts.map +1 -1
  1046. package/dist/interfaces/Corner.d.ts +0 -1
  1047. package/dist/interfaces/Corner.d.ts.map +1 -1
  1048. package/dist/interfaces/CustomStageTSConfig.d.ts +11 -1
  1049. package/dist/interfaces/CustomStageTSConfig.d.ts.map +1 -1
  1050. package/dist/interfaces/GridEntityCustomData.d.ts +0 -1
  1051. package/dist/interfaces/GridEntityCustomData.d.ts.map +1 -1
  1052. package/dist/interfaces/JSONRoomsFile.d.ts +0 -1
  1053. package/dist/interfaces/JSONRoomsFile.d.ts.map +1 -1
  1054. package/dist/interfaces/PlayerHealth.d.ts +0 -1
  1055. package/dist/interfaces/PlayerHealth.d.ts.map +1 -1
  1056. package/dist/interfaces/PocketItemDescription.d.ts +0 -1
  1057. package/dist/interfaces/PocketItemDescription.d.ts.map +1 -1
  1058. package/dist/interfaces/RoomDescription.d.ts +0 -1
  1059. package/dist/interfaces/RoomDescription.d.ts.map +1 -1
  1060. package/dist/interfaces/SaveData.d.ts +0 -1
  1061. package/dist/interfaces/SaveData.d.ts.map +1 -1
  1062. package/dist/interfaces/SaveData.lua +10 -10
  1063. package/dist/interfaces/StatTypeType.d.ts +0 -1
  1064. package/dist/interfaces/StatTypeType.d.ts.map +1 -1
  1065. package/dist/interfaces/TrinketSituation.d.ts +0 -1
  1066. package/dist/interfaces/TrinketSituation.d.ts.map +1 -1
  1067. package/dist/interfaces/private/AddCallbackParameterCustom.d.ts +0 -1
  1068. package/dist/interfaces/private/AddCallbackParameterCustom.d.ts.map +1 -1
  1069. package/dist/interfaces/private/CustomStage.d.ts +0 -1
  1070. package/dist/interfaces/private/CustomStage.d.ts.map +1 -1
  1071. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +0 -1
  1072. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -1
  1073. package/dist/interfaces/private/CustomTrapdoorDestination.d.ts +0 -1
  1074. package/dist/interfaces/private/CustomTrapdoorDestination.d.ts.map +1 -1
  1075. package/dist/interfaces/private/TSTLClassMetatable.d.ts +0 -1
  1076. package/dist/interfaces/private/TSTLClassMetatable.d.ts.map +1 -1
  1077. package/dist/maps/PHDPillConversions.d.ts +0 -1
  1078. package/dist/maps/PHDPillConversions.d.ts.map +1 -1
  1079. package/dist/maps/cardMap.d.ts +0 -1
  1080. package/dist/maps/cardMap.d.ts.map +1 -1
  1081. package/dist/maps/characterMap.d.ts +0 -1
  1082. package/dist/maps/characterMap.d.ts.map +1 -1
  1083. package/dist/maps/collectibleDescriptionMap.d.ts +0 -1
  1084. package/dist/maps/collectibleDescriptionMap.d.ts.map +1 -1
  1085. package/dist/maps/collectibleNameMap.d.ts +0 -1
  1086. package/dist/maps/collectibleNameMap.d.ts.map +1 -1
  1087. package/dist/maps/defaultPlayerStatMap.d.ts +0 -1
  1088. package/dist/maps/defaultPlayerStatMap.d.ts.map +1 -1
  1089. package/dist/maps/defaultPlayerStatMap.lua +1 -1
  1090. package/dist/maps/falsePHDPillConversions.d.ts +0 -1
  1091. package/dist/maps/falsePHDPillConversions.d.ts.map +1 -1
  1092. package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts +0 -1
  1093. package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts.map +1 -1
  1094. package/dist/maps/gridEntityXMLMap.d.ts +0 -1
  1095. package/dist/maps/gridEntityXMLMap.d.ts.map +1 -1
  1096. package/dist/maps/keyboardToString.d.ts +0 -1
  1097. package/dist/maps/keyboardToString.d.ts.map +1 -1
  1098. package/dist/maps/pillEffectMap.d.ts +0 -1
  1099. package/dist/maps/pillEffectMap.d.ts.map +1 -1
  1100. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +0 -1
  1101. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts.map +1 -1
  1102. package/dist/maps/roomTypeMap.d.ts +0 -1
  1103. package/dist/maps/roomTypeMap.d.ts.map +1 -1
  1104. package/dist/maps/trinketDescriptionMap.d.ts +0 -1
  1105. package/dist/maps/trinketDescriptionMap.d.ts.map +1 -1
  1106. package/dist/maps/trinketNameMap.d.ts +0 -1
  1107. package/dist/maps/trinketNameMap.d.ts.map +1 -1
  1108. package/dist/objects/LRoomShapeToRectangles.d.ts +0 -1
  1109. package/dist/objects/LRoomShapeToRectangles.d.ts.map +1 -1
  1110. package/dist/objects/backdropTypeToRockAltType.d.ts +0 -1
  1111. package/dist/objects/backdropTypeToRockAltType.d.ts.map +1 -1
  1112. package/dist/objects/bossNamePNGFileNames.d.ts +0 -1
  1113. package/dist/objects/bossNamePNGFileNames.d.ts.map +1 -1
  1114. package/dist/objects/bossPortraitPNGFileNames.d.ts +0 -1
  1115. package/dist/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
  1116. package/dist/objects/callbackRegisterFunctions.d.ts +0 -1
  1117. package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
  1118. package/dist/objects/cardDescriptions.d.ts +0 -1
  1119. package/dist/objects/cardDescriptions.d.ts.map +1 -1
  1120. package/dist/objects/cardNames.d.ts +0 -1
  1121. package/dist/objects/cardNames.d.ts.map +1 -1
  1122. package/dist/objects/cardTypeToItemConfigCardType.d.ts +0 -1
  1123. package/dist/objects/cardTypeToItemConfigCardType.d.ts.map +1 -1
  1124. package/dist/objects/challengeNames.d.ts +0 -1
  1125. package/dist/objects/challengeNames.d.ts.map +1 -1
  1126. package/dist/objects/characterDamageMultipliers.d.ts +0 -1
  1127. package/dist/objects/characterDamageMultipliers.d.ts.map +1 -1
  1128. package/dist/objects/characterNames.d.ts +0 -1
  1129. package/dist/objects/characterNames.d.ts.map +1 -1
  1130. package/dist/objects/coinSubTypeToValue.d.ts +0 -1
  1131. package/dist/objects/coinSubTypeToValue.d.ts.map +1 -1
  1132. package/dist/objects/colors.d.ts +0 -1
  1133. package/dist/objects/colors.d.ts.map +1 -1
  1134. package/dist/objects/directionNames.d.ts +0 -1
  1135. package/dist/objects/directionNames.d.ts.map +1 -1
  1136. package/dist/objects/directionToDegrees.d.ts +0 -1
  1137. package/dist/objects/directionToDegrees.d.ts.map +1 -1
  1138. package/dist/objects/directionToVector.d.ts +0 -1
  1139. package/dist/objects/directionToVector.d.ts.map +1 -1
  1140. package/dist/objects/doorSlotFlagToDoorSlot.d.ts +0 -1
  1141. package/dist/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -1
  1142. package/dist/objects/doorSlotToDirection.d.ts +0 -1
  1143. package/dist/objects/doorSlotToDirection.d.ts.map +1 -1
  1144. package/dist/objects/doorSlotToDoorSlotFlag.d.ts +0 -1
  1145. package/dist/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -1
  1146. package/dist/objects/isaacAPIClassTypeToBrand.d.ts +0 -1
  1147. package/dist/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -1
  1148. package/dist/objects/isaacAPIClassTypeToFunctions.d.ts +0 -1
  1149. package/dist/objects/isaacAPIClassTypeToFunctions.d.ts.map +1 -1
  1150. package/dist/objects/languageNames.d.ts +0 -1
  1151. package/dist/objects/languageNames.d.ts.map +1 -1
  1152. package/dist/objects/oppositeDoorSlots.d.ts +0 -1
  1153. package/dist/objects/oppositeDoorSlots.d.ts.map +1 -1
  1154. package/dist/objects/pillEffectClasses.d.ts +0 -1
  1155. package/dist/objects/pillEffectClasses.d.ts.map +1 -1
  1156. package/dist/objects/pillEffectNames.d.ts +0 -1
  1157. package/dist/objects/pillEffectNames.d.ts.map +1 -1
  1158. package/dist/objects/pillEffectTypes.d.ts +0 -1
  1159. package/dist/objects/pillEffectTypes.d.ts.map +1 -1
  1160. package/dist/objects/playerNamePNGFileNames.d.ts +0 -1
  1161. package/dist/objects/playerNamePNGFileNames.d.ts.map +1 -1
  1162. package/dist/objects/playerPortraitPNGFileNames.d.ts +0 -1
  1163. package/dist/objects/playerPortraitPNGFileNames.d.ts.map +1 -1
  1164. package/dist/objects/roomShapeBounds.d.ts +0 -1
  1165. package/dist/objects/roomShapeBounds.d.ts.map +1 -1
  1166. package/dist/objects/roomShapeCorners.d.ts +0 -1
  1167. package/dist/objects/roomShapeCorners.d.ts.map +1 -1
  1168. package/dist/objects/roomShapeLayoutSizes.d.ts +0 -1
  1169. package/dist/objects/roomShapeLayoutSizes.d.ts.map +1 -1
  1170. package/dist/objects/roomShapeToBottomRightPosition.d.ts +0 -1
  1171. package/dist/objects/roomShapeToBottomRightPosition.d.ts.map +1 -1
  1172. package/dist/objects/roomShapeToDoorSlotCoordinates.d.ts +0 -1
  1173. package/dist/objects/roomShapeToDoorSlotCoordinates.d.ts.map +1 -1
  1174. package/dist/objects/roomShapeToDoorSlots.d.ts +0 -1
  1175. package/dist/objects/roomShapeToDoorSlots.d.ts.map +1 -1
  1176. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts +0 -1
  1177. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts.map +1 -1
  1178. package/dist/objects/roomShapeToGridWidth.d.ts +0 -1
  1179. package/dist/objects/roomShapeToGridWidth.d.ts.map +1 -1
  1180. package/dist/objects/roomShapeToTopLeftPosition.d.ts +0 -1
  1181. package/dist/objects/roomShapeToTopLeftPosition.d.ts.map +1 -1
  1182. package/dist/objects/roomShapeVolumes.d.ts +0 -1
  1183. package/dist/objects/roomShapeVolumes.d.ts.map +1 -1
  1184. package/dist/objects/roomTypeGotoPrefixes.d.ts +0 -1
  1185. package/dist/objects/roomTypeGotoPrefixes.d.ts.map +1 -1
  1186. package/dist/objects/roomTypeNames.d.ts +0 -1
  1187. package/dist/objects/roomTypeNames.d.ts.map +1 -1
  1188. package/dist/objects/stageTypeSuffixes.d.ts +0 -1
  1189. package/dist/objects/stageTypeSuffixes.d.ts.map +1 -1
  1190. package/dist/objects/stageTypeToLetter.d.ts +0 -1
  1191. package/dist/objects/stageTypeToLetter.d.ts.map +1 -1
  1192. package/dist/objects/transformationNames.d.ts +0 -1
  1193. package/dist/objects/transformationNames.d.ts.map +1 -1
  1194. package/dist/objects/versusScreenBackgroundColors.d.ts +0 -1
  1195. package/dist/objects/versusScreenBackgroundColors.d.ts.map +1 -1
  1196. package/dist/objects/versusScreenDirtSpotColors.d.ts +0 -1
  1197. package/dist/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
  1198. package/dist/patchErrorFunctions.d.ts +0 -1
  1199. package/dist/patchErrorFunctions.d.ts.map +1 -1
  1200. package/dist/patchErrorFunctions.lua +7 -7
  1201. package/dist/sets/LRoomShapesSet.d.ts +0 -1
  1202. package/dist/sets/LRoomShapesSet.d.ts.map +1 -1
  1203. package/dist/sets/bossSets.d.ts +0 -1
  1204. package/dist/sets/bossSets.d.ts.map +1 -1
  1205. package/dist/sets/bossSets.lua +4 -4
  1206. package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +0 -1
  1207. package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts.map +1 -1
  1208. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +0 -1
  1209. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts.map +1 -1
  1210. package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +0 -1
  1211. package/dist/sets/charactersWithFreeDevilDealsSet.d.ts.map +1 -1
  1212. package/dist/sets/charactersWithNoRedHeartsSet.d.ts +0 -1
  1213. package/dist/sets/charactersWithNoRedHeartsSet.d.ts.map +1 -1
  1214. package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +0 -1
  1215. package/dist/sets/charactersWithNoSoulHeartsSet.d.ts.map +1 -1
  1216. package/dist/sets/chestPickupVariantsSet.d.ts +0 -1
  1217. package/dist/sets/chestPickupVariantsSet.d.ts.map +1 -1
  1218. package/dist/sets/consoleCommandsSet.d.ts +0 -1
  1219. package/dist/sets/consoleCommandsSet.d.ts.map +1 -1
  1220. package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +0 -1
  1221. package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts.map +1 -1
  1222. package/dist/sets/lostStyleCharactersSet.d.ts +0 -1
  1223. package/dist/sets/lostStyleCharactersSet.d.ts.map +1 -1
  1224. package/dist/sets/mineShaftRoomSubTypesSet.d.ts +0 -1
  1225. package/dist/sets/mineShaftRoomSubTypesSet.d.ts.map +1 -1
  1226. package/dist/sets/narrowRoomShapesSet.d.ts +0 -1
  1227. package/dist/sets/narrowRoomShapesSet.d.ts.map +1 -1
  1228. package/dist/sets/redHeartSubTypesSet.d.ts +0 -1
  1229. package/dist/sets/redHeartSubTypesSet.d.ts.map +1 -1
  1230. package/dist/sets/sinEntityTypesSet.d.ts +0 -1
  1231. package/dist/sets/sinEntityTypesSet.d.ts.map +1 -1
  1232. package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +0 -1
  1233. package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts.map +1 -1
  1234. package/dist/sets/storyBossesSet.d.ts +0 -1
  1235. package/dist/sets/storyBossesSet.d.ts.map +1 -1
  1236. package/dist/shaderCrashFix.d.ts +0 -1
  1237. package/dist/shaderCrashFix.d.ts.map +1 -1
  1238. package/dist/shaderCrashFix.lua +2 -2
  1239. package/dist/types/AnyEntity.d.ts +0 -1
  1240. package/dist/types/AnyEntity.d.ts.map +1 -1
  1241. package/dist/types/AnyGridEntity.d.ts +0 -1
  1242. package/dist/types/AnyGridEntity.d.ts.map +1 -1
  1243. package/dist/types/CollectibleIndex.d.ts +0 -1
  1244. package/dist/types/CollectibleIndex.d.ts.map +1 -1
  1245. package/dist/types/Immutable.d.ts +0 -1
  1246. package/dist/types/Immutable.d.ts.map +1 -1
  1247. package/dist/types/PickingUpItem.d.ts +0 -1
  1248. package/dist/types/PickingUpItem.d.ts.map +1 -1
  1249. package/dist/types/PickingUpItem.lua +5 -5
  1250. package/dist/types/PickupIndex.d.ts +0 -1
  1251. package/dist/types/PickupIndex.d.ts.map +1 -1
  1252. package/dist/types/PlayerIndex.d.ts +0 -1
  1253. package/dist/types/PlayerIndex.d.ts.map +1 -1
  1254. package/dist/types/PossibleStatType.d.ts +0 -1
  1255. package/dist/types/PossibleStatType.d.ts.map +1 -1
  1256. package/dist/types/SerializedIsaacAPIClass.d.ts +0 -1
  1257. package/dist/types/SerializedIsaacAPIClass.d.ts.map +1 -1
  1258. package/dist/types/TSTLClass.d.ts +0 -1
  1259. package/dist/types/TSTLClass.d.ts.map +1 -1
  1260. package/package.json +2 -2
  1261. package/src/classes/ModUpgraded.ts +5 -1
  1262. package/src/features/customPickup.ts +2 -3
  1263. package/src/features/extraConsoleCommands/listCommands.ts +6 -0
  1264. package/src/functions/gridEntitiesSpecific.ts +7 -2
@@ -27,7 +27,7 @@ local ____types = require("functions.types")
27
27
  local asNumber = ____types.asNumber
28
28
  local ____utils = require("functions.utils")
29
29
  local ____repeat = ____utils["repeat"]
30
- function getNumBossSegments(entityType, variant, numSegments)
30
+ function getNumBossSegments(self, entityType, variant, numSegments)
31
31
  if numSegments ~= nil then
32
32
  return numSegments
33
33
  end
@@ -42,7 +42,7 @@ function getNumBossSegments(entityType, variant, numSegments)
42
42
  ____cond18 = ____cond18 or ____switch18 == EntityType.LOKI
43
43
  if ____cond18 then
44
44
  do
45
- return variant == asNumber(LokiVariant.LOKII) and 2 or 1
45
+ return variant == asNumber(nil, LokiVariant.LOKII) and 2 or 1
46
46
  end
47
47
  end
48
48
  ____cond18 = ____cond18 or ____switch18 == EntityType.GURGLING
@@ -78,7 +78,7 @@ DEFAULT_BOSS_MULTI_SEGMENTS = 4
78
78
  -- @param subType Optional. If specified, will only get the bosses that match the sub-type. Default
79
79
  -- is -1, which matches every sub-type.
80
80
  -- @param ignoreFriendly Optional. Default is false.
81
- function ____exports.getAliveBosses(entityType, variant, subType, ignoreFriendly)
81
+ function ____exports.getAliveBosses(self, entityType, variant, subType, ignoreFriendly)
82
82
  if entityType == nil then
83
83
  entityType = -1
84
84
  end
@@ -91,7 +91,13 @@ function ____exports.getAliveBosses(entityType, variant, subType, ignoreFriendly
91
91
  if ignoreFriendly == nil then
92
92
  ignoreFriendly = false
93
93
  end
94
- local aliveNPCs = getAliveNPCs(entityType, variant, subType, ignoreFriendly)
94
+ local aliveNPCs = getAliveNPCs(
95
+ nil,
96
+ entityType,
97
+ variant,
98
+ subType,
99
+ ignoreFriendly
100
+ )
95
101
  return __TS__ArrayFilter(
96
102
  aliveNPCs,
97
103
  function(____, aliveNPC) return aliveNPC:IsBoss() end
@@ -108,7 +114,7 @@ end
108
114
  --
109
115
  -- @param includeStoryBosses Optional. Whether to include "story" bosses like Mom and It Lives!
110
116
  -- Default is true.
111
- function ____exports.getAllBossesSet(includeStoryBosses)
117
+ function ____exports.getAllBossesSet(self, includeStoryBosses)
112
118
  if includeStoryBosses == nil then
113
119
  includeStoryBosses = true
114
120
  end
@@ -120,7 +126,7 @@ end
120
126
  -- The set contains strings with the entity type and variant, separated by a period.
121
127
  --
122
128
  -- Also see the `getAllBossesSet` and `getCombinedBossSet` functions.
123
- function ____exports.getBossSet(stage, stageType)
129
+ function ____exports.getBossSet(self, stage, stageType)
124
130
  local stageTypeMap = STAGE_TO_STAGE_TYPE_TO_BOSS_SET_MAP:get(stage)
125
131
  if stageTypeMap == nil then
126
132
  return nil
@@ -140,11 +146,17 @@ end
140
146
  -- @param subType Optional. If specified, will only get the bosses that match the sub-type. Default
141
147
  -- is -1, which matches every sub-type.
142
148
  -- @param ignoreFriendly Optional. Default is false.
143
- function ____exports.getBosses(entityType, variant, subType, ignoreFriendly)
149
+ function ____exports.getBosses(self, entityType, variant, subType, ignoreFriendly)
144
150
  if ignoreFriendly == nil then
145
151
  ignoreFriendly = false
146
152
  end
147
- local npcs = getNPCs(entityType, variant, subType, ignoreFriendly)
153
+ local npcs = getNPCs(
154
+ nil,
155
+ entityType,
156
+ variant,
157
+ subType,
158
+ ignoreFriendly
159
+ )
148
160
  return __TS__ArrayFilter(
149
161
  npcs,
150
162
  function(____, npc) return npc:IsBoss() end
@@ -157,7 +169,7 @@ end
157
169
  -- The set contains strings with the entity type and variant, separated by a period.
158
170
  --
159
171
  -- Also see the `getAllBossesSet` and `getBossSet` functions.
160
- function ____exports.getCombinedBossSet(stage)
172
+ function ____exports.getCombinedBossSet(self, stage)
161
173
  local bossSet = STAGE_TO_COMBINED_BOSS_SET_MAP:get(stage)
162
174
  if bossSet == nil then
163
175
  return nil
@@ -165,7 +177,7 @@ function ____exports.getCombinedBossSet(stage)
165
177
  return bossSet
166
178
  end
167
179
  --- Helper function to check if the provided NPC is a Sin miniboss, such as Sloth or Lust.
168
- function ____exports.isSin(npc)
180
+ function ____exports.isSin(self, npc)
169
181
  return SIN_ENTITY_TYPES_SET:has(npc.Type)
170
182
  end
171
183
  --- Helper function to spawn a boss.
@@ -176,7 +188,7 @@ end
176
188
  -- By default, this will spawn Chub (and his variants) with 3 segments, Lokii with 2 copies,
177
189
  -- Gurglings/Turdlings with 2 copies, and other multi-segment bosses with 4 segments. You can
178
190
  -- customize this via the "numSegments" argument.
179
- function ____exports.spawnBoss(entityType, variant, subType, position, velocity, spawner, seedOrRNG, numSegments)
191
+ function ____exports.spawnBoss(self, entityType, variant, subType, position, velocity, spawner, seedOrRNG, numSegments)
180
192
  if velocity == nil then
181
193
  velocity = VectorZero
182
194
  end
@@ -186,8 +198,9 @@ function ____exports.spawnBoss(entityType, variant, subType, position, velocity,
186
198
  if seedOrRNG == nil then
187
199
  seedOrRNG = nil
188
200
  end
189
- local seed = isRNG(seedOrRNG) and seedOrRNG:Next() or seedOrRNG
201
+ local seed = isRNG(nil, seedOrRNG) and seedOrRNG:Next() or seedOrRNG
190
202
  local npc = spawnNPC(
203
+ nil,
191
204
  entityType,
192
205
  variant,
193
206
  subType,
@@ -197,12 +210,14 @@ function ____exports.spawnBoss(entityType, variant, subType, position, velocity,
197
210
  seed
198
211
  )
199
212
  if BOSSES_THAT_REQUIRE_MULTIPLE_SPAWNS:has(entityType) then
200
- local numBossSegments = getNumBossSegments(entityType, variant, numSegments)
213
+ local numBossSegments = getNumBossSegments(nil, entityType, variant, numSegments)
201
214
  local remainingSegmentsToSpawn = numBossSegments - 1
202
215
  ____repeat(
216
+ nil,
203
217
  remainingSegmentsToSpawn,
204
218
  function()
205
219
  spawnNPC(
220
+ nil,
206
221
  entityType,
207
222
  variant,
208
223
  subType,
@@ -219,15 +234,16 @@ end
219
234
  --- Helper function to spawn a boss with a specific seed.
220
235
  --
221
236
  -- For more information, see the documentation for the `spawnBoss` function.
222
- function ____exports.spawnBossWithSeed(entityType, variant, subType, position, seedOrRNG, velocity, spawner, numSegments)
237
+ function ____exports.spawnBossWithSeed(self, entityType, variant, subType, position, seedOrRNG, velocity, spawner, numSegments)
223
238
  if velocity == nil then
224
239
  velocity = VectorZero
225
240
  end
226
241
  if spawner == nil then
227
242
  spawner = nil
228
243
  end
229
- local seed = isRNG(seedOrRNG) and seedOrRNG:Next() or seedOrRNG
244
+ local seed = isRNG(nil, seedOrRNG) and seedOrRNG:Next() or seedOrRNG
230
245
  return ____exports.spawnBoss(
246
+ nil,
231
247
  entityType,
232
248
  variant,
233
249
  subType,
@@ -1,4 +1,3 @@
1
- /** @noSelfInFile */
2
1
  import { CardType, ItemConfigCardType } from "isaac-typescript-definitions";
3
2
  /**
4
3
  * Helper function to get a card description from a Card enum value.
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/functions/cards.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAkE5E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgB7D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgBtD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,mBAAmB,EAAE,kBAAkB,EAAE,GAC3C,GAAG,CAAC,QAAQ,CAAC,CAqBf;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,CAQ5E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ,CAGV;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ,CAIV;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,IAAI,QAAQ,EAAE,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAElD;AAED,8FAA8F;AAC9F,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAET;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE9D;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE9D;AAED,wDAAwD;AACxD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAElD;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEzD;AAED,wDAAwD;AACxD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,yDAAyD;AACzD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEvD;AAED,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE7D"}
1
+ {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/functions/cards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAkE5E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgB7D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAgBtD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,mBAAmB,EAAE,kBAAkB,EAAE,GAC3C,GAAG,CAAC,QAAQ,CAAC,CAqBf;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,kBAAkB,CAQ5E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ,CAGV;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,SAAS,GAAE,IAAI,GAAG,GAAqB,EACvC,UAAU,GAAE,QAAQ,EAAO,GAC1B,QAAQ,CAIV;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,IAAI,QAAQ,EAAE,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAElD;AAED,8FAA8F;AAC9F,wBAAgB,UAAU,CACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAET;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE9D;AAED,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE9D;AAED,wDAAwD;AACxD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAElD;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEzD;AAED,wDAAwD;AACxD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEtD;AAED,yDAAyD;AACzD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEvD;AAED,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE7D"}
@@ -31,32 +31,38 @@ local addSetsToSet = ____set.addSetsToSet
31
31
  local getRandomSetElement = ____set.getRandomSetElement
32
32
  local ____utils = require("functions.utils")
33
33
  local irange = ____utils.irange
34
- function lazyInitCardMapsSets()
35
- for ____, cardType in ipairs(getEnumValues(ItemConfigCardType)) do
34
+ function lazyInitCardMapsSets(self)
35
+ for ____, cardType in ipairs(getEnumValues(nil, ItemConfigCardType)) do
36
36
  ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP:set(
37
37
  cardType,
38
38
  __TS__New(Set)
39
39
  )
40
40
  end
41
- for ____, card in ipairs(____exports.getVanillaCardTypes()) do
42
- local itemConfigCardType = ____exports.getItemConfigCardType(card)
41
+ for ____, card in ipairs(____exports.getVanillaCardTypes(nil)) do
42
+ local itemConfigCardType = ____exports.getItemConfigCardType(nil, card)
43
43
  local cardTypeSet = ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP:get(itemConfigCardType)
44
44
  if cardTypeSet == nil then
45
45
  error("Failed to get the card set for item config card type: " .. tostring(itemConfigCardType))
46
46
  end
47
47
  cardTypeSet:add(card)
48
48
  end
49
- local cards = ____exports.getCardTypesOfType(ItemConfigCardType.TAROT, ItemConfigCardType.SUIT, ItemConfigCardType.SPECIAL, ItemConfigCardType.TAROT_REVERSE)
50
- addSetsToSet(CARD_SET, cards)
49
+ local cards = ____exports.getCardTypesOfType(
50
+ nil,
51
+ ItemConfigCardType.TAROT,
52
+ ItemConfigCardType.SUIT,
53
+ ItemConfigCardType.SPECIAL,
54
+ ItemConfigCardType.TAROT_REVERSE
55
+ )
56
+ addSetsToSet(nil, CARD_SET, cards)
51
57
  end
52
58
  --- Helper function to get a set of card types matching the `ItemConfigCardType`.
53
59
  --
54
60
  -- This function is variadic, meaning that you can you can specify N card types to get a set
55
61
  -- containing cards that match any of the specified types.
56
- function ____exports.getCardTypesOfType(...)
62
+ function ____exports.getCardTypesOfType(self, ...)
57
63
  local itemConfigCardTypes = {...}
58
64
  if ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP.size == 0 then
59
- lazyInitCardMapsSets()
65
+ lazyInitCardMapsSets(nil)
60
66
  end
61
67
  local matchingCardTypes = __TS__New(Set)
62
68
  for ____, itemConfigCardType in ipairs(itemConfigCardTypes) do
@@ -70,16 +76,16 @@ function ____exports.getCardTypesOfType(...)
70
76
  end
71
77
  return matchingCardTypes
72
78
  end
73
- function ____exports.getItemConfigCardType(cardType)
79
+ function ____exports.getItemConfigCardType(self, cardType)
74
80
  local itemConfigCardType = CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE[cardType]
75
81
  return itemConfigCardType == nil and DEFAULT_CARD_TYPE or itemConfigCardType
76
82
  end
77
83
  --- Helper function to get an array with every valid vanilla card sub-type.
78
- function ____exports.getVanillaCardTypes()
79
- return irange(FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
84
+ function ____exports.getVanillaCardTypes(self)
85
+ return irange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
80
86
  end
81
87
  --- Returns true for any vanilla card or rune.
82
- function ____exports.isVanillaCardType(cardType)
88
+ function ____exports.isVanillaCardType(self, cardType)
83
89
  return cardType <= LAST_VANILLA_CARD_TYPE
84
90
  end
85
91
  ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP = __TS__New(Map)
@@ -87,7 +93,7 @@ CARD_SET = __TS__New(Set)
87
93
  --- Helper function to get a card description from a Card enum value.
88
94
  --
89
95
  -- For example, `getCardDescription(card)` returns "Where journey begins".
90
- function ____exports.getCardDescription(cardType)
96
+ function ____exports.getCardDescription(self, cardType)
91
97
  local cardDescription = CARD_DESCRIPTIONS[cardType]
92
98
  if cardDescription ~= nil then
93
99
  return cardDescription
@@ -101,7 +107,7 @@ end
101
107
  --- Helper function to get a card name from a Card.
102
108
  --
103
109
  -- For example, `getCardName(Card.FOOL)` would return "0 - The Fool".
104
- function ____exports.getCardName(cardType)
110
+ function ____exports.getCardName(self, cardType)
105
111
  local cardName = CARD_NAMES[cardType]
106
112
  if cardName ~= nil then
107
113
  return cardName
@@ -123,14 +129,14 @@ end
123
129
  -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
124
130
  -- `RNG.Next` method will be called. Default is `getRandomSeed()`.
125
131
  -- @param exceptions Optional. An array of cards to not select.
126
- function ____exports.getRandomCard(seedOrRNG, exceptions)
132
+ function ____exports.getRandomCard(self, seedOrRNG, exceptions)
127
133
  if seedOrRNG == nil then
128
- seedOrRNG = getRandomSeed()
134
+ seedOrRNG = getRandomSeed(nil)
129
135
  end
130
136
  if exceptions == nil then
131
137
  exceptions = {}
132
138
  end
133
- return getRandomSetElement(CARD_SET, seedOrRNG, exceptions)
139
+ return getRandomSetElement(nil, CARD_SET, seedOrRNG, exceptions)
134
140
  end
135
141
  ---
136
142
  -- @param itemConfigCardType The item config card type that represents the pool of cards to select
@@ -138,15 +144,15 @@ end
138
144
  -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
139
145
  -- `RNG.Next` method will be called. Default is `getRandomSeed()`.
140
146
  -- @param exceptions Optional. An array of cards to not select.
141
- function ____exports.getRandomCardTypeOfType(itemConfigCardType, seedOrRNG, exceptions)
147
+ function ____exports.getRandomCardTypeOfType(self, itemConfigCardType, seedOrRNG, exceptions)
142
148
  if seedOrRNG == nil then
143
- seedOrRNG = getRandomSeed()
149
+ seedOrRNG = getRandomSeed(nil)
144
150
  end
145
151
  if exceptions == nil then
146
152
  exceptions = {}
147
153
  end
148
- local cardTypeSet = ____exports.getCardTypesOfType(itemConfigCardType)
149
- return getRandomSetElement(cardTypeSet, seedOrRNG, exceptions)
154
+ local cardTypeSet = ____exports.getCardTypesOfType(nil, itemConfigCardType)
155
+ return getRandomSetElement(nil, cardTypeSet, seedOrRNG, exceptions)
150
156
  end
151
157
  --- Has an equal chance of returning any rune (e.g. Rune of Hagalaz, Blank Rune, Black Rune, Soul of
152
158
  -- Isaac, etc.). This will never return a Rune Shard.
@@ -154,55 +160,55 @@ end
154
160
  -- @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
155
161
  -- `RNG.Next` method will be called. Default is `getRandomSeed()`.
156
162
  -- @param exceptions Optional. An array of runes to not select.
157
- function ____exports.getRandomRune(seedOrRNG, exceptions)
163
+ function ____exports.getRandomRune(self, seedOrRNG, exceptions)
158
164
  if seedOrRNG == nil then
159
- seedOrRNG = getRandomSeed()
165
+ seedOrRNG = getRandomSeed(nil)
160
166
  end
161
167
  if exceptions == nil then
162
168
  exceptions = {}
163
169
  end
164
- local runesSet = ____exports.getCardTypesOfType(ItemConfigCardType.RUNE)
170
+ local runesSet = ____exports.getCardTypesOfType(nil, ItemConfigCardType.RUNE)
165
171
  runesSet:delete(CardType.RUNE_SHARD)
166
- return getRandomSetElement(runesSet, seedOrRNG, exceptions)
172
+ return getRandomSetElement(nil, runesSet, seedOrRNG, exceptions)
167
173
  end
168
174
  --- Returns true for cards that have the following card type:
169
175
  -- - CardType.TAROT
170
176
  -- - CardType.SUIT
171
177
  -- - CardType.SPECIAL
172
178
  -- - CardType.TAROT_REVERSE
173
- function ____exports.isCard(cardType)
179
+ function ____exports.isCard(self, cardType)
174
180
  return CARD_SET:has(cardType)
175
181
  end
176
182
  --- Returns whether or not the given card type matches the specified item config card type.
177
- function ____exports.isCardType(cardType, itemConfigCardType)
178
- return itemConfigCardType == ____exports.getItemConfigCardType(cardType)
183
+ function ____exports.isCardType(self, cardType, itemConfigCardType)
184
+ return itemConfigCardType == ____exports.getItemConfigCardType(nil, cardType)
179
185
  end
180
186
  --- Returns true for any card or rune added by a mod.
181
- function ____exports.isModdedCardType(cardType)
182
- return not ____exports.isVanillaCardType(cardType)
187
+ function ____exports.isModdedCardType(self, cardType)
188
+ return not ____exports.isVanillaCardType(nil, cardType)
183
189
  end
184
190
  --- Returns true for cards that have `ItemConfigCardType.SPECIAL_OBJECT`.
185
- function ____exports.isPocketItemObject(cardType)
186
- return ____exports.isCardType(cardType, ItemConfigCardType.SPECIAL_OBJECT)
191
+ function ____exports.isPocketItemObject(self, cardType)
192
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL_OBJECT)
187
193
  end
188
194
  --- Returns true for cards that have `ItemConfigCardType.TAROT_REVERSE`.
189
- function ____exports.isReverseTarotCard(cardType)
190
- return ____exports.isCardType(cardType, ItemConfigCardType.TAROT_REVERSE)
195
+ function ____exports.isReverseTarotCard(self, cardType)
196
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT_REVERSE)
191
197
  end
192
198
  --- Returns true for cards that have `CardType.RUNE`.
193
- function ____exports.isRune(cardType)
194
- return ____exports.isCardType(cardType, ItemConfigCardType.RUNE)
199
+ function ____exports.isRune(self, cardType)
200
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.RUNE)
195
201
  end
196
202
  --- Returns true for cards that have `CardType.SPECIAL`.
197
- function ____exports.isSpecialCard(cardType)
198
- return ____exports.isCardType(cardType, ItemConfigCardType.SPECIAL)
203
+ function ____exports.isSpecialCard(self, cardType)
204
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL)
199
205
  end
200
206
  --- Returns true for cards that have `CardType.SUIT`.
201
- function ____exports.isSuitCard(cardType)
202
- return ____exports.isCardType(cardType, ItemConfigCardType.SUIT)
207
+ function ____exports.isSuitCard(self, cardType)
208
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.SUIT)
203
209
  end
204
210
  --- Returns true for cards that have `CardType.TAROT`.
205
- function ____exports.isTarotCard(cardType)
206
- return ____exports.isCardType(cardType, ItemConfigCardType.TAROT)
211
+ function ____exports.isTarotCard(self, cardType)
212
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT)
207
213
  end
208
214
  return ____exports
@@ -1,4 +1,3 @@
1
- /** @noSelfInFile */
2
1
  import { Challenge } from "isaac-typescript-definitions";
3
2
  /** Get the proper name for a `Challenge` enum. This will only work for vanilla challenges. */
4
3
  export declare function getChallengeName(challenge: Challenge): string;
@@ -1 +1 @@
1
- {"version":3,"file":"challenges.d.ts","sourceRoot":"","sources":["../../src/functions/challenges.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAK7D"}
1
+ {"version":3,"file":"challenges.d.ts","sourceRoot":"","sources":["../../src/functions/challenges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAK7D"}
@@ -3,7 +3,7 @@ local ____challengeNames = require("objects.challengeNames")
3
3
  local CHALLENGE_NAMES = ____challengeNames.CHALLENGE_NAMES
4
4
  local DEFAULT_CHALLENGE_NAME = ____challengeNames.DEFAULT_CHALLENGE_NAME
5
5
  --- Get the proper name for a `Challenge` enum. This will only work for vanilla challenges.
6
- function ____exports.getChallengeName(challenge)
6
+ function ____exports.getChallengeName(self, challenge)
7
7
  local challengeName = CHALLENGE_NAMES[challenge]
8
8
  return challengeName == nil and DEFAULT_CHALLENGE_NAME or challengeName
9
9
  end
@@ -1,4 +1,3 @@
1
- /** @noSelfInFile */
2
1
  import { PlayerType } from "isaac-typescript-definitions";
3
2
  /**
4
3
  * Helper function to determine if the given character can have red heart containers. Returns true
@@ -1 +1 @@
1
- {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../src/functions/characters.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAW1D;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAExE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEzE;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE7E;AAED;;;;GAIG;AACH,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,UAAU,GACpB,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE5E;AAED,8EAA8E;AAC9E,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,EACrB,iBAAiB,UAAQ,GACxB,KAAK,CAMP;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAU5E;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,GAAG,CAsBzE;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAM9D;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEhE;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEjE"}
1
+ {"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../src/functions/characters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAW1D;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAExE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEzE;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE7E;AAED;;;;GAIG;AACH,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,UAAU,GACpB,OAAO,CAET;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAE5E;AAED,8EAA8E;AAC9E,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,EACrB,iBAAiB,UAAQ,GACxB,KAAK,CAMP;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAU5E;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,UAAU,GAAG,GAAG,CAsBzE;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAM9D;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEhE;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAEjE"}
@@ -19,45 +19,45 @@ local ____charactersWithNoSoulHeartsSet = require("sets.charactersWithNoSoulHear
19
19
  local CHARACTERS_WITH_NO_SOUL_HEARTS_SET = ____charactersWithNoSoulHeartsSet.CHARACTERS_WITH_NO_SOUL_HEARTS_SET
20
20
  local ____lostStyleCharactersSet = require("sets.lostStyleCharactersSet")
21
21
  local LOST_STYLE_CHARACTERS_SET = ____lostStyleCharactersSet.LOST_STYLE_CHARACTERS_SET
22
- function ____exports.isModdedCharacter(character)
23
- return not ____exports.isVanillaCharacter(character)
22
+ function ____exports.isModdedCharacter(self, character)
23
+ return not ____exports.isVanillaCharacter(nil, character)
24
24
  end
25
- function ____exports.isVanillaCharacter(character)
25
+ function ____exports.isVanillaCharacter(self, character)
26
26
  return character <= LAST_VANILLA_CHARACTER
27
27
  end
28
28
  --- Helper function to determine if the given character can have red heart containers. Returns true
29
29
  -- for characters like Isaac, Magdalene, or Cain. Returns true for Keeper and Tainted Keeper, even
30
30
  -- though coin containers are not technically the same as red heart containers. Returns false for
31
31
  -- characters like Blue Baby. Returns false for The Lost and Tainted Lost.
32
- function ____exports.characterCanHaveRedHearts(character)
32
+ function ____exports.characterCanHaveRedHearts(self, character)
33
33
  return not CHARACTERS_WITH_NO_RED_HEARTS_SET:has(character)
34
34
  end
35
35
  --- Helper function to determine if the given character can have soul hearts. Returns true for
36
36
  -- characters like Isaac, Magdalene, or Cain. Returns false for characters like Bethany. Returns
37
37
  -- false for The Lost and Tainted Lost.
38
- function ____exports.characterCanHaveSoulHearts(character)
38
+ function ____exports.characterCanHaveSoulHearts(self, character)
39
39
  return not CHARACTERS_WITH_NO_SOUL_HEARTS_SET:has(character)
40
40
  end
41
41
  --- Helper function for determining whether the given character can take free Devil Deals. (e.g. The
42
42
  -- Lost, Tainted Lost, etc.)
43
- function ____exports.characterCanTakeFreeDevilDeals(character)
43
+ function ____exports.characterCanTakeFreeDevilDeals(self, character)
44
44
  return CHARACTERS_WITH_FREE_DEVIL_DEALS_SET:has(character)
45
45
  end
46
46
  --- Normally, characters get a red heart container upon reaching a new floor with an eternal heart,
47
47
  -- but some characters grant a black heart instead. Returns true for Dark Judas and Tainted Judas.
48
48
  -- Otherwise, returns false.
49
- function ____exports.characterGetsBlackHeartFromEternalHeart(character)
49
+ function ____exports.characterGetsBlackHeartFromEternalHeart(self, character)
50
50
  return CHARACTERS_WITH_BLACK_HEART_FROM_ETERNAL_HEART_SET:has(character)
51
51
  end
52
52
  --- Helper function to determine if the specified character starts with an active item.
53
53
  --
54
54
  -- For the purposes of this function, the save file is considered to be fully unlocked (e.g. Isaac
55
55
  -- is considered to starts with the D6, but this is not the case on a brand new save file).
56
- function ____exports.characterStartsWithActiveItem(character)
56
+ function ____exports.characterStartsWithActiveItem(self, character)
57
57
  return CHARACTERS_THAT_START_WITH_AN_ACTIVE_ITEM_SET:has(character)
58
58
  end
59
59
  --- Helper function to get the numerical damage multiplier for a character.
60
- function ____exports.getCharacterDamageMultiplier(character, hasWhoreOfBabylon)
60
+ function ____exports.getCharacterDamageMultiplier(self, character, hasWhoreOfBabylon)
61
61
  if hasWhoreOfBabylon == nil then
62
62
  hasWhoreOfBabylon = false
63
63
  end
@@ -69,7 +69,7 @@ end
69
69
  --- - Most characters have a 56 frame death animation (i.e. the "Death" animation).
70
70
  -- - The Lost and Tainted Lost have a 38 frame death animation (i.e. the "LostDeath" animation).
71
71
  -- - Tainted Forgotten have a 20 frame death animation (i.e. the "ForgottenDeath" animation).
72
- function ____exports.getCharacterDeathAnimationName(character)
72
+ function ____exports.getCharacterDeathAnimationName(self, character)
73
73
  if LOST_STYLE_CHARACTERS_SET:has(character) then
74
74
  return "LostDeath"
75
75
  end
@@ -81,7 +81,7 @@ end
81
81
  --- Returns the maximum heart containers that the provided character can have. Normally, this is 12,
82
82
  -- but with Keeper it is 3, and with Tainted Keeper it is 2. This does not account for Birthright or
83
83
  -- Mother's Kiss; use the `getPlayerMaxHeartContainers` helper function for that.
84
- function ____exports.getCharacterMaxHeartContainers(character)
84
+ function ____exports.getCharacterMaxHeartContainers(self, character)
85
85
  if character == PlayerType.KEEPER then
86
86
  return 3
87
87
  end
@@ -97,8 +97,8 @@ function ____exports.getCharacterMaxHeartContainers(character)
97
97
  return 12
98
98
  end
99
99
  --- Helper function to get the name of a character. Returns "Unknown" for modded characters.
100
- function ____exports.getCharacterName(character)
101
- if ____exports.isModdedCharacter(character) then
100
+ function ____exports.getCharacterName(self, character)
101
+ if ____exports.isModdedCharacter(nil, character) then
102
102
  return "Unknown"
103
103
  end
104
104
  return CHARACTER_NAMES[character]
@@ -1,4 +1,3 @@
1
- /** @noSelfInFile */
2
1
  import { ActiveSlot } from "isaac-typescript-definitions";
3
2
  /**
4
3
  * Helper function to add a charge to the player's active item. Will flash the HUD and play the
@@ -1 +1 @@
1
- {"version":3,"file":"charge.d.ts","sourceRoot":"","sources":["../../src/functions/charge.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EAIX,MAAM,8BAA8B,CAAC;AAMtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,SAAI,EACd,eAAe,UAAO,GACrB,GAAG,CA2BL;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,mBAAmB,UAAO,EAC1B,eAAe,UAAO,GACrB,IAAI,CAaN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,mBAAmB,UAAO,EAC1B,eAAe,UAAO,GACrB,IAAI,CAMN;AAuED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,mBAAmB,UAAO,GAAG,IAAI,CAIpE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACrB,GAAG,CAKL;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACrB,OAAO,CAMT;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACrB,IAAI,CAYN"}
1
+ {"version":3,"file":"charge.d.ts","sourceRoot":"","sources":["../../src/functions/charge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAIX,MAAM,8BAA8B,CAAC;AAMtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,UAAU,SAAI,EACd,eAAe,UAAO,GACrB,GAAG,CA2BL;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,mBAAmB,UAAO,EAC1B,eAAe,UAAO,GACrB,IAAI,CAaN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,EACtB,mBAAmB,UAAO,EAC1B,eAAe,UAAO,GACrB,IAAI,CAMN;AAuED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,mBAAmB,UAAO,GAAG,IAAI,CAIpE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACrB,GAAG,CAKL;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACrB,OAAO,CAMT;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,UAAU,GACrB,IAAI,CAYN"}
@@ -31,7 +31,7 @@ local getRoomShapeCharges = ____roomShape.getRoomShapeCharges
31
31
  -- @returns The amount of charges that were actually granted. For example, if the active item was
32
32
  -- only one away from a full charge, but the `numCharges` provided to this function was 2,
33
33
  -- then this function would return 1.
34
- function ____exports.addCharge(player, activeSlot, numCharges, playSoundEffect)
34
+ function ____exports.addCharge(self, player, activeSlot, numCharges, playSoundEffect)
35
35
  if numCharges == nil then
36
36
  numCharges = 1
37
37
  end
@@ -39,9 +39,9 @@ function ____exports.addCharge(player, activeSlot, numCharges, playSoundEffect)
39
39
  playSoundEffect = true
40
40
  end
41
41
  local hud = game:GetHUD()
42
- local chargesToAdd = getClampedChargesToAdd(player, activeSlot, numCharges)
43
- local modifiedChargesToAdd = getChargesToAddWithAAAModifier(player, activeSlot, chargesToAdd)
44
- local totalCharge = ____exports.getTotalCharge(player, activeSlot)
42
+ local chargesToAdd = getClampedChargesToAdd(nil, player, activeSlot, numCharges)
43
+ local modifiedChargesToAdd = getChargesToAddWithAAAModifier(nil, player, activeSlot, chargesToAdd)
44
+ local totalCharge = ____exports.getTotalCharge(nil, player, activeSlot)
45
45
  local newCharge = totalCharge + modifiedChargesToAdd
46
46
  if newCharge == totalCharge then
47
47
  return 0
@@ -49,7 +49,7 @@ function ____exports.addCharge(player, activeSlot, numCharges, playSoundEffect)
49
49
  player:SetActiveCharge(newCharge, activeSlot)
50
50
  hud:FlashChargeBar(player, activeSlot)
51
51
  if playSoundEffect then
52
- ____exports.playChargeSoundEffect(player, activeSlot)
52
+ ____exports.playChargeSoundEffect(nil, player, activeSlot)
53
53
  end
54
54
  return modifiedChargesToAdd
55
55
  end
@@ -67,7 +67,7 @@ end
67
67
  -- room for the purposes of calculating how much charge to grant. Default
68
68
  -- is true.
69
69
  -- @param playSoundEffect Optional. Whether to play a charge-related sound effect. Default is true.
70
- function ____exports.addRoomClearChargeToSlot(player, activeSlot, bigRoomDoubleCharge, playSoundEffect)
70
+ function ____exports.addRoomClearChargeToSlot(self, player, activeSlot, bigRoomDoubleCharge, playSoundEffect)
71
71
  if bigRoomDoubleCharge == nil then
72
72
  bigRoomDoubleCharge = true
73
73
  end
@@ -76,15 +76,21 @@ function ____exports.addRoomClearChargeToSlot(player, activeSlot, bigRoomDoubleC
76
76
  end
77
77
  local room = game:GetRoom()
78
78
  local roomShape = room:GetRoomShape()
79
- local numCharges = bigRoomDoubleCharge and getRoomShapeCharges(roomShape) or 1
80
- ____exports.addCharge(player, activeSlot, numCharges, playSoundEffect)
79
+ local numCharges = bigRoomDoubleCharge and getRoomShapeCharges(nil, roomShape) or 1
80
+ ____exports.addCharge(
81
+ nil,
82
+ player,
83
+ activeSlot,
84
+ numCharges,
85
+ playSoundEffect
86
+ )
81
87
  end
82
- function getClampedChargesToAdd(player, activeSlot, numCharges)
88
+ function getClampedChargesToAdd(self, player, activeSlot, numCharges)
83
89
  local activeItem = player:GetActiveItem(activeSlot)
84
90
  local activeCharge = player:GetActiveCharge(activeSlot)
85
91
  local batteryCharge = player:GetBatteryCharge(activeSlot)
86
92
  local hasBattery = player:HasCollectible(CollectibleType.BATTERY)
87
- local maxCharges = getCollectibleMaxCharges(activeItem)
93
+ local maxCharges = getCollectibleMaxCharges(nil, activeItem)
88
94
  if not hasBattery and activeCharge == maxCharges then
89
95
  return 0
90
96
  end
@@ -99,13 +105,13 @@ function getClampedChargesToAdd(player, activeSlot, numCharges)
99
105
  end
100
106
  return numCharges
101
107
  end
102
- function getChargesToAddWithAAAModifier(player, activeSlot, chargesToAdd)
108
+ function getChargesToAddWithAAAModifier(self, player, activeSlot, chargesToAdd)
103
109
  local activeItem = player:GetActiveItem(activeSlot)
104
110
  local activeCharge = player:GetActiveCharge(activeSlot)
105
111
  local batteryCharge = player:GetBatteryCharge(activeSlot)
106
112
  local hasBattery = player:HasCollectible(CollectibleType.BATTERY)
107
113
  local hasAAABattery = player:HasTrinket(TrinketType.AAA_BATTERY)
108
- local maxCharges = getCollectibleMaxCharges(activeItem)
114
+ local maxCharges = getCollectibleMaxCharges(nil, activeItem)
109
115
  if not hasAAABattery then
110
116
  return chargesToAdd
111
117
  end
@@ -120,24 +126,24 @@ end
120
126
  --- Helper function to get the combined normal charge and the battery charge for the player's active
121
127
  -- item. This is useful because you have to add these two values together when setting the active
122
128
  -- charge.
123
- function ____exports.getTotalCharge(player, activeSlot)
129
+ function ____exports.getTotalCharge(self, player, activeSlot)
124
130
  local activeCharge = player:GetActiveCharge(activeSlot)
125
131
  local batteryCharge = player:GetBatteryCharge(activeSlot)
126
132
  return activeCharge + batteryCharge
127
133
  end
128
- function ____exports.playChargeSoundEffect(player, activeSlot)
134
+ function ____exports.playChargeSoundEffect(self, player, activeSlot)
129
135
  for ____, soundEffect in ipairs({SoundEffect.BATTERY_CHARGE, SoundEffect.BEEP}) do
130
136
  sfxManager:Stop(soundEffect)
131
137
  end
132
- local chargeSoundEffect = shouldPlayFullRechargeSound(player, activeSlot) and SoundEffect.BATTERY_CHARGE or SoundEffect.BEEP
138
+ local chargeSoundEffect = shouldPlayFullRechargeSound(nil, player, activeSlot) and SoundEffect.BATTERY_CHARGE or SoundEffect.BEEP
133
139
  sfxManager:Play(chargeSoundEffect)
134
140
  end
135
- function shouldPlayFullRechargeSound(player, activeSlot)
141
+ function shouldPlayFullRechargeSound(self, player, activeSlot)
136
142
  local activeItem = player:GetActiveItem(activeSlot)
137
143
  local activeCharge = player:GetActiveCharge(activeSlot)
138
144
  local batteryCharge = player:GetBatteryCharge(activeSlot)
139
145
  local hasBattery = player:HasCollectible(CollectibleType.BATTERY)
140
- local maxCharges = getCollectibleMaxCharges(activeItem)
146
+ local maxCharges = getCollectibleMaxCharges(nil, activeItem)
141
147
  if not hasBattery then
142
148
  return activeCharge == maxCharges
143
149
  end
@@ -156,7 +162,7 @@ end
156
162
  -- room for the purposes of calculating how much charge to grant. Default
157
163
  -- is true.
158
164
  -- @param playSoundEffect Optional. Whether to play a charge-related sound effect. Default is true.
159
- function ____exports.addRoomClearCharge(player, bigRoomDoubleCharge, playSoundEffect)
165
+ function ____exports.addRoomClearCharge(self, player, bigRoomDoubleCharge, playSoundEffect)
160
166
  if bigRoomDoubleCharge == nil then
161
167
  bigRoomDoubleCharge = true
162
168
  end
@@ -164,7 +170,13 @@ function ____exports.addRoomClearCharge(player, bigRoomDoubleCharge, playSoundEf
164
170
  playSoundEffect = true
165
171
  end
166
172
  for ____, activeSlot in ipairs({ActiveSlot.PRIMARY, ActiveSlot.SECONDARY, ActiveSlot.POCKET}) do
167
- ____exports.addRoomClearChargeToSlot(player, activeSlot, bigRoomDoubleCharge, playSoundEffect)
173
+ ____exports.addRoomClearChargeToSlot(
174
+ nil,
175
+ player,
176
+ activeSlot,
177
+ bigRoomDoubleCharge,
178
+ playSoundEffect
179
+ )
168
180
  end
169
181
  end
170
182
  --- Helper function to add a charge to every player's active item, emulating what happens when a room
@@ -178,18 +190,18 @@ end
178
190
  -- @param bigRoomDoubleCharge Optional. If set to false, it will treat the current room as a 1x1
179
191
  -- room for the purposes of calculating how much charge to grant. Default
180
192
  -- is true.
181
- function ____exports.addRoomClearCharges(bigRoomDoubleCharge)
193
+ function ____exports.addRoomClearCharges(self, bigRoomDoubleCharge)
182
194
  if bigRoomDoubleCharge == nil then
183
195
  bigRoomDoubleCharge = true
184
196
  end
185
- for ____, player in ipairs(getPlayers()) do
186
- ____exports.addRoomClearCharge(player, bigRoomDoubleCharge)
197
+ for ____, player in ipairs(getPlayers(nil)) do
198
+ ____exports.addRoomClearCharge(nil, player, bigRoomDoubleCharge)
187
199
  end
188
200
  end
189
- function ____exports.isActiveSlotDoubleCharged(player, activeSlot)
201
+ function ____exports.isActiveSlotDoubleCharged(self, player, activeSlot)
190
202
  local collectibleType = player:GetActiveItem(activeSlot)
191
203
  local batteryCharge = player:GetBatteryCharge(activeSlot)
192
- local maxCharges = getCollectibleMaxCharges(collectibleType)
204
+ local maxCharges = getCollectibleMaxCharges(nil, collectibleType)
193
205
  return batteryCharge >= maxCharges
194
206
  end
195
207
  return ____exports