isaacscript-common 1.2.292 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/README.md +2 -2
  2. package/dist/cachedClasses.d.ts +1 -1
  3. package/dist/cachedClasses.lua +0 -1
  4. package/dist/callbacks/customRevive.lua +13 -8
  5. package/dist/callbacks/itemPickup.lua +3 -1
  6. package/dist/callbacks/postBombInitLate.lua +3 -1
  7. package/dist/callbacks/postBoneSwing.lua +5 -2
  8. package/dist/callbacks/postCollectibleInitFirst.lua +4 -1
  9. package/dist/callbacks/postCursedTeleport.lua +16 -8
  10. package/dist/callbacks/postCustomDoorEnter.d.ts +1 -1
  11. package/dist/callbacks/postCustomDoorEnter.lua +16 -10
  12. package/dist/callbacks/postEffectInitLate.lua +3 -1
  13. package/dist/callbacks/postEffectStateChanged.lua +3 -1
  14. package/dist/callbacks/postEsauJr.lua +5 -2
  15. package/dist/callbacks/postFamiliarInitLate.lua +3 -1
  16. package/dist/callbacks/postFamiliarStateChanged.lua +3 -1
  17. package/dist/callbacks/postFlip.lua +9 -5
  18. package/dist/callbacks/postGreedModeWave.d.ts +1 -0
  19. package/dist/callbacks/postGreedModeWave.lua +32 -0
  20. package/dist/callbacks/postGreedWave.d.ts +1 -0
  21. package/dist/callbacks/postGreedWave.lua +31 -0
  22. package/dist/callbacks/postGridEntity.lua +4 -2
  23. package/dist/callbacks/postGridEntityCollision.lua +5 -2
  24. package/dist/callbacks/postHolyMantleRemoved.lua +3 -1
  25. package/dist/callbacks/postItemDischarged.lua +10 -5
  26. package/dist/callbacks/postKnifeInitLate.lua +3 -1
  27. package/dist/callbacks/postLaserInitLate.lua +3 -1
  28. package/dist/callbacks/postNPCInitLate.lua +3 -1
  29. package/dist/callbacks/postNPCStateChanged.lua +3 -1
  30. package/dist/callbacks/postNewRoomEarly.lua +7 -5
  31. package/dist/callbacks/postPickupCollect.lua +3 -1
  32. package/dist/callbacks/postPickupInitLate.lua +3 -1
  33. package/dist/callbacks/postPickupStateChanged.lua +3 -1
  34. package/dist/callbacks/postPlayerChangeHealth.lua +2 -2
  35. package/dist/callbacks/postPlayerFatalDamage.lua +4 -1
  36. package/dist/callbacks/postPlayerInitLate.lua +3 -1
  37. package/dist/callbacks/postPlayerReordered.lua +7 -6
  38. package/dist/callbacks/postProjectileInitLate.lua +3 -1
  39. package/dist/callbacks/postRoomClearChanged.lua +4 -3
  40. package/dist/callbacks/postSacrifice.lua +8 -4
  41. package/dist/callbacks/postSlotInitUpdate.lua +4 -2
  42. package/dist/callbacks/postSlotRender.lua +3 -1
  43. package/dist/callbacks/postTearInitLate.lua +3 -1
  44. package/dist/callbacks/postTearInitVeryLate.lua +3 -1
  45. package/dist/callbacks/postTransformation.lua +7 -12
  46. package/dist/callbacks/postTrinketBreak.lua +8 -3
  47. package/dist/callbacks/preBerserkDeath.lua +3 -2
  48. package/dist/callbacks/preNewLevel.lua +5 -3
  49. package/dist/callbacks/reorderedCallbacks.lua +7 -5
  50. package/dist/callbacks/subscriptions/postBombInitLate.d.ts +5 -2
  51. package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -3
  52. package/dist/callbacks/subscriptions/postBoneSwing.d.ts +3 -1
  53. package/dist/callbacks/subscriptions/postBoneSwing.lua +3 -3
  54. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +5 -2
  55. package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +3 -3
  56. package/dist/callbacks/subscriptions/postCursedTeleport.d.ts +3 -1
  57. package/dist/callbacks/subscriptions/postCursedTeleport.lua +3 -3
  58. package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +5 -2
  59. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +3 -3
  60. package/dist/callbacks/subscriptions/postCustomRevive.d.ts +4 -1
  61. package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -3
  62. package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +5 -2
  63. package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -3
  64. package/dist/callbacks/subscriptions/postEffectStateChanged.d.ts +5 -2
  65. package/dist/callbacks/subscriptions/postEffectStateChanged.lua +3 -3
  66. package/dist/callbacks/subscriptions/postEsauJr.d.ts +3 -1
  67. package/dist/callbacks/subscriptions/postEsauJr.lua +3 -3
  68. package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +5 -2
  69. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -3
  70. package/dist/callbacks/subscriptions/postFamiliarStateChanged.d.ts +5 -2
  71. package/dist/callbacks/subscriptions/postFamiliarStateChanged.lua +3 -3
  72. package/dist/callbacks/subscriptions/postFirstEsauJr.d.ts +3 -1
  73. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +3 -3
  74. package/dist/callbacks/subscriptions/postFirstFlip.d.ts +3 -1
  75. package/dist/callbacks/subscriptions/postFirstFlip.lua +3 -3
  76. package/dist/callbacks/subscriptions/postFlip.d.ts +3 -1
  77. package/dist/callbacks/subscriptions/postFlip.lua +3 -3
  78. package/dist/callbacks/subscriptions/postGameStartedReordered.d.ts +3 -1
  79. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +3 -3
  80. package/dist/callbacks/subscriptions/postGreedModeWave.d.ts +4 -0
  81. package/dist/callbacks/subscriptions/postGreedModeWave.lua +16 -0
  82. package/dist/callbacks/subscriptions/postGreedWave.d.ts +2 -0
  83. package/dist/callbacks/subscriptions/postGreedWave.lua +16 -0
  84. package/dist/callbacks/subscriptions/postGridEntityBroken.d.ts +5 -2
  85. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +3 -3
  86. package/dist/callbacks/subscriptions/postGridEntityCollision.d.ts +5 -2
  87. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +3 -3
  88. package/dist/callbacks/subscriptions/postGridEntityInit.d.ts +5 -2
  89. package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -3
  90. package/dist/callbacks/subscriptions/postGridEntityRemove.d.ts +5 -2
  91. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -3
  92. package/dist/callbacks/subscriptions/postGridEntityStateChanged.d.ts +5 -2
  93. package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +3 -3
  94. package/dist/callbacks/subscriptions/postGridEntityUpdate.d.ts +5 -2
  95. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -3
  96. package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +6 -2
  97. package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +16 -4
  98. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +5 -2
  99. package/dist/callbacks/subscriptions/postItemDischarged.lua +3 -3
  100. package/dist/callbacks/subscriptions/postItemPickup.d.ts +6 -2
  101. package/dist/callbacks/subscriptions/postItemPickup.lua +3 -3
  102. package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +5 -2
  103. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -3
  104. package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +5 -2
  105. package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -3
  106. package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +5 -2
  107. package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -3
  108. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +6 -2
  109. package/dist/callbacks/subscriptions/postNPCStateChanged.lua +3 -3
  110. package/dist/callbacks/subscriptions/postNewLevelReordered.d.ts +1 -1
  111. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +3 -3
  112. package/dist/callbacks/subscriptions/postNewRoomEarly.d.ts +1 -1
  113. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +3 -3
  114. package/dist/callbacks/subscriptions/postNewRoomReordered.d.ts +1 -1
  115. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +3 -3
  116. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +6 -2
  117. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +8 -4
  118. package/dist/callbacks/subscriptions/postPickupCollect.d.ts +5 -2
  119. package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -3
  120. package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +5 -2
  121. package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -3
  122. package/dist/callbacks/subscriptions/postPickupStateChanged.d.ts +5 -2
  123. package/dist/callbacks/subscriptions/postPickupStateChanged.lua +3 -3
  124. package/dist/callbacks/subscriptions/postPlayerChangeHealth.d.ts +5 -2
  125. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -3
  126. package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +4 -2
  127. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +3 -3
  128. package/dist/callbacks/subscriptions/postPlayerFatalDamage.d.ts +5 -2
  129. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -3
  130. package/dist/callbacks/subscriptions/postPlayerInitLate.d.ts +5 -2
  131. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -3
  132. package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts +5 -2
  133. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -3
  134. package/dist/callbacks/subscriptions/postPlayerRenderReordered.d.ts +5 -2
  135. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -3
  136. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.d.ts +5 -2
  137. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -3
  138. package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +5 -2
  139. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -3
  140. package/dist/callbacks/subscriptions/postPurchase.d.ts +6 -2
  141. package/dist/callbacks/subscriptions/postPurchase.lua +3 -3
  142. package/dist/callbacks/subscriptions/postRoomClearChanged.d.ts +3 -1
  143. package/dist/callbacks/subscriptions/postRoomClearChanged.lua +3 -3
  144. package/dist/callbacks/subscriptions/postSacrifice.d.ts +3 -1
  145. package/dist/callbacks/subscriptions/postSacrifice.lua +3 -3
  146. package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +5 -2
  147. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +3 -3
  148. package/dist/callbacks/subscriptions/postSlotDestroyed.d.ts +5 -2
  149. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -3
  150. package/dist/callbacks/subscriptions/postSlotInit.d.ts +5 -2
  151. package/dist/callbacks/subscriptions/postSlotInit.lua +3 -3
  152. package/dist/callbacks/subscriptions/postSlotRender.d.ts +5 -2
  153. package/dist/callbacks/subscriptions/postSlotRender.lua +3 -3
  154. package/dist/callbacks/subscriptions/postSlotUpdate.d.ts +5 -2
  155. package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -3
  156. package/dist/callbacks/subscriptions/postTearInitLate.d.ts +5 -2
  157. package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -3
  158. package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +5 -2
  159. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +3 -3
  160. package/dist/callbacks/subscriptions/postTransformation.d.ts +5 -2
  161. package/dist/callbacks/subscriptions/postTransformation.lua +3 -3
  162. package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +5 -2
  163. package/dist/callbacks/subscriptions/postTrinketBreak.lua +3 -3
  164. package/dist/callbacks/subscriptions/preBerserkDeath.d.ts +5 -2
  165. package/dist/callbacks/subscriptions/preBerserkDeath.lua +3 -3
  166. package/dist/callbacks/subscriptions/preCustomRevive.d.ts +3 -1
  167. package/dist/callbacks/subscriptions/preCustomRevive.lua +3 -3
  168. package/dist/callbacks/subscriptions/preItemPickup.d.ts +6 -2
  169. package/dist/callbacks/subscriptions/preItemPickup.lua +3 -3
  170. package/dist/callbacks/subscriptions/preNewLevel.d.ts +3 -1
  171. package/dist/callbacks/subscriptions/preNewLevel.lua +3 -3
  172. package/dist/classes/ModUpgraded.d.ts +5 -5
  173. package/dist/constants.d.ts +9 -43
  174. package/dist/constants.lua +16 -13
  175. package/dist/constantsMax.d.ts +16 -0
  176. package/dist/constantsMax.lua +27 -0
  177. package/dist/enums/CardType.lua +1 -1
  178. package/dist/enums/CollectiblePedestalType.lua +1 -1
  179. package/dist/enums/HealthType.d.ts +3 -3
  180. package/dist/enums/HealthType.lua +1 -2
  181. package/dist/enums/ModCallbacksCustom.d.ts +56 -48
  182. package/dist/enums/ModCallbacksCustom.lua +47 -46
  183. package/dist/enums/PillEffectClass.lua +1 -1
  184. package/dist/enums/PillEffectType.lua +1 -1
  185. package/dist/enums/PocketItemType.lua +1 -2
  186. package/dist/enums/SerializationType.lua +1 -2
  187. package/dist/enums/private/CopyableIsaacAPIClassType.d.ts +1 -1
  188. package/dist/enums/private/CopyableIsaacAPIClassType.lua +2 -3
  189. package/dist/enums/private/SaveDataKeys.d.ts +4 -4
  190. package/dist/enums/private/SaveDataKeys.lua +5 -6
  191. package/dist/enums/private/SerializationBrand.d.ts +3 -4
  192. package/dist/enums/private/SerializationBrand.lua +2 -15
  193. package/dist/features/characterHealthConversion.d.ts +2 -2
  194. package/dist/features/characterHealthConversion.lua +8 -4
  195. package/dist/features/characterStats.d.ts +4 -4
  196. package/dist/features/characterStats.lua +3 -1
  197. package/dist/features/debugDisplay.lua +12 -11
  198. package/dist/features/deployJSONRoom.d.ts +3 -3
  199. package/dist/features/deployJSONRoom.lua +35 -21
  200. package/dist/features/disableInputs.d.ts +1 -1
  201. package/dist/features/disableInputs.lua +6 -3
  202. package/dist/features/disableSound.lua +3 -1
  203. package/dist/features/extraConsoleCommands/commands.d.ts +5 -3
  204. package/dist/features/extraConsoleCommands/commands.lua +96 -56
  205. package/dist/features/extraConsoleCommands/commandsDisplay.lua +0 -1
  206. package/dist/features/extraConsoleCommands/commandsSubroutines.d.ts +1 -1
  207. package/dist/features/extraConsoleCommands/commandsSubroutines.lua +13 -10
  208. package/dist/features/extraConsoleCommands/init.lua +17 -9
  209. package/dist/features/extraConsoleCommands/v.lua +0 -1
  210. package/dist/features/fadeInRemover.lua +3 -2
  211. package/dist/features/fastReset.lua +7 -5
  212. package/dist/features/forgottenSwitch.lua +6 -3
  213. package/dist/features/getCollectibleItemPoolType.d.ts +1 -1
  214. package/dist/features/getCollectibleItemPoolType.lua +6 -2
  215. package/dist/features/isPonyActive.lua +5 -2
  216. package/dist/features/playerInventory.d.ts +1 -1
  217. package/dist/features/playerInventory.lua +7 -3
  218. package/dist/features/preventCollectibleRotate.d.ts +1 -1
  219. package/dist/features/preventCollectibleRotate.lua +9 -4
  220. package/dist/features/runInNFrames.lua +4 -2
  221. package/dist/features/saveDataManager/constants.lua +0 -1
  222. package/dist/features/saveDataManager/exports.d.ts +9 -8
  223. package/dist/features/saveDataManager/main.lua +11 -9
  224. package/dist/features/saveDataManager/maps.d.ts +5 -0
  225. package/dist/features/saveDataManager/merge.d.ts +1 -1
  226. package/dist/features/saveDataManager/merge.lua +2 -1
  227. package/dist/features/saveDataManager/serializationBrand.d.ts +1 -0
  228. package/dist/features/saveDataManager/serializationBrand.lua +17 -0
  229. package/dist/features/sirenHelpers.d.ts +1 -1
  230. package/dist/features/sirenHelpers.lua +5 -2
  231. package/dist/features/taintedLazarusPlayers.lua +6 -3
  232. package/dist/featuresInitialized.lua +0 -1
  233. package/dist/functions/array.d.ts +18 -2
  234. package/dist/functions/array.lua +29 -3
  235. package/dist/functions/bitwise.lua +0 -1
  236. package/dist/functions/boss.d.ts +1 -1
  237. package/dist/functions/boss.lua +12 -9
  238. package/dist/functions/cacheFlag.d.ts +2 -2
  239. package/dist/functions/cacheFlag.lua +0 -1
  240. package/dist/functions/cards.d.ts +9 -17
  241. package/dist/functions/cards.lua +22 -23
  242. package/dist/functions/challenges.d.ts +1 -1
  243. package/dist/functions/challenges.lua +0 -1
  244. package/dist/functions/character.d.ts +6 -4
  245. package/dist/functions/character.lua +16 -7
  246. package/dist/functions/charge.d.ts +1 -1
  247. package/dist/functions/charge.lua +14 -9
  248. package/dist/functions/chargeBar.lua +0 -1
  249. package/dist/functions/collectibleCacheFlag.d.ts +4 -4
  250. package/dist/functions/collectibleCacheFlag.lua +8 -5
  251. package/dist/functions/collectibleSet.d.ts +1 -1
  252. package/dist/functions/collectibleSet.lua +4 -5
  253. package/dist/functions/collectibleTag.d.ts +1 -2
  254. package/dist/functions/collectibleTag.lua +12 -10
  255. package/dist/functions/collectibles.d.ts +21 -28
  256. package/dist/functions/collectibles.lua +29 -26
  257. package/dist/functions/color.lua +9 -1
  258. package/dist/functions/debug.d.ts +12 -0
  259. package/dist/functions/debug.lua +3 -1
  260. package/dist/functions/deepCopy.d.ts +1 -1
  261. package/dist/functions/deepCopy.lua +4 -2
  262. package/dist/functions/direction.d.ts +4 -0
  263. package/dist/functions/direction.lua +17 -0
  264. package/dist/functions/doors.d.ts +12 -16
  265. package/dist/functions/doors.lua +34 -26
  266. package/dist/functions/easing.lua +0 -1
  267. package/dist/functions/entity.d.ts +4 -5
  268. package/dist/functions/entity.lua +4 -12
  269. package/dist/functions/entitySpecific.d.ts +35 -33
  270. package/dist/functions/entitySpecific.lua +20 -19
  271. package/dist/functions/enums.d.ts +70 -0
  272. package/dist/functions/enums.lua +71 -0
  273. package/dist/functions/familiars.d.ts +2 -2
  274. package/dist/functions/familiars.lua +0 -1
  275. package/dist/functions/flag.d.ts +42 -10
  276. package/dist/functions/flag.lua +31 -13
  277. package/dist/functions/flying.d.ts +2 -2
  278. package/dist/functions/flying.lua +20 -14
  279. package/dist/functions/globals.lua +5 -2
  280. package/dist/functions/gridEntity.d.ts +18 -16
  281. package/dist/functions/gridEntity.lua +39 -26
  282. package/dist/functions/input.d.ts +14 -4
  283. package/dist/functions/input.lua +38 -80
  284. package/dist/functions/jsonHelpers.d.ts +9 -7
  285. package/dist/functions/jsonHelpers.lua +0 -1
  286. package/dist/functions/kColor.lua +14 -3
  287. package/dist/functions/language.lua +9 -8
  288. package/dist/functions/log.d.ts +21 -15
  289. package/dist/functions/log.lua +61 -36
  290. package/dist/functions/math.d.ts +19 -8
  291. package/dist/functions/math.lua +33 -22
  292. package/dist/functions/mergeTests.lua +0 -1
  293. package/dist/functions/npc.d.ts +1 -1
  294. package/dist/functions/npc.lua +32 -16
  295. package/dist/functions/pickups.d.ts +10 -26
  296. package/dist/functions/pickups.lua +31 -29
  297. package/dist/functions/pills.d.ts +14 -13
  298. package/dist/functions/pills.lua +9 -3
  299. package/dist/functions/player.d.ts +11 -11
  300. package/dist/functions/player.lua +79 -66
  301. package/dist/functions/playerHealth.lua +19 -16
  302. package/dist/functions/playerIndex.d.ts +3 -3
  303. package/dist/functions/playerIndex.lua +9 -6
  304. package/dist/functions/pocketItems.d.ts +1 -1
  305. package/dist/functions/pocketItems.lua +21 -12
  306. package/dist/functions/positionVelocity.lua +4 -1
  307. package/dist/functions/random.d.ts +2 -3
  308. package/dist/functions/random.lua +0 -1
  309. package/dist/functions/revive.lua +18 -13
  310. package/dist/functions/roomData.d.ts +2 -2
  311. package/dist/functions/roomData.lua +11 -13
  312. package/dist/functions/roomGrid.d.ts +2 -2
  313. package/dist/functions/roomGrid.lua +0 -1
  314. package/dist/functions/roomShape.d.ts +2 -2
  315. package/dist/functions/rooms.d.ts +19 -14
  316. package/dist/functions/rooms.lua +42 -22
  317. package/dist/functions/run.d.ts +1 -1
  318. package/dist/functions/run.lua +3 -2
  319. package/dist/functions/seeds.d.ts +7 -0
  320. package/dist/functions/seeds.lua +7 -1
  321. package/dist/functions/sound.lua +4 -3
  322. package/dist/functions/spawnCollectible.d.ts +5 -5
  323. package/dist/functions/spawnCollectible.lua +7 -4
  324. package/dist/functions/sprite.d.ts +1 -1
  325. package/dist/functions/sprite.lua +3 -4
  326. package/dist/functions/stage.d.ts +4 -4
  327. package/dist/functions/stage.lua +3 -2
  328. package/dist/functions/string.d.ts +8 -1
  329. package/dist/functions/string.lua +10 -2
  330. package/dist/functions/tears.d.ts +4 -4
  331. package/dist/functions/tears.lua +0 -1
  332. package/dist/functions/transformations.d.ts +5 -3
  333. package/dist/functions/transformations.lua +31 -20
  334. package/dist/functions/trinketCacheFlag.d.ts +1 -1
  335. package/dist/functions/trinketCacheFlag.lua +8 -6
  336. package/dist/functions/trinketGive.d.ts +14 -3
  337. package/dist/functions/trinketGive.lua +46 -28
  338. package/dist/functions/trinketSet.d.ts +1 -1
  339. package/dist/functions/trinketSet.lua +4 -5
  340. package/dist/functions/trinkets.d.ts +8 -17
  341. package/dist/functions/trinkets.lua +17 -34
  342. package/dist/functions/ui.lua +7 -5
  343. package/dist/functions/utils.d.ts +1 -61
  344. package/dist/functions/utils.lua +3 -50
  345. package/dist/functions/vector.d.ts +1 -2
  346. package/dist/functions/vector.lua +8 -6
  347. package/dist/index.d.ts +4 -6
  348. package/dist/index.lua +17 -34
  349. package/dist/initCustomCallbacks.lua +3 -1
  350. package/dist/initFeatures.lua +0 -1
  351. package/dist/lualib_bundle.lua +14 -1
  352. package/dist/maps/cardMap.d.ts +1 -1
  353. package/dist/maps/characterMap.d.ts +1 -1
  354. package/dist/maps/collectibleDescriptionMap.d.ts +1 -1
  355. package/dist/maps/collectibleNameMap.d.ts +1 -1
  356. package/dist/maps/defaultPlayerStatMap.d.ts +1 -1
  357. package/dist/maps/defaultPlayerStatMap.lua +8 -6
  358. package/dist/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
  359. package/dist/maps/gridEntityTypeToBrokenStateMap.lua +19 -12
  360. package/dist/maps/gridEntityXMLMap.d.ts +1 -1
  361. package/dist/maps/gridEntityXMLMap.lua +44 -34
  362. package/dist/maps/pillEffectMap.d.ts +1 -1
  363. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
  364. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +7 -5
  365. package/dist/maps/roomTypeMap.d.ts +1 -1
  366. package/dist/maps/roomTypeMap.lua +37 -35
  367. package/dist/maps/trinketDescriptionMap.d.ts +1 -1
  368. package/dist/maps/trinketNameMap.d.ts +1 -1
  369. package/dist/objects/LRoomShapeToRectangles.d.ts +1 -1
  370. package/dist/objects/LRoomShapeToRectangles.lua +6 -5
  371. package/dist/objects/callbackRegisterFunctions.d.ts +2 -2
  372. package/dist/objects/callbackRegisterFunctions.lua +3 -1
  373. package/dist/objects/cardDescriptions.d.ts +1 -1
  374. package/dist/objects/cardDescriptions.lua +89 -90
  375. package/dist/objects/cardNames.d.ts +1 -1
  376. package/dist/objects/cardNames.lua +89 -90
  377. package/dist/objects/cardTypes.d.ts +3 -4
  378. package/dist/objects/cardTypes.lua +102 -104
  379. package/dist/objects/challengeNames.d.ts +1 -1
  380. package/dist/objects/challengeNames.lua +48 -48
  381. package/dist/objects/characterNames.d.ts +1 -1
  382. package/dist/objects/characterNames.lua +44 -44
  383. package/dist/objects/coinSubTypeToValue.d.ts +1 -1
  384. package/dist/objects/coinSubTypeToValue.lua +10 -8
  385. package/dist/objects/colors.lua +0 -1
  386. package/dist/objects/directionNames.d.ts +1 -1
  387. package/dist/objects/directionNames.lua +2 -1
  388. package/dist/objects/directionToDegrees.d.ts +1 -1
  389. package/dist/objects/directionToDegrees.lua +2 -1
  390. package/dist/objects/directionToVector.d.ts +1 -1
  391. package/dist/objects/directionToVector.lua +2 -1
  392. package/dist/objects/doorSlotFlagToDoorSlot.d.ts +5 -0
  393. package/dist/objects/doorSlotFlagToDoorSlot.lua +16 -0
  394. package/dist/objects/doorSlotToDirection.d.ts +1 -1
  395. package/dist/objects/doorSlotToDirection.lua +11 -10
  396. package/dist/objects/isaacAPIClassTypeToBrand.lua +1 -2
  397. package/dist/objects/isaacAPIClassTypeToCopyFunction.lua +1 -2
  398. package/dist/objects/pillEffectClasses.d.ts +3 -4
  399. package/dist/objects/pillEffectClasses.lua +55 -57
  400. package/dist/objects/pillEffectNames.d.ts +1 -1
  401. package/dist/objects/pillEffectNames.lua +52 -53
  402. package/dist/objects/pillEffectTypes.d.ts +3 -4
  403. package/dist/objects/pillEffectTypes.lua +54 -56
  404. package/dist/objects/roomShapeBounds.d.ts +1 -1
  405. package/dist/objects/roomShapeBounds.lua +14 -16
  406. package/dist/objects/roomShapeLayoutSizes.d.ts +1 -1
  407. package/dist/objects/roomShapeLayoutSizes.lua +14 -14
  408. package/dist/objects/roomShapeToBottomRightPosition.d.ts +1 -1
  409. package/dist/objects/roomShapeToBottomRightPosition.lua +14 -16
  410. package/dist/objects/roomShapeToDoorSlots.d.ts +1 -1
  411. package/dist/objects/roomShapeToDoorSlots.lua +35 -33
  412. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts +2 -2
  413. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +68 -66
  414. package/dist/objects/roomShapeToGridWidth.d.ts +1 -1
  415. package/dist/objects/roomShapeToGridWidth.lua +14 -14
  416. package/dist/objects/roomShapeToTopLeftPosition.d.ts +1 -1
  417. package/dist/objects/roomShapeToTopLeftPosition.lua +14 -14
  418. package/dist/objects/roomShapeVolumes.d.ts +1 -1
  419. package/dist/objects/roomShapeVolumes.lua +14 -14
  420. package/dist/objects/roomTypeNames.d.ts +1 -1
  421. package/dist/objects/roomTypeNames.lua +32 -32
  422. package/dist/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +1 -2
  423. package/dist/objects/stageTypeToLetter.d.ts +1 -1
  424. package/dist/objects/stageTypeToLetter.lua +8 -7
  425. package/dist/objects/transformationNames.d.ts +1 -1
  426. package/dist/objects/transformationNames.lua +16 -17
  427. package/dist/patchErrorFunctions.lua +1 -2
  428. package/dist/sets/LRoomShapesSet.d.ts +1 -1
  429. package/dist/sets/LRoomShapesSet.lua +3 -1
  430. package/dist/sets/bossSets.lua +241 -211
  431. package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +1 -1
  432. package/dist/sets/charactersThatStartWithAnActiveItemSet.lua +13 -11
  433. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +1 -1
  434. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -1
  435. package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +1 -1
  436. package/dist/sets/charactersWithFreeDevilDealsSet.lua +3 -1
  437. package/dist/sets/charactersWithNoRedHeartsSet.d.ts +1 -1
  438. package/dist/sets/charactersWithNoRedHeartsSet.lua +10 -8
  439. package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +1 -1
  440. package/dist/sets/charactersWithNoSoulHeartsSet.lua +7 -5
  441. package/dist/sets/chestPickupVariantsSet.d.ts +1 -1
  442. package/dist/sets/chestPickupVariantsSet.lua +14 -12
  443. package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +1 -1
  444. package/dist/sets/familiarsThatShootPlayerTearsSet.lua +2 -0
  445. package/dist/sets/lostStyleCharactersSet.d.ts +1 -1
  446. package/dist/sets/lostStyleCharactersSet.lua +7 -5
  447. package/dist/sets/redHeartSubTypesSet.d.ts +1 -1
  448. package/dist/sets/redHeartSubTypesSet.lua +3 -1
  449. package/dist/sets/sinEntityTypesSet.d.ts +1 -1
  450. package/dist/sets/sinEntityTypesSet.lua +9 -7
  451. package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +1 -1
  452. package/dist/sets/singleUseActiveCollectibleTypesSet.lua +10 -8
  453. package/dist/sets/storyBossesSet.d.ts +1 -1
  454. package/dist/sets/storyBossesSet.lua +15 -13
  455. package/dist/types/AddCallbackParameterCustom.d.ts +123 -0
  456. package/dist/types/AddCallbackParameterCustom.lua +4 -0
  457. package/dist/types/AddCallbackParametersCustom.d.ts +120 -277
  458. package/dist/types/AnyEntity.lua +0 -1
  459. package/dist/types/CollectibleIndex.lua +0 -1
  460. package/dist/types/EntityTypeNonNPC.lua +0 -1
  461. package/dist/types/JSONDoor.lua +0 -1
  462. package/dist/types/JSONEntity.lua +0 -1
  463. package/dist/types/JSONRoom.lua +0 -1
  464. package/dist/types/JSONRooms.lua +0 -1
  465. package/dist/types/JSONSpawn.lua +0 -1
  466. package/dist/types/PickingUpItem.d.ts +1 -1
  467. package/dist/types/PickingUpItem.lua +5 -3
  468. package/dist/types/PlayerHealth.d.ts +1 -1
  469. package/dist/types/PlayerHealth.lua +0 -1
  470. package/dist/types/PlayerIndex.lua +0 -1
  471. package/dist/types/PocketItemDescription.d.ts +1 -1
  472. package/dist/types/PocketItemDescription.lua +0 -1
  473. package/dist/types/Primitive.lua +0 -1
  474. package/dist/types/TrinketSituation.d.ts +1 -1
  475. package/dist/types/TrinketSituation.lua +0 -1
  476. package/dist/types/private/IsaacAPIClass.lua +0 -1
  477. package/dist/types/private/SaveData.lua +0 -1
  478. package/dist/types/private/SerializedIsaacAPIClass.lua +0 -1
  479. package/dist/types/private/TSTLClass.lua +0 -1
  480. package/dist/types/private/TSTLClassMetatable.lua +0 -1
  481. package/dist/upgradeMod.d.ts +1 -1
  482. package/package.json +9 -6
@@ -10,11 +10,18 @@ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
10
10
  local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
11
11
  local ____exports = {}
12
12
  local isTaintedModded
13
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
14
+ local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
15
+ local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
16
+ local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
17
+ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
18
+ local NullItemID = ____isaac_2Dtypescript_2Ddefinitions.NullItemID
19
+ local PlayerForm = ____isaac_2Dtypescript_2Ddefinitions.PlayerForm
20
+ local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
21
+ local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
13
22
  local ____cachedClasses = require("cachedClasses")
14
23
  local game = ____cachedClasses.game
15
24
  local itemConfig = ____cachedClasses.itemConfig
16
- local ____constants = require("constants")
17
- local MAX_VANILLA_CHARACTER = ____constants.MAX_VANILLA_CHARACTER
18
25
  local ____HealthType = require("enums.HealthType")
19
26
  local HealthType = ____HealthType.HealthType
20
27
  local ____array = require("functions.array")
@@ -27,10 +34,13 @@ local getNumBitsOfN = ____bitwise.getNumBitsOfN
27
34
  local ____character = require("functions.character")
28
35
  local getCharacterMaxHeartContainers = ____character.getCharacterMaxHeartContainers
29
36
  local getCharacterName = ____character.getCharacterName
37
+ local isVanillaCharacter = ____character.isVanillaCharacter
30
38
  local ____collectibles = require("functions.collectibles")
31
39
  local getCollectibleMaxCharges = ____collectibles.getCollectibleMaxCharges
32
40
  local ____collectibleSet = require("functions.collectibleSet")
33
41
  local getCollectibleSet = ____collectibleSet.getCollectibleSet
42
+ local ____enums = require("functions.enums")
43
+ local getEnumValues = ____enums.getEnumValues
34
44
  local ____playerIndex = require("functions.playerIndex")
35
45
  local getPlayerIndexVanilla = ____playerIndex.getPlayerIndexVanilla
36
46
  local getPlayers = ____playerIndex.getPlayers
@@ -38,7 +48,6 @@ local ____tears = require("functions.tears")
38
48
  local addTearsStat = ____tears.addTearsStat
39
49
  local ____utils = require("functions.utils")
40
50
  local ensureAllCases = ____utils.ensureAllCases
41
- local getEnumValues = ____utils.getEnumValues
42
51
  local ____repeat = ____utils["repeat"]
43
52
  function ____exports.getCharacters(self)
44
53
  local players = getPlayers(nil)
@@ -50,13 +59,13 @@ end
50
59
  function ____exports.getPlayerMaxHeartContainers(self, player)
51
60
  local character = player:GetPlayerType()
52
61
  local characterMaxHeartContainers = getCharacterMaxHeartContainers(nil, character)
53
- if character == PlayerType.PLAYER_MAGDALENE and player:HasCollectible(CollectibleType.COLLECTIBLE_BIRTHRIGHT) then
62
+ if character == PlayerType.MAGDALENE and player:HasCollectible(CollectibleType.BIRTHRIGHT) then
54
63
  local extraMaxHeartContainersFromBirthright = 6
55
64
  return characterMaxHeartContainers + extraMaxHeartContainersFromBirthright
56
65
  end
57
66
  if ____exports.isKeeper(nil, player) then
58
- local numMothersKisses = player:GetTrinketMultiplier(TrinketType.TRINKET_MOTHERS_KISS)
59
- local hasGreedsGullet = player:HasCollectible(CollectibleType.COLLECTIBLE_GREEDS_GULLET)
67
+ local numMothersKisses = player:GetTrinketMultiplier(TrinketType.MOTHERS_KISS)
68
+ local hasGreedsGullet = player:HasCollectible(CollectibleType.GREEDS_GULLET)
60
69
  local coins = player:GetNumCoins()
61
70
  local greedsGulletCoinContainers = hasGreedsGullet and math.floor(coins / 25) or 0
62
71
  return characterMaxHeartContainers + numMothersKisses + greedsGulletCoinContainers
@@ -71,11 +80,10 @@ function ____exports.isCharacter(self, player, ...)
71
80
  end
72
81
  function ____exports.isKeeper(self, player)
73
82
  local character = player:GetPlayerType()
74
- return character == PlayerType.PLAYER_KEEPER or character == PlayerType.PLAYER_KEEPER_B
83
+ return character == PlayerType.KEEPER or character == PlayerType.KEEPER_B
75
84
  end
76
- function ____exports.isModdedCharacter(self, player)
77
- local character = player:GetPlayerType()
78
- return character > MAX_VANILLA_CHARACTER
85
+ function ____exports.isModdedPlayer(self, player)
86
+ return not ____exports.isVanillaPlayer(nil, player)
79
87
  end
80
88
  function isTaintedModded(self, player)
81
89
  local character = player:GetPlayerType()
@@ -83,16 +91,17 @@ function isTaintedModded(self, player)
83
91
  local taintedCharacter = Isaac.GetPlayerTypeByName(name, true)
84
92
  return character == taintedCharacter
85
93
  end
86
- function ____exports.isVanillaCharacter(self, player)
87
- return not ____exports.isModdedCharacter(nil, player)
94
+ function ____exports.isVanillaPlayer(self, player)
95
+ local character = player:GetPlayerType()
96
+ return isVanillaCharacter(nil, character)
88
97
  end
89
98
  local STAT_CACHE_FLAGS_SET = __TS__New(Set, {
90
- CacheFlag.CACHE_DAMAGE,
91
- CacheFlag.CACHE_FIREDELAY,
92
- CacheFlag.CACHE_SHOTSPEED,
93
- CacheFlag.CACHE_RANGE,
94
- CacheFlag.CACHE_SPEED,
95
- CacheFlag.CACHE_LUCK
99
+ CacheFlag.DAMAGE,
100
+ CacheFlag.FIRE_DELAY,
101
+ CacheFlag.SHOT_SPEED,
102
+ CacheFlag.RANGE,
103
+ CacheFlag.SPEED,
104
+ CacheFlag.LUCK
96
105
  })
97
106
  function ____exports.addCollectibleCostume(self, player, collectibleType)
98
107
  local itemConfigItem = itemConfig:GetCollectible(collectibleType)
@@ -107,42 +116,42 @@ function ____exports.addStat(self, player, cacheFlag, amount)
107
116
  end
108
117
  repeat
109
118
  local ____switch6 = cacheFlag
110
- local ____cond6 = ____switch6 == CacheFlag.CACHE_DAMAGE
119
+ local ____cond6 = ____switch6 == CacheFlag.DAMAGE
111
120
  if ____cond6 then
112
121
  do
113
122
  player.Damage = player.Damage + amount
114
123
  break
115
124
  end
116
125
  end
117
- ____cond6 = ____cond6 or ____switch6 == CacheFlag.CACHE_FIREDELAY
126
+ ____cond6 = ____cond6 or ____switch6 == CacheFlag.FIRE_DELAY
118
127
  if ____cond6 then
119
128
  do
120
129
  addTearsStat(nil, player, amount)
121
130
  break
122
131
  end
123
132
  end
124
- ____cond6 = ____cond6 or ____switch6 == CacheFlag.CACHE_SHOTSPEED
133
+ ____cond6 = ____cond6 or ____switch6 == CacheFlag.SHOT_SPEED
125
134
  if ____cond6 then
126
135
  do
127
136
  player.ShotSpeed = player.ShotSpeed + amount
128
137
  break
129
138
  end
130
139
  end
131
- ____cond6 = ____cond6 or ____switch6 == CacheFlag.CACHE_RANGE
140
+ ____cond6 = ____cond6 or ____switch6 == CacheFlag.RANGE
132
141
  if ____cond6 then
133
142
  do
134
143
  player.TearHeight = player.TearHeight + amount
135
144
  break
136
145
  end
137
146
  end
138
- ____cond6 = ____cond6 or ____switch6 == CacheFlag.CACHE_SPEED
147
+ ____cond6 = ____cond6 or ____switch6 == CacheFlag.SPEED
139
148
  if ____cond6 then
140
149
  do
141
150
  player.MoveSpeed = player.MoveSpeed + amount
142
151
  break
143
152
  end
144
153
  end
145
- ____cond6 = ____cond6 or ____switch6 == CacheFlag.CACHE_LUCK
154
+ ____cond6 = ____cond6 or ____switch6 == CacheFlag.LUCK
146
155
  if ____cond6 then
147
156
  do
148
157
  player.Luck = player.Luck + amount
@@ -188,7 +197,7 @@ function ____exports.anyPlayerIs(self, ...)
188
197
  end
189
198
  function ____exports.canPlayerCrushRocks(self, player)
190
199
  local effects = player:GetEffects()
191
- return player:HasCollectible(CollectibleType.COLLECTIBLE_LEO) or player:HasCollectible(CollectibleType.COLLECTIBLE_THUNDER_THIGHS) or effects:HasCollectibleEffect(CollectibleType.COLLECTIBLE_MEGA_MUSH) or player:HasPlayerForm(PlayerForm.PLAYERFORM_STOMPY)
200
+ return player:HasCollectible(CollectibleType.LEO) or player:HasCollectible(CollectibleType.THUNDER_THIGHS) or effects:HasCollectibleEffect(CollectibleType.MEGA_MUSH) or player:HasPlayerForm(PlayerForm.STOMPY)
192
201
  end
193
202
  function ____exports.getActiveItemSlot(self, player, collectibleType)
194
203
  local activeSlots = getEnumValues(nil, ActiveSlot)
@@ -241,7 +250,11 @@ function ____exports.getEffectsList(self, player)
241
250
  end
242
251
  function ____exports.getFinalPlayer(self)
243
252
  local players = getPlayers(nil)
244
- return getLastElement(nil, players)
253
+ local lastPlayer = getLastElement(nil, players)
254
+ if lastPlayer == nil then
255
+ error("Failed to get the final player since there were 0 players.")
256
+ end
257
+ return lastPlayer
245
258
  end
246
259
  function ____exports.getNewestPlayer(self)
247
260
  local newestPlayer = nil
@@ -347,7 +360,7 @@ function ____exports.getPlayerLastHeart(self, player)
347
360
  end
348
361
  function ____exports.getPlayerName(self, player)
349
362
  local character = player:GetPlayerType()
350
- return character >= PlayerType.NUM_PLAYER_TYPES and player:GetName() or getCharacterName(nil, character)
363
+ return ____exports.isModdedPlayer(nil, player) and player:GetName() or getCharacterName(nil, character)
351
364
  end
352
365
  function ____exports.getPlayerNumHitsRemaining(self, player)
353
366
  local hearts = player:GetHearts()
@@ -387,7 +400,7 @@ function ____exports.getPlayersWithCollectible(self, ...)
387
400
  end
388
401
  function ____exports.getTaintedMagdaleneNonTemporaryMaxHearts(self, player)
389
402
  local maxHearts = player:GetMaxHearts()
390
- local hasBirthright = player:HasCollectible(CollectibleType.COLLECTIBLE_BIRTHRIGHT)
403
+ local hasBirthright = player:HasCollectible(CollectibleType.BIRTHRIGHT)
391
404
  local maxNonTemporaryMaxHearts = hasBirthright and 6 or 4
392
405
  return math.min(maxHearts, maxNonTemporaryMaxHearts)
393
406
  end
@@ -401,56 +414,56 @@ function ____exports.getTotalPlayerCollectibles(self, collectibleType)
401
414
  end
402
415
  function ____exports.hasLostCurse(self, player)
403
416
  local effects = player:GetEffects()
404
- return effects:HasNullEffect(NullItemID.ID_LOST_CURSE)
417
+ return effects:HasNullEffect(NullItemID.LOST_CURSE)
405
418
  end
406
419
  function ____exports.hasOpenActiveItemSlot(self, player)
407
- if ____exports.isCharacter(nil, player, PlayerType.PLAYER_THESOUL_B) then
420
+ if ____exports.isCharacter(nil, player, PlayerType.THE_SOUL_B) then
408
421
  return false
409
422
  end
410
- local activeItemPrimary = player:GetActiveItem(ActiveSlot.SLOT_PRIMARY)
411
- local activeItemSecondary = player:GetActiveItem(ActiveSlot.SLOT_SECONDARY)
412
- local hasSchoolbag = player:HasCollectible(CollectibleType.COLLECTIBLE_SCHOOLBAG)
423
+ local activeItemPrimary = player:GetActiveItem(ActiveSlot.PRIMARY)
424
+ local activeItemSecondary = player:GetActiveItem(ActiveSlot.SECONDARY)
425
+ local hasSchoolbag = player:HasCollectible(CollectibleType.SCHOOLBAG)
413
426
  if hasSchoolbag then
414
- return activeItemPrimary == CollectibleType.COLLECTIBLE_NULL or activeItemSecondary == CollectibleType.COLLECTIBLE_NULL
427
+ return activeItemPrimary == CollectibleType.NULL or activeItemSecondary == CollectibleType.NULL
415
428
  end
416
- return activeItemPrimary == CollectibleType.COLLECTIBLE_NULL
429
+ return activeItemPrimary == CollectibleType.NULL
417
430
  end
418
431
  function ____exports.isActiveSlotEmpty(self, player, activeSlot)
419
432
  local activeCollectibleType = player:GetActiveItem(activeSlot)
420
- return activeCollectibleType == CollectibleType.COLLECTIBLE_NULL
433
+ return activeCollectibleType == CollectibleType.NULL
421
434
  end
422
435
  function ____exports.isBethany(self, player)
423
436
  local character = player:GetPlayerType()
424
- return character == PlayerType.PLAYER_BETHANY or character == PlayerType.PLAYER_BETHANY_B
437
+ return character == PlayerType.BETHANY or character == PlayerType.BETHANY_B
425
438
  end
426
439
  function ____exports.isEden(self, player)
427
440
  local character = player:GetPlayerType()
428
- return character == PlayerType.PLAYER_EDEN or character == PlayerType.PLAYER_EDEN_B
441
+ return character == PlayerType.EDEN or character == PlayerType.EDEN_B
429
442
  end
430
443
  function ____exports.isFirstPlayer(self, player)
431
444
  return getPlayerIndexVanilla(nil, player) == 0
432
445
  end
433
446
  function ____exports.isJacobOrEsau(self, player)
434
447
  local character = player:GetPlayerType()
435
- return character == PlayerType.PLAYER_JACOB or character == PlayerType.PLAYER_ESAU
448
+ return character == PlayerType.JACOB or character == PlayerType.ESAU
436
449
  end
437
450
  function ____exports.isLost(self, player)
438
451
  local character = player:GetPlayerType()
439
- return character == PlayerType.PLAYER_THELOST or character == PlayerType.PLAYER_THELOST_B
452
+ return character == PlayerType.THE_LOST or character == PlayerType.THE_LOST_B
440
453
  end
441
454
  function ____exports.isTainted(self, player)
442
455
  local character = player:GetPlayerType()
443
- local ____isVanillaCharacter_result_0
444
- if ____exports.isVanillaCharacter(nil, player) then
445
- ____isVanillaCharacter_result_0 = character >= PlayerType.PLAYER_ISAAC_B
456
+ local ____isVanillaPlayer_result_0
457
+ if ____exports.isVanillaPlayer(nil, player) then
458
+ ____isVanillaPlayer_result_0 = character >= PlayerType.ISAAC_B
446
459
  else
447
- ____isVanillaCharacter_result_0 = isTaintedModded(nil, player)
460
+ ____isVanillaPlayer_result_0 = isTaintedModded(nil, player)
448
461
  end
449
- return ____isVanillaCharacter_result_0
462
+ return ____isVanillaPlayer_result_0
450
463
  end
451
464
  function ____exports.isTaintedLazarus(self, player)
452
465
  local character = player:GetPlayerType()
453
- return character == PlayerType.PLAYER_LAZARUS_B or character == PlayerType.PLAYER_LAZARUS2_B
466
+ return character == PlayerType.LAZARUS_B or character == PlayerType.LAZARUS_2_B
454
467
  end
455
468
  function ____exports.playerAddCollectible(self, player, ...)
456
469
  local collectibleTypes = {...}
@@ -493,9 +506,9 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
493
506
  keepInPools = false
494
507
  end
495
508
  local itemPool = game:GetItemPool()
496
- local primaryCollectibleType = player:GetActiveItem(ActiveSlot.SLOT_PRIMARY)
497
- local primaryCharge = player:GetActiveCharge(ActiveSlot.SLOT_PRIMARY)
498
- local secondaryCollectibleType = player:GetActiveItem(ActiveSlot.SLOT_SECONDARY)
509
+ local primaryCollectibleType = player:GetActiveItem(ActiveSlot.PRIMARY)
510
+ local primaryCharge = player:GetActiveCharge(ActiveSlot.PRIMARY)
511
+ local secondaryCollectibleType = player:GetActiveItem(ActiveSlot.SECONDARY)
499
512
  if charge == nil then
500
513
  charge = getCollectibleMaxCharges(nil, collectibleType)
501
514
  end
@@ -503,43 +516,43 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
503
516
  itemPool:RemoveCollectible(collectibleType)
504
517
  end
505
518
  repeat
506
- local ____switch109 = activeSlot
507
- local ____cond109 = ____switch109 == ActiveSlot.SLOT_PRIMARY
508
- if ____cond109 then
519
+ local ____switch110 = activeSlot
520
+ local ____cond110 = ____switch110 == ActiveSlot.PRIMARY
521
+ if ____cond110 then
509
522
  do
510
- if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
523
+ if primaryCollectibleType ~= CollectibleType.NULL then
511
524
  player:RemoveCollectible(primaryCollectibleType)
512
525
  end
513
526
  player:AddCollectible(collectibleType, charge, false)
514
527
  break
515
528
  end
516
529
  end
517
- ____cond109 = ____cond109 or ____switch109 == ActiveSlot.SLOT_SECONDARY
518
- if ____cond109 then
530
+ ____cond110 = ____cond110 or ____switch110 == ActiveSlot.SECONDARY
531
+ if ____cond110 then
519
532
  do
520
- if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
533
+ if primaryCollectibleType ~= CollectibleType.NULL then
521
534
  player:RemoveCollectible(primaryCollectibleType)
522
535
  end
523
- if secondaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
536
+ if secondaryCollectibleType ~= CollectibleType.NULL then
524
537
  player:RemoveCollectible(secondaryCollectibleType)
525
538
  end
526
539
  player:AddCollectible(secondaryCollectibleType, charge, false)
527
- if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
540
+ if primaryCollectibleType ~= CollectibleType.NULL then
528
541
  player:AddCollectible(primaryCollectibleType, primaryCharge, false)
529
542
  end
530
543
  break
531
544
  end
532
545
  end
533
- ____cond109 = ____cond109 or ____switch109 == ActiveSlot.SLOT_POCKET
534
- if ____cond109 then
546
+ ____cond110 = ____cond110 or ____switch110 == ActiveSlot.POCKET
547
+ if ____cond110 then
535
548
  do
536
549
  player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
537
550
  player:SetActiveCharge(charge, activeSlot)
538
551
  break
539
552
  end
540
553
  end
541
- ____cond109 = ____cond109 or ____switch109 == ActiveSlot.SLOT_POCKET2
542
- if ____cond109 then
554
+ ____cond110 = ____cond110 or ____switch110 == ActiveSlot.POCKET_SINGLE_USE
555
+ if ____cond110 then
543
556
  do
544
557
  player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
545
558
  break
@@ -559,18 +572,18 @@ function ____exports.setBlindfold(self, player, enabled, modifyCostume)
559
572
  local character = player:GetPlayerType()
560
573
  local challenge = Isaac.GetChallenge()
561
574
  if enabled then
562
- game.Challenge = Challenge.CHALLENGE_SOLAR_SYSTEM
575
+ game.Challenge = Challenge.SOLAR_SYSTEM
563
576
  player:ChangePlayerType(character)
564
577
  game.Challenge = challenge
565
578
  if not modifyCostume then
566
- player:TryRemoveNullCostume(NullItemID.ID_BLINDFOLD)
579
+ player:TryRemoveNullCostume(NullItemID.BLINDFOLD)
567
580
  end
568
581
  else
569
- game.Challenge = Challenge.CHALLENGE_NULL
582
+ game.Challenge = Challenge.NULL
570
583
  player:ChangePlayerType(character)
571
584
  game.Challenge = challenge
572
585
  if modifyCostume then
573
- player:TryRemoveNullCostume(NullItemID.ID_BLINDFOLD)
586
+ player:TryRemoveNullCostume(NullItemID.BLINDFOLD)
574
587
  end
575
588
  end
576
589
  end
@@ -1,6 +1,9 @@
1
1
  local ____lualib = require("lualib_bundle")
2
2
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
3
3
  local ____exports = {}
4
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
5
+ local HeartSubType = ____isaac_2Dtypescript_2Ddefinitions.HeartSubType
6
+ local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
4
7
  local ____constants = require("constants")
5
8
  local MAX_PLAYER_HEART_CONTAINERS = ____constants.MAX_PLAYER_HEART_CONTAINERS
6
9
  local ____HealthType = require("enums.HealthType")
@@ -100,11 +103,11 @@ function ____exports.getPlayerHealth(self, player)
100
103
  local subPlayer = player:GetSubPlayer()
101
104
  local soulCharges = player:GetEffectiveSoulCharge()
102
105
  local bloodCharges = player:GetEffectiveBloodCharge()
103
- if character == PlayerType.PLAYER_THEFORGOTTEN and subPlayer ~= nil then
106
+ if character == PlayerType.THE_FORGOTTEN and subPlayer ~= nil then
104
107
  maxHearts = boneHearts * 2
105
108
  boneHearts = 0
106
109
  soulHearts = subPlayer:GetSoulHearts()
107
- elseif character == PlayerType.PLAYER_THESOUL and subPlayer ~= nil then
110
+ elseif character == PlayerType.THE_SOUL and subPlayer ~= nil then
108
111
  maxHearts = subPlayer:GetBoneHearts() * 2
109
112
  hearts = subPlayer:GetHearts()
110
113
  end
@@ -114,20 +117,20 @@ function ____exports.getPlayerHealth(self, player)
114
117
  local i = 0
115
118
  while i < extraHearts do
116
119
  local isBoneHeart = player:IsBoneHeart(i)
117
- if character == PlayerType.PLAYER_THEFORGOTTEN and subPlayer ~= nil then
120
+ if character == PlayerType.THE_FORGOTTEN and subPlayer ~= nil then
118
121
  isBoneHeart = subPlayer:IsBoneHeart(i)
119
122
  end
120
123
  if isBoneHeart then
121
- soulHeartTypes[#soulHeartTypes + 1] = HeartSubType.HEART_BONE
124
+ soulHeartTypes[#soulHeartTypes + 1] = HeartSubType.BONE
122
125
  else
123
126
  local isBlackHeart = player:IsBlackHeart(currentSoulHeart + 1)
124
- if character == PlayerType.PLAYER_THEFORGOTTEN and subPlayer ~= nil then
127
+ if character == PlayerType.THE_FORGOTTEN and subPlayer ~= nil then
125
128
  isBlackHeart = subPlayer:IsBlackHeart(currentSoulHeart + 1)
126
129
  end
127
130
  if isBlackHeart then
128
- soulHeartTypes[#soulHeartTypes + 1] = HeartSubType.HEART_BLACK
131
+ soulHeartTypes[#soulHeartTypes + 1] = HeartSubType.BLACK
129
132
  else
130
- soulHeartTypes[#soulHeartTypes + 1] = HeartSubType.HEART_SOUL
133
+ soulHeartTypes[#soulHeartTypes + 1] = HeartSubType.SOUL
131
134
  end
132
135
  currentSoulHeart = currentSoulHeart + 2
133
136
  end
@@ -223,7 +226,7 @@ function ____exports.removeAllPlayerHealth(self, player)
223
226
  player:AddBrokenHearts(brokenHearts * -1)
224
227
  player:AddMaxHearts(MAX_PLAYER_HEART_CONTAINERS * -2, true)
225
228
  player:AddSoulHearts(MAX_PLAYER_HEART_CONTAINERS * -2)
226
- if isCharacter(nil, player, PlayerType.PLAYER_THESOUL) then
229
+ if isCharacter(nil, player, PlayerType.THE_SOUL) then
227
230
  local forgotten = player:GetSubPlayer()
228
231
  if forgotten ~= nil then
229
232
  local forgottenBoneHearts = forgotten:GetBoneHearts()
@@ -235,7 +238,7 @@ function ____exports.setPlayerHealth(self, player, playerHealth)
235
238
  local character = player:GetPlayerType()
236
239
  local subPlayer = player:GetSubPlayer()
237
240
  ____exports.removeAllPlayerHealth(nil, player)
238
- if character == PlayerType.PLAYER_THESOUL and subPlayer ~= nil then
241
+ if character == PlayerType.THE_SOUL and subPlayer ~= nil then
239
242
  subPlayer:AddMaxHearts(playerHealth.maxHearts, false)
240
243
  else
241
244
  player:AddMaxHearts(playerHealth.maxHearts, false)
@@ -247,16 +250,16 @@ function ____exports.setPlayerHealth(self, player, playerHealth)
247
250
  function(____, heartType, i)
248
251
  local isHalf = playerHealth.soulHearts + playerHealth.boneHearts * 2 < (i + 1) * 2
249
252
  local addAmount = 2
250
- if isHalf or heartType == HeartSubType.HEART_BONE or soulHeartsRemaining < 2 then
253
+ if isHalf or heartType == HeartSubType.BONE or soulHeartsRemaining < 2 then
251
254
  addAmount = 1
252
255
  end
253
- if heartType == HeartSubType.HEART_SOUL then
256
+ if heartType == HeartSubType.SOUL then
254
257
  player:AddSoulHearts(addAmount)
255
258
  soulHeartsRemaining = soulHeartsRemaining - addAmount
256
- elseif heartType == HeartSubType.HEART_BLACK then
259
+ elseif heartType == HeartSubType.BLACK then
257
260
  player:AddBlackHearts(addAmount)
258
261
  soulHeartsRemaining = soulHeartsRemaining - addAmount
259
- elseif heartType == HeartSubType.HEART_BONE then
262
+ elseif heartType == HeartSubType.BONE then
260
263
  player:AddBoneHearts(addAmount)
261
264
  end
262
265
  end
@@ -267,16 +270,16 @@ function ____exports.setPlayerHealth(self, player, playerHealth)
267
270
  playerHealth.hearts,
268
271
  function()
269
272
  player:AddHearts(1)
270
- if character == PlayerType.PLAYER_MAGDALENE_B then
273
+ if character == PlayerType.MAGDALENE_B then
271
274
  player:AddHearts(-1)
272
275
  end
273
276
  end
274
277
  )
275
278
  player:AddGoldenHearts(playerHealth.goldenHearts)
276
279
  player:AddBrokenHearts(playerHealth.brokenHearts)
277
- if character == PlayerType.PLAYER_BETHANY then
280
+ if character == PlayerType.BETHANY then
278
281
  player:SetSoulCharge(playerHealth.soulCharges)
279
- elseif character == PlayerType.PLAYER_BETHANY_B then
282
+ elseif character == PlayerType.BETHANY_B then
280
283
  player:SetBloodCharge(playerHealth.bloodCharges)
281
284
  end
282
285
  end
@@ -46,7 +46,7 @@ export declare function getPlayerIndex(player: EntityPlayer, differentiateForgot
46
46
  export declare function getPlayerIndexVanilla(playerToFind: EntityPlayer): int | undefined;
47
47
  /**
48
48
  * This function always excludes players with a non-undefined parent, since they are not real
49
- * players. (e.g. the Strawman Keeper)
49
+ * players (e.g. the Strawman Keeper).
50
50
  *
51
51
  * If this is not desired, use the `getAllPlayers` helper function instead.
52
52
  *
@@ -61,7 +61,7 @@ export declare function getPlayers(performCharacterExclusions?: boolean): Entity
61
61
  */
62
62
  export declare function getSubPlayerParent(subPlayer: EntitySubPlayer): EntityPlayer | undefined;
63
63
  /**
64
- * Some players are "child" players, meaning that they have a non-undefined Parent property.
65
- * (For example, the Strawman Keeper.)
64
+ * Some players are "child" players, meaning that they have a non-undefined Parent property. (For
65
+ * example, the Strawman Keeper.)
66
66
  */
67
67
  export declare function isChildPlayer(player: EntityPlayer): boolean;
@@ -5,6 +5,9 @@ local __TS__ArrayFind = ____lualib.__TS__ArrayFind
5
5
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
6
6
  local ____exports = {}
7
7
  local getPlayerIndexCollectibleType, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
8
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
9
+ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
10
+ local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
8
11
  local ____cachedClasses = require("cachedClasses")
9
12
  local game = ____cachedClasses.game
10
13
  function ____exports.getAllPlayers(self)
@@ -41,16 +44,16 @@ function getPlayerIndexCollectibleType(self, player, differentiateForgottenAndSo
41
44
  local character = player:GetPlayerType()
42
45
  repeat
43
46
  local ____switch10 = character
44
- local ____cond10 = ____switch10 == PlayerType.PLAYER_THESOUL
47
+ local ____cond10 = ____switch10 == PlayerType.THE_SOUL
45
48
  if ____cond10 then
46
49
  do
47
- return differentiateForgottenAndSoul and CollectibleType.COLLECTIBLE_SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
50
+ return differentiateForgottenAndSoul and CollectibleType.SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
48
51
  end
49
52
  end
50
- ____cond10 = ____cond10 or ____switch10 == PlayerType.PLAYER_LAZARUS2_B
53
+ ____cond10 = ____cond10 or ____switch10 == PlayerType.LAZARUS_2_B
51
54
  if ____cond10 then
52
55
  do
53
- return CollectibleType.COLLECTIBLE_INNER_EYE
56
+ return CollectibleType.INNER_EYE
54
57
  end
55
58
  end
56
59
  do
@@ -96,8 +99,8 @@ end
96
99
  function ____exports.isChildPlayer(self, player)
97
100
  return player.Parent ~= nil
98
101
  end
99
- DEFAULT_COLLECTIBLE_TYPE = CollectibleType.COLLECTIBLE_SAD_ONION
100
- EXCLUDED_CHARACTERS = __TS__New(Set, {PlayerType.PLAYER_ESAU, PlayerType.PLAYER_THESOUL_B})
102
+ DEFAULT_COLLECTIBLE_TYPE = CollectibleType.SAD_ONION
103
+ EXCLUDED_CHARACTERS = __TS__New(Set, {PlayerType.ESAU, PlayerType.THE_SOUL_B})
101
104
  function ____exports.getPlayerFromIndex(self, playerIndex)
102
105
  local players = ____exports.getPlayers(nil)
103
106
  return __TS__ArrayFind(
@@ -1,4 +1,4 @@
1
- /// <reference types="isaac-typescript-definitions" />
1
+ import { PocketItemSlot } from "isaac-typescript-definitions";
2
2
  import { PocketItemDescription } from "../types/PocketItemDescription";
3
3
  /**
4
4
  * Helper function to get the `PocketItemSlot` that the player's pocket active collectible item is
@@ -2,29 +2,35 @@ local ____lualib = require("lualib_bundle")
2
2
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
3
3
  local __TS__ArraySome = ____lualib.__TS__ArraySome
4
4
  local ____exports = {}
5
- local ____constants = require("constants")
6
- local MAX_PLAYER_POCKET_ITEM_SLOTS = ____constants.MAX_PLAYER_POCKET_ITEM_SLOTS
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
7
+ local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
8
+ local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
9
+ local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
10
+ local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
11
+ local PocketItemSlot = ____isaac_2Dtypescript_2Ddefinitions.PocketItemSlot
7
12
  local ____PocketItemType = require("enums.PocketItemType")
8
13
  local PocketItemType = ____PocketItemType.PocketItemType
9
- local ____math = require("functions.math")
10
- local range = ____math.range
14
+ local ____enums = require("functions.enums")
15
+ local getEnumValues = ____enums.getEnumValues
11
16
  local ____player = require("functions.player")
12
17
  local isCharacter = ____player.isCharacter
13
18
  function ____exports.getPocketItems(self, player)
14
- local pocketItem = player:GetActiveItem(ActiveSlot.SLOT_POCKET)
15
- local hasPocketItem = pocketItem ~= CollectibleType.COLLECTIBLE_NULL
16
- local pocketItem2 = player:GetActiveItem(ActiveSlot.SLOT_POCKET2)
17
- local hasPocketItem2 = pocketItem2 ~= CollectibleType.COLLECTIBLE_NULL
19
+ local pocketItem = player:GetActiveItem(ActiveSlot.POCKET)
20
+ local hasPocketItem = pocketItem ~= CollectibleType.NULL
21
+ local pocketItem2 = player:GetActiveItem(ActiveSlot.POCKET_SINGLE_USE)
22
+ local hasPocketItem2 = pocketItem2 ~= CollectibleType.NULL
18
23
  local maxPocketItems = player:GetMaxPocketItems()
24
+ local pocketItemSlots = getEnumValues(nil, PocketItemSlot)
19
25
  local pocketItems = {}
20
26
  local pocketItemIdentified = false
21
27
  local pocketItem2Identified = false
22
- for ____, slot in ipairs(range(nil, MAX_PLAYER_POCKET_ITEM_SLOTS - 1)) do
28
+ for ____, slot in ipairs(pocketItemSlots) do
23
29
  local card = player:GetCard(slot)
24
30
  local pillColor = player:GetPill(slot)
25
- if card ~= Card.CARD_NULL then
31
+ if card ~= Card.NULL then
26
32
  pocketItems[#pocketItems + 1] = {slot = slot, type = PocketItemType.CARD, subType = card}
27
- elseif pillColor ~= PillColor.PILL_NULL then
33
+ elseif pillColor ~= PillColor.NULL then
28
34
  pocketItems[#pocketItems + 1] = {slot = slot, type = PocketItemType.PILL, subType = pillColor}
29
35
  elseif hasPocketItem and not hasPocketItem2 and not pocketItemIdentified then
30
36
  pocketItemIdentified = true
@@ -60,7 +66,7 @@ function ____exports.getFirstCardOrPill(self, player)
60
66
  )
61
67
  end
62
68
  function ____exports.hasOpenPocketItemSlot(self, player)
63
- if isCharacter(nil, player, PlayerType.PLAYER_THESOUL_B) then
69
+ if isCharacter(nil, player, PlayerType.THE_SOUL_B) then
64
70
  return false
65
71
  end
66
72
  local pocketItems = ____exports.getPocketItems(nil, player)
@@ -72,6 +78,9 @@ end
72
78
  function ____exports.isFirstSlotPocketActiveItem(self, player)
73
79
  local pocketItems = ____exports.getPocketItems(nil, player)
74
80
  local firstPocketItem = pocketItems[1]
81
+ if firstPocketItem == nil then
82
+ return false
83
+ end
75
84
  return firstPocketItem.type == PocketItemType.ACTIVE_ITEM
76
85
  end
77
86
  return ____exports
@@ -3,6 +3,9 @@ local __TS__ArraySome = ____lualib.__TS__ArraySome
3
3
  local Map = ____lualib.Map
4
4
  local __TS__New = ____lualib.__TS__New
5
5
  local ____exports = {}
6
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
+ local EffectVariant = ____isaac_2Dtypescript_2Ddefinitions.EffectVariant
8
+ local HeavenLightDoorSubType = ____isaac_2Dtypescript_2Ddefinitions.HeavenLightDoorSubType
6
9
  local ____cachedClasses = require("cachedClasses")
7
10
  local game = ____cachedClasses.game
8
11
  local ____constants = require("constants")
@@ -34,7 +37,7 @@ function ____exports.findFreePosition(self, startingPosition, avoidActiveEntitie
34
37
  avoidActiveEntities = false
35
38
  end
36
39
  local room = game:GetRoom()
37
- local heavenDoors = getEffects(nil, EffectVariant.HEAVEN_LIGHT_DOOR, 0)
40
+ local heavenDoors = getEffects(nil, EffectVariant.HEAVEN_LIGHT_DOOR, HeavenLightDoorSubType.HEAVEN_DOOR)
38
41
  do
39
42
  local i = 0
40
43
  while i < MAX_FIND_FREE_POSITION_ATTEMPTS do
@@ -1,8 +1,7 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  /**
3
- * This returns a random float between 0 and 1. It is inclusive on the low end, but exclusive on
4
- * the high end. (This is because the `RNG.RandomFloat` method will never return a value of exactly
5
- * 1.)
3
+ * This returns a random float between 0 and 1. It is inclusive on the low end, but exclusive on the
4
+ * high end. (This is because the `RNG.RandomFloat` method will never return a value of exactly 1.)
6
5
  *
7
6
  * @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
8
7
  * `RNG.Next` method will be called. Default is `getRandomSeed()`.
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____exports = {}
3
2
  local ____rng = require("functions.rng")
4
3
  local getRandomSeed = ____rng.getRandomSeed