isaacscript-common 87.9.6 → 87.9.8

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 (1596) hide show
  1. package/dist/cachedEnumValues.js +29 -32
  2. package/dist/callbackClasses.js +142 -289
  3. package/dist/callbacks.js +147 -183
  4. package/dist/classes/DefaultMap.d.ts.map +1 -1
  5. package/dist/classes/DefaultMap.js +4 -8
  6. package/dist/classes/ModFeature.d.ts.map +1 -1
  7. package/dist/classes/ModFeature.js +21 -25
  8. package/dist/classes/ModUpgraded.d.ts +19 -19
  9. package/dist/classes/ModUpgraded.d.ts.map +1 -1
  10. package/dist/classes/ModUpgraded.js +138 -141
  11. package/dist/classes/ModUpgraded.lua +99 -99
  12. package/dist/classes/callbacks/EntityTakeDmgFilter.d.ts +2 -2
  13. package/dist/classes/callbacks/EntityTakeDmgFilter.d.ts.map +1 -1
  14. package/dist/classes/callbacks/EntityTakeDmgFilter.js +8 -12
  15. package/dist/classes/callbacks/EntityTakeDmgFilter.lua +1 -1
  16. package/dist/classes/callbacks/EntityTakeDmgPlayer.d.ts +2 -2
  17. package/dist/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -1
  18. package/dist/classes/callbacks/EntityTakeDmgPlayer.js +15 -19
  19. package/dist/classes/callbacks/EntityTakeDmgPlayer.lua +1 -1
  20. package/dist/classes/callbacks/InputActionFilter.d.ts +2 -2
  21. package/dist/classes/callbacks/InputActionFilter.d.ts.map +1 -1
  22. package/dist/classes/callbacks/InputActionFilter.js +12 -16
  23. package/dist/classes/callbacks/InputActionFilter.lua +1 -1
  24. package/dist/classes/callbacks/InputActionPlayer.d.ts +2 -2
  25. package/dist/classes/callbacks/InputActionPlayer.d.ts.map +1 -1
  26. package/dist/classes/callbacks/InputActionPlayer.js +21 -25
  27. package/dist/classes/callbacks/InputActionPlayer.lua +6 -6
  28. package/dist/classes/callbacks/PostAmbushFinished.d.ts +2 -2
  29. package/dist/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
  30. package/dist/classes/callbacks/PostAmbushFinished.js +17 -21
  31. package/dist/classes/callbacks/PostAmbushFinished.lua +2 -2
  32. package/dist/classes/callbacks/PostAmbushStarted.d.ts +2 -2
  33. package/dist/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
  34. package/dist/classes/callbacks/PostAmbushStarted.js +17 -21
  35. package/dist/classes/callbacks/PostAmbushStarted.lua +2 -2
  36. package/dist/classes/callbacks/PostBombExploded.d.ts +2 -2
  37. package/dist/classes/callbacks/PostBombExploded.d.ts.map +1 -1
  38. package/dist/classes/callbacks/PostBombExploded.js +13 -17
  39. package/dist/classes/callbacks/PostBombExploded.lua +1 -1
  40. package/dist/classes/callbacks/PostBombInitFilter.d.ts +2 -2
  41. package/dist/classes/callbacks/PostBombInitFilter.d.ts.map +1 -1
  42. package/dist/classes/callbacks/PostBombInitFilter.js +10 -14
  43. package/dist/classes/callbacks/PostBombInitFilter.lua +1 -1
  44. package/dist/classes/callbacks/PostBombInitLate.d.ts +2 -2
  45. package/dist/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
  46. package/dist/classes/callbacks/PostBombInitLate.js +13 -17
  47. package/dist/classes/callbacks/PostBombInitLate.lua +2 -2
  48. package/dist/classes/callbacks/PostBombRenderFilter.d.ts +2 -2
  49. package/dist/classes/callbacks/PostBombRenderFilter.d.ts.map +1 -1
  50. package/dist/classes/callbacks/PostBombRenderFilter.js +10 -14
  51. package/dist/classes/callbacks/PostBombRenderFilter.lua +1 -1
  52. package/dist/classes/callbacks/PostBombUpdateFilter.d.ts +2 -2
  53. package/dist/classes/callbacks/PostBombUpdateFilter.d.ts.map +1 -1
  54. package/dist/classes/callbacks/PostBombUpdateFilter.js +10 -14
  55. package/dist/classes/callbacks/PostBombUpdateFilter.lua +1 -1
  56. package/dist/classes/callbacks/PostBoneSwing.d.ts +1 -1
  57. package/dist/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  58. package/dist/classes/callbacks/PostBoneSwing.js +14 -18
  59. package/dist/classes/callbacks/PostBoneSwing.lua +1 -1
  60. package/dist/classes/callbacks/PostCollectibleEmpty.d.ts +2 -2
  61. package/dist/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
  62. package/dist/classes/callbacks/PostCollectibleEmpty.js +22 -26
  63. package/dist/classes/callbacks/PostCollectibleEmpty.lua +6 -6
  64. package/dist/classes/callbacks/PostCursedTeleport.d.ts +2 -2
  65. package/dist/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
  66. package/dist/classes/callbacks/PostCursedTeleport.js +54 -61
  67. package/dist/classes/callbacks/PostCursedTeleport.lua +4 -7
  68. package/dist/classes/callbacks/PostCustomRevive.d.ts +1 -1
  69. package/dist/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
  70. package/dist/classes/callbacks/PostCustomRevive.js +7 -11
  71. package/dist/classes/callbacks/PostDiceRoomActivated.d.ts +2 -2
  72. package/dist/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
  73. package/dist/classes/callbacks/PostDiceRoomActivated.js +28 -30
  74. package/dist/classes/callbacks/PostDiceRoomActivated.lua +8 -7
  75. package/dist/classes/callbacks/PostDoorRender.d.ts +2 -2
  76. package/dist/classes/callbacks/PostDoorRender.d.ts.map +1 -1
  77. package/dist/classes/callbacks/PostDoorRender.js +13 -17
  78. package/dist/classes/callbacks/PostDoorRender.lua +1 -1
  79. package/dist/classes/callbacks/PostDoorUpdate.d.ts +2 -2
  80. package/dist/classes/callbacks/PostDoorUpdate.d.ts.map +1 -1
  81. package/dist/classes/callbacks/PostDoorUpdate.js +13 -17
  82. package/dist/classes/callbacks/PostDoorUpdate.lua +1 -1
  83. package/dist/classes/callbacks/PostEffectInitFilter.d.ts +2 -2
  84. package/dist/classes/callbacks/PostEffectInitFilter.d.ts.map +1 -1
  85. package/dist/classes/callbacks/PostEffectInitFilter.js +10 -14
  86. package/dist/classes/callbacks/PostEffectInitFilter.lua +1 -1
  87. package/dist/classes/callbacks/PostEffectInitLate.d.ts +2 -2
  88. package/dist/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
  89. package/dist/classes/callbacks/PostEffectInitLate.js +13 -17
  90. package/dist/classes/callbacks/PostEffectInitLate.lua +2 -2
  91. package/dist/classes/callbacks/PostEffectRenderFilter.d.ts +2 -2
  92. package/dist/classes/callbacks/PostEffectRenderFilter.d.ts.map +1 -1
  93. package/dist/classes/callbacks/PostEffectRenderFilter.js +10 -14
  94. package/dist/classes/callbacks/PostEffectRenderFilter.lua +1 -1
  95. package/dist/classes/callbacks/PostEffectStateChanged.d.ts +2 -2
  96. package/dist/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
  97. package/dist/classes/callbacks/PostEffectStateChanged.js +15 -19
  98. package/dist/classes/callbacks/PostEffectStateChanged.lua +2 -2
  99. package/dist/classes/callbacks/PostEffectUpdateFilter.d.ts +2 -2
  100. package/dist/classes/callbacks/PostEffectUpdateFilter.d.ts.map +1 -1
  101. package/dist/classes/callbacks/PostEffectUpdateFilter.js +10 -14
  102. package/dist/classes/callbacks/PostEffectUpdateFilter.lua +1 -1
  103. package/dist/classes/callbacks/PostEntityKillFilter.d.ts +2 -2
  104. package/dist/classes/callbacks/PostEntityKillFilter.d.ts.map +1 -1
  105. package/dist/classes/callbacks/PostEntityKillFilter.js +10 -14
  106. package/dist/classes/callbacks/PostEntityKillFilter.lua +1 -1
  107. package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts +2 -2
  108. package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts.map +1 -1
  109. package/dist/classes/callbacks/PostEntityRemoveFilter.js +10 -14
  110. package/dist/classes/callbacks/PostEntityRemoveFilter.lua +1 -1
  111. package/dist/classes/callbacks/PostEsauJr.js +4 -8
  112. package/dist/classes/callbacks/PostFamiliarInitFilter.d.ts +2 -2
  113. package/dist/classes/callbacks/PostFamiliarInitFilter.d.ts.map +1 -1
  114. package/dist/classes/callbacks/PostFamiliarInitFilter.js +10 -14
  115. package/dist/classes/callbacks/PostFamiliarInitFilter.lua +1 -1
  116. package/dist/classes/callbacks/PostFamiliarInitLate.d.ts +2 -2
  117. package/dist/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
  118. package/dist/classes/callbacks/PostFamiliarInitLate.js +13 -17
  119. package/dist/classes/callbacks/PostFamiliarInitLate.lua +2 -2
  120. package/dist/classes/callbacks/PostFamiliarRenderFilter.d.ts +2 -2
  121. package/dist/classes/callbacks/PostFamiliarRenderFilter.d.ts.map +1 -1
  122. package/dist/classes/callbacks/PostFamiliarRenderFilter.js +10 -14
  123. package/dist/classes/callbacks/PostFamiliarRenderFilter.lua +1 -1
  124. package/dist/classes/callbacks/PostFamiliarStateChanged.d.ts +2 -2
  125. package/dist/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
  126. package/dist/classes/callbacks/PostFamiliarStateChanged.js +15 -19
  127. package/dist/classes/callbacks/PostFamiliarStateChanged.lua +2 -2
  128. package/dist/classes/callbacks/PostFamiliarUpdateFilter.d.ts +2 -2
  129. package/dist/classes/callbacks/PostFamiliarUpdateFilter.d.ts.map +1 -1
  130. package/dist/classes/callbacks/PostFamiliarUpdateFilter.js +10 -14
  131. package/dist/classes/callbacks/PostFamiliarUpdateFilter.lua +1 -1
  132. package/dist/classes/callbacks/PostFirstEsauJr.js +4 -8
  133. package/dist/classes/callbacks/PostFirstFlip.js +4 -8
  134. package/dist/classes/callbacks/PostFlip.js +4 -8
  135. package/dist/classes/callbacks/PostGameEndFilter.d.ts +2 -2
  136. package/dist/classes/callbacks/PostGameEndFilter.d.ts.map +1 -1
  137. package/dist/classes/callbacks/PostGameEndFilter.js +10 -14
  138. package/dist/classes/callbacks/PostGameEndFilter.lua +1 -1
  139. package/dist/classes/callbacks/PostGameStartedReordered.d.ts +1 -1
  140. package/dist/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
  141. package/dist/classes/callbacks/PostGameStartedReordered.js +6 -10
  142. package/dist/classes/callbacks/PostGameStartedReorderedLast.d.ts +1 -1
  143. package/dist/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
  144. package/dist/classes/callbacks/PostGameStartedReorderedLast.js +6 -10
  145. package/dist/classes/callbacks/PostGreedModeWave.d.ts +1 -1
  146. package/dist/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
  147. package/dist/classes/callbacks/PostGreedModeWave.js +14 -18
  148. package/dist/classes/callbacks/PostGreedModeWave.lua +1 -1
  149. package/dist/classes/callbacks/PostGridEntityBroken.d.ts +1 -1
  150. package/dist/classes/callbacks/PostGridEntityBroken.d.ts.map +1 -1
  151. package/dist/classes/callbacks/PostGridEntityBroken.js +6 -10
  152. package/dist/classes/callbacks/PostGridEntityCollision.d.ts +1 -1
  153. package/dist/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
  154. package/dist/classes/callbacks/PostGridEntityCollision.js +7 -11
  155. package/dist/classes/callbacks/PostGridEntityCustomBroken.d.ts +1 -1
  156. package/dist/classes/callbacks/PostGridEntityCustomBroken.d.ts.map +1 -1
  157. package/dist/classes/callbacks/PostGridEntityCustomBroken.js +6 -10
  158. package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts +1 -1
  159. package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
  160. package/dist/classes/callbacks/PostGridEntityCustomCollision.js +7 -11
  161. package/dist/classes/callbacks/PostGridEntityCustomInit.d.ts +1 -1
  162. package/dist/classes/callbacks/PostGridEntityCustomInit.d.ts.map +1 -1
  163. package/dist/classes/callbacks/PostGridEntityCustomInit.js +6 -10
  164. package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts +1 -1
  165. package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
  166. package/dist/classes/callbacks/PostGridEntityCustomRemove.js +7 -11
  167. package/dist/classes/callbacks/PostGridEntityCustomRender.d.ts +1 -1
  168. package/dist/classes/callbacks/PostGridEntityCustomRender.d.ts.map +1 -1
  169. package/dist/classes/callbacks/PostGridEntityCustomRender.js +6 -10
  170. package/dist/classes/callbacks/PostGridEntityCustomStateChanged.d.ts +1 -1
  171. package/dist/classes/callbacks/PostGridEntityCustomStateChanged.d.ts.map +1 -1
  172. package/dist/classes/callbacks/PostGridEntityCustomStateChanged.js +6 -10
  173. package/dist/classes/callbacks/PostGridEntityCustomUpdate.d.ts +1 -1
  174. package/dist/classes/callbacks/PostGridEntityCustomUpdate.d.ts.map +1 -1
  175. package/dist/classes/callbacks/PostGridEntityCustomUpdate.js +6 -10
  176. package/dist/classes/callbacks/PostGridEntityInit.d.ts +1 -1
  177. package/dist/classes/callbacks/PostGridEntityInit.d.ts.map +1 -1
  178. package/dist/classes/callbacks/PostGridEntityInit.js +6 -10
  179. package/dist/classes/callbacks/PostGridEntityRemove.d.ts +1 -1
  180. package/dist/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
  181. package/dist/classes/callbacks/PostGridEntityRemove.js +7 -11
  182. package/dist/classes/callbacks/PostGridEntityRender.d.ts +1 -1
  183. package/dist/classes/callbacks/PostGridEntityRender.d.ts.map +1 -1
  184. package/dist/classes/callbacks/PostGridEntityRender.js +6 -10
  185. package/dist/classes/callbacks/PostGridEntityStateChanged.d.ts +1 -1
  186. package/dist/classes/callbacks/PostGridEntityStateChanged.d.ts.map +1 -1
  187. package/dist/classes/callbacks/PostGridEntityStateChanged.js +6 -10
  188. package/dist/classes/callbacks/PostGridEntityUpdate.d.ts +1 -1
  189. package/dist/classes/callbacks/PostGridEntityUpdate.d.ts.map +1 -1
  190. package/dist/classes/callbacks/PostGridEntityUpdate.js +6 -10
  191. package/dist/classes/callbacks/PostHolyMantleRemoved.d.ts +2 -2
  192. package/dist/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
  193. package/dist/classes/callbacks/PostHolyMantleRemoved.js +24 -28
  194. package/dist/classes/callbacks/PostHolyMantleRemoved.lua +2 -2
  195. package/dist/classes/callbacks/PostItemDischarge.d.ts +3 -3
  196. package/dist/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
  197. package/dist/classes/callbacks/PostItemDischarge.js +60 -64
  198. package/dist/classes/callbacks/PostItemDischarge.lua +9 -9
  199. package/dist/classes/callbacks/PostItemPickup.d.ts +1 -1
  200. package/dist/classes/callbacks/PostItemPickup.d.ts.map +1 -1
  201. package/dist/classes/callbacks/PostItemPickup.js +6 -10
  202. package/dist/classes/callbacks/PostKeyboardChanged.d.ts +2 -2
  203. package/dist/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
  204. package/dist/classes/callbacks/PostKeyboardChanged.js +25 -28
  205. package/dist/classes/callbacks/PostKeyboardChanged.lua +13 -9
  206. package/dist/classes/callbacks/PostKnifeInitFilter.d.ts +2 -2
  207. package/dist/classes/callbacks/PostKnifeInitFilter.d.ts.map +1 -1
  208. package/dist/classes/callbacks/PostKnifeInitFilter.js +10 -14
  209. package/dist/classes/callbacks/PostKnifeInitFilter.lua +1 -1
  210. package/dist/classes/callbacks/PostKnifeInitLate.d.ts +2 -2
  211. package/dist/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
  212. package/dist/classes/callbacks/PostKnifeInitLate.js +13 -17
  213. package/dist/classes/callbacks/PostKnifeInitLate.lua +2 -2
  214. package/dist/classes/callbacks/PostKnifeRenderFilter.d.ts +2 -2
  215. package/dist/classes/callbacks/PostKnifeRenderFilter.d.ts.map +1 -1
  216. package/dist/classes/callbacks/PostKnifeRenderFilter.js +10 -14
  217. package/dist/classes/callbacks/PostKnifeRenderFilter.lua +1 -1
  218. package/dist/classes/callbacks/PostKnifeUpdateFilter.d.ts +2 -2
  219. package/dist/classes/callbacks/PostKnifeUpdateFilter.d.ts.map +1 -1
  220. package/dist/classes/callbacks/PostKnifeUpdateFilter.js +10 -14
  221. package/dist/classes/callbacks/PostKnifeUpdateFilter.lua +1 -1
  222. package/dist/classes/callbacks/PostLaserInitFilter.d.ts +2 -2
  223. package/dist/classes/callbacks/PostLaserInitFilter.d.ts.map +1 -1
  224. package/dist/classes/callbacks/PostLaserInitFilter.js +10 -14
  225. package/dist/classes/callbacks/PostLaserInitFilter.lua +1 -1
  226. package/dist/classes/callbacks/PostLaserInitLate.d.ts +2 -2
  227. package/dist/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
  228. package/dist/classes/callbacks/PostLaserInitLate.js +13 -17
  229. package/dist/classes/callbacks/PostLaserInitLate.lua +2 -2
  230. package/dist/classes/callbacks/PostLaserRenderFilter.d.ts +2 -2
  231. package/dist/classes/callbacks/PostLaserRenderFilter.d.ts.map +1 -1
  232. package/dist/classes/callbacks/PostLaserRenderFilter.js +10 -14
  233. package/dist/classes/callbacks/PostLaserRenderFilter.lua +1 -1
  234. package/dist/classes/callbacks/PostLaserUpdateFilter.d.ts +2 -2
  235. package/dist/classes/callbacks/PostLaserUpdateFilter.d.ts.map +1 -1
  236. package/dist/classes/callbacks/PostLaserUpdateFilter.js +10 -14
  237. package/dist/classes/callbacks/PostLaserUpdateFilter.lua +1 -1
  238. package/dist/classes/callbacks/PostNPCDeathFilter.d.ts +2 -2
  239. package/dist/classes/callbacks/PostNPCDeathFilter.d.ts.map +1 -1
  240. package/dist/classes/callbacks/PostNPCDeathFilter.js +10 -14
  241. package/dist/classes/callbacks/PostNPCDeathFilter.lua +1 -1
  242. package/dist/classes/callbacks/PostNPCInitFilter.d.ts +2 -2
  243. package/dist/classes/callbacks/PostNPCInitFilter.d.ts.map +1 -1
  244. package/dist/classes/callbacks/PostNPCInitFilter.js +10 -14
  245. package/dist/classes/callbacks/PostNPCInitFilter.lua +1 -1
  246. package/dist/classes/callbacks/PostNPCInitLate.d.ts +2 -2
  247. package/dist/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
  248. package/dist/classes/callbacks/PostNPCInitLate.js +13 -17
  249. package/dist/classes/callbacks/PostNPCInitLate.lua +2 -2
  250. package/dist/classes/callbacks/PostNPCRenderFilter.d.ts +2 -2
  251. package/dist/classes/callbacks/PostNPCRenderFilter.d.ts.map +1 -1
  252. package/dist/classes/callbacks/PostNPCRenderFilter.js +10 -14
  253. package/dist/classes/callbacks/PostNPCRenderFilter.lua +1 -1
  254. package/dist/classes/callbacks/PostNPCStateChanged.d.ts +2 -2
  255. package/dist/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
  256. package/dist/classes/callbacks/PostNPCStateChanged.js +15 -19
  257. package/dist/classes/callbacks/PostNPCStateChanged.lua +2 -2
  258. package/dist/classes/callbacks/PostNPCUpdateFilter.d.ts +2 -2
  259. package/dist/classes/callbacks/PostNPCUpdateFilter.d.ts.map +1 -1
  260. package/dist/classes/callbacks/PostNPCUpdateFilter.js +10 -14
  261. package/dist/classes/callbacks/PostNPCUpdateFilter.lua +1 -1
  262. package/dist/classes/callbacks/PostNewLevelReordered.d.ts +1 -1
  263. package/dist/classes/callbacks/PostNewLevelReordered.d.ts.map +1 -1
  264. package/dist/classes/callbacks/PostNewLevelReordered.js +6 -10
  265. package/dist/classes/callbacks/PostNewRoomEarly.d.ts +2 -2
  266. package/dist/classes/callbacks/PostNewRoomEarly.d.ts.map +1 -1
  267. package/dist/classes/callbacks/PostNewRoomEarly.js +29 -32
  268. package/dist/classes/callbacks/PostNewRoomEarly.lua +6 -5
  269. package/dist/classes/callbacks/PostNewRoomReordered.d.ts +1 -1
  270. package/dist/classes/callbacks/PostNewRoomReordered.d.ts.map +1 -1
  271. package/dist/classes/callbacks/PostNewRoomReordered.js +6 -10
  272. package/dist/classes/callbacks/PostPEffectUpdateReordered.d.ts +1 -1
  273. package/dist/classes/callbacks/PostPEffectUpdateReordered.d.ts.map +1 -1
  274. package/dist/classes/callbacks/PostPEffectUpdateReordered.js +6 -10
  275. package/dist/classes/callbacks/PostPickupChanged.d.ts +1 -1
  276. package/dist/classes/callbacks/PostPickupChanged.d.ts.map +1 -1
  277. package/dist/classes/callbacks/PostPickupChanged.js +6 -10
  278. package/dist/classes/callbacks/PostPickupCollect.d.ts +2 -2
  279. package/dist/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
  280. package/dist/classes/callbacks/PostPickupCollect.js +15 -19
  281. package/dist/classes/callbacks/PostPickupCollect.lua +2 -2
  282. package/dist/classes/callbacks/PostPickupInitFilter.d.ts +2 -2
  283. package/dist/classes/callbacks/PostPickupInitFilter.d.ts.map +1 -1
  284. package/dist/classes/callbacks/PostPickupInitFilter.js +10 -14
  285. package/dist/classes/callbacks/PostPickupInitFilter.lua +1 -1
  286. package/dist/classes/callbacks/PostPickupInitFirst.d.ts +2 -2
  287. package/dist/classes/callbacks/PostPickupInitFirst.d.ts.map +1 -1
  288. package/dist/classes/callbacks/PostPickupInitFirst.js +17 -21
  289. package/dist/classes/callbacks/PostPickupInitFirst.lua +3 -3
  290. package/dist/classes/callbacks/PostPickupInitLate.d.ts +2 -2
  291. package/dist/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
  292. package/dist/classes/callbacks/PostPickupInitLate.js +13 -17
  293. package/dist/classes/callbacks/PostPickupInitLate.lua +2 -2
  294. package/dist/classes/callbacks/PostPickupRenderFilter.d.ts +2 -2
  295. package/dist/classes/callbacks/PostPickupRenderFilter.d.ts.map +1 -1
  296. package/dist/classes/callbacks/PostPickupRenderFilter.js +10 -14
  297. package/dist/classes/callbacks/PostPickupRenderFilter.lua +1 -1
  298. package/dist/classes/callbacks/PostPickupSelectionFilter.d.ts +2 -2
  299. package/dist/classes/callbacks/PostPickupSelectionFilter.d.ts.map +1 -1
  300. package/dist/classes/callbacks/PostPickupSelectionFilter.js +12 -16
  301. package/dist/classes/callbacks/PostPickupSelectionFilter.lua +1 -1
  302. package/dist/classes/callbacks/PostPickupStateChanged.d.ts +2 -2
  303. package/dist/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
  304. package/dist/classes/callbacks/PostPickupStateChanged.js +15 -19
  305. package/dist/classes/callbacks/PostPickupStateChanged.lua +2 -2
  306. package/dist/classes/callbacks/PostPickupUpdateFilter.d.ts +2 -2
  307. package/dist/classes/callbacks/PostPickupUpdateFilter.d.ts.map +1 -1
  308. package/dist/classes/callbacks/PostPickupUpdateFilter.js +10 -14
  309. package/dist/classes/callbacks/PostPickupUpdateFilter.lua +1 -1
  310. package/dist/classes/callbacks/PostPitRender.d.ts +2 -2
  311. package/dist/classes/callbacks/PostPitRender.d.ts.map +1 -1
  312. package/dist/classes/callbacks/PostPitRender.js +13 -17
  313. package/dist/classes/callbacks/PostPitRender.lua +1 -1
  314. package/dist/classes/callbacks/PostPitUpdate.d.ts +2 -2
  315. package/dist/classes/callbacks/PostPitUpdate.d.ts.map +1 -1
  316. package/dist/classes/callbacks/PostPitUpdate.js +13 -17
  317. package/dist/classes/callbacks/PostPitUpdate.lua +1 -1
  318. package/dist/classes/callbacks/PostPlayerChangeHealth.d.ts +2 -2
  319. package/dist/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
  320. package/dist/classes/callbacks/PostPlayerChangeHealth.js +23 -27
  321. package/dist/classes/callbacks/PostPlayerChangeHealth.lua +2 -2
  322. package/dist/classes/callbacks/PostPlayerChangeStat.d.ts +2 -2
  323. package/dist/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
  324. package/dist/classes/callbacks/PostPlayerChangeStat.js +35 -39
  325. package/dist/classes/callbacks/PostPlayerChangeStat.lua +2 -2
  326. package/dist/classes/callbacks/PostPlayerChangeType.d.ts +2 -2
  327. package/dist/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
  328. package/dist/classes/callbacks/PostPlayerChangeType.js +18 -22
  329. package/dist/classes/callbacks/PostPlayerChangeType.lua +2 -2
  330. package/dist/classes/callbacks/PostPlayerCollectibleAdded.d.ts +1 -1
  331. package/dist/classes/callbacks/PostPlayerCollectibleAdded.d.ts.map +1 -1
  332. package/dist/classes/callbacks/PostPlayerCollectibleAdded.js +6 -10
  333. package/dist/classes/callbacks/PostPlayerCollectibleRemoved.d.ts +1 -1
  334. package/dist/classes/callbacks/PostPlayerCollectibleRemoved.d.ts.map +1 -1
  335. package/dist/classes/callbacks/PostPlayerCollectibleRemoved.js +6 -10
  336. package/dist/classes/callbacks/PostPlayerFatalDamage.d.ts +7 -7
  337. package/dist/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
  338. package/dist/classes/callbacks/PostPlayerFatalDamage.js +33 -37
  339. package/dist/classes/callbacks/PostPlayerFatalDamage.lua +2 -2
  340. package/dist/classes/callbacks/PostPlayerInitFirst.d.ts +2 -2
  341. package/dist/classes/callbacks/PostPlayerInitFirst.d.ts.map +1 -1
  342. package/dist/classes/callbacks/PostPlayerInitFirst.js +17 -21
  343. package/dist/classes/callbacks/PostPlayerInitFirst.lua +1 -1
  344. package/dist/classes/callbacks/PostPlayerInitLate.d.ts +2 -2
  345. package/dist/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
  346. package/dist/classes/callbacks/PostPlayerInitLate.js +15 -18
  347. package/dist/classes/callbacks/PostPlayerInitLate.lua +6 -5
  348. package/dist/classes/callbacks/PostPlayerRenderReordered.d.ts +1 -1
  349. package/dist/classes/callbacks/PostPlayerRenderReordered.d.ts.map +1 -1
  350. package/dist/classes/callbacks/PostPlayerRenderReordered.js +6 -10
  351. package/dist/classes/callbacks/PostPlayerUpdateReordered.d.ts +1 -1
  352. package/dist/classes/callbacks/PostPlayerUpdateReordered.d.ts.map +1 -1
  353. package/dist/classes/callbacks/PostPlayerUpdateReordered.js +6 -10
  354. package/dist/classes/callbacks/PostPoopRender.d.ts +2 -2
  355. package/dist/classes/callbacks/PostPoopRender.d.ts.map +1 -1
  356. package/dist/classes/callbacks/PostPoopRender.js +13 -17
  357. package/dist/classes/callbacks/PostPoopRender.lua +1 -1
  358. package/dist/classes/callbacks/PostPoopUpdate.d.ts +2 -2
  359. package/dist/classes/callbacks/PostPoopUpdate.d.ts.map +1 -1
  360. package/dist/classes/callbacks/PostPoopUpdate.js +13 -17
  361. package/dist/classes/callbacks/PostPoopUpdate.lua +1 -1
  362. package/dist/classes/callbacks/PostPressurePlateRender.d.ts +2 -2
  363. package/dist/classes/callbacks/PostPressurePlateRender.d.ts.map +1 -1
  364. package/dist/classes/callbacks/PostPressurePlateRender.js +13 -17
  365. package/dist/classes/callbacks/PostPressurePlateRender.lua +1 -1
  366. package/dist/classes/callbacks/PostPressurePlateUpdate.d.ts +2 -2
  367. package/dist/classes/callbacks/PostPressurePlateUpdate.d.ts.map +1 -1
  368. package/dist/classes/callbacks/PostPressurePlateUpdate.js +13 -17
  369. package/dist/classes/callbacks/PostPressurePlateUpdate.lua +1 -1
  370. package/dist/classes/callbacks/PostProjectileInitFilter.d.ts +2 -2
  371. package/dist/classes/callbacks/PostProjectileInitFilter.d.ts.map +1 -1
  372. package/dist/classes/callbacks/PostProjectileInitFilter.js +10 -14
  373. package/dist/classes/callbacks/PostProjectileInitFilter.lua +1 -1
  374. package/dist/classes/callbacks/PostProjectileInitLate.d.ts +2 -2
  375. package/dist/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
  376. package/dist/classes/callbacks/PostProjectileInitLate.js +13 -17
  377. package/dist/classes/callbacks/PostProjectileInitLate.lua +2 -2
  378. package/dist/classes/callbacks/PostProjectileKill.d.ts +4 -4
  379. package/dist/classes/callbacks/PostProjectileKill.d.ts.map +1 -1
  380. package/dist/classes/callbacks/PostProjectileKill.js +17 -21
  381. package/dist/classes/callbacks/PostProjectileKill.lua +2 -2
  382. package/dist/classes/callbacks/PostProjectileRenderFilter.d.ts +2 -2
  383. package/dist/classes/callbacks/PostProjectileRenderFilter.d.ts.map +1 -1
  384. package/dist/classes/callbacks/PostProjectileRenderFilter.js +10 -14
  385. package/dist/classes/callbacks/PostProjectileRenderFilter.lua +1 -1
  386. package/dist/classes/callbacks/PostProjectileUpdateFilter.d.ts +2 -2
  387. package/dist/classes/callbacks/PostProjectileUpdateFilter.d.ts.map +1 -1
  388. package/dist/classes/callbacks/PostProjectileUpdateFilter.js +10 -14
  389. package/dist/classes/callbacks/PostProjectileUpdateFilter.lua +1 -1
  390. package/dist/classes/callbacks/PostPurchase.d.ts +5 -5
  391. package/dist/classes/callbacks/PostPurchase.d.ts.map +1 -1
  392. package/dist/classes/callbacks/PostPurchase.js +43 -47
  393. package/dist/classes/callbacks/PostPurchase.lua +6 -6
  394. package/dist/classes/callbacks/PostRockRender.d.ts +2 -2
  395. package/dist/classes/callbacks/PostRockRender.d.ts.map +1 -1
  396. package/dist/classes/callbacks/PostRockRender.js +13 -17
  397. package/dist/classes/callbacks/PostRockRender.lua +1 -1
  398. package/dist/classes/callbacks/PostRockUpdate.d.ts +2 -2
  399. package/dist/classes/callbacks/PostRockUpdate.d.ts.map +1 -1
  400. package/dist/classes/callbacks/PostRockUpdate.js +13 -17
  401. package/dist/classes/callbacks/PostRockUpdate.lua +1 -1
  402. package/dist/classes/callbacks/PostRoomClearChanged.d.ts +3 -3
  403. package/dist/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
  404. package/dist/classes/callbacks/PostRoomClearChanged.js +23 -27
  405. package/dist/classes/callbacks/PostRoomClearChanged.lua +6 -6
  406. package/dist/classes/callbacks/PostSacrifice.d.ts +2 -2
  407. package/dist/classes/callbacks/PostSacrifice.d.ts.map +1 -1
  408. package/dist/classes/callbacks/PostSacrifice.js +18 -22
  409. package/dist/classes/callbacks/PostSacrifice.lua +3 -3
  410. package/dist/classes/callbacks/PostSlotAnimationChanged.d.ts +1 -1
  411. package/dist/classes/callbacks/PostSlotAnimationChanged.d.ts.map +1 -1
  412. package/dist/classes/callbacks/PostSlotAnimationChanged.js +6 -10
  413. package/dist/classes/callbacks/PostSlotCollision.d.ts +2 -2
  414. package/dist/classes/callbacks/PostSlotCollision.d.ts.map +1 -1
  415. package/dist/classes/callbacks/PostSlotCollision.js +14 -18
  416. package/dist/classes/callbacks/PostSlotCollision.lua +1 -1
  417. package/dist/classes/callbacks/PostSlotDestroyed.d.ts +1 -1
  418. package/dist/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
  419. package/dist/classes/callbacks/PostSlotDestroyed.js +6 -10
  420. package/dist/classes/callbacks/PostSlotInit.d.ts +1 -1
  421. package/dist/classes/callbacks/PostSlotInit.d.ts.map +1 -1
  422. package/dist/classes/callbacks/PostSlotInit.js +6 -10
  423. package/dist/classes/callbacks/PostSlotRender.d.ts +1 -1
  424. package/dist/classes/callbacks/PostSlotRender.d.ts.map +1 -1
  425. package/dist/classes/callbacks/PostSlotRender.js +6 -10
  426. package/dist/classes/callbacks/PostSlotUpdate.d.ts +1 -1
  427. package/dist/classes/callbacks/PostSlotUpdate.d.ts.map +1 -1
  428. package/dist/classes/callbacks/PostSlotUpdate.js +6 -10
  429. package/dist/classes/callbacks/PostSpikesRender.d.ts +2 -2
  430. package/dist/classes/callbacks/PostSpikesRender.d.ts.map +1 -1
  431. package/dist/classes/callbacks/PostSpikesRender.js +13 -17
  432. package/dist/classes/callbacks/PostSpikesRender.lua +1 -1
  433. package/dist/classes/callbacks/PostSpikesUpdate.d.ts +2 -2
  434. package/dist/classes/callbacks/PostSpikesUpdate.d.ts.map +1 -1
  435. package/dist/classes/callbacks/PostSpikesUpdate.js +13 -17
  436. package/dist/classes/callbacks/PostSpikesUpdate.lua +1 -1
  437. package/dist/classes/callbacks/PostTNTRender.d.ts +2 -2
  438. package/dist/classes/callbacks/PostTNTRender.d.ts.map +1 -1
  439. package/dist/classes/callbacks/PostTNTRender.js +13 -17
  440. package/dist/classes/callbacks/PostTNTRender.lua +1 -1
  441. package/dist/classes/callbacks/PostTNTUpdate.d.ts +2 -2
  442. package/dist/classes/callbacks/PostTNTUpdate.d.ts.map +1 -1
  443. package/dist/classes/callbacks/PostTNTUpdate.js +13 -17
  444. package/dist/classes/callbacks/PostTNTUpdate.lua +1 -1
  445. package/dist/classes/callbacks/PostTearInitFilter.d.ts +2 -2
  446. package/dist/classes/callbacks/PostTearInitFilter.d.ts.map +1 -1
  447. package/dist/classes/callbacks/PostTearInitFilter.js +10 -14
  448. package/dist/classes/callbacks/PostTearInitFilter.lua +1 -1
  449. package/dist/classes/callbacks/PostTearInitLate.d.ts +2 -2
  450. package/dist/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
  451. package/dist/classes/callbacks/PostTearInitLate.js +13 -17
  452. package/dist/classes/callbacks/PostTearInitLate.lua +2 -2
  453. package/dist/classes/callbacks/PostTearInitVeryLate.d.ts +2 -2
  454. package/dist/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
  455. package/dist/classes/callbacks/PostTearInitVeryLate.js +13 -17
  456. package/dist/classes/callbacks/PostTearInitVeryLate.lua +2 -2
  457. package/dist/classes/callbacks/PostTearKill.d.ts +4 -4
  458. package/dist/classes/callbacks/PostTearKill.d.ts.map +1 -1
  459. package/dist/classes/callbacks/PostTearKill.js +17 -21
  460. package/dist/classes/callbacks/PostTearKill.lua +2 -2
  461. package/dist/classes/callbacks/PostTearRenderFilter.d.ts +2 -2
  462. package/dist/classes/callbacks/PostTearRenderFilter.d.ts.map +1 -1
  463. package/dist/classes/callbacks/PostTearRenderFilter.js +10 -14
  464. package/dist/classes/callbacks/PostTearRenderFilter.lua +1 -1
  465. package/dist/classes/callbacks/PostTearUpdateFilter.d.ts +2 -2
  466. package/dist/classes/callbacks/PostTearUpdateFilter.d.ts.map +1 -1
  467. package/dist/classes/callbacks/PostTearUpdateFilter.js +10 -14
  468. package/dist/classes/callbacks/PostTearUpdateFilter.lua +1 -1
  469. package/dist/classes/callbacks/PostTransformation.d.ts +2 -2
  470. package/dist/classes/callbacks/PostTransformation.d.ts.map +1 -1
  471. package/dist/classes/callbacks/PostTransformation.js +24 -28
  472. package/dist/classes/callbacks/PostTransformation.lua +6 -6
  473. package/dist/classes/callbacks/PostTrinketBreak.d.ts +3 -3
  474. package/dist/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
  475. package/dist/classes/callbacks/PostTrinketBreak.js +25 -29
  476. package/dist/classes/callbacks/PostTrinketBreak.lua +2 -2
  477. package/dist/classes/callbacks/PostUsePillFilter.d.ts +2 -2
  478. package/dist/classes/callbacks/PostUsePillFilter.d.ts.map +1 -1
  479. package/dist/classes/callbacks/PostUsePillFilter.js +27 -31
  480. package/dist/classes/callbacks/PostUsePillFilter.lua +1 -1
  481. package/dist/classes/callbacks/PreBerserkDeath.d.ts +2 -2
  482. package/dist/classes/callbacks/PreBerserkDeath.d.ts.map +1 -1
  483. package/dist/classes/callbacks/PreBerserkDeath.js +24 -28
  484. package/dist/classes/callbacks/PreBerserkDeath.lua +2 -2
  485. package/dist/classes/callbacks/PreBombCollisionFilter.d.ts +2 -2
  486. package/dist/classes/callbacks/PreBombCollisionFilter.d.ts.map +1 -1
  487. package/dist/classes/callbacks/PreBombCollisionFilter.js +8 -12
  488. package/dist/classes/callbacks/PreBombCollisionFilter.lua +1 -1
  489. package/dist/classes/callbacks/PreCustomRevive.d.ts +1 -1
  490. package/dist/classes/callbacks/PreCustomRevive.d.ts.map +1 -1
  491. package/dist/classes/callbacks/PreCustomRevive.js +6 -10
  492. package/dist/classes/callbacks/PreEntitySpawnFilter.d.ts +2 -2
  493. package/dist/classes/callbacks/PreEntitySpawnFilter.d.ts.map +1 -1
  494. package/dist/classes/callbacks/PreEntitySpawnFilter.js +12 -16
  495. package/dist/classes/callbacks/PreEntitySpawnFilter.lua +5 -5
  496. package/dist/classes/callbacks/PreFamiliarCollisionFilter.d.ts +2 -2
  497. package/dist/classes/callbacks/PreFamiliarCollisionFilter.d.ts.map +1 -1
  498. package/dist/classes/callbacks/PreFamiliarCollisionFilter.js +8 -12
  499. package/dist/classes/callbacks/PreFamiliarCollisionFilter.lua +1 -1
  500. package/dist/classes/callbacks/PreGetPedestal.d.ts +2 -2
  501. package/dist/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
  502. package/dist/classes/callbacks/PreGetPedestal.js +17 -21
  503. package/dist/classes/callbacks/PreGetPedestal.lua +1 -1
  504. package/dist/classes/callbacks/PreItemPickup.d.ts +1 -1
  505. package/dist/classes/callbacks/PreItemPickup.d.ts.map +1 -1
  506. package/dist/classes/callbacks/PreItemPickup.js +6 -10
  507. package/dist/classes/callbacks/PreKnifeCollisionFilter.d.ts +2 -2
  508. package/dist/classes/callbacks/PreKnifeCollisionFilter.d.ts.map +1 -1
  509. package/dist/classes/callbacks/PreKnifeCollisionFilter.js +8 -12
  510. package/dist/classes/callbacks/PreKnifeCollisionFilter.lua +1 -1
  511. package/dist/classes/callbacks/PreNPCCollisionFilter.d.ts +2 -2
  512. package/dist/classes/callbacks/PreNPCCollisionFilter.d.ts.map +1 -1
  513. package/dist/classes/callbacks/PreNPCCollisionFilter.js +8 -12
  514. package/dist/classes/callbacks/PreNPCCollisionFilter.lua +1 -1
  515. package/dist/classes/callbacks/PreNPCUpdateFilter.d.ts +2 -2
  516. package/dist/classes/callbacks/PreNPCUpdateFilter.d.ts.map +1 -1
  517. package/dist/classes/callbacks/PreNPCUpdateFilter.js +8 -12
  518. package/dist/classes/callbacks/PreNPCUpdateFilter.lua +1 -1
  519. package/dist/classes/callbacks/PreNewLevel.d.ts +1 -1
  520. package/dist/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  521. package/dist/classes/callbacks/PreNewLevel.js +19 -23
  522. package/dist/classes/callbacks/PreNewLevel.lua +1 -1
  523. package/dist/classes/callbacks/PreProjectileCollisionFilter.d.ts +2 -2
  524. package/dist/classes/callbacks/PreProjectileCollisionFilter.d.ts.map +1 -1
  525. package/dist/classes/callbacks/PreProjectileCollisionFilter.js +8 -12
  526. package/dist/classes/callbacks/PreProjectileCollisionFilter.lua +1 -1
  527. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.d.ts +2 -2
  528. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.d.ts.map +1 -1
  529. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.js +12 -16
  530. package/dist/classes/callbacks/PreRoomEntitySpawnFilter.lua +5 -5
  531. package/dist/classes/callbacks/PreTearCollisionFilter.d.ts +2 -2
  532. package/dist/classes/callbacks/PreTearCollisionFilter.d.ts.map +1 -1
  533. package/dist/classes/callbacks/PreTearCollisionFilter.js +8 -12
  534. package/dist/classes/callbacks/PreTearCollisionFilter.lua +1 -1
  535. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  536. package/dist/classes/features/callbackLogic/CustomGridEntities.js +65 -66
  537. package/dist/classes/features/callbackLogic/CustomGridEntities.lua +1 -1
  538. package/dist/classes/features/callbackLogic/CustomRevive.d.ts +9 -9
  539. package/dist/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  540. package/dist/classes/features/callbackLogic/CustomRevive.js +56 -60
  541. package/dist/classes/features/callbackLogic/CustomRevive.lua +1 -1
  542. package/dist/classes/features/callbackLogic/EsauJrDetection.d.ts +4 -4
  543. package/dist/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
  544. package/dist/classes/features/callbackLogic/EsauJrDetection.js +24 -28
  545. package/dist/classes/features/callbackLogic/EsauJrDetection.lua +1 -1
  546. package/dist/classes/features/callbackLogic/FlipDetection.d.ts +3 -3
  547. package/dist/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
  548. package/dist/classes/features/callbackLogic/FlipDetection.js +20 -24
  549. package/dist/classes/features/callbackLogic/FlipDetection.lua +1 -1
  550. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
  551. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.js +51 -55
  552. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.lua +4 -4
  553. package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts +4 -4
  554. package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  555. package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.js +20 -24
  556. package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.lua +1 -1
  557. package/dist/classes/features/callbackLogic/GridEntityRenderDetection.d.ts +1 -1
  558. package/dist/classes/features/callbackLogic/GridEntityRenderDetection.d.ts.map +1 -1
  559. package/dist/classes/features/callbackLogic/GridEntityRenderDetection.js +15 -19
  560. package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts +8 -8
  561. package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
  562. package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.js +36 -40
  563. package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.lua +1 -1
  564. package/dist/classes/features/callbackLogic/ItemPickupDetection.d.ts +3 -3
  565. package/dist/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  566. package/dist/classes/features/callbackLogic/ItemPickupDetection.js +28 -32
  567. package/dist/classes/features/callbackLogic/ItemPickupDetection.lua +1 -1
  568. package/dist/classes/features/callbackLogic/PickupChangeDetection.d.ts +3 -3
  569. package/dist/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
  570. package/dist/classes/features/callbackLogic/PickupChangeDetection.js +15 -19
  571. package/dist/classes/features/callbackLogic/PickupChangeDetection.lua +1 -1
  572. package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +13 -13
  573. package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  574. package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.js +96 -100
  575. package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.lua +2 -2
  576. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts +9 -9
  577. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
  578. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.js +42 -43
  579. package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +1 -1
  580. package/dist/classes/features/callbackLogic/SlotDestroyedDetection.d.ts +4 -4
  581. package/dist/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
  582. package/dist/classes/features/callbackLogic/SlotDestroyedDetection.js +43 -46
  583. package/dist/classes/features/callbackLogic/SlotDestroyedDetection.lua +7 -6
  584. package/dist/classes/features/callbackLogic/SlotRenderDetection.d.ts +3 -3
  585. package/dist/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  586. package/dist/classes/features/callbackLogic/SlotRenderDetection.js +15 -19
  587. package/dist/classes/features/callbackLogic/SlotRenderDetection.lua +1 -1
  588. package/dist/classes/features/callbackLogic/SlotUpdateDetection.d.ts +4 -4
  589. package/dist/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
  590. package/dist/classes/features/callbackLogic/SlotUpdateDetection.js +21 -25
  591. package/dist/classes/features/callbackLogic/SlotUpdateDetection.lua +1 -1
  592. package/dist/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
  593. package/dist/classes/features/other/CharacterHealthConversion.js +30 -34
  594. package/dist/classes/features/other/CharacterHealthConversion.lua +2 -2
  595. package/dist/classes/features/other/CharacterStats.d.ts.map +1 -1
  596. package/dist/classes/features/other/CharacterStats.js +16 -20
  597. package/dist/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  598. package/dist/classes/features/other/CollectibleItemPoolType.js +27 -31
  599. package/dist/classes/features/other/CollectibleItemPoolType.lua +1 -1
  600. package/dist/classes/features/other/CustomHotkeys.d.ts.map +1 -1
  601. package/dist/classes/features/other/CustomHotkeys.js +22 -26
  602. package/dist/classes/features/other/CustomItemPools.d.ts.map +1 -1
  603. package/dist/classes/features/other/CustomItemPools.js +24 -28
  604. package/dist/classes/features/other/CustomItemPools.lua +1 -1
  605. package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
  606. package/dist/classes/features/other/CustomPickups.js +27 -31
  607. package/dist/classes/features/other/CustomStages.d.ts +3 -3
  608. package/dist/classes/features/other/CustomStages.d.ts.map +1 -1
  609. package/dist/classes/features/other/CustomStages.js +175 -207
  610. package/dist/classes/features/other/CustomStages.lua +1 -1
  611. package/dist/classes/features/other/CustomTrapdoors.d.ts +2 -2
  612. package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  613. package/dist/classes/features/other/CustomTrapdoors.js +152 -155
  614. package/dist/classes/features/other/CustomTrapdoors.lua +10 -9
  615. package/dist/classes/features/other/DebugDisplay.d.ts +1 -1
  616. package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
  617. package/dist/classes/features/other/DebugDisplay.js +89 -96
  618. package/dist/classes/features/other/DebugDisplay.lua +13 -12
  619. package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  620. package/dist/classes/features/other/DeployJSONRoom.js +70 -70
  621. package/dist/classes/features/other/DisableAllSound.d.ts.map +1 -1
  622. package/dist/classes/features/other/DisableAllSound.js +21 -25
  623. package/dist/classes/features/other/DisableAllSound.lua +1 -1
  624. package/dist/classes/features/other/DisableInputs.d.ts.map +1 -1
  625. package/dist/classes/features/other/DisableInputs.js +30 -34
  626. package/dist/classes/features/other/DisableInputs.lua +1 -1
  627. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +2 -2
  628. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
  629. package/dist/classes/features/other/EdenStartingStatsHealth.js +57 -61
  630. package/dist/classes/features/other/EdenStartingStatsHealth.lua +1 -1
  631. package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  632. package/dist/classes/features/other/ExtraConsoleCommands.js +107 -143
  633. package/dist/classes/features/other/ExtraConsoleCommands.lua +5 -4
  634. package/dist/classes/features/other/FadeInRemover.d.ts.map +1 -1
  635. package/dist/classes/features/other/FadeInRemover.js +14 -18
  636. package/dist/classes/features/other/FastReset.d.ts.map +1 -1
  637. package/dist/classes/features/other/FastReset.js +25 -29
  638. package/dist/classes/features/other/FlyingDetection.js +10 -14
  639. package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
  640. package/dist/classes/features/other/ForgottenSwitch.js +9 -13
  641. package/dist/classes/features/other/ItemPoolDetection.js +45 -45
  642. package/dist/classes/features/other/ItemPoolDetection.lua +5 -1
  643. package/dist/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
  644. package/dist/classes/features/other/ModdedElementDetection.js +47 -51
  645. package/dist/classes/features/other/ModdedElementSets.js +135 -139
  646. package/dist/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  647. package/dist/classes/features/other/NoSirenSteal.js +12 -16
  648. package/dist/classes/features/other/NoSirenSteal.lua +1 -1
  649. package/dist/classes/features/other/Pause.d.ts +1 -1
  650. package/dist/classes/features/other/Pause.d.ts.map +1 -1
  651. package/dist/classes/features/other/Pause.js +71 -75
  652. package/dist/classes/features/other/Pause.lua +1 -1
  653. package/dist/classes/features/other/PersistentEntities.d.ts +5 -5
  654. package/dist/classes/features/other/PersistentEntities.d.ts.map +1 -1
  655. package/dist/classes/features/other/PersistentEntities.js +46 -47
  656. package/dist/classes/features/other/PersistentEntities.lua +6 -6
  657. package/dist/classes/features/other/PickupIndexCreation.d.ts +1 -1
  658. package/dist/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
  659. package/dist/classes/features/other/PickupIndexCreation.js +42 -46
  660. package/dist/classes/features/other/PickupIndexCreation.lua +1 -1
  661. package/dist/classes/features/other/PlayerCollectibleTracking.d.ts.map +1 -1
  662. package/dist/classes/features/other/PlayerCollectibleTracking.js +25 -29
  663. package/dist/classes/features/other/PlayerCollectibleTracking.lua +1 -1
  664. package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
  665. package/dist/classes/features/other/PonyDetection.js +32 -36
  666. package/dist/classes/features/other/PonyDetection.lua +1 -1
  667. package/dist/classes/features/other/PressInput.d.ts.map +1 -1
  668. package/dist/classes/features/other/PressInput.js +26 -27
  669. package/dist/classes/features/other/PressInput.lua +1 -1
  670. package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  671. package/dist/classes/features/other/PreventChildEntities.js +15 -19
  672. package/dist/classes/features/other/PreventChildEntities.lua +1 -1
  673. package/dist/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
  674. package/dist/classes/features/other/PreventGridEntityRespawn.js +49 -53
  675. package/dist/classes/features/other/PreventGridEntityRespawn.lua +1 -1
  676. package/dist/classes/features/other/RerunDetection.d.ts.map +1 -1
  677. package/dist/classes/features/other/RerunDetection.js +22 -26
  678. package/dist/classes/features/other/RerunDetection.lua +1 -1
  679. package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  680. package/dist/classes/features/other/RoomClearFrame.js +20 -24
  681. package/dist/classes/features/other/RoomClearFrame.lua +1 -1
  682. package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
  683. package/dist/classes/features/other/RoomHistory.js +38 -42
  684. package/dist/classes/features/other/RoomHistory.lua +1 -1
  685. package/dist/classes/features/other/RunInNFrames.d.ts +1 -1
  686. package/dist/classes/features/other/RunInNFrames.d.ts.map +1 -1
  687. package/dist/classes/features/other/RunInNFrames.js +41 -46
  688. package/dist/classes/features/other/RunInNFrames.lua +10 -7
  689. package/dist/classes/features/other/RunNextRoom.d.ts +1 -1
  690. package/dist/classes/features/other/RunNextRoom.d.ts.map +1 -1
  691. package/dist/classes/features/other/RunNextRoom.js +14 -18
  692. package/dist/classes/features/other/RunNextRoom.lua +2 -2
  693. package/dist/classes/features/other/RunNextRun.d.ts +1 -1
  694. package/dist/classes/features/other/RunNextRun.d.ts.map +1 -1
  695. package/dist/classes/features/other/RunNextRun.js +15 -19
  696. package/dist/classes/features/other/RunNextRun.lua +2 -2
  697. package/dist/classes/features/other/SaveDataManager.d.ts +4 -4
  698. package/dist/classes/features/other/SaveDataManager.d.ts.map +1 -1
  699. package/dist/classes/features/other/SaveDataManager.js +93 -96
  700. package/dist/classes/features/other/SaveDataManager.lua +11 -11
  701. package/dist/classes/features/other/SpawnRockAltRewards.js +115 -119
  702. package/dist/classes/features/other/StageHistory.d.ts.map +1 -1
  703. package/dist/classes/features/other/StageHistory.js +85 -86
  704. package/dist/classes/features/other/StageHistory.lua +6 -6
  705. package/dist/classes/features/other/StartAmbush.js +12 -16
  706. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +1 -1
  707. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  708. package/dist/classes/features/other/TaintedLazarusPlayers.js +22 -24
  709. package/dist/classes/features/other/TaintedLazarusPlayers.lua +2 -2
  710. package/dist/classes/features/other/UnlockAchievementsDetection.d.ts.map +1 -1
  711. package/dist/classes/features/other/UnlockAchievementsDetection.js +15 -19
  712. package/dist/classes/features/other/UnlockAchievementsDetection.lua +1 -1
  713. package/dist/classes/features/other/customStages/backdrop.d.ts.map +1 -1
  714. package/dist/classes/features/other/customStages/backdrop.js +69 -72
  715. package/dist/classes/features/other/customStages/backdrop.lua +2 -2
  716. package/dist/classes/features/other/customStages/constants.js +7 -10
  717. package/dist/classes/features/other/customStages/gridEntities.d.ts.map +1 -1
  718. package/dist/classes/features/other/customStages/gridEntities.js +24 -30
  719. package/dist/classes/features/other/customStages/shadows.js +27 -30
  720. package/dist/classes/features/other/customStages/streakText.js +55 -60
  721. package/dist/classes/features/other/customStages/utils.js +13 -17
  722. package/dist/classes/features/other/customStages/v.js +4 -7
  723. package/dist/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
  724. package/dist/classes/features/other/customStages/versusScreen.js +59 -54
  725. package/dist/classes/features/other/customStages/versusScreen.lua +2 -2
  726. package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts +1 -1
  727. package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts.map +1 -1
  728. package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.js +12 -16
  729. package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.lua +1 -1
  730. package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts +1 -1
  731. package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts.map +1 -1
  732. package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.js +12 -16
  733. package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.lua +1 -1
  734. package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts +1 -1
  735. package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts.map +1 -1
  736. package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.js +12 -16
  737. package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.lua +1 -1
  738. package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts +1 -1
  739. package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts.map +1 -1
  740. package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.js +12 -16
  741. package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +1 -1
  742. package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts +1 -1
  743. package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts.map +1 -1
  744. package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.js +12 -16
  745. package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.lua +1 -1
  746. package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts +1 -1
  747. package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts.map +1 -1
  748. package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.js +12 -16
  749. package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.lua +1 -1
  750. package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts +1 -1
  751. package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts.map +1 -1
  752. package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.js +12 -16
  753. package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.lua +1 -1
  754. package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts +1 -1
  755. package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts.map +1 -1
  756. package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.js +12 -16
  757. package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.lua +1 -1
  758. package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts +1 -1
  759. package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts.map +1 -1
  760. package/dist/classes/features/other/debugDisplay/DebugDisplayPit.js +12 -16
  761. package/dist/classes/features/other/debugDisplay/DebugDisplayPit.lua +1 -1
  762. package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts +1 -1
  763. package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts.map +1 -1
  764. package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.js +12 -16
  765. package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +1 -1
  766. package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts +1 -1
  767. package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts.map +1 -1
  768. package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.js +12 -16
  769. package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.lua +1 -1
  770. package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts +1 -1
  771. package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts.map +1 -1
  772. package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.js +12 -16
  773. package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +1 -1
  774. package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts +1 -1
  775. package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts.map +1 -1
  776. package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.js +12 -16
  777. package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +1 -1
  778. package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts +1 -1
  779. package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts.map +1 -1
  780. package/dist/classes/features/other/debugDisplay/DebugDisplayRock.js +12 -16
  781. package/dist/classes/features/other/debugDisplay/DebugDisplayRock.lua +1 -1
  782. package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts +1 -1
  783. package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts.map +1 -1
  784. package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.js +12 -16
  785. package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.lua +1 -1
  786. package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts +1 -1
  787. package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts.map +1 -1
  788. package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.js +12 -16
  789. package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +1 -1
  790. package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts +1 -1
  791. package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts.map +1 -1
  792. package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.js +12 -16
  793. package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.lua +1 -1
  794. package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts +1 -1
  795. package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts.map +1 -1
  796. package/dist/classes/features/other/debugDisplay/DebugDisplayTear.js +12 -16
  797. package/dist/classes/features/other/debugDisplay/DebugDisplayTear.lua +1 -1
  798. package/dist/classes/features/other/debugDisplay/utils.js +6 -10
  799. package/dist/classes/features/other/extraConsoleCommands/commands.d.ts +14 -14
  800. package/dist/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
  801. package/dist/classes/features/other/extraConsoleCommands/commands.js +433 -580
  802. package/dist/classes/features/other/extraConsoleCommands/commands.lua +33 -30
  803. package/dist/classes/features/other/extraConsoleCommands/subroutines.js +47 -57
  804. package/dist/classes/features/other/extraConsoleCommands/v.js +1 -4
  805. package/dist/classes/features/other/saveDataManager/constants.js +1 -4
  806. package/dist/classes/features/other/saveDataManager/glowingHourGlass.js +17 -21
  807. package/dist/classes/features/other/saveDataManager/loadFromDisk.js +19 -22
  808. package/dist/classes/features/other/saveDataManager/restoreDefaults.js +20 -25
  809. package/dist/classes/features/other/saveDataManager/saveToDisk.js +13 -16
  810. package/dist/classes/private/CustomCallback.d.ts +6 -6
  811. package/dist/classes/private/CustomCallback.d.ts.map +1 -1
  812. package/dist/classes/private/CustomCallback.js +25 -29
  813. package/dist/classes/private/Feature.js +1 -5
  814. package/dist/core/cachedClasses.d.ts.map +1 -1
  815. package/dist/core/cachedClasses.js +13 -15
  816. package/dist/core/constants.d.ts +1 -1
  817. package/dist/core/constants.d.ts.map +1 -1
  818. package/dist/core/constants.js +127 -131
  819. package/dist/core/constants.lua +1 -1
  820. package/dist/core/constantsFirstLast.js +22 -25
  821. package/dist/core/constantsVanilla.js +25 -28
  822. package/dist/core/upgradeMod.js +7 -10
  823. package/dist/decorators.d.ts.map +1 -1
  824. package/dist/decorators.js +6 -10
  825. package/dist/enums/AmbushType.js +2 -5
  826. package/dist/enums/CornerType.js +2 -5
  827. package/dist/enums/HealthType.js +2 -5
  828. package/dist/enums/ISCFeature.js +2 -5
  829. package/dist/enums/LadderSubTypeCustom.js +2 -5
  830. package/dist/enums/ModCallbackCustom.js +2 -5
  831. package/dist/enums/MysteriousPaperEffect.js +2 -5
  832. package/dist/enums/PlayerStat.js +2 -5
  833. package/dist/enums/PocketItemType.js +2 -5
  834. package/dist/enums/RockAltType.js +2 -5
  835. package/dist/enums/SaveDataKey.js +2 -5
  836. package/dist/enums/SerializationType.js +2 -5
  837. package/dist/enums/SlotDestructionType.js +2 -5
  838. package/dist/enums/private/GridEntityTypeCustom.js +1 -4
  839. package/dist/enums/private/SerializationBrand.js +2 -5
  840. package/dist/enums/private/StageTravelState.js +2 -5
  841. package/dist/enums/private/TrapdoorAnimation.js +2 -5
  842. package/dist/enums/private/UIStreakAnimation.js +2 -5
  843. package/dist/features.d.ts +57 -57
  844. package/dist/features.d.ts.map +1 -1
  845. package/dist/features.js +139 -141
  846. package/dist/functions/ambush.js +9 -12
  847. package/dist/functions/array.d.ts +13 -13
  848. package/dist/functions/array.d.ts.map +1 -1
  849. package/dist/functions/array.js +90 -119
  850. package/dist/functions/array.lua +58 -53
  851. package/dist/functions/arrayLua.js +8 -17
  852. package/dist/functions/benchmark.js +4 -7
  853. package/dist/functions/bitSet128.d.ts +1 -1
  854. package/dist/functions/bitSet128.d.ts.map +1 -1
  855. package/dist/functions/bitSet128.js +19 -26
  856. package/dist/functions/bitwise.d.ts.map +1 -1
  857. package/dist/functions/bitwise.js +15 -23
  858. package/dist/functions/bitwise.lua +2 -2
  859. package/dist/functions/bombs.js +1 -4
  860. package/dist/functions/bosses.d.ts +12 -12
  861. package/dist/functions/bosses.d.ts.map +1 -1
  862. package/dist/functions/bosses.js +102 -119
  863. package/dist/functions/bosses.lua +58 -57
  864. package/dist/functions/cards.js +44 -62
  865. package/dist/functions/challenges.d.ts.map +1 -1
  866. package/dist/functions/challenges.js +35 -44
  867. package/dist/functions/challenges.lua +10 -8
  868. package/dist/functions/characters.js +68 -87
  869. package/dist/functions/characters.lua +1 -1
  870. package/dist/functions/charge.d.ts +11 -11
  871. package/dist/functions/charge.d.ts.map +1 -1
  872. package/dist/functions/charge.js +69 -80
  873. package/dist/functions/charge.lua +9 -9
  874. package/dist/functions/chargeBar.js +2 -6
  875. package/dist/functions/collectibleTag.js +9 -13
  876. package/dist/functions/collectibles.d.ts +5 -5
  877. package/dist/functions/collectibles.d.ts.map +1 -1
  878. package/dist/functions/collectibles.js +143 -182
  879. package/dist/functions/collectibles.lua +1 -1
  880. package/dist/functions/color.d.ts +1 -1
  881. package/dist/functions/color.d.ts.map +1 -1
  882. package/dist/functions/color.js +29 -38
  883. package/dist/functions/console.js +4 -8
  884. package/dist/functions/curses.js +6 -10
  885. package/dist/functions/debugFunctions.js +7 -14
  886. package/dist/functions/decorators.d.ts.map +1 -1
  887. package/dist/functions/decorators.js +36 -20
  888. package/dist/functions/deepCopy.js +173 -175
  889. package/dist/functions/deepCopy.lua +170 -173
  890. package/dist/functions/deepCopyTests.js +232 -241
  891. package/dist/functions/deepCopyTests.lua +217 -217
  892. package/dist/functions/dimensions.js +10 -14
  893. package/dist/functions/direction.js +22 -30
  894. package/dist/functions/doors.d.ts +12 -12
  895. package/dist/functions/doors.d.ts.map +1 -1
  896. package/dist/functions/doors.js +135 -184
  897. package/dist/functions/doors.lua +30 -26
  898. package/dist/functions/easing.d.ts +58 -58
  899. package/dist/functions/easing.d.ts.map +1 -1
  900. package/dist/functions/easing.js +139 -172
  901. package/dist/functions/easing.lua +93 -93
  902. package/dist/functions/effects.js +6 -10
  903. package/dist/functions/emptyRoom.d.ts.map +1 -1
  904. package/dist/functions/emptyRoom.js +45 -49
  905. package/dist/functions/emptyRoom.lua +23 -23
  906. package/dist/functions/entities.d.ts.map +1 -1
  907. package/dist/functions/entities.js +102 -128
  908. package/dist/functions/entities.lua +30 -30
  909. package/dist/functions/entitiesSpecific.js +83 -125
  910. package/dist/functions/entityTypes.js +3 -6
  911. package/dist/functions/enums.js +27 -41
  912. package/dist/functions/external.js +4 -8
  913. package/dist/functions/familiars.js +17 -25
  914. package/dist/functions/flag.js +11 -20
  915. package/dist/functions/flag.lua +1 -1
  916. package/dist/functions/frames.js +31 -51
  917. package/dist/functions/globals.d.ts.map +1 -1
  918. package/dist/functions/globals.js +33 -72
  919. package/dist/functions/globals.lua +5 -1
  920. package/dist/functions/gridEntities.d.ts +10 -10
  921. package/dist/functions/gridEntities.d.ts.map +1 -1
  922. package/dist/functions/gridEntities.js +395 -430
  923. package/dist/functions/gridEntities.lua +225 -225
  924. package/dist/functions/gridEntitiesSpecific.d.ts +18 -18
  925. package/dist/functions/gridEntitiesSpecific.d.ts.map +1 -1
  926. package/dist/functions/gridEntitiesSpecific.js +114 -154
  927. package/dist/functions/gridEntitiesSpecific.lua +41 -41
  928. package/dist/functions/gridIndex.js +8 -11
  929. package/dist/functions/hash.js +1 -4
  930. package/dist/functions/hash.lua +1 -1
  931. package/dist/functions/hex.js +32 -16
  932. package/dist/functions/input.js +65 -88
  933. package/dist/functions/isaacAPIClass.d.ts +7 -7
  934. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  935. package/dist/functions/isaacAPIClass.js +38 -63
  936. package/dist/functions/isaacAPIClass.lua +13 -13
  937. package/dist/functions/itemPool.js +39 -48
  938. package/dist/functions/jsonHelpers.d.ts.map +1 -1
  939. package/dist/functions/jsonHelpers.js +11 -48
  940. package/dist/functions/jsonHelpers.lua +3 -2
  941. package/dist/functions/jsonRoom.js +46 -53
  942. package/dist/functions/jsonRoom.lua +17 -17
  943. package/dist/functions/kColor.d.ts +1 -1
  944. package/dist/functions/kColor.d.ts.map +1 -1
  945. package/dist/functions/kColor.js +30 -39
  946. package/dist/functions/language.js +3 -6
  947. package/dist/functions/level.js +20 -26
  948. package/dist/functions/levelGrid.d.ts.map +1 -1
  949. package/dist/functions/levelGrid.js +82 -112
  950. package/dist/functions/levelGrid.lua +1 -3
  951. package/dist/functions/log.js +6 -12
  952. package/dist/functions/logEntities.d.ts.map +1 -1
  953. package/dist/functions/logEntities.js +107 -117
  954. package/dist/functions/logEntities.lua +41 -41
  955. package/dist/functions/logMisc.d.ts.map +1 -1
  956. package/dist/functions/logMisc.js +191 -220
  957. package/dist/functions/logMisc.lua +13 -5
  958. package/dist/functions/map.d.ts +1 -1
  959. package/dist/functions/map.d.ts.map +1 -1
  960. package/dist/functions/map.js +11 -26
  961. package/dist/functions/map.lua +1 -7
  962. package/dist/functions/math.d.ts +1 -1
  963. package/dist/functions/math.js +17 -32
  964. package/dist/functions/math.lua +1 -1
  965. package/dist/functions/merge.js +72 -75
  966. package/dist/functions/merge.lua +38 -38
  967. package/dist/functions/mergeTests.js +127 -172
  968. package/dist/functions/mergeTests.lua +99 -99
  969. package/dist/functions/minimap.js +34 -46
  970. package/dist/functions/modFeatures.js +1 -4
  971. package/dist/functions/newArray.js +5 -8
  972. package/dist/functions/nextStage.d.ts.map +1 -1
  973. package/dist/functions/nextStage.js +64 -68
  974. package/dist/functions/nextStage.lua +3 -3
  975. package/dist/functions/npcDataStructures.js +9 -20
  976. package/dist/functions/npcs.js +37 -45
  977. package/dist/functions/pickupVariants.js +27 -40
  978. package/dist/functions/pickups.js +43 -59
  979. package/dist/functions/pickupsSpecific.js +76 -118
  980. package/dist/functions/pills.js +52 -72
  981. package/dist/functions/playerCenter.js +13 -16
  982. package/dist/functions/playerCollectibles.js +59 -79
  983. package/dist/functions/playerDataStructures.js +18 -29
  984. package/dist/functions/playerEffects.js +12 -19
  985. package/dist/functions/playerHealth.d.ts.map +1 -1
  986. package/dist/functions/playerHealth.js +110 -131
  987. package/dist/functions/playerHealth.lua +26 -26
  988. package/dist/functions/playerIndex.d.ts.map +1 -1
  989. package/dist/functions/playerIndex.js +29 -40
  990. package/dist/functions/playerIndex.lua +7 -7
  991. package/dist/functions/playerTrinkets.d.ts +5 -5
  992. package/dist/functions/playerTrinkets.d.ts.map +1 -1
  993. package/dist/functions/playerTrinkets.js +39 -51
  994. package/dist/functions/playerTrinkets.lua +13 -13
  995. package/dist/functions/players.d.ts.map +1 -1
  996. package/dist/functions/players.js +93 -131
  997. package/dist/functions/players.lua +5 -1
  998. package/dist/functions/pocketItems.js +33 -43
  999. package/dist/functions/positionVelocity.js +23 -32
  1000. package/dist/functions/pressurePlate.js +7 -10
  1001. package/dist/functions/projectiles.js +11 -15
  1002. package/dist/functions/random.js +8 -13
  1003. package/dist/functions/readOnly.js +3 -8
  1004. package/dist/functions/render.js +7 -12
  1005. package/dist/functions/revive.d.ts.map +1 -1
  1006. package/dist/functions/revive.js +41 -51
  1007. package/dist/functions/revive.lua +3 -6
  1008. package/dist/functions/rng.d.ts +1 -1
  1009. package/dist/functions/rng.d.ts.map +1 -1
  1010. package/dist/functions/rng.js +37 -49
  1011. package/dist/functions/rng.lua +8 -4
  1012. package/dist/functions/rockAlt.js +18 -22
  1013. package/dist/functions/roomData.d.ts.map +1 -1
  1014. package/dist/functions/roomData.js +26 -41
  1015. package/dist/functions/roomData.lua +5 -1
  1016. package/dist/functions/roomGrid.d.ts.map +1 -1
  1017. package/dist/functions/roomGrid.js +25 -33
  1018. package/dist/functions/roomGrid.lua +6 -6
  1019. package/dist/functions/roomShape.js +39 -55
  1020. package/dist/functions/roomShapeWalls.d.ts.map +1 -1
  1021. package/dist/functions/roomShapeWalls.js +80 -84
  1022. package/dist/functions/roomTransition.js +13 -17
  1023. package/dist/functions/rooms.d.ts +6 -6
  1024. package/dist/functions/rooms.d.ts.map +1 -1
  1025. package/dist/functions/rooms.js +187 -250
  1026. package/dist/functions/rooms.lua +6 -6
  1027. package/dist/functions/run.js +29 -39
  1028. package/dist/functions/seeds.js +6 -10
  1029. package/dist/functions/serialization.d.ts.map +1 -1
  1030. package/dist/functions/serialization.js +38 -45
  1031. package/dist/functions/serialization.lua +1 -1
  1032. package/dist/functions/set.d.ts +1 -1
  1033. package/dist/functions/set.d.ts.map +1 -1
  1034. package/dist/functions/set.js +25 -46
  1035. package/dist/functions/set.lua +1 -5
  1036. package/dist/functions/slots.js +18 -22
  1037. package/dist/functions/sort.js +9 -15
  1038. package/dist/functions/sound.js +12 -16
  1039. package/dist/functions/spawnCollectible.js +22 -27
  1040. package/dist/functions/spawnCollectible.lua +1 -1
  1041. package/dist/functions/sprites.js +16 -24
  1042. package/dist/functions/stage.js +122 -164
  1043. package/dist/functions/stats.js +37 -43
  1044. package/dist/functions/storyBosses.js +36 -40
  1045. package/dist/functions/string.d.ts.map +1 -1
  1046. package/dist/functions/string.js +24 -34
  1047. package/dist/functions/table.js +21 -31
  1048. package/dist/functions/tears.js +6 -14
  1049. package/dist/functions/transformations.js +35 -42
  1050. package/dist/functions/trinketGive.js +29 -36
  1051. package/dist/functions/trinkets.d.ts.map +1 -1
  1052. package/dist/functions/trinkets.js +45 -60
  1053. package/dist/functions/tstlClass.js +11 -20
  1054. package/dist/functions/types.d.ts.map +1 -1
  1055. package/dist/functions/types.js +24 -46
  1056. package/dist/functions/ui.d.ts +11 -11
  1057. package/dist/functions/ui.d.ts.map +1 -1
  1058. package/dist/functions/ui.js +50 -65
  1059. package/dist/functions/ui.lua +23 -23
  1060. package/dist/functions/utils.d.ts +11 -11
  1061. package/dist/functions/utils.d.ts.map +1 -1
  1062. package/dist/functions/utils.js +36 -48
  1063. package/dist/functions/utils.lua +11 -11
  1064. package/dist/functions/vector.d.ts +1 -1
  1065. package/dist/functions/vector.d.ts.map +1 -1
  1066. package/dist/functions/vector.js +34 -47
  1067. package/dist/functions/versusScreen.js +12 -18
  1068. package/dist/functions/weighted.js +8 -12
  1069. package/dist/index.js +150 -166
  1070. package/dist/index.rollup.d.ts +538 -527
  1071. package/dist/indexLua.js +151 -167
  1072. package/dist/interfaces/ChargeBarSprites.d.ts +5 -5
  1073. package/dist/interfaces/ChargeBarSprites.d.ts.map +1 -1
  1074. package/dist/interfaces/ChargeBarSprites.js +1 -2
  1075. package/dist/interfaces/Corner.js +1 -2
  1076. package/dist/interfaces/CustomStageTSConfig.d.ts +63 -63
  1077. package/dist/interfaces/CustomStageTSConfig.d.ts.map +1 -1
  1078. package/dist/interfaces/CustomStageTSConfig.js +1 -2
  1079. package/dist/interfaces/GridEntityCustomData.d.ts +6 -6
  1080. package/dist/interfaces/GridEntityCustomData.d.ts.map +1 -1
  1081. package/dist/interfaces/GridEntityCustomData.js +1 -2
  1082. package/dist/interfaces/JSONRoomsFile.d.ts +27 -27
  1083. package/dist/interfaces/JSONRoomsFile.d.ts.map +1 -1
  1084. package/dist/interfaces/JSONRoomsFile.js +1 -2
  1085. package/dist/interfaces/PlayerHealth.d.ts +11 -11
  1086. package/dist/interfaces/PlayerHealth.d.ts.map +1 -1
  1087. package/dist/interfaces/PlayerHealth.js +1 -2
  1088. package/dist/interfaces/PlayerStats.d.ts +13 -13
  1089. package/dist/interfaces/PlayerStats.d.ts.map +1 -1
  1090. package/dist/interfaces/PlayerStats.js +2 -4
  1091. package/dist/interfaces/PocketItemDescription.d.ts +3 -3
  1092. package/dist/interfaces/PocketItemDescription.d.ts.map +1 -1
  1093. package/dist/interfaces/PocketItemDescription.js +1 -2
  1094. package/dist/interfaces/RoomDescription.d.ts +12 -12
  1095. package/dist/interfaces/RoomDescription.d.ts.map +1 -1
  1096. package/dist/interfaces/RoomDescription.js +1 -2
  1097. package/dist/interfaces/SaveData.d.ts.map +1 -1
  1098. package/dist/interfaces/SaveData.js +1 -2
  1099. package/dist/interfaces/StageHistoryEntry.js +1 -2
  1100. package/dist/interfaces/TSTLClassMetatable.d.ts +5 -5
  1101. package/dist/interfaces/TSTLClassMetatable.d.ts.map +1 -1
  1102. package/dist/interfaces/TSTLClassMetatable.js +1 -2
  1103. package/dist/interfaces/TrinketSituation.d.ts +4 -4
  1104. package/dist/interfaces/TrinketSituation.d.ts.map +1 -1
  1105. package/dist/interfaces/TrinketSituation.js +1 -2
  1106. package/dist/interfaces/private/AddCallbackParametersCustom.d.ts +153 -145
  1107. package/dist/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
  1108. package/dist/interfaces/private/AddCallbackParametersCustom.js +2 -4
  1109. package/dist/interfaces/private/CustomStage.d.ts +1 -1
  1110. package/dist/interfaces/private/CustomStage.d.ts.map +1 -1
  1111. package/dist/interfaces/private/CustomStage.js +1 -2
  1112. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +4 -4
  1113. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -1
  1114. package/dist/interfaces/private/CustomTrapdoorDescription.js +1 -2
  1115. package/dist/interfaces/private/ModUpgradedInterface.d.ts +2 -2
  1116. package/dist/interfaces/private/ModUpgradedInterface.d.ts.map +1 -1
  1117. package/dist/interfaces/private/ModUpgradedInterface.js +1 -2
  1118. package/dist/isaacscript-common.lua +1947 -1838
  1119. package/dist/lib/jsonLua.js +11 -11
  1120. package/dist/lualib_bundle.lua +117 -46
  1121. package/dist/maps/PHDPillConversionsMap.js +19 -22
  1122. package/dist/maps/cardNameToTypeMap.js +205 -208
  1123. package/dist/maps/characterNameToTypeMap.js +85 -88
  1124. package/dist/maps/collectibleNameToTypeMap.js +5 -8
  1125. package/dist/maps/defaultPlayerStatMap.js +10 -13
  1126. package/dist/maps/entityTypeVariantToBossIDMap.js +3 -6
  1127. package/dist/maps/falsePHDPillConversionsMap.js +33 -36
  1128. package/dist/maps/gridEntityTypeToBrokenStateMap.js +15 -18
  1129. package/dist/maps/gridEntityXMLMap.js +52 -55
  1130. package/dist/maps/itemPoolTypeToItemPoolName.js +33 -36
  1131. package/dist/maps/keyboardToStringMap.js +66 -69
  1132. package/dist/maps/pillNameToEffectMap.js +83 -86
  1133. package/dist/maps/roomNameToTypeMap.js +38 -41
  1134. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.js +9 -12
  1135. package/dist/maps/transformationNameToPlayerFormMap.js +30 -33
  1136. package/dist/maps/trinketNameToTypeMap.js +5 -8
  1137. package/dist/objects/LRoomShapeToRectangles.js +22 -25
  1138. package/dist/objects/backdropTypeToRockAltType.js +65 -68
  1139. package/dist/objects/batteryNames.js +8 -11
  1140. package/dist/objects/bombNames.js +11 -14
  1141. package/dist/objects/bossIDToEntityTypeVariant.js +116 -119
  1142. package/dist/objects/bossNamePNGFileNames.js +104 -107
  1143. package/dist/objects/bossNames.js +105 -108
  1144. package/dist/objects/bossPortraitPNGFileNames.js +104 -107
  1145. package/dist/objects/cardDescriptions.js +101 -104
  1146. package/dist/objects/cardNames.js +101 -104
  1147. package/dist/objects/challengeBosses.js +49 -52
  1148. package/dist/objects/challengeCharacters.js +49 -52
  1149. package/dist/objects/challengeCollectibleTypes.js +160 -163
  1150. package/dist/objects/challengeNames.js +49 -52
  1151. package/dist/objects/challengeTrinketType.js +48 -51
  1152. package/dist/objects/characterDamageMultipliers.js +44 -47
  1153. package/dist/objects/characterNames.js +44 -47
  1154. package/dist/objects/characterSpritePNGFileNames.js +44 -47
  1155. package/dist/objects/characterStartingCollectibleTypes.js +49 -52
  1156. package/dist/objects/characterStartingTrinketTypes.js +44 -47
  1157. package/dist/objects/chestNames.js +15 -18
  1158. package/dist/objects/coinNames.js +11 -14
  1159. package/dist/objects/coinSubTypeToValue.js +11 -14
  1160. package/dist/objects/collectibleDescriptions.js +725 -728
  1161. package/dist/objects/collectibleNames.js +725 -728
  1162. package/dist/objects/colors.js +1 -4
  1163. package/dist/objects/directionNames.js +7 -10
  1164. package/dist/objects/directionToDegrees.js +7 -10
  1165. package/dist/objects/directionToMoveAction.js +7 -10
  1166. package/dist/objects/directionToShootAction.js +7 -10
  1167. package/dist/objects/directionToVector.js +9 -12
  1168. package/dist/objects/doorSlotFlagToDoorSlot.js +11 -14
  1169. package/dist/objects/doorSlotToDirection.js +11 -14
  1170. package/dist/objects/doorSlotToDoorSlotFlag.js +11 -14
  1171. package/dist/objects/gridEntityTypeToANM2Name.js +30 -33
  1172. package/dist/objects/heartNames.js +16 -19
  1173. package/dist/objects/isaacAPIClassTypeToBrand.js +8 -11
  1174. package/dist/objects/isaacAPIClassTypeToFunctions.d.ts +15 -15
  1175. package/dist/objects/isaacAPIClassTypeToFunctions.d.ts.map +1 -1
  1176. package/dist/objects/isaacAPIClassTypeToFunctions.js +37 -40
  1177. package/dist/objects/itemPoolTypeToCollectibleTypesSet.js +9 -45
  1178. package/dist/objects/kColors.js +1 -4
  1179. package/dist/objects/keyNames.js +8 -11
  1180. package/dist/objects/languageNames.js +9 -12
  1181. package/dist/objects/oppositeDoorSlots.js +11 -14
  1182. package/dist/objects/pillEffectClasses.js +53 -56
  1183. package/dist/objects/pillEffectNames.js +53 -56
  1184. package/dist/objects/pillEffectTypeToPillEffects.js +11 -14
  1185. package/dist/objects/pillEffectTypes.js +53 -56
  1186. package/dist/objects/playerNamePNGFileNames.js +44 -47
  1187. package/dist/objects/playerPortraitPNGFileNames.js +44 -47
  1188. package/dist/objects/roomShapeBounds.js +23 -26
  1189. package/dist/objects/roomShapeCorners.js +128 -131
  1190. package/dist/objects/roomShapeLayoutSizes.js +23 -26
  1191. package/dist/objects/roomShapeToBottomRightPosition.js +17 -20
  1192. package/dist/objects/roomShapeToDoorSlotCoordinates.js +78 -81
  1193. package/dist/objects/roomShapeToDoorSlots.js +48 -51
  1194. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js +82 -85
  1195. package/dist/objects/roomShapeToGridWidth.js +14 -17
  1196. package/dist/objects/roomShapeToTopLeftPosition.js +18 -21
  1197. package/dist/objects/roomShapeVolumes.js +21 -24
  1198. package/dist/objects/roomTypeNames.js +32 -35
  1199. package/dist/objects/roomTypeSpecialGotoPrefixes.js +32 -35
  1200. package/dist/objects/sackNames.js +6 -9
  1201. package/dist/objects/slotNames.js +21 -24
  1202. package/dist/objects/stageIDNames.js +33 -36
  1203. package/dist/objects/stageToMusic.js +69 -72
  1204. package/dist/objects/stageToStageID.js +90 -93
  1205. package/dist/objects/stageTypeSuffixes.js +8 -11
  1206. package/dist/objects/transformationNames.js +16 -19
  1207. package/dist/objects/trinketDescriptions.js +192 -195
  1208. package/dist/objects/trinketNames.js +192 -195
  1209. package/dist/objects/versusScreenBackgroundColors.js +39 -42
  1210. package/dist/objects/versusScreenDirtSpotColors.js +39 -42
  1211. package/dist/patchErrorFunctions.d.ts.map +1 -1
  1212. package/dist/patchErrorFunctions.js +7 -7
  1213. package/dist/serialization.js +6 -9
  1214. package/dist/sets/LRoomShapesSet.js +7 -10
  1215. package/dist/sets/bigRoomShapesSet.js +10 -13
  1216. package/dist/sets/bossSets.js +261 -264
  1217. package/dist/sets/charactersThatStartWithAnActiveItemSet.js +14 -17
  1218. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.js +5 -8
  1219. package/dist/sets/charactersWithFreeDevilDealsSet.js +3 -6
  1220. package/dist/sets/charactersWithNoRedHeartsSet.js +11 -14
  1221. package/dist/sets/charactersWithNoSoulHeartsSet.js +8 -11
  1222. package/dist/sets/consoleCommandsSet.js +2 -5
  1223. package/dist/sets/entitiesWithArmorSet.d.ts.map +1 -1
  1224. package/dist/sets/entitiesWithArmorSet.js +44 -47
  1225. package/dist/sets/entitiesWithArmorSet.lua +2 -1
  1226. package/dist/sets/familiarsThatShootPlayerTearsSet.js +11 -14
  1227. package/dist/sets/itemConfigCardTypesForCards.js +7 -10
  1228. package/dist/sets/lostStyleCharactersSet.js +8 -11
  1229. package/dist/sets/mineShaftRoomSubTypesSet.js +8 -11
  1230. package/dist/sets/narrowRoomShapesSet.js +7 -10
  1231. package/dist/sets/poopGridEntityXMLTypesSet.js +12 -15
  1232. package/dist/sets/redHeartSubTypesSet.js +6 -9
  1233. package/dist/sets/repentanceBossIDsSet.js +26 -29
  1234. package/dist/sets/sinEntityTypesSet.js +10 -13
  1235. package/dist/sets/singleUseActiveCollectibleTypesSet.js +11 -14
  1236. package/dist/shaderCrashFix.js +4 -7
  1237. package/dist/shouldFire.d.ts +1 -1
  1238. package/dist/shouldFire.d.ts.map +1 -1
  1239. package/dist/shouldFire.js +34 -71
  1240. package/dist/shouldFire.lua +5 -5
  1241. package/dist/tsdoc-metadata.json +1 -1
  1242. package/dist/types/AddSubtract.js +1 -2
  1243. package/dist/types/AllButFirst.d.ts +1 -1
  1244. package/dist/types/AllButFirst.d.ts.map +1 -1
  1245. package/dist/types/AllButFirst.js +1 -2
  1246. package/dist/types/AllButLast.d.ts +4 -1
  1247. package/dist/types/AllButLast.d.ts.map +1 -1
  1248. package/dist/types/AllButLast.js +1 -2
  1249. package/dist/types/AnyClass.js +1 -2
  1250. package/dist/types/AnyEntity.js +1 -2
  1251. package/dist/types/AnyFunction.js +1 -2
  1252. package/dist/types/AnyGridEntity.js +1 -2
  1253. package/dist/types/CompositionTypeSatisfiesEnum.js +1 -2
  1254. package/dist/types/ConversionHeartSubType.js +1 -2
  1255. package/dist/types/Decrement.js +1 -2
  1256. package/dist/types/ERange.js +1 -2
  1257. package/dist/types/EntityID.js +1 -2
  1258. package/dist/types/FunctionTuple.js +1 -2
  1259. package/dist/types/GridEntityID.js +1 -2
  1260. package/dist/types/HasFunction.js +1 -2
  1261. package/dist/types/IRange.js +1 -2
  1262. package/dist/types/Immutable.d.ts.map +1 -1
  1263. package/dist/types/Immutable.js +1 -2
  1264. package/dist/types/Increment.js +1 -2
  1265. package/dist/types/LowercaseKeys.js +1 -2
  1266. package/dist/types/NaturalNumbersLessThan.js +1 -2
  1267. package/dist/types/NaturalNumbersLessThanOrEqualTo.js +1 -2
  1268. package/dist/types/ObjectValues.js +1 -2
  1269. package/dist/types/PickingUpItem.d.ts.map +1 -1
  1270. package/dist/types/PickingUpItem.js +16 -27
  1271. package/dist/types/PickupIndex.js +1 -2
  1272. package/dist/types/PlayerIndex.js +1 -2
  1273. package/dist/types/PossibleStatType.d.ts.map +1 -1
  1274. package/dist/types/PossibleStatType.js +1 -2
  1275. package/dist/types/PublicInterface.js +1 -2
  1276. package/dist/types/ReadonlyMap.js +1 -4
  1277. package/dist/types/ReadonlyRecord.js +1 -2
  1278. package/dist/types/ReadonlySet.js +1 -4
  1279. package/dist/types/StartsWithLowercase.js +1 -2
  1280. package/dist/types/StartsWithUppercase.js +1 -2
  1281. package/dist/types/TSTLClass.js +1 -2
  1282. package/dist/types/Tuple.js +1 -2
  1283. package/dist/types/TupleKeys.js +1 -2
  1284. package/dist/types/TupleToIntersection.js +1 -2
  1285. package/dist/types/TupleToUnion.js +1 -2
  1286. package/dist/types/TupleWithLengthBetween.js +1 -2
  1287. package/dist/types/TupleWithMaxLength.js +1 -2
  1288. package/dist/types/UnionToIntersection.js +1 -2
  1289. package/dist/types/UppercaseKeys.js +1 -2
  1290. package/dist/types/WeightedArray.js +1 -2
  1291. package/dist/types/WidenLiteral.js +1 -2
  1292. package/dist/types/Writable.js +1 -2
  1293. package/dist/types/private/CallbackTuple.js +1 -2
  1294. package/dist/types/private/ModUpgradedWithFeatures.js +1 -2
  1295. package/package.json +6 -7
  1296. package/src/classes/DefaultMap.ts +1 -2
  1297. package/src/classes/ModFeature.ts +2 -4
  1298. package/src/classes/ModUpgraded.ts +149 -150
  1299. package/src/classes/callbacks/EntityTakeDmgFilter.ts +11 -11
  1300. package/src/classes/callbacks/EntityTakeDmgPlayer.ts +15 -15
  1301. package/src/classes/callbacks/InputActionFilter.ts +14 -14
  1302. package/src/classes/callbacks/InputActionPlayer.ts +23 -23
  1303. package/src/classes/callbacks/PostAmbushFinished.ts +13 -13
  1304. package/src/classes/callbacks/PostAmbushStarted.ts +13 -13
  1305. package/src/classes/callbacks/PostBombExploded.ts +9 -9
  1306. package/src/classes/callbacks/PostBombInitFilter.ts +7 -7
  1307. package/src/classes/callbacks/PostBombInitLate.ts +11 -11
  1308. package/src/classes/callbacks/PostBombRenderFilter.ts +10 -10
  1309. package/src/classes/callbacks/PostBombUpdateFilter.ts +7 -7
  1310. package/src/classes/callbacks/PostBoneSwing.ts +9 -9
  1311. package/src/classes/callbacks/PostCollectibleEmpty.ts +27 -27
  1312. package/src/classes/callbacks/PostCursedTeleport.ts +47 -49
  1313. package/src/classes/callbacks/PostCustomRevive.ts +6 -6
  1314. package/src/classes/callbacks/PostDiceRoomActivated.ts +31 -29
  1315. package/src/classes/callbacks/PostDoorRender.ts +9 -9
  1316. package/src/classes/callbacks/PostDoorUpdate.ts +9 -9
  1317. package/src/classes/callbacks/PostEffectInitFilter.ts +7 -7
  1318. package/src/classes/callbacks/PostEffectInitLate.ts +11 -11
  1319. package/src/classes/callbacks/PostEffectRenderFilter.ts +10 -10
  1320. package/src/classes/callbacks/PostEffectStateChanged.ts +13 -13
  1321. package/src/classes/callbacks/PostEffectUpdateFilter.ts +7 -7
  1322. package/src/classes/callbacks/PostEntityKillFilter.ts +7 -7
  1323. package/src/classes/callbacks/PostEntityRemoveFilter.ts +7 -7
  1324. package/src/classes/callbacks/PostFamiliarInitFilter.ts +7 -7
  1325. package/src/classes/callbacks/PostFamiliarInitLate.ts +11 -11
  1326. package/src/classes/callbacks/PostFamiliarRenderFilter.ts +10 -10
  1327. package/src/classes/callbacks/PostFamiliarStateChanged.ts +13 -13
  1328. package/src/classes/callbacks/PostFamiliarUpdateFilter.ts +7 -7
  1329. package/src/classes/callbacks/PostGameEndFilter.ts +7 -7
  1330. package/src/classes/callbacks/PostGameStartedReordered.ts +1 -2
  1331. package/src/classes/callbacks/PostGameStartedReorderedLast.ts +1 -2
  1332. package/src/classes/callbacks/PostGreedModeWave.ts +11 -11
  1333. package/src/classes/callbacks/PostGridEntityBroken.ts +1 -2
  1334. package/src/classes/callbacks/PostGridEntityCollision.ts +6 -6
  1335. package/src/classes/callbacks/PostGridEntityCustomBroken.ts +1 -2
  1336. package/src/classes/callbacks/PostGridEntityCustomCollision.ts +6 -6
  1337. package/src/classes/callbacks/PostGridEntityCustomInit.ts +1 -2
  1338. package/src/classes/callbacks/PostGridEntityCustomRemove.ts +6 -6
  1339. package/src/classes/callbacks/PostGridEntityCustomRender.ts +1 -2
  1340. package/src/classes/callbacks/PostGridEntityCustomStateChanged.ts +1 -2
  1341. package/src/classes/callbacks/PostGridEntityCustomUpdate.ts +1 -2
  1342. package/src/classes/callbacks/PostGridEntityInit.ts +1 -2
  1343. package/src/classes/callbacks/PostGridEntityRemove.ts +6 -6
  1344. package/src/classes/callbacks/PostGridEntityRender.ts +1 -2
  1345. package/src/classes/callbacks/PostGridEntityStateChanged.ts +1 -2
  1346. package/src/classes/callbacks/PostGridEntityUpdate.ts +1 -2
  1347. package/src/classes/callbacks/PostHolyMantleRemoved.ts +15 -15
  1348. package/src/classes/callbacks/PostItemDischarge.ts +63 -63
  1349. package/src/classes/callbacks/PostItemPickup.ts +1 -2
  1350. package/src/classes/callbacks/PostKeyboardChanged.ts +28 -26
  1351. package/src/classes/callbacks/PostKnifeInitFilter.ts +7 -7
  1352. package/src/classes/callbacks/PostKnifeInitLate.ts +11 -11
  1353. package/src/classes/callbacks/PostKnifeRenderFilter.ts +10 -10
  1354. package/src/classes/callbacks/PostKnifeUpdateFilter.ts +7 -7
  1355. package/src/classes/callbacks/PostLaserInitFilter.ts +7 -7
  1356. package/src/classes/callbacks/PostLaserInitLate.ts +11 -11
  1357. package/src/classes/callbacks/PostLaserRenderFilter.ts +10 -10
  1358. package/src/classes/callbacks/PostLaserUpdateFilter.ts +7 -7
  1359. package/src/classes/callbacks/PostNPCDeathFilter.ts +7 -7
  1360. package/src/classes/callbacks/PostNPCInitFilter.ts +7 -7
  1361. package/src/classes/callbacks/PostNPCInitLate.ts +11 -11
  1362. package/src/classes/callbacks/PostNPCRenderFilter.ts +7 -7
  1363. package/src/classes/callbacks/PostNPCStateChanged.ts +13 -13
  1364. package/src/classes/callbacks/PostNPCUpdateFilter.ts +7 -7
  1365. package/src/classes/callbacks/PostNewLevelReordered.ts +1 -2
  1366. package/src/classes/callbacks/PostNewRoomEarly.ts +22 -20
  1367. package/src/classes/callbacks/PostNewRoomReordered.ts +1 -2
  1368. package/src/classes/callbacks/PostPEffectUpdateReordered.ts +1 -2
  1369. package/src/classes/callbacks/PostPickupChanged.ts +1 -2
  1370. package/src/classes/callbacks/PostPickupCollect.ts +13 -13
  1371. package/src/classes/callbacks/PostPickupInitFilter.ts +7 -7
  1372. package/src/classes/callbacks/PostPickupInitFirst.ts +13 -13
  1373. package/src/classes/callbacks/PostPickupInitLate.ts +11 -11
  1374. package/src/classes/callbacks/PostPickupRenderFilter.ts +10 -10
  1375. package/src/classes/callbacks/PostPickupSelectionFilter.ts +14 -14
  1376. package/src/classes/callbacks/PostPickupStateChanged.ts +13 -13
  1377. package/src/classes/callbacks/PostPickupUpdateFilter.ts +7 -7
  1378. package/src/classes/callbacks/PostPitRender.ts +9 -9
  1379. package/src/classes/callbacks/PostPitUpdate.ts +9 -9
  1380. package/src/classes/callbacks/PostPlayerChangeHealth.ts +15 -15
  1381. package/src/classes/callbacks/PostPlayerChangeStat.ts +15 -15
  1382. package/src/classes/callbacks/PostPlayerChangeType.ts +15 -15
  1383. package/src/classes/callbacks/PostPlayerCollectibleAdded.ts +1 -2
  1384. package/src/classes/callbacks/PostPlayerCollectibleRemoved.ts +1 -2
  1385. package/src/classes/callbacks/PostPlayerFatalDamage.ts +17 -17
  1386. package/src/classes/callbacks/PostPlayerInitFirst.ts +11 -11
  1387. package/src/classes/callbacks/PostPlayerInitLate.ts +12 -10
  1388. package/src/classes/callbacks/PostPlayerRenderReordered.ts +1 -2
  1389. package/src/classes/callbacks/PostPlayerUpdateReordered.ts +1 -2
  1390. package/src/classes/callbacks/PostPoopRender.ts +9 -9
  1391. package/src/classes/callbacks/PostPoopUpdate.ts +9 -9
  1392. package/src/classes/callbacks/PostPressurePlateRender.ts +9 -9
  1393. package/src/classes/callbacks/PostPressurePlateUpdate.ts +9 -9
  1394. package/src/classes/callbacks/PostProjectileInitFilter.ts +7 -7
  1395. package/src/classes/callbacks/PostProjectileInitLate.ts +13 -13
  1396. package/src/classes/callbacks/PostProjectileKill.ts +19 -19
  1397. package/src/classes/callbacks/PostProjectileRenderFilter.ts +10 -10
  1398. package/src/classes/callbacks/PostProjectileUpdateFilter.ts +7 -7
  1399. package/src/classes/callbacks/PostPurchase.ts +39 -39
  1400. package/src/classes/callbacks/PostRockRender.ts +9 -9
  1401. package/src/classes/callbacks/PostRockUpdate.ts +9 -9
  1402. package/src/classes/callbacks/PostRoomClearChanged.ts +25 -25
  1403. package/src/classes/callbacks/PostSacrifice.ts +13 -13
  1404. package/src/classes/callbacks/PostSlotAnimationChanged.ts +1 -2
  1405. package/src/classes/callbacks/PostSlotCollision.ts +11 -11
  1406. package/src/classes/callbacks/PostSlotDestroyed.ts +1 -2
  1407. package/src/classes/callbacks/PostSlotInit.ts +1 -2
  1408. package/src/classes/callbacks/PostSlotRender.ts +1 -2
  1409. package/src/classes/callbacks/PostSlotUpdate.ts +1 -2
  1410. package/src/classes/callbacks/PostSpikesRender.ts +9 -9
  1411. package/src/classes/callbacks/PostSpikesUpdate.ts +9 -9
  1412. package/src/classes/callbacks/PostTNTRender.ts +9 -9
  1413. package/src/classes/callbacks/PostTNTUpdate.ts +9 -9
  1414. package/src/classes/callbacks/PostTearInitFilter.ts +7 -7
  1415. package/src/classes/callbacks/PostTearInitLate.ts +11 -11
  1416. package/src/classes/callbacks/PostTearInitVeryLate.ts +13 -13
  1417. package/src/classes/callbacks/PostTearKill.ts +19 -19
  1418. package/src/classes/callbacks/PostTearRenderFilter.ts +10 -10
  1419. package/src/classes/callbacks/PostTearUpdateFilter.ts +7 -7
  1420. package/src/classes/callbacks/PostTransformation.ts +25 -25
  1421. package/src/classes/callbacks/PostTrinketBreak.ts +16 -16
  1422. package/src/classes/callbacks/PostUsePillFilter.ts +15 -15
  1423. package/src/classes/callbacks/PreBerserkDeath.ts +15 -15
  1424. package/src/classes/callbacks/PreBombCollisionFilter.ts +9 -9
  1425. package/src/classes/callbacks/PreCustomRevive.ts +1 -2
  1426. package/src/classes/callbacks/PreEntitySpawnFilter.ts +23 -23
  1427. package/src/classes/callbacks/PreFamiliarCollisionFilter.ts +9 -9
  1428. package/src/classes/callbacks/PreGetPedestal.ts +15 -15
  1429. package/src/classes/callbacks/PreItemPickup.ts +1 -2
  1430. package/src/classes/callbacks/PreKnifeCollisionFilter.ts +9 -9
  1431. package/src/classes/callbacks/PreNPCCollisionFilter.ts +9 -9
  1432. package/src/classes/callbacks/PreNPCUpdateFilter.ts +4 -5
  1433. package/src/classes/callbacks/PreNewLevel.ts +13 -13
  1434. package/src/classes/callbacks/PreProjectileCollisionFilter.ts +9 -9
  1435. package/src/classes/callbacks/PreRoomEntitySpawnFilter.ts +23 -23
  1436. package/src/classes/callbacks/PreTearCollisionFilter.ts +9 -9
  1437. package/src/classes/features/callbackLogic/CustomGridEntities.ts +29 -26
  1438. package/src/classes/features/callbackLogic/CustomRevive.ts +51 -51
  1439. package/src/classes/features/callbackLogic/EsauJrDetection.ts +21 -21
  1440. package/src/classes/features/callbackLogic/FlipDetection.ts +14 -14
  1441. package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +48 -48
  1442. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +19 -19
  1443. package/src/classes/features/callbackLogic/GridEntityRenderDetection.ts +14 -14
  1444. package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +33 -33
  1445. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +16 -16
  1446. package/src/classes/features/callbackLogic/PickupChangeDetection.ts +19 -19
  1447. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +88 -88
  1448. package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +41 -38
  1449. package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +38 -36
  1450. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +10 -10
  1451. package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +17 -17
  1452. package/src/classes/features/other/CharacterHealthConversion.ts +23 -23
  1453. package/src/classes/features/other/CharacterStats.ts +10 -10
  1454. package/src/classes/features/other/CollectibleItemPoolType.ts +15 -15
  1455. package/src/classes/features/other/CustomHotkeys.ts +10 -10
  1456. package/src/classes/features/other/CustomItemPools.ts +6 -6
  1457. package/src/classes/features/other/CustomPickups.ts +23 -19
  1458. package/src/classes/features/other/CustomStages.ts +106 -102
  1459. package/src/classes/features/other/CustomTrapdoors.ts +48 -46
  1460. package/src/classes/features/other/DebugDisplay.ts +20 -23
  1461. package/src/classes/features/other/DeployJSONRoom.ts +3 -0
  1462. package/src/classes/features/other/DisableAllSound.ts +11 -11
  1463. package/src/classes/features/other/DisableInputs.ts +21 -21
  1464. package/src/classes/features/other/EdenStartingStatsHealth.ts +34 -34
  1465. package/src/classes/features/other/ExtraConsoleCommands.ts +74 -73
  1466. package/src/classes/features/other/FadeInRemover.ts +7 -7
  1467. package/src/classes/features/other/FastReset.ts +9 -9
  1468. package/src/classes/features/other/ForgottenSwitch.ts +2 -2
  1469. package/src/classes/features/other/ItemPoolDetection.ts +12 -7
  1470. package/src/classes/features/other/ModdedElementDetection.ts +5 -5
  1471. package/src/classes/features/other/NoSirenSteal.ts +6 -6
  1472. package/src/classes/features/other/Pause.ts +45 -45
  1473. package/src/classes/features/other/PersistentEntities.ts +57 -54
  1474. package/src/classes/features/other/PickupIndexCreation.ts +17 -18
  1475. package/src/classes/features/other/PlayerCollectibleTracking.ts +19 -19
  1476. package/src/classes/features/other/PonyDetection.ts +15 -15
  1477. package/src/classes/features/other/PressInput.ts +21 -18
  1478. package/src/classes/features/other/PreventChildEntities.ts +13 -13
  1479. package/src/classes/features/other/PreventGridEntityRespawn.ts +25 -25
  1480. package/src/classes/features/other/RerunDetection.ts +16 -16
  1481. package/src/classes/features/other/RoomClearFrame.ts +13 -13
  1482. package/src/classes/features/other/RoomHistory.ts +12 -12
  1483. package/src/classes/features/other/RunInNFrames.ts +34 -34
  1484. package/src/classes/features/other/RunNextRoom.ts +9 -9
  1485. package/src/classes/features/other/RunNextRun.ts +10 -10
  1486. package/src/classes/features/other/SaveDataManager.ts +51 -50
  1487. package/src/classes/features/other/StageHistory.ts +17 -14
  1488. package/src/classes/features/other/TaintedLazarusPlayers.ts +17 -15
  1489. package/src/classes/features/other/UnlockAchievementsDetection.ts +11 -11
  1490. package/src/classes/features/other/customStages/backdrop.ts +3 -2
  1491. package/src/classes/features/other/customStages/gridEntities.ts +1 -0
  1492. package/src/classes/features/other/customStages/versusScreen.ts +15 -5
  1493. package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +6 -6
  1494. package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +6 -6
  1495. package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +6 -6
  1496. package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +6 -6
  1497. package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +6 -6
  1498. package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +6 -6
  1499. package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +6 -6
  1500. package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +6 -6
  1501. package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +6 -6
  1502. package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +6 -6
  1503. package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +6 -6
  1504. package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +8 -8
  1505. package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +6 -6
  1506. package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +6 -6
  1507. package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +6 -6
  1508. package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +6 -6
  1509. package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +6 -6
  1510. package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +6 -6
  1511. package/src/classes/features/other/extraConsoleCommands/commands.ts +44 -54
  1512. package/src/classes/private/CustomCallback.ts +40 -40
  1513. package/src/core/cachedClasses.ts +2 -0
  1514. package/src/core/constants.ts +2 -4
  1515. package/src/decorators.ts +3 -5
  1516. package/src/features.ts +59 -57
  1517. package/src/functions/array.ts +58 -55
  1518. package/src/functions/arrayLua.ts +1 -1
  1519. package/src/functions/bitSet128.ts +1 -1
  1520. package/src/functions/bitwise.ts +1 -0
  1521. package/src/functions/bosses.ts +55 -55
  1522. package/src/functions/challenges.ts +16 -12
  1523. package/src/functions/characters.ts +1 -1
  1524. package/src/functions/charge.ts +38 -38
  1525. package/src/functions/collectibles.ts +14 -16
  1526. package/src/functions/color.ts +1 -1
  1527. package/src/functions/decorators.ts +4 -6
  1528. package/src/functions/deepCopy.ts +207 -210
  1529. package/src/functions/deepCopyTests.ts +307 -314
  1530. package/src/functions/doors.ts +57 -55
  1531. package/src/functions/easing.ts +150 -145
  1532. package/src/functions/emptyRoom.ts +28 -28
  1533. package/src/functions/entities.ts +30 -40
  1534. package/src/functions/flag.ts +1 -1
  1535. package/src/functions/globals.ts +10 -8
  1536. package/src/functions/gridEntities.ts +372 -369
  1537. package/src/functions/gridEntitiesSpecific.ts +54 -54
  1538. package/src/functions/hex.ts +25 -5
  1539. package/src/functions/isaacAPIClass.ts +19 -20
  1540. package/src/functions/jsonHelpers.ts +8 -8
  1541. package/src/functions/jsonRoom.ts +18 -18
  1542. package/src/functions/kColor.ts +1 -1
  1543. package/src/functions/levelGrid.ts +3 -8
  1544. package/src/functions/logEntities.ts +87 -87
  1545. package/src/functions/logMisc.ts +15 -11
  1546. package/src/functions/map.ts +2 -8
  1547. package/src/functions/math.ts +1 -1
  1548. package/src/functions/merge.ts +53 -53
  1549. package/src/functions/mergeTests.ts +152 -176
  1550. package/src/functions/nextStage.ts +4 -3
  1551. package/src/functions/pickupVariants.ts +1 -1
  1552. package/src/functions/playerHealth.ts +28 -26
  1553. package/src/functions/playerIndex.ts +15 -15
  1554. package/src/functions/playerTrinkets.ts +17 -17
  1555. package/src/functions/players.ts +7 -5
  1556. package/src/functions/revive.ts +5 -8
  1557. package/src/functions/rng.ts +8 -6
  1558. package/src/functions/roomData.ts +5 -17
  1559. package/src/functions/roomGrid.ts +24 -24
  1560. package/src/functions/roomShapeWalls.ts +29 -29
  1561. package/src/functions/rooms.ts +9 -9
  1562. package/src/functions/serialization.ts +18 -18
  1563. package/src/functions/set.ts +2 -8
  1564. package/src/functions/spawnCollectible.ts +2 -2
  1565. package/src/functions/string.ts +5 -1
  1566. package/src/functions/trinkets.ts +1 -2
  1567. package/src/functions/types.ts +2 -0
  1568. package/src/functions/ui.ts +31 -31
  1569. package/src/functions/utils.ts +18 -18
  1570. package/src/functions/vector.ts +2 -2
  1571. package/src/interfaces/ChargeBarSprites.ts +6 -5
  1572. package/src/interfaces/CustomStageTSConfig.ts +63 -63
  1573. package/src/interfaces/GridEntityCustomData.ts +6 -6
  1574. package/src/interfaces/JSONRoomsFile.ts +27 -27
  1575. package/src/interfaces/PlayerHealth.ts +11 -11
  1576. package/src/interfaces/PlayerStats.ts +13 -13
  1577. package/src/interfaces/PocketItemDescription.ts +3 -3
  1578. package/src/interfaces/RoomDescription.ts +12 -12
  1579. package/src/interfaces/SaveData.ts +1 -0
  1580. package/src/interfaces/TSTLClassMetatable.ts +5 -5
  1581. package/src/interfaces/TrinketSituation.ts +4 -4
  1582. package/src/interfaces/private/AddCallbackParametersCustom.ts +156 -148
  1583. package/src/interfaces/private/CustomStage.ts +4 -1
  1584. package/src/interfaces/private/CustomTrapdoorDescription.ts +5 -4
  1585. package/src/interfaces/private/ModUpgradedInterface.ts +3 -2
  1586. package/src/lib/jsonLua.js +11 -11
  1587. package/src/objects/isaacAPIClassTypeToFunctions.ts +15 -15
  1588. package/src/patchErrorFunctions.ts +3 -0
  1589. package/src/sets/entitiesWithArmorSet.ts +2 -1
  1590. package/src/shouldFire.ts +13 -20
  1591. package/src/types/AllButFirst.ts +1 -1
  1592. package/src/types/AllButLast.ts +4 -1
  1593. package/src/types/CompositionTypeSatisfiesEnum.ts +6 -6
  1594. package/src/types/Immutable.ts +1 -6
  1595. package/src/types/PickingUpItem.ts +3 -3
  1596. package/src/types/PossibleStatType.ts +1 -5
@@ -1,200 +1,54 @@
1
- "use strict";
2
1
  // cspell:ignore addcharges
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.addCharges = addCharges;
5
- exports.angelRoom = angelRoom;
6
- exports.ascent = ascent;
7
- exports.bedroom = bedroom;
8
- exports.blackHearts = blackHearts;
9
- exports.blackMarket = blackMarket;
10
- exports.blind = blind;
11
- exports.bloodCharges = bloodCharges;
12
- exports.bm = bm;
13
- exports.bomb = bomb;
14
- exports.bombs = bombs;
15
- exports.boneHearts = boneHearts;
16
- exports.boss = boss;
17
- exports.bossNextRoom = bossNextRoom;
18
- exports.bossRoom = bossRoom;
19
- exports.bossRush = bossRush;
20
- exports.brokenHearts = brokenHearts;
21
- exports.card = card;
22
- exports.cards = cards;
23
- exports.cc = cc;
24
- exports.chaosCardTears = chaosCardTears;
25
- exports.character = character;
26
- exports.charge = charge;
27
- exports.cleanBedroom = cleanBedroom;
28
- exports.coin = coin;
29
- exports.coins = coins;
30
- exports.collectible = collectible;
31
- exports.crawlSpace = crawlSpace;
32
- exports.cursed = cursed;
33
- exports.d20 = d20;
34
- exports.d6 = d6;
35
- exports.dadsNote = dadsNote;
36
- exports.damage = damage;
37
- exports.darkness = darkness;
38
- exports.dd = dd;
39
- exports.devilRoom = devilRoom;
40
- exports.dirtyBedroom = dirtyBedroom;
41
- exports.disableCurses = disableCurses;
42
- exports.dogma = dogma;
43
- exports.down = down;
44
- exports.dungeon = dungeon;
45
- exports.effects = effects;
46
- exports.errorRoom = errorRoom;
47
- exports.eternalHearts = eternalHearts;
48
- exports.flies = flies;
49
- exports.flight = flight;
50
- exports.fool = fool;
51
- exports.getChallenge = getChallenge;
52
- exports.getCharge = getCharge;
53
- exports.getPosition = getPosition;
54
- exports.giant = giant;
55
- exports.gigaBomb = gigaBomb;
56
- exports.goldBomb = goldBomb;
57
- exports.goldHearts = goldHearts;
58
- exports.goldKey = goldKey;
59
- exports.goldPill = goldPill;
60
- exports.goldTrinket = goldTrinket;
61
- exports.goldenBomb = goldenBomb;
62
- exports.goldenHearts = goldenHearts;
63
- exports.goldenKey = goldenKey;
64
- exports.goldenPill = goldenPill;
65
- exports.goldenTrinket = goldenTrinket;
66
- exports.grid = grid;
67
- exports.grid2 = grid2;
68
- exports.gridCosts = gridCosts;
69
- exports.gridEntities = gridEntities;
70
- exports.hearts = hearts;
71
- exports.hitboxes = hitboxes;
72
- exports.horse = horse;
73
- exports.hush = hush;
74
- exports.iAmErrorRoom = iAmErrorRoom;
75
- exports.key = key;
76
- exports.keys = keys;
77
- exports.labyrinth = labyrinth;
78
- exports.left = left;
79
- exports.library = library;
80
- exports.list = list;
81
- exports.listAll = listAll;
82
- exports.listGrid = listGrid;
83
- exports.listGridAll = listGridAll;
84
- exports.lost = lost;
85
- exports.lowHP = lowHP;
86
- exports.luck = luck;
87
- exports.mana = mana;
88
- exports.map = map;
89
- exports.maxHearts = maxHearts;
90
- exports.maze = maze;
91
- exports.megaSatan = megaSatan;
92
- exports.miniboss = miniboss;
93
- exports.music = music;
94
- exports.noCurses = noCurses;
95
- exports.oneHP = oneHP;
96
- exports.pill = pill;
97
- exports.pills = pills;
98
- exports.planetarium = planetarium;
99
- exports.playSound = playSound;
100
- exports.pocket = pocket;
101
- exports.poop = poop;
102
- exports.poopMana = poopMana;
103
- exports.position = position;
104
- exports.redHearts = redHearts;
105
- exports.reloadRoom = reloadRoom;
106
- exports.right = right;
107
- exports.room = room;
108
- exports.rottenHearts = rottenHearts;
109
- exports.runTests = runTests;
110
- exports.s = s;
111
- exports.sacrificeRoom = sacrificeRoom;
112
- exports.secretRoom = secretRoom;
113
- exports.secretShop = secretShop;
114
- exports.seedStick = seedStick;
115
- exports.seeds = seeds;
116
- exports.setCharges = setCharges;
117
- exports.setPosition = setPosition;
118
- exports.shop = shop;
119
- exports.smelt = smelt;
120
- exports.soulCharges = soulCharges;
121
- exports.soulHearts = soulHearts;
122
- exports.sound = sound;
123
- exports.sounds = sounds;
124
- exports.spam = spam;
125
- exports.spawnCollectible = spawnCollectible;
126
- exports.spawnCollectibleAt = spawnCollectibleAt;
127
- exports.spawnGoldTrinket = spawnGoldTrinket;
128
- exports.spawnGoldenTrinket = spawnGoldenTrinket;
129
- exports.spawnGoldenTrinketAt = spawnGoldenTrinketAt;
130
- exports.spawnTrinket = spawnTrinket;
131
- exports.spawnTrinketAt = spawnTrinketAt;
132
- exports.speed = speed;
133
- exports.spikes = spikes;
134
- exports.startRoom = startRoom;
135
- exports.startingRoom = startingRoom;
136
- exports.superSecretRoom = superSecretRoom;
137
- exports.tears = tears;
138
- exports.tests = tests;
139
- exports.trapdoor = trapdoor;
140
- exports.treasureRoom = treasureRoom;
141
- exports.trinket = trinket;
142
- exports.ultraSecretRoom = ultraSecretRoom;
143
- exports.unknown = unknown;
144
- exports.unseed = unseed;
145
- exports.up = up;
146
- exports.warp = warp;
147
- exports.xl = xl;
148
- const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
149
- const cachedEnumValues_1 = require("../../../../cachedEnumValues");
150
- const cachedClasses_1 = require("../../../../core/cachedClasses");
151
- const constants_1 = require("../../../../core/constants");
152
- const constantsFirstLast_1 = require("../../../../core/constantsFirstLast");
153
- const HealthType_1 = require("../../../../enums/HealthType");
154
- const cards_1 = require("../../../../functions/cards");
155
- const characters_1 = require("../../../../functions/characters");
156
- const charge_1 = require("../../../../functions/charge");
157
- const collectibles_1 = require("../../../../functions/collectibles");
158
- const console_1 = require("../../../../functions/console");
159
- const deepCopyTests_1 = require("../../../../functions/deepCopyTests");
160
- const entitiesSpecific_1 = require("../../../../functions/entitiesSpecific");
161
- const enums_1 = require("../../../../functions/enums");
162
- const flag_1 = require("../../../../functions/flag");
163
- const gridEntities_1 = require("../../../../functions/gridEntities");
164
- const levelGrid_1 = require("../../../../functions/levelGrid");
165
- const logMisc_1 = require("../../../../functions/logMisc");
166
- const mergeTests_1 = require("../../../../functions/mergeTests");
167
- const pickupsSpecific_1 = require("../../../../functions/pickupsSpecific");
168
- const pills_1 = require("../../../../functions/pills");
169
- const playerCollectibles_1 = require("../../../../functions/playerCollectibles");
170
- const playerIndex_1 = require("../../../../functions/playerIndex");
171
- const players_1 = require("../../../../functions/players");
172
- const roomData_1 = require("../../../../functions/roomData");
173
- const roomGrid_1 = require("../../../../functions/roomGrid");
174
- const roomTransition_1 = require("../../../../functions/roomTransition");
175
- const rooms_1 = require("../../../../functions/rooms");
176
- const run_1 = require("../../../../functions/run");
177
- const spawnCollectible_1 = require("../../../../functions/spawnCollectible");
178
- const stage_1 = require("../../../../functions/stage");
179
- const string_1 = require("../../../../functions/string");
180
- const trinkets_1 = require("../../../../functions/trinkets");
181
- const types_1 = require("../../../../functions/types");
182
- const utils_1 = require("../../../../functions/utils");
183
- const cardNameToTypeMap_1 = require("../../../../maps/cardNameToTypeMap");
184
- const characterNameToTypeMap_1 = require("../../../../maps/characterNameToTypeMap");
185
- const collectibleNameToTypeMap_1 = require("../../../../maps/collectibleNameToTypeMap");
186
- const pillNameToEffectMap_1 = require("../../../../maps/pillNameToEffectMap");
187
- const roomNameToTypeMap_1 = require("../../../../maps/roomNameToTypeMap");
188
- const trinketNameToTypeMap_1 = require("../../../../maps/trinketNameToTypeMap");
189
- const roomTypeNames_1 = require("../../../../objects/roomTypeNames");
190
- const subroutines_1 = require("./subroutines");
191
- const v_1 = require("./v");
2
+ import { ActiveSlot, BossID, CacheFlag, Challenge, CollectibleType, Direction, DisplayFlag, GameStateFlag, GridEntityType, GridRoom, LevelStage, PillColor, PlayerType, PocketItemSlot, RoomType, SoundEffect, StageType, } from "isaac-typescript-definitions";
3
+ import { GRID_ENTITY_TYPE_VALUES } from "../../../../cachedEnumValues";
4
+ import { game, sfxManager } from "../../../../core/cachedClasses";
5
+ import { DOGMA_ROOM_GRID_INDEX, MAX_LEVEL_GRID_INDEX, MAX_NUM_FAMILIARS, } from "../../../../core/constants";
6
+ import { FIRST_CARD_TYPE, FIRST_HORSE_PILL_COLOR, FIRST_PILL_COLOR, LAST_VANILLA_CARD_TYPE, } from "../../../../core/constantsFirstLast";
7
+ import { HealthType } from "../../../../enums/HealthType";
8
+ import { getCardName, isValidCardType } from "../../../../functions/cards";
9
+ import { getCharacterName } from "../../../../functions/characters";
10
+ import { addCharge, getTotalCharge } from "../../../../functions/charge";
11
+ import { isValidCollectibleType } from "../../../../functions/collectibles";
12
+ import { printEnabled } from "../../../../functions/console";
13
+ import { runDeepCopyTests } from "../../../../functions/deepCopyTests";
14
+ import { getNPCs } from "../../../../functions/entitiesSpecific";
15
+ import { isEnumValue } from "../../../../functions/enums";
16
+ import { addFlag } from "../../../../functions/flag";
17
+ import { spawnGridEntity } from "../../../../functions/gridEntities";
18
+ import { getRoomGridIndexesForType } from "../../../../functions/levelGrid";
19
+ import { logMusic, logPlayerEffects, logRoom, logSeedEffects, logSounds, } from "../../../../functions/logMisc";
20
+ import { runMergeTests } from "../../../../functions/mergeTests";
21
+ import { spawnCard, spawnPill, spawnTrinket as spawnTrinketFunction, } from "../../../../functions/pickupsSpecific";
22
+ import { getHorsePillColor, getPillEffectName, isValidPillEffect, } from "../../../../functions/pills";
23
+ import { addCollectibleCostume, removeCollectibleCostume, useActiveItemTemp, } from "../../../../functions/playerCollectibles";
24
+ import { getPlayers } from "../../../../functions/playerIndex";
25
+ import { getPlayerName } from "../../../../functions/players";
26
+ import { getRoomData } from "../../../../functions/roomData";
27
+ import { gridCoordinatesToWorldPosition } from "../../../../functions/roomGrid";
28
+ import { reloadRoom as reloadRoomFunction } from "../../../../functions/roomTransition";
29
+ import { changeRoom } from "../../../../functions/rooms";
30
+ import { onSetSeed, restart, setUnseeded } from "../../../../functions/run";
31
+ import { spawnCollectible as spawnCollectibleFunc } from "../../../../functions/spawnCollectible";
32
+ import { onStage, setStage } from "../../../../functions/stage";
33
+ import { getMapPartialMatch } from "../../../../functions/string";
34
+ import { getGoldenTrinketType, isValidTrinketType, } from "../../../../functions/trinkets";
35
+ import { parseIntSafe } from "../../../../functions/types";
36
+ import { iRange } from "../../../../functions/utils";
37
+ import { CARD_NAME_TO_TYPE_MAP } from "../../../../maps/cardNameToTypeMap";
38
+ import { CHARACTER_NAME_TO_TYPE_MAP } from "../../../../maps/characterNameToTypeMap";
39
+ import { COLLECTIBLE_NAME_TO_TYPE_MAP } from "../../../../maps/collectibleNameToTypeMap";
40
+ import { PILL_NAME_TO_EFFECT_MAP } from "../../../../maps/pillNameToEffectMap";
41
+ import { ROOM_NAME_TO_TYPE_MAP } from "../../../../maps/roomNameToTypeMap";
42
+ import { TRINKET_NAME_TO_TYPE_MAP } from "../../../../maps/trinketNameToTypeMap";
43
+ import { ROOM_TYPE_NAMES } from "../../../../objects/roomTypeNames";
44
+ import { addHeart, devilAngel, listEntities, listGridEntities, movePlayer, spawnTrapdoorOrCrawlSpace, warpNextToRoomType, warpToRoomType, } from "./subroutines";
45
+ import { v } from "./v";
192
46
  /**
193
47
  * Adds a single charge to the player's specified active item. You must provide the active slot
194
48
  * number. Provide a second number to give a custom amount of charges. (You can use negative numbers
195
49
  * to remove charge.)
196
50
  */
197
- function addCharges(params) {
51
+ export function addCharges(params) {
198
52
  if (params === "") {
199
53
  print("You must specify a slot number. (Use 0 for the primary slot, 1 for the Schoolbag slot, 2 for the pocket item slot, and 3 for the Dice Bag slot.)");
200
54
  return;
@@ -208,14 +62,14 @@ function addCharges(params) {
208
62
  if (activeSlotString === undefined) {
209
63
  return;
210
64
  }
211
- const activeSlot = (0, types_1.parseIntSafe)(activeSlotString);
212
- if (activeSlot === undefined || !(0, enums_1.isEnumValue)(activeSlot, isaac_typescript_definitions_1.ActiveSlot)) {
65
+ const activeSlot = parseIntSafe(activeSlotString);
66
+ if (activeSlot === undefined || !isEnumValue(activeSlot, ActiveSlot)) {
213
67
  print(`Invalid slot number: ${activeSlot}`);
214
68
  return;
215
69
  }
216
70
  let numCharges = 1;
217
71
  if (numChargeString !== undefined) {
218
- const numChargesAttempt = (0, types_1.parseIntSafe)(numChargeString);
72
+ const numChargesAttempt = parseIntSafe(numChargeString);
219
73
  if (numChargesAttempt === undefined) {
220
74
  print(`Invalid charge amount: ${numChargeString}`);
221
75
  return;
@@ -223,31 +77,31 @@ function addCharges(params) {
223
77
  numCharges = numChargesAttempt;
224
78
  }
225
79
  const player = Isaac.GetPlayer();
226
- (0, charge_1.addCharge)(player, activeSlot, numCharges);
80
+ addCharge(player, activeSlot, numCharges);
227
81
  }
228
82
  /**
229
83
  * Warps to the Angel Room for the floor. If the Devil Room has already been visited or initialized,
230
84
  * this will uninitialize it and make an Angel Room instead.
231
85
  */
232
- function angelRoom() {
233
- (0, subroutines_1.devilAngel)(false);
86
+ export function angelRoom() {
87
+ devilAngel(false);
234
88
  }
235
89
  /** Activates the flags for the Ascent (i.e. Backwards Path). */
236
- function ascent() {
237
- cachedClasses_1.game.SetStateFlag(isaac_typescript_definitions_1.GameStateFlag.BACKWARDS_PATH_INIT, true);
238
- cachedClasses_1.game.SetStateFlag(isaac_typescript_definitions_1.GameStateFlag.BACKWARDS_PATH, true);
90
+ export function ascent() {
91
+ game.SetStateFlag(GameStateFlag.BACKWARDS_PATH_INIT, true);
92
+ game.SetStateFlag(GameStateFlag.BACKWARDS_PATH, true);
239
93
  print("Set Ascent flags.");
240
94
  }
241
95
  /** Warps to the first Clean Bedroom or Dirty Bedroom on the floor. */
242
- function bedroom() {
243
- const cleanBedroomGridIndexes = (0, levelGrid_1.getRoomGridIndexesForType)(isaac_typescript_definitions_1.RoomType.CLEAN_BEDROOM);
96
+ export function bedroom() {
97
+ const cleanBedroomGridIndexes = getRoomGridIndexesForType(RoomType.CLEAN_BEDROOM);
244
98
  if (cleanBedroomGridIndexes.length > 0) {
245
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.CLEAN_BEDROOM);
99
+ warpToRoomType(RoomType.CLEAN_BEDROOM);
246
100
  return;
247
101
  }
248
- const dirtyBedroomGridIndexes = (0, levelGrid_1.getRoomGridIndexesForType)(isaac_typescript_definitions_1.RoomType.DIRTY_BEDROOM);
102
+ const dirtyBedroomGridIndexes = getRoomGridIndexesForType(RoomType.DIRTY_BEDROOM);
249
103
  if (dirtyBedroomGridIndexes.length > 0) {
250
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.DIRTY_BEDROOM);
104
+ warpToRoomType(RoomType.DIRTY_BEDROOM);
251
105
  return;
252
106
  }
253
107
  print("There are no Clean Bedrooms or Dirty Bedrooms on this floor.");
@@ -256,26 +110,26 @@ function bedroom() {
256
110
  * Gives a half black heart. Provide a number to give a custom amount of hearts. (You can use
257
111
  * negative numbers to remove hearts.)
258
112
  */
259
- function blackHearts(params) {
260
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.BLACK);
113
+ export function blackHearts(params) {
114
+ addHeart(params, HealthType.BLACK);
261
115
  }
262
116
  /** Warps to the Black Market for the floor. */
263
- function blackMarket() {
264
- (0, rooms_1.changeRoom)(isaac_typescript_definitions_1.GridRoom.BLACK_MARKET);
117
+ export function blackMarket() {
118
+ changeRoom(GridRoom.BLACK_MARKET);
265
119
  }
266
120
  /** Toggles permanent Curse of the Blind. */
267
- function blind() {
268
- v_1.v.persistent.blind = !v_1.v.persistent.blind;
269
- (0, console_1.printEnabled)(v_1.v.persistent.blind, "permanent Curse of the Blind");
121
+ export function blind() {
122
+ v.persistent.blind = !v.persistent.blind;
123
+ printEnabled(v.persistent.blind, "permanent Curse of the Blind");
270
124
  }
271
125
  /**
272
126
  * Gives a blood charge. This only affects Bethany. Provide a number to give a custom amount of
273
127
  * charges. (You can use negative numbers to remove charges.)
274
128
  */
275
- function bloodCharges(params) {
129
+ export function bloodCharges(params) {
276
130
  let charges = 1;
277
131
  if (params !== "") {
278
- const num = (0, types_1.parseIntSafe)(params);
132
+ const num = parseIntSafe(params);
279
133
  if (num === undefined) {
280
134
  print(`Invalid charge amount: ${num}`);
281
135
  return;
@@ -286,17 +140,17 @@ function bloodCharges(params) {
286
140
  player.AddBloodCharge(charges);
287
141
  }
288
142
  /** Alias for the "blackMarket" command. */
289
- function bm() {
143
+ export function bm() {
290
144
  blackMarket();
291
145
  }
292
146
  /**
293
147
  * Gives a bomb. Provide a number to give a custom amount of bombs. (You can use negative numbers to
294
148
  * remove bombs.)
295
149
  */
296
- function bomb(params) {
150
+ export function bomb(params) {
297
151
  let numBombs = 1;
298
152
  if (params !== "") {
299
- const num = (0, types_1.parseIntSafe)(params);
153
+ const num = parseIntSafe(params);
300
154
  if (num === undefined) {
301
155
  print(`Invalid bomb amount: ${num}`);
302
156
  return;
@@ -310,10 +164,10 @@ function bomb(params) {
310
164
  * Gives 99 bombs. Provide a number to give a custom amount of bombs. (You can use negative numbers
311
165
  * to remove bombs.)
312
166
  */
313
- function bombs(params) {
167
+ export function bombs(params) {
314
168
  let numBombs = 99;
315
169
  if (params !== "") {
316
- const num = (0, types_1.parseIntSafe)(params);
170
+ const num = parseIntSafe(params);
317
171
  if (num === undefined) {
318
172
  print(`Invalid bomb amount: ${num}`);
319
173
  return;
@@ -327,44 +181,43 @@ function bombs(params) {
327
181
  * Gives a bone heart. Provide a number to give a custom amount of hearts. (You can use negative
328
182
  * numbers to remove hearts.)
329
183
  */
330
- function boneHearts(params) {
331
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.BONE);
184
+ export function boneHearts(params) {
185
+ addHeart(params, HealthType.BONE);
332
186
  }
333
187
  /** Alias for the "bossRoom" command. */
334
- function boss() {
188
+ export function boss() {
335
189
  bossRoom();
336
190
  }
337
191
  /** Warps to the room next to the first Boss Room on the floor. */
338
- function bossNextRoom() {
339
- (0, subroutines_1.warpNextToRoomType)(isaac_typescript_definitions_1.RoomType.BOSS);
192
+ export function bossNextRoom() {
193
+ warpNextToRoomType(RoomType.BOSS);
340
194
  }
341
195
  /** Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void). */
342
- function bossRoom() {
196
+ export function bossRoom() {
343
197
  // Most of the logic here is copied from the "warpToRoomType" function.
344
- const roomType = isaac_typescript_definitions_1.RoomType.BOSS;
345
- const roomGridIndexes = (0, levelGrid_1.getRoomGridIndexesForType)(roomType);
346
- let roomGridIndex = roomGridIndexes[0];
347
- if ((0, stage_1.onStage)(isaac_typescript_definitions_1.LevelStage.VOID)) {
348
- roomGridIndex = roomGridIndexes.find((thisRoomGridIndex) => (0, roomData_1.getRoomData)(thisRoomGridIndex)?.Subtype === isaac_typescript_definitions_1.BossID.DELIRIUM);
349
- }
350
- const roomTypeName = roomTypeNames_1.ROOM_TYPE_NAMES[isaac_typescript_definitions_1.RoomType.BOSS];
198
+ const roomType = RoomType.BOSS;
199
+ const roomGridIndexes = getRoomGridIndexesForType(roomType);
200
+ const roomGridIndex = onStage(LevelStage.VOID)
201
+ ? roomGridIndexes.find((thisRoomGridIndex) => getRoomData(thisRoomGridIndex)?.Subtype === BossID.DELIRIUM)
202
+ : roomGridIndexes[0];
203
+ const roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS];
351
204
  if (roomGridIndex === undefined) {
352
205
  print(`There are no ${roomTypeName}s on this floor.`);
353
206
  return;
354
207
  }
355
- (0, rooms_1.changeRoom)(roomGridIndex);
208
+ changeRoom(roomGridIndex);
356
209
  print(`Warped to room type: ${roomTypeName} (${roomType})`);
357
210
  }
358
211
  /** Warps to the Boss Rush for the floor. */
359
- function bossRush() {
360
- (0, rooms_1.changeRoom)(isaac_typescript_definitions_1.GridRoom.BOSS_RUSH);
212
+ export function bossRush() {
213
+ changeRoom(GridRoom.BOSS_RUSH);
361
214
  }
362
215
  /**
363
216
  * Gives a broken heart. Provide a number to give a custom amount of hearts. (You can use negative
364
217
  * numbers to remove hearts.)
365
218
  */
366
- function brokenHearts(params) {
367
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.BROKEN);
219
+ export function brokenHearts(params) {
220
+ addHeart(params, HealthType.BROKEN);
368
221
  }
369
222
  /**
370
223
  * Gives the specified card. Accepts either the card type or the partial name of the card.
@@ -373,15 +226,15 @@ function brokenHearts(params) {
373
226
  * - card 5 - Gives The Emperor.
374
227
  * - card spa - Gives 2 of Spades.
375
228
  */
376
- function card(params) {
229
+ export function card(params) {
377
230
  if (params === "") {
378
231
  print("You must specify a card name or number.");
379
232
  return;
380
233
  }
381
234
  let cardType;
382
- const num = (0, types_1.parseIntSafe)(params);
235
+ const num = parseIntSafe(params);
383
236
  if (num === undefined) {
384
- const match = (0, string_1.getMapPartialMatch)(params, cardNameToTypeMap_1.CARD_NAME_TO_TYPE_MAP);
237
+ const match = getMapPartialMatch(params, CARD_NAME_TO_TYPE_MAP);
385
238
  if (match === undefined) {
386
239
  print(`Unknown card: ${params}`);
387
240
  return;
@@ -389,41 +242,41 @@ function card(params) {
389
242
  cardType = match[1];
390
243
  }
391
244
  else {
392
- if (!(0, cards_1.isValidCardType)(num)) {
245
+ if (!isValidCardType(num)) {
393
246
  print(`Invalid card type: ${num}`);
394
247
  return;
395
248
  }
396
249
  cardType = num;
397
250
  }
398
- const cardName = (0, cards_1.getCardName)(cardType);
251
+ const cardName = getCardName(cardType);
399
252
  Isaac.ExecuteCommand(`g k${cardType}`);
400
253
  print(`Gave card: ${cardName} (${cardType})`);
401
254
  }
402
255
  /** Spawns every card on the ground, starting at the top-left-most tile. */
403
- function cards() {
404
- let cardType = constantsFirstLast_1.FIRST_CARD_TYPE;
256
+ export function cards() {
257
+ let cardType = FIRST_CARD_TYPE;
405
258
  for (let y = 0; y <= 6; y++) {
406
259
  for (let x = 0; x <= 12; x++) {
407
- if (cardType > constantsFirstLast_1.LAST_VANILLA_CARD_TYPE) {
260
+ if (cardType > LAST_VANILLA_CARD_TYPE) {
408
261
  return;
409
262
  }
410
- const worldPosition = (0, roomGrid_1.gridCoordinatesToWorldPosition)(x, y);
411
- (0, pickupsSpecific_1.spawnCard)(cardType, worldPosition);
263
+ const worldPosition = gridCoordinatesToWorldPosition(x, y);
264
+ spawnCard(cardType, worldPosition);
412
265
  cardType++; // eslint-disable-line complete/strict-enums
413
266
  }
414
267
  }
415
268
  }
416
269
  /** Alias for the "chaosCardTears" command. */
417
- function cc() {
270
+ export function cc() {
418
271
  chaosCardTears();
419
272
  }
420
273
  /**
421
274
  * Toggles Chaos Card tears for the player. Useful for killing enemies very fast without using
422
275
  * "debug 10".
423
276
  */
424
- function chaosCardTears() {
425
- v_1.v.persistent.chaosCardTears = !v_1.v.persistent.chaosCardTears;
426
- (0, console_1.printEnabled)(v_1.v.persistent.chaosCardTears, "Chaos Card tears");
277
+ export function chaosCardTears() {
278
+ v.persistent.chaosCardTears = !v.persistent.chaosCardTears;
279
+ printEnabled(v.persistent.chaosCardTears, "Chaos Card tears");
427
280
  }
428
281
  /**
429
282
  * Restart as the specified character. Accepts either the character sub-type or the partial name of
@@ -433,15 +286,15 @@ function chaosCardTears() {
433
286
  * - character 2 - Restarts as Cain.
434
287
  * - character ta - Restarts as Tainted Azazel.
435
288
  */
436
- function character(params) {
289
+ export function character(params) {
437
290
  if (params === "") {
438
291
  print("You must specify a character name or number.");
439
292
  return;
440
293
  }
441
294
  let playerType;
442
- const num = (0, types_1.parseIntSafe)(params);
295
+ const num = parseIntSafe(params);
443
296
  if (num === undefined) {
444
- const match = (0, string_1.getMapPartialMatch)(params, characterNameToTypeMap_1.CHARACTER_NAME_TO_TYPE_MAP);
297
+ const match = getMapPartialMatch(params, CHARACTER_NAME_TO_TYPE_MAP);
445
298
  if (match === undefined) {
446
299
  print(`Unknown character: ${params}`);
447
300
  return;
@@ -449,32 +302,32 @@ function character(params) {
449
302
  playerType = match[1];
450
303
  }
451
304
  else {
452
- if (!(0, enums_1.isEnumValue)(num, isaac_typescript_definitions_1.PlayerType) || num === isaac_typescript_definitions_1.PlayerType.POSSESSOR) {
305
+ if (!isEnumValue(num, PlayerType) || num === PlayerType.POSSESSOR) {
453
306
  print(`Invalid character number: ${num}`);
454
307
  return;
455
308
  }
456
309
  playerType = num;
457
310
  }
458
- const characterName = (0, characters_1.getCharacterName)(playerType);
459
- (0, run_1.restart)(playerType);
311
+ const characterName = getCharacterName(playerType);
312
+ restart(playerType);
460
313
  print(`Restarting as character: ${characterName} (${playerType})`);
461
314
  }
462
315
  /** Alias for the "addCharges" command. */
463
- function charge(params) {
316
+ export function charge(params) {
464
317
  addCharges(params);
465
318
  }
466
319
  /** Warps to the first Clean Bedroom on the floor. */
467
- function cleanBedroom() {
468
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.CLEAN_BEDROOM);
320
+ export function cleanBedroom() {
321
+ warpToRoomType(RoomType.CLEAN_BEDROOM);
469
322
  }
470
323
  /**
471
324
  * Gives a coin. Provide a number to give a custom amount of coins. (You can use negative numbers to
472
325
  * remove coins.)
473
326
  */
474
- function coin(params) {
327
+ export function coin(params) {
475
328
  let numCoins = 1;
476
329
  if (params !== "") {
477
- const num = (0, types_1.parseIntSafe)(params);
330
+ const num = parseIntSafe(params);
478
331
  if (num === undefined) {
479
332
  print(`Invalid coin amount: ${num}`);
480
333
  return;
@@ -488,10 +341,10 @@ function coin(params) {
488
341
  * Gives 999 coins. Provide a number to give a custom amount of coins. (You can use negative numbers
489
342
  * to remove coins.)
490
343
  */
491
- function coins(params) {
344
+ export function coins(params) {
492
345
  let numCoins = 999;
493
346
  if (params !== "") {
494
- const num = (0, types_1.parseIntSafe)(params);
347
+ const num = parseIntSafe(params);
495
348
  if (num === undefined) {
496
349
  print(`Invalid coin amount: ${num}`);
497
350
  return;
@@ -502,143 +355,143 @@ function coins(params) {
502
355
  player.AddCoins(numCoins);
503
356
  }
504
357
  /** Alias for the "spawnCollectible" command. */
505
- function collectible(params) {
358
+ export function collectible(params) {
506
359
  spawnCollectible(params);
507
360
  }
508
361
  /** Creates a crawl space next to the player. */
509
- function crawlSpace() {
510
- (0, subroutines_1.spawnTrapdoorOrCrawlSpace)(false);
362
+ export function crawlSpace() {
363
+ spawnTrapdoorOrCrawlSpace(false);
511
364
  }
512
365
  /** Toggles permanent Curse of the Cursed. */
513
- function cursed() {
514
- v_1.v.persistent.cursed = !v_1.v.persistent.cursed;
515
- (0, console_1.printEnabled)(v_1.v.persistent.cursed, "permanent Curse of the Cursed");
366
+ export function cursed() {
367
+ v.persistent.cursed = !v.persistent.cursed;
368
+ printEnabled(v.persistent.cursed, "permanent Curse of the Cursed");
516
369
  }
517
370
  /** Uses the D20. */
518
- function d20() {
371
+ export function d20() {
519
372
  const player = Isaac.GetPlayer();
520
- (0, playerCollectibles_1.useActiveItemTemp)(player, isaac_typescript_definitions_1.CollectibleType.D20);
373
+ useActiveItemTemp(player, CollectibleType.D20);
521
374
  }
522
375
  /** Uses the D6. */
523
- function d6() {
376
+ export function d6() {
524
377
  const player = Isaac.GetPlayer();
525
- (0, playerCollectibles_1.useActiveItemTemp)(player, isaac_typescript_definitions_1.CollectibleType.D6);
378
+ useActiveItemTemp(player, CollectibleType.D6);
526
379
  }
527
380
  /** Warps to the Mausoleum 2 Boss Room that has Dad's Note in it. */
528
- function dadsNote() {
529
- cachedClasses_1.game.SetStateFlag(isaac_typescript_definitions_1.GameStateFlag.BACKWARDS_PATH_INIT, true);
530
- (0, stage_1.setStage)(isaac_typescript_definitions_1.LevelStage.DEPTHS_2, isaac_typescript_definitions_1.StageType.REPENTANCE);
381
+ export function dadsNote() {
382
+ game.SetStateFlag(GameStateFlag.BACKWARDS_PATH_INIT, true);
383
+ setStage(LevelStage.DEPTHS_2, StageType.REPENTANCE);
531
384
  bossRoom();
532
385
  }
533
386
  /**
534
387
  * Toggles a set damage stat for the player. You can provide an optional argument to this command in
535
388
  * order to set the damage to a specific amount. Default is 500.
536
389
  */
537
- function damage(params) {
390
+ export function damage(params) {
538
391
  if (params !== "") {
539
392
  const num = tonumber(params); // Can be a float.
540
393
  if (num === undefined) {
541
394
  print(`Invalid damage amount: ${params}`);
542
395
  return;
543
396
  }
544
- v_1.v.persistent.damageAmount = num;
397
+ v.persistent.damageAmount = num;
545
398
  }
546
- v_1.v.persistent.damage = !v_1.v.persistent.damage;
399
+ v.persistent.damage = !v.persistent.damage;
547
400
  const player = Isaac.GetPlayer();
548
- player.AddCacheFlags(isaac_typescript_definitions_1.CacheFlag.DAMAGE);
401
+ player.AddCacheFlags(CacheFlag.DAMAGE);
549
402
  player.EvaluateItems();
550
- (0, console_1.printEnabled)(v_1.v.persistent.damage, "set damage");
403
+ printEnabled(v.persistent.damage, "set damage");
551
404
  }
552
405
  /** Toggles permanent Curse of Darkness. */
553
- function darkness() {
554
- v_1.v.persistent.darkness = !v_1.v.persistent.darkness;
555
- (0, console_1.printEnabled)(v_1.v.persistent.darkness, "permanent Curse of Darkness");
406
+ export function darkness() {
407
+ v.persistent.darkness = !v.persistent.darkness;
408
+ printEnabled(v.persistent.darkness, "permanent Curse of Darkness");
556
409
  }
557
410
  /** Alias for the "devil" command. */
558
- function dd() {
411
+ export function dd() {
559
412
  devilRoom();
560
413
  }
561
414
  /**
562
415
  * Warps to the Devil Room for the floor. If the Angel Room has already been visited or initialized,
563
416
  * this will uninitialize it and make an Devil Room instead.
564
417
  */
565
- function devilRoom() {
566
- (0, subroutines_1.devilAngel)(true);
418
+ export function devilRoom() {
419
+ devilAngel(true);
567
420
  }
568
421
  /** Warps to the first Dirty Bedroom on the floor. */
569
- function dirtyBedroom() {
570
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.DIRTY_BEDROOM);
422
+ export function dirtyBedroom() {
423
+ warpToRoomType(RoomType.DIRTY_BEDROOM);
571
424
  }
572
425
  /** Toggles whether curses can appear. */
573
- function disableCurses() {
574
- v_1.v.persistent.disableCurses = !v_1.v.persistent.disableCurses;
575
- (0, console_1.printEnabled)(!v_1.v.persistent.disableCurses, "curses");
426
+ export function disableCurses() {
427
+ v.persistent.disableCurses = !v.persistent.disableCurses;
428
+ printEnabled(!v.persistent.disableCurses, "curses");
576
429
  }
577
430
  /** Warps to the Dogma Boss Room. */
578
- function dogma() {
579
- (0, stage_1.setStage)(isaac_typescript_definitions_1.LevelStage.HOME, isaac_typescript_definitions_1.StageType.WRATH_OF_THE_LAMB);
580
- (0, rooms_1.changeRoom)(constants_1.DOGMA_ROOM_GRID_INDEX);
431
+ export function dogma() {
432
+ setStage(LevelStage.HOME, StageType.WRATH_OF_THE_LAMB);
433
+ changeRoom(DOGMA_ROOM_GRID_INDEX);
581
434
  }
582
435
  /** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
583
- function down(params) {
584
- (0, subroutines_1.movePlayer)(params, isaac_typescript_definitions_1.Direction.DOWN);
436
+ export function down(params) {
437
+ movePlayer(params, Direction.DOWN);
585
438
  }
586
439
  /** Warps to the Dungeon (i.e. the crawl space room) for the floor. */
587
- function dungeon() {
588
- (0, rooms_1.changeRoom)(isaac_typescript_definitions_1.GridRoom.DUNGEON);
440
+ export function dungeon() {
441
+ changeRoom(GridRoom.DUNGEON);
589
442
  }
590
443
  /** Logs the player's current temporary effects to the "log.txt" file. */
591
- function effects() {
444
+ export function effects() {
592
445
  const player = Isaac.GetPlayer();
593
- (0, logMisc_1.logPlayerEffects)(player);
446
+ logPlayerEffects(player);
594
447
  print('Logged the player\'s effects to the "log.txt" file.');
595
448
  }
596
449
  /** Alias for the "iAmError" command. */
597
- function errorRoom() {
450
+ export function errorRoom() {
598
451
  iAmErrorRoom();
599
452
  }
600
453
  /**
601
454
  * Gives an eternal heart. Provide a number to give a custom amount of hearts. (You can use negative
602
455
  * numbers to remove hearts.)
603
456
  */
604
- function eternalHearts(params) {
605
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.ETERNAL);
457
+ export function eternalHearts(params) {
458
+ addHeart(params, HealthType.ETERNAL);
606
459
  }
607
460
  /** Grants the maximum amount of blue flies to the player. */
608
- function flies() {
461
+ export function flies() {
609
462
  const player = Isaac.GetPlayer();
610
- player.AddBlueFlies(constants_1.MAX_NUM_FAMILIARS, player.Position, undefined);
463
+ player.AddBlueFlies(MAX_NUM_FAMILIARS, player.Position, undefined);
611
464
  }
612
465
  /** Toggles flight for the player. */
613
- function flight(params) {
466
+ export function flight(params) {
614
467
  const player = Isaac.GetPlayer();
615
- v_1.v.persistent.flight = !v_1.v.persistent.flight;
468
+ v.persistent.flight = !v.persistent.flight;
616
469
  // Optionally, allow the toggle to be overridden by a parameter.
617
470
  if (params === "true") {
618
- v_1.v.persistent.flight = true;
471
+ v.persistent.flight = true;
619
472
  }
620
473
  else if (params === "false") {
621
- v_1.v.persistent.flight = false;
474
+ v.persistent.flight = false;
622
475
  }
623
- player.AddCacheFlags(isaac_typescript_definitions_1.CacheFlag.FLYING);
476
+ player.AddCacheFlags(CacheFlag.FLYING);
624
477
  player.EvaluateItems();
625
- const collectibleUsedToShowFlight = isaac_typescript_definitions_1.CollectibleType.FATE;
626
- if (v_1.v.persistent.flight) {
627
- (0, playerCollectibles_1.addCollectibleCostume)(player, collectibleUsedToShowFlight);
478
+ const collectibleUsedToShowFlight = CollectibleType.FATE;
479
+ if (v.persistent.flight) {
480
+ addCollectibleCostume(player, collectibleUsedToShowFlight);
628
481
  }
629
482
  else {
630
- (0, playerCollectibles_1.removeCollectibleCostume)(player, collectibleUsedToShowFlight);
483
+ removeCollectibleCostume(player, collectibleUsedToShowFlight);
631
484
  }
632
- (0, console_1.printEnabled)(v_1.v.persistent.flight, "flight");
485
+ printEnabled(v.persistent.flight, "flight");
633
486
  }
634
487
  /** Alias for the "startingRoom" command. */
635
- function fool() {
488
+ export function fool() {
636
489
  startingRoom();
637
490
  }
638
491
  /** Displays the current challenge, if any. */
639
- function getChallenge() {
492
+ export function getChallenge() {
640
493
  const challenge = Isaac.GetChallenge();
641
- const challengeName = isaac_typescript_definitions_1.Challenge[challenge];
494
+ const challengeName = Challenge[challenge];
642
495
  const challengeDescription =
643
496
  // Handle modded challenges.
644
497
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
@@ -648,40 +501,40 @@ function getChallenge() {
648
501
  print(`The current challenge is: ${challengeDescription}`);
649
502
  }
650
503
  /** Prints the charge for the specified slot. By default, will use `ActiveSlot.PRIMARY`. */
651
- function getCharge(params) {
652
- let activeSlot = isaac_typescript_definitions_1.ActiveSlot.PRIMARY;
504
+ export function getCharge(params) {
505
+ let activeSlot = ActiveSlot.PRIMARY;
653
506
  if (params !== "") {
654
- const num = (0, types_1.parseIntSafe)(params);
655
- if (num === undefined || !(0, enums_1.isEnumValue)(num, isaac_typescript_definitions_1.ActiveSlot)) {
507
+ const num = parseIntSafe(params);
508
+ if (num === undefined || !isEnumValue(num, ActiveSlot)) {
656
509
  print(`Invalid slot number: ${params}`);
657
510
  return;
658
511
  }
659
512
  activeSlot = num;
660
513
  }
661
514
  const player = Isaac.GetPlayer();
662
- const totalCharge = (0, charge_1.getTotalCharge)(player, activeSlot);
663
- print(`Total charge for ActiveSlot.${isaac_typescript_definitions_1.ActiveSlot[activeSlot]} (${activeSlot}) is: ${totalCharge}`);
515
+ const totalCharge = getTotalCharge(player, activeSlot);
516
+ print(`Total charge for ActiveSlot.${ActiveSlot[activeSlot]} (${activeSlot}) is: ${totalCharge}`);
664
517
  }
665
518
  /** Prints the current position of all players. */
666
- function getPosition() {
667
- for (const player of (0, playerIndex_1.getPlayers)()) {
668
- const playerName = (0, players_1.getPlayerName)(player);
519
+ export function getPosition() {
520
+ for (const player of getPlayers()) {
521
+ const playerName = getPlayerName(player);
669
522
  print(`Player position for ${playerName}: (${player.Position.X}, ${player.Position.Y})`);
670
523
  }
671
524
  }
672
525
  /** Toggles permanent Curse of the Giant. */
673
- function giant() {
674
- v_1.v.persistent.giant = !v_1.v.persistent.giant;
675
- (0, console_1.printEnabled)(v_1.v.persistent.giant, "permanent Curse of the Giant");
526
+ export function giant() {
527
+ v.persistent.giant = !v.persistent.giant;
528
+ printEnabled(v.persistent.giant, "permanent Curse of the Giant");
676
529
  }
677
530
  /**
678
531
  * Gives a Giga Bomb. Provide a number to give a custom amount of Giga Bombs. (You can use negative
679
532
  * numbers to remove bombs.)
680
533
  */
681
- function gigaBomb(params) {
534
+ export function gigaBomb(params) {
682
535
  let numBombs = 1;
683
536
  if (params !== "") {
684
- const num = (0, types_1.parseIntSafe)(params);
537
+ const num = parseIntSafe(params);
685
538
  if (num === undefined) {
686
539
  print(`Invalid Giga Bomb amount: ${num}`);
687
540
  return;
@@ -692,27 +545,11 @@ function gigaBomb(params) {
692
545
  player.AddGigaBombs(numBombs);
693
546
  }
694
547
  /** Alias for the "goldenBomb" command. */
695
- function goldBomb() {
548
+ export function goldBomb() {
696
549
  goldenBomb();
697
550
  }
698
- /** Alias for the "goldenHearts" command. */
699
- function goldHearts(params) {
700
- goldenHearts(params);
701
- }
702
- /** Alias for the "goldenKey" command. */
703
- function goldKey() {
704
- goldenKey();
705
- }
706
- /** Alias for the "goldenPill" command. */
707
- function goldPill() {
708
- goldenPill();
709
- }
710
- /** Alias for the "spawnGoldenTrinket" command. */
711
- function goldTrinket(params) {
712
- spawnGoldenTrinket(params);
713
- }
714
551
  /** Gives the player a golden bomb. */
715
- function goldenBomb() {
552
+ export function goldenBomb() {
716
553
  const player = Isaac.GetPlayer();
717
554
  player.AddGoldenBomb();
718
555
  }
@@ -720,50 +557,66 @@ function goldenBomb() {
720
557
  * Gives a golden heart. Provide a number to give a custom amount of hearts. (You can use negative
721
558
  * numbers to remove hearts.)
722
559
  */
723
- function goldenHearts(params) {
724
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.GOLDEN);
560
+ export function goldenHearts(params) {
561
+ addHeart(params, HealthType.GOLDEN);
725
562
  }
726
563
  /** Gives the player a golden key. */
727
- function goldenKey() {
564
+ export function goldenKey() {
728
565
  const player = Isaac.GetPlayer();
729
566
  player.AddGoldenKey();
730
567
  }
731
568
  /** Gives the player a golden pill. */
732
- function goldenPill() {
569
+ export function goldenPill() {
733
570
  const player = Isaac.GetPlayer();
734
- player.AddPill(isaac_typescript_definitions_1.PillColor.GOLD);
571
+ player.AddPill(PillColor.GOLD);
735
572
  }
736
573
  /** Alias for the "spawnGoldenTrinket" command. */
737
- function goldenTrinket(params) {
574
+ export function goldenTrinket(params) {
575
+ spawnGoldenTrinket(params);
576
+ }
577
+ /** Alias for the "goldenHearts" command. */
578
+ export function goldHearts(params) {
579
+ goldenHearts(params);
580
+ }
581
+ /** Alias for the "goldenKey" command. */
582
+ export function goldKey() {
583
+ goldenKey();
584
+ }
585
+ /** Alias for the "goldenPill" command. */
586
+ export function goldPill() {
587
+ goldenPill();
588
+ }
589
+ /** Alias for the "spawnGoldenTrinket" command. */
590
+ export function goldTrinket(params) {
738
591
  spawnGoldenTrinket(params);
739
592
  }
740
593
  /**
741
594
  * Alias for the "debug 11" command. Useful for seeing the coordinates and grid index of each tile
742
595
  * in the room.
743
596
  */
744
- function grid() {
597
+ export function grid() {
745
598
  Isaac.ExecuteCommand("debug 11");
746
599
  }
747
600
  /** Alias for the "gridCosts" command. */
748
- function grid2() {
601
+ export function grid2() {
749
602
  gridCosts();
750
603
  }
751
604
  /** Alias for the "debug 2" command. Useful for seeing the grid costs of each tile in the room. */
752
- function gridCosts() {
605
+ export function gridCosts() {
753
606
  Isaac.ExecuteCommand("debug 2");
754
607
  }
755
608
  /** Spawns every grid entity, starting at the top-left-most tile. */
756
- function gridEntities() {
609
+ export function gridEntities() {
757
610
  let gridEntityTypeIndex = -1;
758
611
  for (let y = 0; y <= 6; y++) {
759
612
  for (let x = 0; x <= 12; x++) {
760
613
  gridEntityTypeIndex++;
761
- const gridEntityType = cachedEnumValues_1.GRID_ENTITY_TYPE_VALUES[gridEntityTypeIndex];
614
+ const gridEntityType = GRID_ENTITY_TYPE_VALUES[gridEntityTypeIndex];
762
615
  if (gridEntityType === undefined) {
763
616
  return;
764
617
  }
765
- const worldPosition = (0, roomGrid_1.gridCoordinatesToWorldPosition)(x, y);
766
- (0, gridEntities_1.spawnGridEntity)(gridEntityType, worldPosition);
618
+ const worldPosition = gridCoordinatesToWorldPosition(x, y);
619
+ spawnGridEntity(gridEntityType, worldPosition);
767
620
  }
768
621
  }
769
622
  }
@@ -771,34 +624,34 @@ function gridEntities() {
771
624
  * Gives a half red heart. Provide a number to give a custom amount of hearts. (You can use negative
772
625
  * numbers to remove hearts.)
773
626
  */
774
- function hearts(params) {
775
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.RED);
627
+ export function hearts(params) {
628
+ addHeart(params, HealthType.RED);
776
629
  }
777
630
  /** Alias for the "debug 6" command. */
778
- function hitboxes() {
631
+ export function hitboxes() {
779
632
  Isaac.ExecuteCommand("debug 6");
780
633
  }
781
634
  /** The same thing as the `pill` command, but gives a horse pill instead of a normal pill. */
782
- function horse(params) {
635
+ export function horse(params) {
783
636
  pill(params, true);
784
637
  }
785
638
  /** Warps to the Blue Womb Boss Room. */
786
- function hush() {
787
- (0, stage_1.setStage)(isaac_typescript_definitions_1.LevelStage.BLUE_WOMB, isaac_typescript_definitions_1.StageType.ORIGINAL);
639
+ export function hush() {
640
+ setStage(LevelStage.BLUE_WOMB, StageType.ORIGINAL);
788
641
  bossRoom();
789
642
  }
790
643
  /** Warps to the I AM ERROR room for the floor. */
791
- function iAmErrorRoom() {
792
- (0, rooms_1.changeRoom)(isaac_typescript_definitions_1.GridRoom.ERROR);
644
+ export function iAmErrorRoom() {
645
+ changeRoom(GridRoom.ERROR);
793
646
  }
794
647
  /**
795
648
  * Gives a key. Provide a number to give a custom amount of key. (You can use negative numbers to
796
649
  * remove keys.)
797
650
  */
798
- function key(params) {
651
+ export function key(params) {
799
652
  let numKeys = 1;
800
653
  if (params !== "") {
801
- const num = (0, types_1.parseIntSafe)(params);
654
+ const num = parseIntSafe(params);
802
655
  if (num === undefined) {
803
656
  print(`Invalid key amount: ${num}`);
804
657
  return;
@@ -812,10 +665,10 @@ function key(params) {
812
665
  * Gives 99 keys. Provide a number to give a custom amount of coins. (You can use negative numbers
813
666
  * to remove keys.)
814
667
  */
815
- function keys(params) {
668
+ export function keys(params) {
816
669
  let numKeys = 99;
817
670
  if (params !== "") {
818
- const num = (0, types_1.parseIntSafe)(params);
671
+ const num = parseIntSafe(params);
819
672
  if (num === undefined) {
820
673
  print(`Invalid key amount: ${num}`);
821
674
  return;
@@ -826,17 +679,17 @@ function keys(params) {
826
679
  player.AddKeys(numKeys);
827
680
  }
828
681
  /** Toggles permanent Curse of the Labyrinth. */
829
- function labyrinth() {
830
- v_1.v.persistent.labyrinth = !v_1.v.persistent.labyrinth;
831
- (0, console_1.printEnabled)(v_1.v.persistent.labyrinth, "permanent Curse of the Labyrinth");
682
+ export function labyrinth() {
683
+ v.persistent.labyrinth = !v.persistent.labyrinth;
684
+ printEnabled(v.persistent.labyrinth, "permanent Curse of the Labyrinth");
832
685
  }
833
686
  /** Moves the player 0.5 units left. Provide a number to move a custom amount of units. */
834
- function left(params) {
835
- (0, subroutines_1.movePlayer)(params, isaac_typescript_definitions_1.Direction.LEFT);
687
+ export function left(params) {
688
+ movePlayer(params, Direction.LEFT);
836
689
  }
837
690
  /** Warps to the first Library on the floor. */
838
- function library() {
839
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.LIBRARY);
691
+ export function library() {
692
+ warpToRoomType(RoomType.LIBRARY);
840
693
  }
841
694
  /**
842
695
  * Logs the entities in the room to the "log.txt" file. Provide a number to only log that specific
@@ -845,15 +698,15 @@ function library() {
845
698
  * By default, this command will exclude background effects. If that is not desired, use the
846
699
  * "listAll" command instead.
847
700
  */
848
- function list(params) {
849
- (0, subroutines_1.listEntities)(params, false);
701
+ export function list(params) {
702
+ listEntities(params, false);
850
703
  }
851
704
  /**
852
705
  * Logs the entities in the room to the "log.txt" file. Provide a number to only log that specific
853
706
  * `EntityType`.
854
707
  */
855
- function listAll(params) {
856
- (0, subroutines_1.listEntities)(params, true);
708
+ export function listAll(params) {
709
+ listEntities(params, true);
857
710
  }
858
711
  /**
859
712
  * Logs the grid entities in the room to the "log.txt" file. Provide a number to only log that
@@ -862,40 +715,40 @@ function listAll(params) {
862
715
  * By default, this command will exclude walls. If that is not desired, use the "listGridAll"
863
716
  * command instead.
864
717
  */
865
- function listGrid(params) {
866
- (0, subroutines_1.listGridEntities)(params, false);
718
+ export function listGrid(params) {
719
+ listGridEntities(params, false);
867
720
  }
868
721
  /**
869
722
  * Logs the grid entities in the room to the "log.txt" file. Provide a number to only log that
870
723
  * specific `GridEntityType`.
871
724
  */
872
- function listGridAll(params) {
873
- (0, subroutines_1.listGridEntities)(params, true);
725
+ export function listGridAll(params) {
726
+ listGridEntities(params, true);
874
727
  }
875
728
  /** Toggles permanent Curse of the Lost. */
876
- function lost() {
877
- v_1.v.persistent.lost = !v_1.v.persistent.lost;
878
- (0, console_1.printEnabled)(v_1.v.persistent.lost, "permanent Curse of the Lost");
729
+ export function lost() {
730
+ v.persistent.lost = !v.persistent.lost;
731
+ printEnabled(v.persistent.lost, "permanent Curse of the Lost");
879
732
  }
880
733
  /** Alias for the "1hp" command. */
881
- function lowHP() {
734
+ export function lowHP() {
882
735
  oneHP();
883
736
  }
884
737
  /** Alias for "debug 9". */
885
- function luck() {
738
+ export function luck() {
886
739
  Isaac.ExecuteCommand("debug 9");
887
740
  }
888
741
  /** Alias for the "poopMana" command. */
889
- function mana(params) {
742
+ export function mana(params) {
890
743
  poopMana(params);
891
744
  }
892
745
  /** Completely reveals the entire map, including the Ultra Secret Room. */
893
- function map() {
894
- const level = cachedClasses_1.game.GetLevel();
895
- const displayFlags = (0, flag_1.addFlag)(isaac_typescript_definitions_1.DisplayFlag.VISIBLE, // 1 << 0
896
- isaac_typescript_definitions_1.DisplayFlag.SHADOW, // 1 << 1
897
- isaac_typescript_definitions_1.DisplayFlag.SHOW_ICON);
898
- for (const roomGridIndex of (0, utils_1.iRange)(constants_1.MAX_LEVEL_GRID_INDEX)) {
746
+ export function map() {
747
+ const level = game.GetLevel();
748
+ const displayFlags = addFlag(DisplayFlag.VISIBLE, // 1 << 0
749
+ DisplayFlag.SHADOW, // 1 << 1
750
+ DisplayFlag.SHOW_ICON);
751
+ for (const roomGridIndex of iRange(MAX_LEVEL_GRID_INDEX)) {
899
752
  const roomDesc = level.GetRoomByIdx(roomGridIndex);
900
753
  roomDesc.DisplayFlags = displayFlags;
901
754
  }
@@ -906,34 +759,34 @@ function map() {
906
759
  * Gives a heart container. Provide a number to give a custom amount of heart containers. (You can
907
760
  * use negative numbers to remove heart containers.)
908
761
  */
909
- function maxHearts(params) {
910
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.MAX_HEARTS);
762
+ export function maxHearts(params) {
763
+ addHeart(params, HealthType.MAX_HEARTS);
911
764
  }
912
765
  /** Toggles permanent Curse of the Maze. */
913
- function maze() {
914
- v_1.v.persistent.maze = !v_1.v.persistent.maze;
915
- (0, console_1.printEnabled)(v_1.v.persistent.maze, "permanent Curse of the Maze");
766
+ export function maze() {
767
+ v.persistent.maze = !v.persistent.maze;
768
+ printEnabled(v.persistent.maze, "permanent Curse of the Maze");
916
769
  }
917
770
  /** Warps to the Mega Satan room on the floor. (Every floor has a Mega Satan room.) */
918
- function megaSatan() {
919
- (0, rooms_1.changeRoom)(isaac_typescript_definitions_1.GridRoom.MEGA_SATAN);
771
+ export function megaSatan() {
772
+ changeRoom(GridRoom.MEGA_SATAN);
920
773
  }
921
774
  /** Warps to the first Miniboss Room on the floor. */
922
- function miniboss() {
923
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.MINI_BOSS);
775
+ export function miniboss() {
776
+ warpToRoomType(RoomType.MINI_BOSS);
924
777
  }
925
778
  /** Logs the currently playing music track to the "log.txt" file. */
926
- function music() {
927
- (0, logMisc_1.logMusic)();
779
+ export function music() {
780
+ logMusic();
928
781
  print('Logged the currently playing music track to the "log.txt" file.');
929
782
  }
930
783
  /** Alias for the "disableCurses" command. */
931
- function noCurses() {
784
+ export function noCurses() {
932
785
  disableCurses();
933
786
  }
934
787
  /** Sets every NPC in the room to 1 HP. */
935
- function oneHP() {
936
- for (const npc of (0, entitiesSpecific_1.getNPCs)()) {
788
+ export function oneHP() {
789
+ for (const npc of getNPCs()) {
937
790
  npc.HitPoints = 1;
938
791
  }
939
792
  print("Set every NPC to 1 HP.");
@@ -947,15 +800,15 @@ function oneHP() {
947
800
  * - `pill 5` - Gives a "Full Health" pill.
948
801
  * - `pill suns` - Gives a "Feels like I'm walking on sunshine" pill.
949
802
  */
950
- function pill(params, isHorse = false) {
803
+ export function pill(params, isHorse = false) {
951
804
  if (params === "") {
952
805
  print("You must specify a pill name or number.");
953
806
  return;
954
807
  }
955
808
  let pillEffect;
956
- const num = (0, types_1.parseIntSafe)(params);
809
+ const num = parseIntSafe(params);
957
810
  if (num === undefined) {
958
- const match = (0, string_1.getMapPartialMatch)(params, pillNameToEffectMap_1.PILL_NAME_TO_EFFECT_MAP);
811
+ const match = getMapPartialMatch(params, PILL_NAME_TO_EFFECT_MAP);
959
812
  if (match === undefined) {
960
813
  print(`Unknown pill effect: ${params}`);
961
814
  return;
@@ -963,19 +816,19 @@ function pill(params, isHorse = false) {
963
816
  pillEffect = match[1];
964
817
  }
965
818
  else {
966
- if (!(0, pills_1.isValidPillEffect)(num)) {
819
+ if (!isValidPillEffect(num)) {
967
820
  print(`Invalid pill effect ID: ${num}`);
968
821
  return;
969
822
  }
970
823
  pillEffect = num;
971
824
  }
972
- const pillEffectName = (0, pills_1.getPillEffectName)(pillEffect);
825
+ const pillEffectName = getPillEffectName(pillEffect);
973
826
  Isaac.ExecuteCommand(`g p${pillEffect}`);
974
827
  if (isHorse) {
975
828
  const player = Isaac.GetPlayer();
976
- const pillColor = player.GetPill(isaac_typescript_definitions_1.PocketItemSlot.SLOT_1);
977
- const horsePillColor = (0, pills_1.getHorsePillColor)(pillColor);
978
- player.SetPill(isaac_typescript_definitions_1.PocketItemSlot.SLOT_1, horsePillColor);
829
+ const pillColor = player.GetPill(PocketItemSlot.SLOT_1);
830
+ const horsePillColor = getHorsePillColor(pillColor);
831
+ player.SetPill(PocketItemSlot.SLOT_1, horsePillColor);
979
832
  }
980
833
  if (isHorse) {
981
834
  print(`Gave horse pill: ${pillEffectName} (${pillEffect})`);
@@ -985,73 +838,73 @@ function pill(params, isHorse = false) {
985
838
  }
986
839
  }
987
840
  /** Spawns every pill on the ground, starting at the top-left-most tile. */
988
- function pills() {
841
+ export function pills() {
989
842
  let y;
990
843
  let pillColor;
991
844
  y = 1;
992
- pillColor = constantsFirstLast_1.FIRST_PILL_COLOR;
845
+ pillColor = FIRST_PILL_COLOR;
993
846
  for (let x = 0; x <= 12; x++) {
994
- if (pillColor >= isaac_typescript_definitions_1.PillColor.GOLD) {
847
+ if (pillColor >= PillColor.GOLD) {
995
848
  break;
996
849
  }
997
- const worldPosition = (0, roomGrid_1.gridCoordinatesToWorldPosition)(x, y);
998
- (0, pickupsSpecific_1.spawnPill)(pillColor, worldPosition);
850
+ const worldPosition = gridCoordinatesToWorldPosition(x, y);
851
+ spawnPill(pillColor, worldPosition);
999
852
  pillColor++; // eslint-disable-line complete/strict-enums
1000
853
  }
1001
854
  y = 2;
1002
- pillColor = constantsFirstLast_1.FIRST_HORSE_PILL_COLOR;
855
+ pillColor = FIRST_HORSE_PILL_COLOR;
1003
856
  for (let x = 0; x <= 12; x++) {
1004
- if (pillColor >= isaac_typescript_definitions_1.PillColor.HORSE_GOLD) {
857
+ if (pillColor >= PillColor.HORSE_GOLD) {
1005
858
  break;
1006
859
  }
1007
- const worldPosition = (0, roomGrid_1.gridCoordinatesToWorldPosition)(x, y);
1008
- (0, pickupsSpecific_1.spawnPill)(pillColor, worldPosition);
860
+ const worldPosition = gridCoordinatesToWorldPosition(x, y);
861
+ spawnPill(pillColor, worldPosition);
1009
862
  pillColor++; // eslint-disable-line complete/strict-enums
1010
863
  }
1011
864
  y = 3;
1012
- const worldPosition1 = (0, roomGrid_1.gridCoordinatesToWorldPosition)(0, y);
1013
- (0, pickupsSpecific_1.spawnPill)(isaac_typescript_definitions_1.PillColor.GOLD, worldPosition1);
1014
- const worldPosition2 = (0, roomGrid_1.gridCoordinatesToWorldPosition)(1, y);
1015
- (0, pickupsSpecific_1.spawnPill)(isaac_typescript_definitions_1.PillColor.HORSE_GOLD, worldPosition2);
865
+ const worldPosition1 = gridCoordinatesToWorldPosition(0, y);
866
+ spawnPill(PillColor.GOLD, worldPosition1);
867
+ const worldPosition2 = gridCoordinatesToWorldPosition(1, y);
868
+ spawnPill(PillColor.HORSE_GOLD, worldPosition2);
1016
869
  }
1017
870
  /** Warps to the first Planetarium on the floor. */
1018
- function planetarium() {
1019
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.PLANETARIUM);
871
+ export function planetarium() {
872
+ warpToRoomType(RoomType.PLANETARIUM);
1020
873
  }
1021
874
  /** Alias for the "sound" command. */
1022
- function playSound(params) {
875
+ export function playSound(params) {
1023
876
  sound(params);
1024
877
  }
1025
878
  /** Sets the player's pocket item to the specified collectible type. */
1026
- function pocket(params) {
879
+ export function pocket(params) {
1027
880
  if (params === "") {
1028
881
  print("You must supply a collectible type to put as the pocket item.");
1029
882
  return;
1030
883
  }
1031
- const collectibleType = (0, types_1.parseIntSafe)(params);
884
+ const collectibleType = parseIntSafe(params);
1032
885
  if (collectibleType === undefined
1033
- || !(0, collectibles_1.isValidCollectibleType)(collectibleType)) {
886
+ || !isValidCollectibleType(collectibleType)) {
1034
887
  print(`Invalid collectible type: ${collectibleType}`);
1035
888
  return;
1036
889
  }
1037
890
  const player = Isaac.GetPlayer();
1038
- player.SetPocketActiveItem(collectibleType, isaac_typescript_definitions_1.ActiveSlot.POCKET);
891
+ player.SetPocketActiveItem(collectibleType, ActiveSlot.POCKET);
1039
892
  }
1040
893
  /** Creates a poop grid entity next to the player. */
1041
- function poop() {
1042
- const roomClass = cachedClasses_1.game.GetRoom();
894
+ export function poop() {
895
+ const roomClass = game.GetRoom();
1043
896
  const player = Isaac.GetPlayer();
1044
897
  const tilePosition = roomClass.FindFreeTilePosition(player.Position, 0);
1045
- (0, gridEntities_1.spawnGridEntity)(isaac_typescript_definitions_1.GridEntityType.POOP, tilePosition);
898
+ spawnGridEntity(GridEntityType.POOP, tilePosition);
1046
899
  }
1047
900
  /**
1048
901
  * Gives a poop mana charge. This only affects Tainted Blue Baby. Provide a number to give a custom
1049
902
  * amount of charges. (You can use negative numbers to remove charges.)
1050
903
  */
1051
- function poopMana(params) {
904
+ export function poopMana(params) {
1052
905
  let charges = 1;
1053
906
  if (params !== "") {
1054
- const num = (0, types_1.parseIntSafe)(params);
907
+ const num = parseIntSafe(params);
1055
908
  if (num === undefined) {
1056
909
  print(`Invalid mana amount: ${num}`);
1057
910
  return;
@@ -1062,32 +915,32 @@ function poopMana(params) {
1062
915
  player.AddPoopMana(charges);
1063
916
  }
1064
917
  /** Alias for the "getPosition" command. */
1065
- function position() {
918
+ export function position() {
1066
919
  getPosition();
1067
920
  }
1068
921
  /** Alias for the "hearts" command. */
1069
- function redHearts(params) {
922
+ export function redHearts(params) {
1070
923
  hearts(params);
1071
924
  }
1072
925
  /** Starts a room transition to the same room that you are already in. */
1073
- function reloadRoom() {
1074
- (0, roomTransition_1.reloadRoom)();
926
+ export function reloadRoom() {
927
+ reloadRoomFunction();
1075
928
  }
1076
929
  /** Moves the player 0.5 units right. Provide a number to move a custom amount of units. */
1077
- function right(params) {
1078
- (0, subroutines_1.movePlayer)(params, isaac_typescript_definitions_1.Direction.RIGHT);
930
+ export function right(params) {
931
+ movePlayer(params, Direction.RIGHT);
1079
932
  }
1080
933
  /** Logs information about the room to the "log.txt" file. */
1081
- function room() {
1082
- (0, logMisc_1.logRoom)();
934
+ export function room() {
935
+ logRoom();
1083
936
  print('Logged room information to the "log.txt" file.');
1084
937
  }
1085
938
  /**
1086
939
  * Gives a rotten heart. Provide a number to give a custom amount of hearts. (You can use negative
1087
940
  * numbers to remove hearts.)
1088
941
  */
1089
- function rottenHearts(params) {
1090
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.ROTTEN);
942
+ export function rottenHearts(params) {
943
+ addHeart(params, HealthType.ROTTEN);
1091
944
  }
1092
945
  /**
1093
946
  * Run the suite of tests that prove that the "deepCopy" helper function and the "merge" function
@@ -1096,9 +949,9 @@ function rottenHearts(params) {
1096
949
  *
1097
950
  * In general, running the tests is only useful if you are troubleshooting the save data manager.
1098
951
  */
1099
- function runTests() {
1100
- (0, deepCopyTests_1.runDeepCopyTests)();
1101
- (0, mergeTests_1.runMergeTests)();
952
+ export function runTests() {
953
+ runDeepCopyTests();
954
+ runMergeTests();
1102
955
  }
1103
956
  /**
1104
957
  * Alias for the "stage" command.
@@ -1107,7 +960,7 @@ function runTests() {
1107
960
  * - s 3 - Warps to Caves 1.
1108
961
  * - s 1c - Warps to Downpour 1.
1109
962
  */
1110
- function s(params) {
963
+ export function s(params) {
1111
964
  if (params === "") {
1112
965
  print("You must specify a stage number.");
1113
966
  return;
@@ -1128,42 +981,42 @@ function s(params) {
1128
981
  stageString = params;
1129
982
  stageTypeLetter = "";
1130
983
  }
1131
- const stage = (0, types_1.parseIntSafe)(stageString);
1132
- if (stage === undefined || !(0, enums_1.isEnumValue)(stage, isaac_typescript_definitions_1.StageType)) {
984
+ const stage = parseIntSafe(stageString);
985
+ if (stage === undefined || !isEnumValue(stage, StageType)) {
1133
986
  print(`Invalid stage number: ${stage}`);
1134
987
  return;
1135
988
  }
1136
989
  Isaac.ExecuteCommand(`stage ${stage}${stageTypeLetter}`);
1137
990
  }
1138
991
  /** Warps to the first Sacrifice Room on the floor. */
1139
- function sacrificeRoom() {
1140
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.SACRIFICE);
992
+ export function sacrificeRoom() {
993
+ warpToRoomType(RoomType.SACRIFICE);
1141
994
  }
1142
995
  /** Warps to the first Secret Room on the floor. */
1143
- function secretRoom() {
1144
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.SECRET);
996
+ export function secretRoom() {
997
+ warpToRoomType(RoomType.SECRET);
1145
998
  }
1146
999
  /** Warps to the Secret Shop that you would normally get to with a Member Card. */
1147
- function secretShop() {
1148
- (0, rooms_1.changeRoom)(isaac_typescript_definitions_1.GridRoom.SECRET_SHOP);
1000
+ export function secretShop() {
1001
+ changeRoom(GridRoom.SECRET_SHOP);
1002
+ }
1003
+ /** Logs all of the current run's seed effects to the "log.txt" file. */
1004
+ export function seeds() {
1005
+ logSeedEffects();
1006
+ print('Logged the seed effects to the "log.txt" file.');
1149
1007
  }
1150
1008
  /** Changes to a seeded run, using the seed of the current run. */
1151
- function seedStick() {
1152
- const seedsClass = cachedClasses_1.game.GetSeeds();
1009
+ export function seedStick() {
1010
+ const seedsClass = game.GetSeeds();
1153
1011
  const startSeedString = seedsClass.GetStartSeedString();
1154
1012
  Isaac.ExecuteCommand(`seed ${startSeedString}`);
1155
1013
  print(`Sticking to seed: ${startSeedString}`);
1156
1014
  }
1157
- /** Logs all of the current run's seed effects to the "log.txt" file. */
1158
- function seeds() {
1159
- (0, logMisc_1.logSeedEffects)();
1160
- print('Logged the seed effects to the "log.txt" file.');
1161
- }
1162
1015
  /**
1163
1016
  * Sets a charge to the player's specified active item. You must provide the active slot number and
1164
1017
  * the number of charges to set.
1165
1018
  */
1166
- function setCharges(params) {
1019
+ export function setCharges(params) {
1167
1020
  if (params === "") {
1168
1021
  print("You must specify a slot number and a charge amount. (Use 0 for the primary slot, 1 for the Schoolbag slot, 2 for the pocket item slot, and 3 for the Dice Bag slot.)");
1169
1022
  return;
@@ -1181,12 +1034,12 @@ function setCharges(params) {
1181
1034
  if (activeSlotString === undefined || chargeString === undefined) {
1182
1035
  return;
1183
1036
  }
1184
- const activeSlot = (0, types_1.parseIntSafe)(activeSlotString);
1185
- if (activeSlot === undefined || !(0, enums_1.isEnumValue)(activeSlot, isaac_typescript_definitions_1.ActiveSlot)) {
1037
+ const activeSlot = parseIntSafe(activeSlotString);
1038
+ if (activeSlot === undefined || !isEnumValue(activeSlot, ActiveSlot)) {
1186
1039
  print(`Invalid slot number: ${activeSlotString}`);
1187
1040
  return;
1188
1041
  }
1189
- const chargeNum = (0, types_1.parseIntSafe)(chargeString);
1042
+ const chargeNum = parseIntSafe(chargeString);
1190
1043
  if (chargeNum === undefined) {
1191
1044
  print(`Invalid charge amount: ${chargeString}`);
1192
1045
  return;
@@ -1204,7 +1057,7 @@ function setCharges(params) {
1204
1057
  * For example:
1205
1058
  * - setPosition 100 50
1206
1059
  */
1207
- function setPosition(params) {
1060
+ export function setPosition(params) {
1208
1061
  if (params === "") {
1209
1062
  print('You must specify a position. (e.g. "setPosition 100 50")');
1210
1063
  return;
@@ -1218,12 +1071,12 @@ function setPosition(params) {
1218
1071
  if (xString === undefined || yString === undefined) {
1219
1072
  return;
1220
1073
  }
1221
- const x = (0, types_1.parseIntSafe)(xString);
1074
+ const x = parseIntSafe(xString);
1222
1075
  if (x === undefined) {
1223
1076
  print(`Invalid x value: ${xString}`);
1224
1077
  return;
1225
1078
  }
1226
- const y = (0, types_1.parseIntSafe)(yString);
1079
+ const y = parseIntSafe(yString);
1227
1080
  if (y === undefined) {
1228
1081
  print(`Invalid y value: ${yString}`);
1229
1082
  return;
@@ -1233,22 +1086,22 @@ function setPosition(params) {
1233
1086
  player.Position = newPosition;
1234
1087
  }
1235
1088
  /** Warps to the first shop on the floor. */
1236
- function shop() {
1237
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.SHOP);
1089
+ export function shop() {
1090
+ warpToRoomType(RoomType.SHOP);
1238
1091
  }
1239
1092
  /** Uses the Smelter to smelt the current player's trinket. */
1240
- function smelt() {
1093
+ export function smelt() {
1241
1094
  const player = Isaac.GetPlayer();
1242
- (0, playerCollectibles_1.useActiveItemTemp)(player, isaac_typescript_definitions_1.CollectibleType.SMELTER);
1095
+ useActiveItemTemp(player, CollectibleType.SMELTER);
1243
1096
  }
1244
1097
  /**
1245
1098
  * Gives a soul charge. This only affects Tainted Bethany. Provide a number to give a custom amount
1246
1099
  * of charges. (You can use negative numbers to remove charges.)
1247
1100
  */
1248
- function soulCharges(params) {
1101
+ export function soulCharges(params) {
1249
1102
  let charges = 1;
1250
1103
  if (params !== "") {
1251
- const num = (0, types_1.parseIntSafe)(params);
1104
+ const num = parseIntSafe(params);
1252
1105
  if (num === undefined) {
1253
1106
  print(`Invalid charges amount: ${num}`);
1254
1107
  return;
@@ -1262,8 +1115,8 @@ function soulCharges(params) {
1262
1115
  * Gives a half soul heart. Provide a number to give a custom amount of hearts. (You can use
1263
1116
  * negative numbers to remove hearts.)
1264
1117
  */
1265
- function soulHearts(params) {
1266
- (0, subroutines_1.addHeart)(params, HealthType_1.HealthType.SOUL);
1118
+ export function soulHearts(params) {
1119
+ addHeart(params, HealthType.SOUL);
1267
1120
  }
1268
1121
  /**
1269
1122
  * Play the supplied sound effect.
@@ -1271,26 +1124,26 @@ function soulHearts(params) {
1271
1124
  * For example:
1272
1125
  * - sound 1 - Plays the 1-Up sound effect.
1273
1126
  */
1274
- function sound(params) {
1275
- const soundEffect = (0, types_1.parseIntSafe)(params);
1276
- if (soundEffect === undefined || !(0, enums_1.isEnumValue)(soundEffect, isaac_typescript_definitions_1.SoundEffect)) {
1127
+ export function sound(params) {
1128
+ const soundEffect = parseIntSafe(params);
1129
+ if (soundEffect === undefined || !isEnumValue(soundEffect, SoundEffect)) {
1277
1130
  print(`Invalid sound effect ID: ${soundEffect}.`);
1278
1131
  return;
1279
1132
  }
1280
- cachedClasses_1.sfxManager.Play(soundEffect);
1133
+ sfxManager.Play(soundEffect);
1281
1134
  }
1282
1135
  /** Logs all of the currently playing sound effects to the "log.txt" file. */
1283
- function sounds() {
1284
- (0, logMisc_1.logSounds)();
1136
+ export function sounds() {
1137
+ logSounds();
1285
1138
  print('Logged the currently playing sound effects to the "log.txt" file.');
1286
1139
  }
1287
1140
  /**
1288
1141
  * Toggles spamming Blood Rights on every frame. Useful for killing enemies very fast without using
1289
1142
  * "debug 10".
1290
1143
  */
1291
- function spam() {
1292
- v_1.v.persistent.spamBloodRights = !v_1.v.persistent.spamBloodRights;
1293
- (0, console_1.printEnabled)(v_1.v.persistent.spamBloodRights, "spamming Blood Rights");
1144
+ export function spam() {
1145
+ v.persistent.spamBloodRights = !v.persistent.spamBloodRights;
1146
+ printEnabled(v.persistent.spamBloodRights, "spamming Blood Rights");
1294
1147
  }
1295
1148
  /**
1296
1149
  * Spawns a collectible in the center of the room. You must specify the collectible name or the
@@ -1305,15 +1158,15 @@ function spam() {
1305
1158
  * spawnCollectible 3
1306
1159
  * ```
1307
1160
  */
1308
- function spawnCollectible(params) {
1161
+ export function spawnCollectible(params) {
1309
1162
  if (params === "") {
1310
1163
  print("You must specify the collectible name or the number corresponding to the collectible type.");
1311
1164
  return;
1312
1165
  }
1313
- const num = (0, types_1.parseIntSafe)(params);
1166
+ const num = parseIntSafe(params);
1314
1167
  let collectibleType;
1315
1168
  if (num === undefined) {
1316
- const match = (0, string_1.getMapPartialMatch)(params, collectibleNameToTypeMap_1.COLLECTIBLE_NAME_TO_TYPE_MAP);
1169
+ const match = getMapPartialMatch(params, COLLECTIBLE_NAME_TO_TYPE_MAP);
1317
1170
  if (match === undefined) {
1318
1171
  print(`Unknown collectible: ${params}`);
1319
1172
  return;
@@ -1321,14 +1174,14 @@ function spawnCollectible(params) {
1321
1174
  collectibleType = match[1];
1322
1175
  }
1323
1176
  else {
1324
- if (!(0, collectibles_1.isValidCollectibleType)(num)) {
1177
+ if (!isValidCollectibleType(num)) {
1325
1178
  print(`Invalid collectible type: ${num}`);
1326
1179
  }
1327
1180
  collectibleType = num;
1328
1181
  }
1329
- const roomClass = cachedClasses_1.game.GetRoom();
1182
+ const roomClass = game.GetRoom();
1330
1183
  const centerPos = roomClass.GetCenterPos();
1331
- (0, spawnCollectible_1.spawnCollectible)(collectibleType, centerPos, undefined);
1184
+ spawnCollectibleFunc(collectibleType, centerPos, undefined);
1332
1185
  }
1333
1186
  /**
1334
1187
  * Spawns a collectible at a specific grid tile location. You must specify the number corresponding
@@ -1343,7 +1196,7 @@ function spawnCollectible(params) {
1343
1196
  * (You can use the "grid" command to toggle displaying the numerical grid indexes corresponding to
1344
1197
  * a grid tile.)
1345
1198
  */
1346
- function spawnCollectibleAt(params) {
1199
+ export function spawnCollectibleAt(params) {
1347
1200
  if (params === "") {
1348
1201
  print("You must specify the number corresponding to the collectible type and the number corresponding to the grid tile location.");
1349
1202
  return;
@@ -1357,37 +1210,37 @@ function spawnCollectibleAt(params) {
1357
1210
  if (collectibleTypeString === undefined || gridIndexString === undefined) {
1358
1211
  return;
1359
1212
  }
1360
- const collectibleType = (0, types_1.parseIntSafe)(collectibleTypeString);
1213
+ const collectibleType = parseIntSafe(collectibleTypeString);
1361
1214
  if (collectibleType === undefined
1362
- || !(0, collectibles_1.isValidCollectibleType)(collectibleType)) {
1215
+ || !isValidCollectibleType(collectibleType)) {
1363
1216
  print(`Invalid collectible type: ${args[0]}`);
1364
1217
  return;
1365
1218
  }
1366
- const gridIndex = (0, types_1.parseIntSafe)(gridIndexString);
1219
+ const gridIndex = parseIntSafe(gridIndexString);
1367
1220
  if (gridIndex === undefined || gridIndex < 0) {
1368
1221
  print(`Failed to parse the grid index of: ${args[1]}`);
1369
1222
  return;
1370
1223
  }
1371
- (0, spawnCollectible_1.spawnCollectible)(collectibleType, gridIndex, undefined);
1372
- }
1373
- /** Alias for the `spawnGoldenTrinket` command. */
1374
- function spawnGoldTrinket(params) {
1375
- spawnGoldenTrinket(params);
1224
+ spawnCollectibleFunc(collectibleType, gridIndex, undefined);
1376
1225
  }
1377
1226
  /**
1378
1227
  * The same thing as the `spawnTrinket` command but spawns a golden version of the specified
1379
1228
  * trinket.
1380
1229
  */
1381
- function spawnGoldenTrinket(params) {
1230
+ export function spawnGoldenTrinket(params) {
1382
1231
  spawnTrinket(params, true);
1383
1232
  }
1384
1233
  /**
1385
1234
  * The same thing as the `spawnTrinketAt` command but spawns a golden version of the specified
1386
1235
  * trinket.
1387
1236
  */
1388
- function spawnGoldenTrinketAt(params) {
1237
+ export function spawnGoldenTrinketAt(params) {
1389
1238
  spawnTrinketAt(params, true);
1390
1239
  }
1240
+ /** Alias for the `spawnGoldenTrinket` command. */
1241
+ export function spawnGoldTrinket(params) {
1242
+ spawnGoldenTrinket(params);
1243
+ }
1391
1244
  /**
1392
1245
  * Spawns a trinket in the center of the room. You must specify the trinket name or the number
1393
1246
  * corresponding to the trinket type.
@@ -1403,15 +1256,15 @@ function spawnGoldenTrinketAt(params) {
1403
1256
  *
1404
1257
  * Also see the `spawnGoldenTrinket` command.
1405
1258
  */
1406
- function spawnTrinket(params, golden = false) {
1259
+ export function spawnTrinket(params, golden = false) {
1407
1260
  if (params === "") {
1408
1261
  print("You must specify the name or number corresponding to the trinket type.");
1409
1262
  return;
1410
1263
  }
1411
- const num = (0, types_1.parseIntSafe)(params);
1264
+ const num = parseIntSafe(params);
1412
1265
  let trinketType;
1413
1266
  if (num === undefined) {
1414
- const match = (0, string_1.getMapPartialMatch)(params, trinketNameToTypeMap_1.TRINKET_NAME_TO_TYPE_MAP);
1267
+ const match = getMapPartialMatch(params, TRINKET_NAME_TO_TYPE_MAP);
1415
1268
  if (match === undefined) {
1416
1269
  print(`Unknown trinket: ${params}`);
1417
1270
  return;
@@ -1419,17 +1272,17 @@ function spawnTrinket(params, golden = false) {
1419
1272
  trinketType = match[1];
1420
1273
  }
1421
1274
  else {
1422
- if (!(0, trinkets_1.isValidTrinketType)(num)) {
1275
+ if (!isValidTrinketType(num)) {
1423
1276
  print(`Invalid trinket type: ${num}`);
1424
1277
  return;
1425
1278
  }
1426
1279
  trinketType = num;
1427
1280
  }
1428
- const roomClass = cachedClasses_1.game.GetRoom();
1281
+ const roomClass = game.GetRoom();
1429
1282
  const centerPos = roomClass.GetCenterPos();
1430
- const goldenTrinketType = (0, trinkets_1.getGoldenTrinketType)(trinketType);
1283
+ const goldenTrinketType = getGoldenTrinketType(trinketType);
1431
1284
  const trinketTypeToSpawn = golden ? goldenTrinketType : trinketType;
1432
- (0, pickupsSpecific_1.spawnTrinket)(trinketTypeToSpawn, centerPos);
1285
+ spawnTrinketFunction(trinketTypeToSpawn, centerPos);
1433
1286
  }
1434
1287
  /**
1435
1288
  * Spawns a trinket at a specific grid tile location. You must specify the number corresponding to
@@ -1444,7 +1297,7 @@ function spawnTrinket(params, golden = false) {
1444
1297
  * (You can use the "grid" command to toggle displaying the numerical grid indexes corresponding to
1445
1298
  * a grid tile.)
1446
1299
  */
1447
- function spawnTrinketAt(params, golden = false) {
1300
+ export function spawnTrinketAt(params, golden = false) {
1448
1301
  if (params === "") {
1449
1302
  print("You must specify the number corresponding to the trinket type and the number corresponding to the grid tile location.");
1450
1303
  return;
@@ -1458,26 +1311,26 @@ function spawnTrinketAt(params, golden = false) {
1458
1311
  if (trinketTypeString === undefined || gridIndexString === undefined) {
1459
1312
  return;
1460
1313
  }
1461
- const trinketType = (0, types_1.parseIntSafe)(trinketTypeString);
1462
- if (trinketType === undefined || !(0, trinkets_1.isValidTrinketType)(trinketType)) {
1314
+ const trinketType = parseIntSafe(trinketTypeString);
1315
+ if (trinketType === undefined || !isValidTrinketType(trinketType)) {
1463
1316
  print(`Invalid trinket type: ${trinketTypeString}`);
1464
1317
  return;
1465
1318
  }
1466
- const gridIndex = (0, types_1.parseIntSafe)(gridIndexString);
1319
+ const gridIndex = parseIntSafe(gridIndexString);
1467
1320
  if (gridIndex === undefined || gridIndex < 0) {
1468
1321
  print(`Failed to parse the grid index of: ${args[1]}`);
1469
1322
  return;
1470
1323
  }
1471
- const goldenTrinketType = (0, trinkets_1.getGoldenTrinketType)(trinketType);
1324
+ const goldenTrinketType = getGoldenTrinketType(trinketType);
1472
1325
  const trinketTypeToSpawn = golden ? goldenTrinketType : trinketType;
1473
- (0, pickupsSpecific_1.spawnTrinket)(trinketTypeToSpawn, gridIndex);
1326
+ spawnTrinketFunction(trinketTypeToSpawn, gridIndex);
1474
1327
  }
1475
1328
  /**
1476
1329
  * Toggles a set movement speed and flight for the player. You can provide an optional argument to
1477
1330
  * this command in order to set the speed to a specific amount. Default is 2.0 (which is the maximum
1478
1331
  * that the stat can be set to).
1479
1332
  */
1480
- function speed(params) {
1333
+ export function speed(params) {
1481
1334
  const player = Isaac.GetPlayer();
1482
1335
  if (params !== "") {
1483
1336
  const num = tonumber(params); // Can be a float.
@@ -1485,93 +1338,93 @@ function speed(params) {
1485
1338
  print(`Invalid speed amount: ${params}`);
1486
1339
  return;
1487
1340
  }
1488
- v_1.v.persistent.damageAmount = num;
1341
+ v.persistent.damageAmount = num;
1489
1342
  }
1490
- v_1.v.persistent.speed = !v_1.v.persistent.speed;
1491
- player.AddCacheFlags(isaac_typescript_definitions_1.CacheFlag.SPEED);
1343
+ v.persistent.speed = !v.persistent.speed;
1344
+ player.AddCacheFlags(CacheFlag.SPEED);
1492
1345
  player.EvaluateItems();
1493
- const value = tostring(v_1.v.persistent.speed);
1346
+ const value = tostring(v.persistent.speed);
1494
1347
  flight(value);
1495
- (0, console_1.printEnabled)(v_1.v.persistent.speed, "set speed");
1348
+ printEnabled(v.persistent.speed, "set speed");
1496
1349
  }
1497
1350
  /** Creates a spikes grid entity next to the player. */
1498
- function spikes() {
1499
- const roomClass = cachedClasses_1.game.GetRoom();
1351
+ export function spikes() {
1352
+ const roomClass = game.GetRoom();
1500
1353
  const player = Isaac.GetPlayer();
1501
1354
  const tilePosition = roomClass.FindFreeTilePosition(player.Position, 0);
1502
- (0, gridEntities_1.spawnGridEntity)(isaac_typescript_definitions_1.GridEntityType.SPIKES, tilePosition);
1503
- }
1504
- /** Alias for the "startingRoom" command. */
1505
- function startRoom() {
1506
- startingRoom();
1355
+ spawnGridEntity(GridEntityType.SPIKES, tilePosition);
1507
1356
  }
1508
1357
  /** Warps to the starting room of the floor. */
1509
- function startingRoom() {
1510
- const level = cachedClasses_1.game.GetLevel();
1358
+ export function startingRoom() {
1359
+ const level = game.GetLevel();
1511
1360
  const startingRoomIndex = level.GetStartingRoomIndex();
1512
- (0, rooms_1.changeRoom)(startingRoomIndex);
1361
+ changeRoom(startingRoomIndex);
1362
+ }
1363
+ /** Alias for the "startingRoom" command. */
1364
+ export function startRoom() {
1365
+ startingRoom();
1513
1366
  }
1514
1367
  /** Warps to the first Super Secret Room on the floor. */
1515
- function superSecretRoom() {
1516
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.SUPER_SECRET);
1368
+ export function superSecretRoom() {
1369
+ warpToRoomType(RoomType.SUPER_SECRET);
1517
1370
  }
1518
1371
  /**
1519
1372
  * Toggles a set tear delay (e.g. fire rate) for the player. You can provide an optional argument to
1520
1373
  * this command in order to set the tear delay to a specific amount. Default is 1 (which is
1521
1374
  * equivalent to the Soy Milk tear rate).
1522
1375
  */
1523
- function tears(params) {
1376
+ export function tears(params) {
1524
1377
  if (params !== "") {
1525
1378
  const num = tonumber(params); // Can be a float.
1526
1379
  if (num === undefined) {
1527
1380
  print(`Invalid tear delay amount: ${params}`);
1528
1381
  return;
1529
1382
  }
1530
- v_1.v.persistent.tearsAmount = num;
1383
+ v.persistent.tearsAmount = num;
1531
1384
  }
1532
- v_1.v.persistent.tears = !v_1.v.persistent.tears;
1385
+ v.persistent.tears = !v.persistent.tears;
1533
1386
  const player = Isaac.GetPlayer();
1534
- player.AddCacheFlags(isaac_typescript_definitions_1.CacheFlag.FIRE_DELAY);
1387
+ player.AddCacheFlags(CacheFlag.FIRE_DELAY);
1535
1388
  player.EvaluateItems();
1536
- (0, console_1.printEnabled)(v_1.v.persistent.damage, "set tear delay");
1389
+ printEnabled(v.persistent.damage, "set tear delay");
1537
1390
  }
1538
1391
  /** Alias for the "runTests" command. */
1539
- function tests() {
1392
+ export function tests() {
1540
1393
  runTests();
1541
1394
  }
1542
1395
  /** Creates a trapdoor next to the player. */
1543
- function trapdoor() {
1544
- (0, subroutines_1.spawnTrapdoorOrCrawlSpace)(true);
1396
+ export function trapdoor() {
1397
+ spawnTrapdoorOrCrawlSpace(true);
1545
1398
  }
1546
1399
  /** Warps to the first Treasure Room on the floor. */
1547
- function treasureRoom() {
1548
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.TREASURE);
1400
+ export function treasureRoom() {
1401
+ warpToRoomType(RoomType.TREASURE);
1549
1402
  }
1550
1403
  /** Alias for the "spawnTrinket" command. */
1551
- function trinket(params) {
1404
+ export function trinket(params) {
1552
1405
  spawnTrinket(params);
1553
1406
  }
1554
1407
  /** Warps to the first Ultra Secret Room on the floor. */
1555
- function ultraSecretRoom() {
1556
- (0, subroutines_1.warpToRoomType)(isaac_typescript_definitions_1.RoomType.ULTRA_SECRET);
1408
+ export function ultraSecretRoom() {
1409
+ warpToRoomType(RoomType.ULTRA_SECRET);
1557
1410
  }
1558
1411
  /** Toggles permanent Curse of the Unknown. */
1559
- function unknown() {
1560
- v_1.v.persistent.unknown = !v_1.v.persistent.unknown;
1561
- (0, console_1.printEnabled)(v_1.v.persistent.unknown, "permanent Curse of the Unknown");
1412
+ export function unknown() {
1413
+ v.persistent.unknown = !v.persistent.unknown;
1414
+ printEnabled(v.persistent.unknown, "permanent Curse of the Unknown");
1562
1415
  }
1563
1416
  /** If currently on a set seed, changes to an unseeded state and restarts the game. */
1564
- function unseed() {
1565
- if (!(0, run_1.onSetSeed)()) {
1417
+ export function unseed() {
1418
+ if (!onSetSeed()) {
1566
1419
  print("You are not on a set seed, so you cannot unseed the run.");
1567
1420
  return;
1568
1421
  }
1569
- (0, run_1.setUnseeded)();
1570
- (0, run_1.restart)();
1422
+ setUnseeded();
1423
+ restart();
1571
1424
  }
1572
1425
  /** Moves the player 0.5 units up. Provide a number to move a custom amount of units. */
1573
- function up(params) {
1574
- (0, subroutines_1.movePlayer)(params, isaac_typescript_definitions_1.Direction.UP);
1426
+ export function up(params) {
1427
+ movePlayer(params, Direction.UP);
1575
1428
  }
1576
1429
  /**
1577
1430
  * Warps to the specified room type. Accepts either the room type number or the partial name of the
@@ -1581,15 +1434,15 @@ function up(params) {
1581
1434
  * - warp 5 - Warps to the first Boss Room on the floor, if any.
1582
1435
  * - warp tr - Warps to the first Treasure Room on the floor, if any.
1583
1436
  */
1584
- function warp(params) {
1437
+ export function warp(params) {
1585
1438
  if (params === "") {
1586
1439
  print("You must specify a room type name or number.");
1587
1440
  return;
1588
1441
  }
1589
1442
  let roomType;
1590
- const num = (0, types_1.parseIntSafe)(params);
1443
+ const num = parseIntSafe(params);
1591
1444
  if (num === undefined) {
1592
- const match = (0, string_1.getMapPartialMatch)(params, roomNameToTypeMap_1.ROOM_NAME_TO_TYPE_MAP);
1445
+ const match = getMapPartialMatch(params, ROOM_NAME_TO_TYPE_MAP);
1593
1446
  if (match === undefined) {
1594
1447
  print(`Unknown room type: ${params}`);
1595
1448
  return;
@@ -1597,15 +1450,15 @@ function warp(params) {
1597
1450
  roomType = match[1];
1598
1451
  }
1599
1452
  else {
1600
- if (!(0, enums_1.isEnumValue)(num, isaac_typescript_definitions_1.RoomType)) {
1453
+ if (!isEnumValue(num, RoomType)) {
1601
1454
  print(`Invalid room type: ${num}`);
1602
1455
  return;
1603
1456
  }
1604
1457
  roomType = num;
1605
1458
  }
1606
- (0, subroutines_1.warpToRoomType)(roomType);
1459
+ warpToRoomType(roomType);
1607
1460
  }
1608
1461
  /** Alias for the "labyrinth" command. */
1609
- function xl() {
1462
+ export function xl() {
1610
1463
  labyrinth();
1611
1464
  }