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.
- package/dist/cachedEnumValues.js +29 -32
- package/dist/callbackClasses.js +142 -289
- package/dist/callbacks.js +147 -183
- package/dist/classes/DefaultMap.d.ts.map +1 -1
- package/dist/classes/DefaultMap.js +4 -8
- package/dist/classes/ModFeature.d.ts.map +1 -1
- package/dist/classes/ModFeature.js +21 -25
- package/dist/classes/ModUpgraded.d.ts +19 -19
- package/dist/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/classes/ModUpgraded.js +138 -141
- package/dist/classes/ModUpgraded.lua +99 -99
- package/dist/classes/callbacks/EntityTakeDmgFilter.d.ts +2 -2
- package/dist/classes/callbacks/EntityTakeDmgFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/EntityTakeDmgFilter.js +8 -12
- package/dist/classes/callbacks/EntityTakeDmgFilter.lua +1 -1
- package/dist/classes/callbacks/EntityTakeDmgPlayer.d.ts +2 -2
- package/dist/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -1
- package/dist/classes/callbacks/EntityTakeDmgPlayer.js +15 -19
- package/dist/classes/callbacks/EntityTakeDmgPlayer.lua +1 -1
- package/dist/classes/callbacks/InputActionFilter.d.ts +2 -2
- package/dist/classes/callbacks/InputActionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/InputActionFilter.js +12 -16
- package/dist/classes/callbacks/InputActionFilter.lua +1 -1
- package/dist/classes/callbacks/InputActionPlayer.d.ts +2 -2
- package/dist/classes/callbacks/InputActionPlayer.d.ts.map +1 -1
- package/dist/classes/callbacks/InputActionPlayer.js +21 -25
- package/dist/classes/callbacks/InputActionPlayer.lua +6 -6
- package/dist/classes/callbacks/PostAmbushFinished.d.ts +2 -2
- package/dist/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
- package/dist/classes/callbacks/PostAmbushFinished.js +17 -21
- package/dist/classes/callbacks/PostAmbushFinished.lua +2 -2
- package/dist/classes/callbacks/PostAmbushStarted.d.ts +2 -2
- package/dist/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
- package/dist/classes/callbacks/PostAmbushStarted.js +17 -21
- package/dist/classes/callbacks/PostAmbushStarted.lua +2 -2
- package/dist/classes/callbacks/PostBombExploded.d.ts +2 -2
- package/dist/classes/callbacks/PostBombExploded.d.ts.map +1 -1
- package/dist/classes/callbacks/PostBombExploded.js +13 -17
- package/dist/classes/callbacks/PostBombExploded.lua +1 -1
- package/dist/classes/callbacks/PostBombInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostBombInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostBombInitFilter.js +10 -14
- package/dist/classes/callbacks/PostBombInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostBombInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostBombInitLate.js +13 -17
- package/dist/classes/callbacks/PostBombInitLate.lua +2 -2
- package/dist/classes/callbacks/PostBombRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostBombRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostBombRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostBombRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostBombUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostBombUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostBombUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostBombUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostBoneSwing.d.ts +1 -1
- package/dist/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
- package/dist/classes/callbacks/PostBoneSwing.js +14 -18
- package/dist/classes/callbacks/PostBoneSwing.lua +1 -1
- package/dist/classes/callbacks/PostCollectibleEmpty.d.ts +2 -2
- package/dist/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/classes/callbacks/PostCollectibleEmpty.js +22 -26
- package/dist/classes/callbacks/PostCollectibleEmpty.lua +6 -6
- package/dist/classes/callbacks/PostCursedTeleport.d.ts +2 -2
- package/dist/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/classes/callbacks/PostCursedTeleport.js +54 -61
- package/dist/classes/callbacks/PostCursedTeleport.lua +4 -7
- package/dist/classes/callbacks/PostCustomRevive.d.ts +1 -1
- package/dist/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
- package/dist/classes/callbacks/PostCustomRevive.js +7 -11
- package/dist/classes/callbacks/PostDiceRoomActivated.d.ts +2 -2
- package/dist/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/classes/callbacks/PostDiceRoomActivated.js +28 -30
- package/dist/classes/callbacks/PostDiceRoomActivated.lua +8 -7
- package/dist/classes/callbacks/PostDoorRender.d.ts +2 -2
- package/dist/classes/callbacks/PostDoorRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostDoorRender.js +13 -17
- package/dist/classes/callbacks/PostDoorRender.lua +1 -1
- package/dist/classes/callbacks/PostDoorUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostDoorUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostDoorUpdate.js +13 -17
- package/dist/classes/callbacks/PostDoorUpdate.lua +1 -1
- package/dist/classes/callbacks/PostEffectInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostEffectInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEffectInitFilter.js +10 -14
- package/dist/classes/callbacks/PostEffectInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostEffectInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEffectInitLate.js +13 -17
- package/dist/classes/callbacks/PostEffectInitLate.lua +2 -2
- package/dist/classes/callbacks/PostEffectRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostEffectRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEffectRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostEffectRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostEffectStateChanged.d.ts +2 -2
- package/dist/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEffectStateChanged.js +15 -19
- package/dist/classes/callbacks/PostEffectStateChanged.lua +2 -2
- package/dist/classes/callbacks/PostEffectUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostEffectUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEffectUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostEffectUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostEntityKillFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostEntityKillFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEntityKillFilter.js +10 -14
- package/dist/classes/callbacks/PostEntityKillFilter.lua +1 -1
- package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostEntityRemoveFilter.js +10 -14
- package/dist/classes/callbacks/PostEntityRemoveFilter.lua +1 -1
- package/dist/classes/callbacks/PostEsauJr.js +4 -8
- package/dist/classes/callbacks/PostFamiliarInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostFamiliarInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostFamiliarInitFilter.js +10 -14
- package/dist/classes/callbacks/PostFamiliarInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostFamiliarInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostFamiliarInitLate.js +13 -17
- package/dist/classes/callbacks/PostFamiliarInitLate.lua +2 -2
- package/dist/classes/callbacks/PostFamiliarRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostFamiliarRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostFamiliarRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostFamiliarRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostFamiliarStateChanged.d.ts +2 -2
- package/dist/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostFamiliarStateChanged.js +15 -19
- package/dist/classes/callbacks/PostFamiliarStateChanged.lua +2 -2
- package/dist/classes/callbacks/PostFamiliarUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostFamiliarUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostFamiliarUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostFamiliarUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostFirstEsauJr.js +4 -8
- package/dist/classes/callbacks/PostFirstFlip.js +4 -8
- package/dist/classes/callbacks/PostFlip.js +4 -8
- package/dist/classes/callbacks/PostGameEndFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostGameEndFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGameEndFilter.js +10 -14
- package/dist/classes/callbacks/PostGameEndFilter.lua +1 -1
- package/dist/classes/callbacks/PostGameStartedReordered.d.ts +1 -1
- package/dist/classes/callbacks/PostGameStartedReordered.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGameStartedReordered.js +6 -10
- package/dist/classes/callbacks/PostGameStartedReorderedLast.d.ts +1 -1
- package/dist/classes/callbacks/PostGameStartedReorderedLast.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGameStartedReorderedLast.js +6 -10
- package/dist/classes/callbacks/PostGreedModeWave.d.ts +1 -1
- package/dist/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGreedModeWave.js +14 -18
- package/dist/classes/callbacks/PostGreedModeWave.lua +1 -1
- package/dist/classes/callbacks/PostGridEntityBroken.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityBroken.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityBroken.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCollision.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCollision.js +7 -11
- package/dist/classes/callbacks/PostGridEntityCustomBroken.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomBroken.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomBroken.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomCollision.js +7 -11
- package/dist/classes/callbacks/PostGridEntityCustomInit.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomInit.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomInit.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomRemove.js +7 -11
- package/dist/classes/callbacks/PostGridEntityCustomRender.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomRender.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomStateChanged.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomStateChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomStateChanged.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomUpdate.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomUpdate.js +6 -10
- package/dist/classes/callbacks/PostGridEntityInit.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityInit.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityInit.js +6 -10
- package/dist/classes/callbacks/PostGridEntityRemove.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityRemove.js +7 -11
- package/dist/classes/callbacks/PostGridEntityRender.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityRender.js +6 -10
- package/dist/classes/callbacks/PostGridEntityStateChanged.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityStateChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityStateChanged.js +6 -10
- package/dist/classes/callbacks/PostGridEntityUpdate.d.ts +1 -1
- package/dist/classes/callbacks/PostGridEntityUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityUpdate.js +6 -10
- package/dist/classes/callbacks/PostHolyMantleRemoved.d.ts +2 -2
- package/dist/classes/callbacks/PostHolyMantleRemoved.d.ts.map +1 -1
- package/dist/classes/callbacks/PostHolyMantleRemoved.js +24 -28
- package/dist/classes/callbacks/PostHolyMantleRemoved.lua +2 -2
- package/dist/classes/callbacks/PostItemDischarge.d.ts +3 -3
- package/dist/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/classes/callbacks/PostItemDischarge.js +60 -64
- package/dist/classes/callbacks/PostItemDischarge.lua +9 -9
- package/dist/classes/callbacks/PostItemPickup.d.ts +1 -1
- package/dist/classes/callbacks/PostItemPickup.d.ts.map +1 -1
- package/dist/classes/callbacks/PostItemPickup.js +6 -10
- package/dist/classes/callbacks/PostKeyboardChanged.d.ts +2 -2
- package/dist/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostKeyboardChanged.js +25 -28
- package/dist/classes/callbacks/PostKeyboardChanged.lua +13 -9
- package/dist/classes/callbacks/PostKnifeInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostKnifeInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostKnifeInitFilter.js +10 -14
- package/dist/classes/callbacks/PostKnifeInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostKnifeInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostKnifeInitLate.js +13 -17
- package/dist/classes/callbacks/PostKnifeInitLate.lua +2 -2
- package/dist/classes/callbacks/PostKnifeRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostKnifeRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostKnifeRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostKnifeRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostKnifeUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostKnifeUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostKnifeUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostKnifeUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostLaserInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostLaserInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostLaserInitFilter.js +10 -14
- package/dist/classes/callbacks/PostLaserInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostLaserInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostLaserInitLate.js +13 -17
- package/dist/classes/callbacks/PostLaserInitLate.lua +2 -2
- package/dist/classes/callbacks/PostLaserRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostLaserRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostLaserRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostLaserRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostLaserUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostLaserUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostLaserUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostLaserUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostNPCDeathFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostNPCDeathFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNPCDeathFilter.js +10 -14
- package/dist/classes/callbacks/PostNPCDeathFilter.lua +1 -1
- package/dist/classes/callbacks/PostNPCInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostNPCInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNPCInitFilter.js +10 -14
- package/dist/classes/callbacks/PostNPCInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostNPCInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNPCInitLate.js +13 -17
- package/dist/classes/callbacks/PostNPCInitLate.lua +2 -2
- package/dist/classes/callbacks/PostNPCRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostNPCRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNPCRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostNPCRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostNPCStateChanged.d.ts +2 -2
- package/dist/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNPCStateChanged.js +15 -19
- package/dist/classes/callbacks/PostNPCStateChanged.lua +2 -2
- package/dist/classes/callbacks/PostNPCUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostNPCUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNPCUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostNPCUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostNewLevelReordered.d.ts +1 -1
- package/dist/classes/callbacks/PostNewLevelReordered.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNewLevelReordered.js +6 -10
- package/dist/classes/callbacks/PostNewRoomEarly.d.ts +2 -2
- package/dist/classes/callbacks/PostNewRoomEarly.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNewRoomEarly.js +29 -32
- package/dist/classes/callbacks/PostNewRoomEarly.lua +6 -5
- package/dist/classes/callbacks/PostNewRoomReordered.d.ts +1 -1
- package/dist/classes/callbacks/PostNewRoomReordered.d.ts.map +1 -1
- package/dist/classes/callbacks/PostNewRoomReordered.js +6 -10
- package/dist/classes/callbacks/PostPEffectUpdateReordered.d.ts +1 -1
- package/dist/classes/callbacks/PostPEffectUpdateReordered.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPEffectUpdateReordered.js +6 -10
- package/dist/classes/callbacks/PostPickupChanged.d.ts +1 -1
- package/dist/classes/callbacks/PostPickupChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupChanged.js +6 -10
- package/dist/classes/callbacks/PostPickupCollect.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupCollect.js +15 -19
- package/dist/classes/callbacks/PostPickupCollect.lua +2 -2
- package/dist/classes/callbacks/PostPickupInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupInitFilter.js +10 -14
- package/dist/classes/callbacks/PostPickupInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostPickupInitFirst.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupInitFirst.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupInitFirst.js +17 -21
- package/dist/classes/callbacks/PostPickupInitFirst.lua +3 -3
- package/dist/classes/callbacks/PostPickupInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupInitLate.js +13 -17
- package/dist/classes/callbacks/PostPickupInitLate.lua +2 -2
- package/dist/classes/callbacks/PostPickupRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostPickupRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostPickupSelectionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupSelectionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupSelectionFilter.js +12 -16
- package/dist/classes/callbacks/PostPickupSelectionFilter.lua +1 -1
- package/dist/classes/callbacks/PostPickupStateChanged.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupStateChanged.js +15 -19
- package/dist/classes/callbacks/PostPickupStateChanged.lua +2 -2
- package/dist/classes/callbacks/PostPickupUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostPickupUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPickupUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostPickupUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostPitRender.d.ts +2 -2
- package/dist/classes/callbacks/PostPitRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPitRender.js +13 -17
- package/dist/classes/callbacks/PostPitRender.lua +1 -1
- package/dist/classes/callbacks/PostPitUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostPitUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPitUpdate.js +13 -17
- package/dist/classes/callbacks/PostPitUpdate.lua +1 -1
- package/dist/classes/callbacks/PostPlayerChangeHealth.d.ts +2 -2
- package/dist/classes/callbacks/PostPlayerChangeHealth.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerChangeHealth.js +23 -27
- package/dist/classes/callbacks/PostPlayerChangeHealth.lua +2 -2
- package/dist/classes/callbacks/PostPlayerChangeStat.d.ts +2 -2
- package/dist/classes/callbacks/PostPlayerChangeStat.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerChangeStat.js +35 -39
- package/dist/classes/callbacks/PostPlayerChangeStat.lua +2 -2
- package/dist/classes/callbacks/PostPlayerChangeType.d.ts +2 -2
- package/dist/classes/callbacks/PostPlayerChangeType.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerChangeType.js +18 -22
- package/dist/classes/callbacks/PostPlayerChangeType.lua +2 -2
- package/dist/classes/callbacks/PostPlayerCollectibleAdded.d.ts +1 -1
- package/dist/classes/callbacks/PostPlayerCollectibleAdded.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerCollectibleAdded.js +6 -10
- package/dist/classes/callbacks/PostPlayerCollectibleRemoved.d.ts +1 -1
- package/dist/classes/callbacks/PostPlayerCollectibleRemoved.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerCollectibleRemoved.js +6 -10
- package/dist/classes/callbacks/PostPlayerFatalDamage.d.ts +7 -7
- package/dist/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerFatalDamage.js +33 -37
- package/dist/classes/callbacks/PostPlayerFatalDamage.lua +2 -2
- package/dist/classes/callbacks/PostPlayerInitFirst.d.ts +2 -2
- package/dist/classes/callbacks/PostPlayerInitFirst.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerInitFirst.js +17 -21
- package/dist/classes/callbacks/PostPlayerInitFirst.lua +1 -1
- package/dist/classes/callbacks/PostPlayerInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostPlayerInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerInitLate.js +15 -18
- package/dist/classes/callbacks/PostPlayerInitLate.lua +6 -5
- package/dist/classes/callbacks/PostPlayerRenderReordered.d.ts +1 -1
- package/dist/classes/callbacks/PostPlayerRenderReordered.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerRenderReordered.js +6 -10
- package/dist/classes/callbacks/PostPlayerUpdateReordered.d.ts +1 -1
- package/dist/classes/callbacks/PostPlayerUpdateReordered.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPlayerUpdateReordered.js +6 -10
- package/dist/classes/callbacks/PostPoopRender.d.ts +2 -2
- package/dist/classes/callbacks/PostPoopRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPoopRender.js +13 -17
- package/dist/classes/callbacks/PostPoopRender.lua +1 -1
- package/dist/classes/callbacks/PostPoopUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostPoopUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPoopUpdate.js +13 -17
- package/dist/classes/callbacks/PostPoopUpdate.lua +1 -1
- package/dist/classes/callbacks/PostPressurePlateRender.d.ts +2 -2
- package/dist/classes/callbacks/PostPressurePlateRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPressurePlateRender.js +13 -17
- package/dist/classes/callbacks/PostPressurePlateRender.lua +1 -1
- package/dist/classes/callbacks/PostPressurePlateUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostPressurePlateUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPressurePlateUpdate.js +13 -17
- package/dist/classes/callbacks/PostPressurePlateUpdate.lua +1 -1
- package/dist/classes/callbacks/PostProjectileInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostProjectileInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostProjectileInitFilter.js +10 -14
- package/dist/classes/callbacks/PostProjectileInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostProjectileInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostProjectileInitLate.js +13 -17
- package/dist/classes/callbacks/PostProjectileInitLate.lua +2 -2
- package/dist/classes/callbacks/PostProjectileKill.d.ts +4 -4
- package/dist/classes/callbacks/PostProjectileKill.d.ts.map +1 -1
- package/dist/classes/callbacks/PostProjectileKill.js +17 -21
- package/dist/classes/callbacks/PostProjectileKill.lua +2 -2
- package/dist/classes/callbacks/PostProjectileRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostProjectileRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostProjectileRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostProjectileRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostProjectileUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostProjectileUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostProjectileUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostProjectileUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostPurchase.d.ts +5 -5
- package/dist/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPurchase.js +43 -47
- package/dist/classes/callbacks/PostPurchase.lua +6 -6
- package/dist/classes/callbacks/PostRockRender.d.ts +2 -2
- package/dist/classes/callbacks/PostRockRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostRockRender.js +13 -17
- package/dist/classes/callbacks/PostRockRender.lua +1 -1
- package/dist/classes/callbacks/PostRockUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostRockUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostRockUpdate.js +13 -17
- package/dist/classes/callbacks/PostRockUpdate.lua +1 -1
- package/dist/classes/callbacks/PostRoomClearChanged.d.ts +3 -3
- package/dist/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostRoomClearChanged.js +23 -27
- package/dist/classes/callbacks/PostRoomClearChanged.lua +6 -6
- package/dist/classes/callbacks/PostSacrifice.d.ts +2 -2
- package/dist/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSacrifice.js +18 -22
- package/dist/classes/callbacks/PostSacrifice.lua +3 -3
- package/dist/classes/callbacks/PostSlotAnimationChanged.d.ts +1 -1
- package/dist/classes/callbacks/PostSlotAnimationChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSlotAnimationChanged.js +6 -10
- package/dist/classes/callbacks/PostSlotCollision.d.ts +2 -2
- package/dist/classes/callbacks/PostSlotCollision.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSlotCollision.js +14 -18
- package/dist/classes/callbacks/PostSlotCollision.lua +1 -1
- package/dist/classes/callbacks/PostSlotDestroyed.d.ts +1 -1
- package/dist/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSlotDestroyed.js +6 -10
- package/dist/classes/callbacks/PostSlotInit.d.ts +1 -1
- package/dist/classes/callbacks/PostSlotInit.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSlotInit.js +6 -10
- package/dist/classes/callbacks/PostSlotRender.d.ts +1 -1
- package/dist/classes/callbacks/PostSlotRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSlotRender.js +6 -10
- package/dist/classes/callbacks/PostSlotUpdate.d.ts +1 -1
- package/dist/classes/callbacks/PostSlotUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSlotUpdate.js +6 -10
- package/dist/classes/callbacks/PostSpikesRender.d.ts +2 -2
- package/dist/classes/callbacks/PostSpikesRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSpikesRender.js +13 -17
- package/dist/classes/callbacks/PostSpikesRender.lua +1 -1
- package/dist/classes/callbacks/PostSpikesUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostSpikesUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostSpikesUpdate.js +13 -17
- package/dist/classes/callbacks/PostSpikesUpdate.lua +1 -1
- package/dist/classes/callbacks/PostTNTRender.d.ts +2 -2
- package/dist/classes/callbacks/PostTNTRender.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTNTRender.js +13 -17
- package/dist/classes/callbacks/PostTNTRender.lua +1 -1
- package/dist/classes/callbacks/PostTNTUpdate.d.ts +2 -2
- package/dist/classes/callbacks/PostTNTUpdate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTNTUpdate.js +13 -17
- package/dist/classes/callbacks/PostTNTUpdate.lua +1 -1
- package/dist/classes/callbacks/PostTearInitFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostTearInitFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTearInitFilter.js +10 -14
- package/dist/classes/callbacks/PostTearInitFilter.lua +1 -1
- package/dist/classes/callbacks/PostTearInitLate.d.ts +2 -2
- package/dist/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTearInitLate.js +13 -17
- package/dist/classes/callbacks/PostTearInitLate.lua +2 -2
- package/dist/classes/callbacks/PostTearInitVeryLate.d.ts +2 -2
- package/dist/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTearInitVeryLate.js +13 -17
- package/dist/classes/callbacks/PostTearInitVeryLate.lua +2 -2
- package/dist/classes/callbacks/PostTearKill.d.ts +4 -4
- package/dist/classes/callbacks/PostTearKill.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTearKill.js +17 -21
- package/dist/classes/callbacks/PostTearKill.lua +2 -2
- package/dist/classes/callbacks/PostTearRenderFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostTearRenderFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTearRenderFilter.js +10 -14
- package/dist/classes/callbacks/PostTearRenderFilter.lua +1 -1
- package/dist/classes/callbacks/PostTearUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostTearUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTearUpdateFilter.js +10 -14
- package/dist/classes/callbacks/PostTearUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PostTransformation.d.ts +2 -2
- package/dist/classes/callbacks/PostTransformation.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTransformation.js +24 -28
- package/dist/classes/callbacks/PostTransformation.lua +6 -6
- package/dist/classes/callbacks/PostTrinketBreak.d.ts +3 -3
- package/dist/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTrinketBreak.js +25 -29
- package/dist/classes/callbacks/PostTrinketBreak.lua +2 -2
- package/dist/classes/callbacks/PostUsePillFilter.d.ts +2 -2
- package/dist/classes/callbacks/PostUsePillFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PostUsePillFilter.js +27 -31
- package/dist/classes/callbacks/PostUsePillFilter.lua +1 -1
- package/dist/classes/callbacks/PreBerserkDeath.d.ts +2 -2
- package/dist/classes/callbacks/PreBerserkDeath.d.ts.map +1 -1
- package/dist/classes/callbacks/PreBerserkDeath.js +24 -28
- package/dist/classes/callbacks/PreBerserkDeath.lua +2 -2
- package/dist/classes/callbacks/PreBombCollisionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreBombCollisionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreBombCollisionFilter.js +8 -12
- package/dist/classes/callbacks/PreBombCollisionFilter.lua +1 -1
- package/dist/classes/callbacks/PreCustomRevive.d.ts +1 -1
- package/dist/classes/callbacks/PreCustomRevive.d.ts.map +1 -1
- package/dist/classes/callbacks/PreCustomRevive.js +6 -10
- package/dist/classes/callbacks/PreEntitySpawnFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreEntitySpawnFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreEntitySpawnFilter.js +12 -16
- package/dist/classes/callbacks/PreEntitySpawnFilter.lua +5 -5
- package/dist/classes/callbacks/PreFamiliarCollisionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreFamiliarCollisionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreFamiliarCollisionFilter.js +8 -12
- package/dist/classes/callbacks/PreFamiliarCollisionFilter.lua +1 -1
- package/dist/classes/callbacks/PreGetPedestal.d.ts +2 -2
- package/dist/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
- package/dist/classes/callbacks/PreGetPedestal.js +17 -21
- package/dist/classes/callbacks/PreGetPedestal.lua +1 -1
- package/dist/classes/callbacks/PreItemPickup.d.ts +1 -1
- package/dist/classes/callbacks/PreItemPickup.d.ts.map +1 -1
- package/dist/classes/callbacks/PreItemPickup.js +6 -10
- package/dist/classes/callbacks/PreKnifeCollisionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreKnifeCollisionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreKnifeCollisionFilter.js +8 -12
- package/dist/classes/callbacks/PreKnifeCollisionFilter.lua +1 -1
- package/dist/classes/callbacks/PreNPCCollisionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreNPCCollisionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreNPCCollisionFilter.js +8 -12
- package/dist/classes/callbacks/PreNPCCollisionFilter.lua +1 -1
- package/dist/classes/callbacks/PreNPCUpdateFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreNPCUpdateFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreNPCUpdateFilter.js +8 -12
- package/dist/classes/callbacks/PreNPCUpdateFilter.lua +1 -1
- package/dist/classes/callbacks/PreNewLevel.d.ts +1 -1
- package/dist/classes/callbacks/PreNewLevel.d.ts.map +1 -1
- package/dist/classes/callbacks/PreNewLevel.js +19 -23
- package/dist/classes/callbacks/PreNewLevel.lua +1 -1
- package/dist/classes/callbacks/PreProjectileCollisionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreProjectileCollisionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreProjectileCollisionFilter.js +8 -12
- package/dist/classes/callbacks/PreProjectileCollisionFilter.lua +1 -1
- package/dist/classes/callbacks/PreRoomEntitySpawnFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreRoomEntitySpawnFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreRoomEntitySpawnFilter.js +12 -16
- package/dist/classes/callbacks/PreRoomEntitySpawnFilter.lua +5 -5
- package/dist/classes/callbacks/PreTearCollisionFilter.d.ts +2 -2
- package/dist/classes/callbacks/PreTearCollisionFilter.d.ts.map +1 -1
- package/dist/classes/callbacks/PreTearCollisionFilter.js +8 -12
- package/dist/classes/callbacks/PreTearCollisionFilter.lua +1 -1
- package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/CustomGridEntities.js +65 -66
- package/dist/classes/features/callbackLogic/CustomGridEntities.lua +1 -1
- package/dist/classes/features/callbackLogic/CustomRevive.d.ts +9 -9
- package/dist/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/CustomRevive.js +56 -60
- package/dist/classes/features/callbackLogic/CustomRevive.lua +1 -1
- package/dist/classes/features/callbackLogic/EsauJrDetection.d.ts +4 -4
- package/dist/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/EsauJrDetection.js +24 -28
- package/dist/classes/features/callbackLogic/EsauJrDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/FlipDetection.d.ts +3 -3
- package/dist/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/FlipDetection.js +20 -24
- package/dist/classes/features/callbackLogic/FlipDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.js +51 -55
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.lua +4 -4
- package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts +4 -4
- package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.js +20 -24
- package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/GridEntityRenderDetection.d.ts +1 -1
- package/dist/classes/features/callbackLogic/GridEntityRenderDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/GridEntityRenderDetection.js +15 -19
- package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts +8 -8
- package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.js +36 -40
- package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/ItemPickupDetection.d.ts +3 -3
- package/dist/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/ItemPickupDetection.js +28 -32
- package/dist/classes/features/callbackLogic/ItemPickupDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/PickupChangeDetection.d.ts +3 -3
- package/dist/classes/features/callbackLogic/PickupChangeDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/PickupChangeDetection.js +15 -19
- package/dist/classes/features/callbackLogic/PickupChangeDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +13 -13
- package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.js +96 -100
- package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.lua +2 -2
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts +9 -9
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.js +42 -43
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +1 -1
- package/dist/classes/features/callbackLogic/SlotDestroyedDetection.d.ts +4 -4
- package/dist/classes/features/callbackLogic/SlotDestroyedDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/SlotDestroyedDetection.js +43 -46
- package/dist/classes/features/callbackLogic/SlotDestroyedDetection.lua +7 -6
- package/dist/classes/features/callbackLogic/SlotRenderDetection.d.ts +3 -3
- package/dist/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/SlotRenderDetection.js +15 -19
- package/dist/classes/features/callbackLogic/SlotRenderDetection.lua +1 -1
- package/dist/classes/features/callbackLogic/SlotUpdateDetection.d.ts +4 -4
- package/dist/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/SlotUpdateDetection.js +21 -25
- package/dist/classes/features/callbackLogic/SlotUpdateDetection.lua +1 -1
- package/dist/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
- package/dist/classes/features/other/CharacterHealthConversion.js +30 -34
- package/dist/classes/features/other/CharacterHealthConversion.lua +2 -2
- package/dist/classes/features/other/CharacterStats.d.ts.map +1 -1
- package/dist/classes/features/other/CharacterStats.js +16 -20
- package/dist/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/classes/features/other/CollectibleItemPoolType.js +27 -31
- package/dist/classes/features/other/CollectibleItemPoolType.lua +1 -1
- package/dist/classes/features/other/CustomHotkeys.d.ts.map +1 -1
- package/dist/classes/features/other/CustomHotkeys.js +22 -26
- package/dist/classes/features/other/CustomItemPools.d.ts.map +1 -1
- package/dist/classes/features/other/CustomItemPools.js +24 -28
- package/dist/classes/features/other/CustomItemPools.lua +1 -1
- package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/classes/features/other/CustomPickups.js +27 -31
- package/dist/classes/features/other/CustomStages.d.ts +3 -3
- package/dist/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/classes/features/other/CustomStages.js +175 -207
- package/dist/classes/features/other/CustomStages.lua +1 -1
- package/dist/classes/features/other/CustomTrapdoors.d.ts +2 -2
- package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/classes/features/other/CustomTrapdoors.js +152 -155
- package/dist/classes/features/other/CustomTrapdoors.lua +10 -9
- package/dist/classes/features/other/DebugDisplay.d.ts +1 -1
- package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
- package/dist/classes/features/other/DebugDisplay.js +89 -96
- package/dist/classes/features/other/DebugDisplay.lua +13 -12
- package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
- package/dist/classes/features/other/DeployJSONRoom.js +70 -70
- package/dist/classes/features/other/DisableAllSound.d.ts.map +1 -1
- package/dist/classes/features/other/DisableAllSound.js +21 -25
- package/dist/classes/features/other/DisableAllSound.lua +1 -1
- package/dist/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/classes/features/other/DisableInputs.js +30 -34
- package/dist/classes/features/other/DisableInputs.lua +1 -1
- package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +2 -2
- package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
- package/dist/classes/features/other/EdenStartingStatsHealth.js +57 -61
- package/dist/classes/features/other/EdenStartingStatsHealth.lua +1 -1
- package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
- package/dist/classes/features/other/ExtraConsoleCommands.js +107 -143
- package/dist/classes/features/other/ExtraConsoleCommands.lua +5 -4
- package/dist/classes/features/other/FadeInRemover.d.ts.map +1 -1
- package/dist/classes/features/other/FadeInRemover.js +14 -18
- package/dist/classes/features/other/FastReset.d.ts.map +1 -1
- package/dist/classes/features/other/FastReset.js +25 -29
- package/dist/classes/features/other/FlyingDetection.js +10 -14
- package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
- package/dist/classes/features/other/ForgottenSwitch.js +9 -13
- package/dist/classes/features/other/ItemPoolDetection.js +45 -45
- package/dist/classes/features/other/ItemPoolDetection.lua +5 -1
- package/dist/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
- package/dist/classes/features/other/ModdedElementDetection.js +47 -51
- package/dist/classes/features/other/ModdedElementSets.js +135 -139
- package/dist/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/classes/features/other/NoSirenSteal.js +12 -16
- package/dist/classes/features/other/NoSirenSteal.lua +1 -1
- package/dist/classes/features/other/Pause.d.ts +1 -1
- package/dist/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/classes/features/other/Pause.js +71 -75
- package/dist/classes/features/other/Pause.lua +1 -1
- package/dist/classes/features/other/PersistentEntities.d.ts +5 -5
- package/dist/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/classes/features/other/PersistentEntities.js +46 -47
- package/dist/classes/features/other/PersistentEntities.lua +6 -6
- package/dist/classes/features/other/PickupIndexCreation.d.ts +1 -1
- package/dist/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/classes/features/other/PickupIndexCreation.js +42 -46
- package/dist/classes/features/other/PickupIndexCreation.lua +1 -1
- package/dist/classes/features/other/PlayerCollectibleTracking.d.ts.map +1 -1
- package/dist/classes/features/other/PlayerCollectibleTracking.js +25 -29
- package/dist/classes/features/other/PlayerCollectibleTracking.lua +1 -1
- package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
- package/dist/classes/features/other/PonyDetection.js +32 -36
- package/dist/classes/features/other/PonyDetection.lua +1 -1
- package/dist/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/classes/features/other/PressInput.js +26 -27
- package/dist/classes/features/other/PressInput.lua +1 -1
- package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/classes/features/other/PreventChildEntities.js +15 -19
- package/dist/classes/features/other/PreventChildEntities.lua +1 -1
- package/dist/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/classes/features/other/PreventGridEntityRespawn.js +49 -53
- package/dist/classes/features/other/PreventGridEntityRespawn.lua +1 -1
- package/dist/classes/features/other/RerunDetection.d.ts.map +1 -1
- package/dist/classes/features/other/RerunDetection.js +22 -26
- package/dist/classes/features/other/RerunDetection.lua +1 -1
- package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
- package/dist/classes/features/other/RoomClearFrame.js +20 -24
- package/dist/classes/features/other/RoomClearFrame.lua +1 -1
- package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/classes/features/other/RoomHistory.js +38 -42
- package/dist/classes/features/other/RoomHistory.lua +1 -1
- package/dist/classes/features/other/RunInNFrames.d.ts +1 -1
- package/dist/classes/features/other/RunInNFrames.d.ts.map +1 -1
- package/dist/classes/features/other/RunInNFrames.js +41 -46
- package/dist/classes/features/other/RunInNFrames.lua +10 -7
- package/dist/classes/features/other/RunNextRoom.d.ts +1 -1
- package/dist/classes/features/other/RunNextRoom.d.ts.map +1 -1
- package/dist/classes/features/other/RunNextRoom.js +14 -18
- package/dist/classes/features/other/RunNextRoom.lua +2 -2
- package/dist/classes/features/other/RunNextRun.d.ts +1 -1
- package/dist/classes/features/other/RunNextRun.d.ts.map +1 -1
- package/dist/classes/features/other/RunNextRun.js +15 -19
- package/dist/classes/features/other/RunNextRun.lua +2 -2
- package/dist/classes/features/other/SaveDataManager.d.ts +4 -4
- package/dist/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/classes/features/other/SaveDataManager.js +93 -96
- package/dist/classes/features/other/SaveDataManager.lua +11 -11
- package/dist/classes/features/other/SpawnRockAltRewards.js +115 -119
- package/dist/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/classes/features/other/StageHistory.js +85 -86
- package/dist/classes/features/other/StageHistory.lua +6 -6
- package/dist/classes/features/other/StartAmbush.js +12 -16
- package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +1 -1
- package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/classes/features/other/TaintedLazarusPlayers.js +22 -24
- package/dist/classes/features/other/TaintedLazarusPlayers.lua +2 -2
- package/dist/classes/features/other/UnlockAchievementsDetection.d.ts.map +1 -1
- package/dist/classes/features/other/UnlockAchievementsDetection.js +15 -19
- package/dist/classes/features/other/UnlockAchievementsDetection.lua +1 -1
- package/dist/classes/features/other/customStages/backdrop.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/backdrop.js +69 -72
- package/dist/classes/features/other/customStages/backdrop.lua +2 -2
- package/dist/classes/features/other/customStages/constants.js +7 -10
- package/dist/classes/features/other/customStages/gridEntities.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/gridEntities.js +24 -30
- package/dist/classes/features/other/customStages/shadows.js +27 -30
- package/dist/classes/features/other/customStages/streakText.js +55 -60
- package/dist/classes/features/other/customStages/utils.js +13 -17
- package/dist/classes/features/other/customStages/v.js +4 -7
- package/dist/classes/features/other/customStages/versusScreen.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/versusScreen.js +59 -54
- package/dist/classes/features/other/customStages/versusScreen.lua +2 -2
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.lua +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.js +12 -16
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.lua +1 -1
- package/dist/classes/features/other/debugDisplay/utils.js +6 -10
- package/dist/classes/features/other/extraConsoleCommands/commands.d.ts +14 -14
- package/dist/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/classes/features/other/extraConsoleCommands/commands.js +433 -580
- package/dist/classes/features/other/extraConsoleCommands/commands.lua +33 -30
- package/dist/classes/features/other/extraConsoleCommands/subroutines.js +47 -57
- package/dist/classes/features/other/extraConsoleCommands/v.js +1 -4
- package/dist/classes/features/other/saveDataManager/constants.js +1 -4
- package/dist/classes/features/other/saveDataManager/glowingHourGlass.js +17 -21
- package/dist/classes/features/other/saveDataManager/loadFromDisk.js +19 -22
- package/dist/classes/features/other/saveDataManager/restoreDefaults.js +20 -25
- package/dist/classes/features/other/saveDataManager/saveToDisk.js +13 -16
- package/dist/classes/private/CustomCallback.d.ts +6 -6
- package/dist/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/classes/private/CustomCallback.js +25 -29
- package/dist/classes/private/Feature.js +1 -5
- package/dist/core/cachedClasses.d.ts.map +1 -1
- package/dist/core/cachedClasses.js +13 -15
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +127 -131
- package/dist/core/constants.lua +1 -1
- package/dist/core/constantsFirstLast.js +22 -25
- package/dist/core/constantsVanilla.js +25 -28
- package/dist/core/upgradeMod.js +7 -10
- package/dist/decorators.d.ts.map +1 -1
- package/dist/decorators.js +6 -10
- package/dist/enums/AmbushType.js +2 -5
- package/dist/enums/CornerType.js +2 -5
- package/dist/enums/HealthType.js +2 -5
- package/dist/enums/ISCFeature.js +2 -5
- package/dist/enums/LadderSubTypeCustom.js +2 -5
- package/dist/enums/ModCallbackCustom.js +2 -5
- package/dist/enums/MysteriousPaperEffect.js +2 -5
- package/dist/enums/PlayerStat.js +2 -5
- package/dist/enums/PocketItemType.js +2 -5
- package/dist/enums/RockAltType.js +2 -5
- package/dist/enums/SaveDataKey.js +2 -5
- package/dist/enums/SerializationType.js +2 -5
- package/dist/enums/SlotDestructionType.js +2 -5
- package/dist/enums/private/GridEntityTypeCustom.js +1 -4
- package/dist/enums/private/SerializationBrand.js +2 -5
- package/dist/enums/private/StageTravelState.js +2 -5
- package/dist/enums/private/TrapdoorAnimation.js +2 -5
- package/dist/enums/private/UIStreakAnimation.js +2 -5
- package/dist/features.d.ts +57 -57
- package/dist/features.d.ts.map +1 -1
- package/dist/features.js +139 -141
- package/dist/functions/ambush.js +9 -12
- package/dist/functions/array.d.ts +13 -13
- package/dist/functions/array.d.ts.map +1 -1
- package/dist/functions/array.js +90 -119
- package/dist/functions/array.lua +58 -53
- package/dist/functions/arrayLua.js +8 -17
- package/dist/functions/benchmark.js +4 -7
- package/dist/functions/bitSet128.d.ts +1 -1
- package/dist/functions/bitSet128.d.ts.map +1 -1
- package/dist/functions/bitSet128.js +19 -26
- package/dist/functions/bitwise.d.ts.map +1 -1
- package/dist/functions/bitwise.js +15 -23
- package/dist/functions/bitwise.lua +2 -2
- package/dist/functions/bombs.js +1 -4
- package/dist/functions/bosses.d.ts +12 -12
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.js +102 -119
- package/dist/functions/bosses.lua +58 -57
- package/dist/functions/cards.js +44 -62
- package/dist/functions/challenges.d.ts.map +1 -1
- package/dist/functions/challenges.js +35 -44
- package/dist/functions/challenges.lua +10 -8
- package/dist/functions/characters.js +68 -87
- package/dist/functions/characters.lua +1 -1
- package/dist/functions/charge.d.ts +11 -11
- package/dist/functions/charge.d.ts.map +1 -1
- package/dist/functions/charge.js +69 -80
- package/dist/functions/charge.lua +9 -9
- package/dist/functions/chargeBar.js +2 -6
- package/dist/functions/collectibleTag.js +9 -13
- package/dist/functions/collectibles.d.ts +5 -5
- package/dist/functions/collectibles.d.ts.map +1 -1
- package/dist/functions/collectibles.js +143 -182
- package/dist/functions/collectibles.lua +1 -1
- package/dist/functions/color.d.ts +1 -1
- package/dist/functions/color.d.ts.map +1 -1
- package/dist/functions/color.js +29 -38
- package/dist/functions/console.js +4 -8
- package/dist/functions/curses.js +6 -10
- package/dist/functions/debugFunctions.js +7 -14
- package/dist/functions/decorators.d.ts.map +1 -1
- package/dist/functions/decorators.js +36 -20
- package/dist/functions/deepCopy.js +173 -175
- package/dist/functions/deepCopy.lua +170 -173
- package/dist/functions/deepCopyTests.js +232 -241
- package/dist/functions/deepCopyTests.lua +217 -217
- package/dist/functions/dimensions.js +10 -14
- package/dist/functions/direction.js +22 -30
- package/dist/functions/doors.d.ts +12 -12
- package/dist/functions/doors.d.ts.map +1 -1
- package/dist/functions/doors.js +135 -184
- package/dist/functions/doors.lua +30 -26
- package/dist/functions/easing.d.ts +58 -58
- package/dist/functions/easing.d.ts.map +1 -1
- package/dist/functions/easing.js +139 -172
- package/dist/functions/easing.lua +93 -93
- package/dist/functions/effects.js +6 -10
- package/dist/functions/emptyRoom.d.ts.map +1 -1
- package/dist/functions/emptyRoom.js +45 -49
- package/dist/functions/emptyRoom.lua +23 -23
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.js +102 -128
- package/dist/functions/entities.lua +30 -30
- package/dist/functions/entitiesSpecific.js +83 -125
- package/dist/functions/entityTypes.js +3 -6
- package/dist/functions/enums.js +27 -41
- package/dist/functions/external.js +4 -8
- package/dist/functions/familiars.js +17 -25
- package/dist/functions/flag.js +11 -20
- package/dist/functions/flag.lua +1 -1
- package/dist/functions/frames.js +31 -51
- package/dist/functions/globals.d.ts.map +1 -1
- package/dist/functions/globals.js +33 -72
- package/dist/functions/globals.lua +5 -1
- package/dist/functions/gridEntities.d.ts +10 -10
- package/dist/functions/gridEntities.d.ts.map +1 -1
- package/dist/functions/gridEntities.js +395 -430
- package/dist/functions/gridEntities.lua +225 -225
- package/dist/functions/gridEntitiesSpecific.d.ts +18 -18
- package/dist/functions/gridEntitiesSpecific.d.ts.map +1 -1
- package/dist/functions/gridEntitiesSpecific.js +114 -154
- package/dist/functions/gridEntitiesSpecific.lua +41 -41
- package/dist/functions/gridIndex.js +8 -11
- package/dist/functions/hash.js +1 -4
- package/dist/functions/hash.lua +1 -1
- package/dist/functions/hex.js +32 -16
- package/dist/functions/input.js +65 -88
- package/dist/functions/isaacAPIClass.d.ts +7 -7
- package/dist/functions/isaacAPIClass.d.ts.map +1 -1
- package/dist/functions/isaacAPIClass.js +38 -63
- package/dist/functions/isaacAPIClass.lua +13 -13
- package/dist/functions/itemPool.js +39 -48
- package/dist/functions/jsonHelpers.d.ts.map +1 -1
- package/dist/functions/jsonHelpers.js +11 -48
- package/dist/functions/jsonHelpers.lua +3 -2
- package/dist/functions/jsonRoom.js +46 -53
- package/dist/functions/jsonRoom.lua +17 -17
- package/dist/functions/kColor.d.ts +1 -1
- package/dist/functions/kColor.d.ts.map +1 -1
- package/dist/functions/kColor.js +30 -39
- package/dist/functions/language.js +3 -6
- package/dist/functions/level.js +20 -26
- package/dist/functions/levelGrid.d.ts.map +1 -1
- package/dist/functions/levelGrid.js +82 -112
- package/dist/functions/levelGrid.lua +1 -3
- package/dist/functions/log.js +6 -12
- package/dist/functions/logEntities.d.ts.map +1 -1
- package/dist/functions/logEntities.js +107 -117
- package/dist/functions/logEntities.lua +41 -41
- package/dist/functions/logMisc.d.ts.map +1 -1
- package/dist/functions/logMisc.js +191 -220
- package/dist/functions/logMisc.lua +13 -5
- package/dist/functions/map.d.ts +1 -1
- package/dist/functions/map.d.ts.map +1 -1
- package/dist/functions/map.js +11 -26
- package/dist/functions/map.lua +1 -7
- package/dist/functions/math.d.ts +1 -1
- package/dist/functions/math.js +17 -32
- package/dist/functions/math.lua +1 -1
- package/dist/functions/merge.js +72 -75
- package/dist/functions/merge.lua +38 -38
- package/dist/functions/mergeTests.js +127 -172
- package/dist/functions/mergeTests.lua +99 -99
- package/dist/functions/minimap.js +34 -46
- package/dist/functions/modFeatures.js +1 -4
- package/dist/functions/newArray.js +5 -8
- package/dist/functions/nextStage.d.ts.map +1 -1
- package/dist/functions/nextStage.js +64 -68
- package/dist/functions/nextStage.lua +3 -3
- package/dist/functions/npcDataStructures.js +9 -20
- package/dist/functions/npcs.js +37 -45
- package/dist/functions/pickupVariants.js +27 -40
- package/dist/functions/pickups.js +43 -59
- package/dist/functions/pickupsSpecific.js +76 -118
- package/dist/functions/pills.js +52 -72
- package/dist/functions/playerCenter.js +13 -16
- package/dist/functions/playerCollectibles.js +59 -79
- package/dist/functions/playerDataStructures.js +18 -29
- package/dist/functions/playerEffects.js +12 -19
- package/dist/functions/playerHealth.d.ts.map +1 -1
- package/dist/functions/playerHealth.js +110 -131
- package/dist/functions/playerHealth.lua +26 -26
- package/dist/functions/playerIndex.d.ts.map +1 -1
- package/dist/functions/playerIndex.js +29 -40
- package/dist/functions/playerIndex.lua +7 -7
- package/dist/functions/playerTrinkets.d.ts +5 -5
- package/dist/functions/playerTrinkets.d.ts.map +1 -1
- package/dist/functions/playerTrinkets.js +39 -51
- package/dist/functions/playerTrinkets.lua +13 -13
- package/dist/functions/players.d.ts.map +1 -1
- package/dist/functions/players.js +93 -131
- package/dist/functions/players.lua +5 -1
- package/dist/functions/pocketItems.js +33 -43
- package/dist/functions/positionVelocity.js +23 -32
- package/dist/functions/pressurePlate.js +7 -10
- package/dist/functions/projectiles.js +11 -15
- package/dist/functions/random.js +8 -13
- package/dist/functions/readOnly.js +3 -8
- package/dist/functions/render.js +7 -12
- package/dist/functions/revive.d.ts.map +1 -1
- package/dist/functions/revive.js +41 -51
- package/dist/functions/revive.lua +3 -6
- package/dist/functions/rng.d.ts +1 -1
- package/dist/functions/rng.d.ts.map +1 -1
- package/dist/functions/rng.js +37 -49
- package/dist/functions/rng.lua +8 -4
- package/dist/functions/rockAlt.js +18 -22
- package/dist/functions/roomData.d.ts.map +1 -1
- package/dist/functions/roomData.js +26 -41
- package/dist/functions/roomData.lua +5 -1
- package/dist/functions/roomGrid.d.ts.map +1 -1
- package/dist/functions/roomGrid.js +25 -33
- package/dist/functions/roomGrid.lua +6 -6
- package/dist/functions/roomShape.js +39 -55
- package/dist/functions/roomShapeWalls.d.ts.map +1 -1
- package/dist/functions/roomShapeWalls.js +80 -84
- package/dist/functions/roomTransition.js +13 -17
- package/dist/functions/rooms.d.ts +6 -6
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.js +187 -250
- package/dist/functions/rooms.lua +6 -6
- package/dist/functions/run.js +29 -39
- package/dist/functions/seeds.js +6 -10
- package/dist/functions/serialization.d.ts.map +1 -1
- package/dist/functions/serialization.js +38 -45
- package/dist/functions/serialization.lua +1 -1
- package/dist/functions/set.d.ts +1 -1
- package/dist/functions/set.d.ts.map +1 -1
- package/dist/functions/set.js +25 -46
- package/dist/functions/set.lua +1 -5
- package/dist/functions/slots.js +18 -22
- package/dist/functions/sort.js +9 -15
- package/dist/functions/sound.js +12 -16
- package/dist/functions/spawnCollectible.js +22 -27
- package/dist/functions/spawnCollectible.lua +1 -1
- package/dist/functions/sprites.js +16 -24
- package/dist/functions/stage.js +122 -164
- package/dist/functions/stats.js +37 -43
- package/dist/functions/storyBosses.js +36 -40
- package/dist/functions/string.d.ts.map +1 -1
- package/dist/functions/string.js +24 -34
- package/dist/functions/table.js +21 -31
- package/dist/functions/tears.js +6 -14
- package/dist/functions/transformations.js +35 -42
- package/dist/functions/trinketGive.js +29 -36
- package/dist/functions/trinkets.d.ts.map +1 -1
- package/dist/functions/trinkets.js +45 -60
- package/dist/functions/tstlClass.js +11 -20
- package/dist/functions/types.d.ts.map +1 -1
- package/dist/functions/types.js +24 -46
- package/dist/functions/ui.d.ts +11 -11
- package/dist/functions/ui.d.ts.map +1 -1
- package/dist/functions/ui.js +50 -65
- package/dist/functions/ui.lua +23 -23
- package/dist/functions/utils.d.ts +11 -11
- package/dist/functions/utils.d.ts.map +1 -1
- package/dist/functions/utils.js +36 -48
- package/dist/functions/utils.lua +11 -11
- package/dist/functions/vector.d.ts +1 -1
- package/dist/functions/vector.d.ts.map +1 -1
- package/dist/functions/vector.js +34 -47
- package/dist/functions/versusScreen.js +12 -18
- package/dist/functions/weighted.js +8 -12
- package/dist/index.js +150 -166
- package/dist/index.rollup.d.ts +538 -527
- package/dist/indexLua.js +151 -167
- package/dist/interfaces/ChargeBarSprites.d.ts +5 -5
- package/dist/interfaces/ChargeBarSprites.d.ts.map +1 -1
- package/dist/interfaces/ChargeBarSprites.js +1 -2
- package/dist/interfaces/Corner.js +1 -2
- package/dist/interfaces/CustomStageTSConfig.d.ts +63 -63
- package/dist/interfaces/CustomStageTSConfig.d.ts.map +1 -1
- package/dist/interfaces/CustomStageTSConfig.js +1 -2
- package/dist/interfaces/GridEntityCustomData.d.ts +6 -6
- package/dist/interfaces/GridEntityCustomData.d.ts.map +1 -1
- package/dist/interfaces/GridEntityCustomData.js +1 -2
- package/dist/interfaces/JSONRoomsFile.d.ts +27 -27
- package/dist/interfaces/JSONRoomsFile.d.ts.map +1 -1
- package/dist/interfaces/JSONRoomsFile.js +1 -2
- package/dist/interfaces/PlayerHealth.d.ts +11 -11
- package/dist/interfaces/PlayerHealth.d.ts.map +1 -1
- package/dist/interfaces/PlayerHealth.js +1 -2
- package/dist/interfaces/PlayerStats.d.ts +13 -13
- package/dist/interfaces/PlayerStats.d.ts.map +1 -1
- package/dist/interfaces/PlayerStats.js +2 -4
- package/dist/interfaces/PocketItemDescription.d.ts +3 -3
- package/dist/interfaces/PocketItemDescription.d.ts.map +1 -1
- package/dist/interfaces/PocketItemDescription.js +1 -2
- package/dist/interfaces/RoomDescription.d.ts +12 -12
- package/dist/interfaces/RoomDescription.d.ts.map +1 -1
- package/dist/interfaces/RoomDescription.js +1 -2
- package/dist/interfaces/SaveData.d.ts.map +1 -1
- package/dist/interfaces/SaveData.js +1 -2
- package/dist/interfaces/StageHistoryEntry.js +1 -2
- package/dist/interfaces/TSTLClassMetatable.d.ts +5 -5
- package/dist/interfaces/TSTLClassMetatable.d.ts.map +1 -1
- package/dist/interfaces/TSTLClassMetatable.js +1 -2
- package/dist/interfaces/TrinketSituation.d.ts +4 -4
- package/dist/interfaces/TrinketSituation.d.ts.map +1 -1
- package/dist/interfaces/TrinketSituation.js +1 -2
- package/dist/interfaces/private/AddCallbackParametersCustom.d.ts +153 -145
- package/dist/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/interfaces/private/AddCallbackParametersCustom.js +2 -4
- package/dist/interfaces/private/CustomStage.d.ts +1 -1
- package/dist/interfaces/private/CustomStage.d.ts.map +1 -1
- package/dist/interfaces/private/CustomStage.js +1 -2
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +4 -4
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -1
- package/dist/interfaces/private/CustomTrapdoorDescription.js +1 -2
- package/dist/interfaces/private/ModUpgradedInterface.d.ts +2 -2
- package/dist/interfaces/private/ModUpgradedInterface.d.ts.map +1 -1
- package/dist/interfaces/private/ModUpgradedInterface.js +1 -2
- package/dist/isaacscript-common.lua +1947 -1838
- package/dist/lib/jsonLua.js +11 -11
- package/dist/lualib_bundle.lua +117 -46
- package/dist/maps/PHDPillConversionsMap.js +19 -22
- package/dist/maps/cardNameToTypeMap.js +205 -208
- package/dist/maps/characterNameToTypeMap.js +85 -88
- package/dist/maps/collectibleNameToTypeMap.js +5 -8
- package/dist/maps/defaultPlayerStatMap.js +10 -13
- package/dist/maps/entityTypeVariantToBossIDMap.js +3 -6
- package/dist/maps/falsePHDPillConversionsMap.js +33 -36
- package/dist/maps/gridEntityTypeToBrokenStateMap.js +15 -18
- package/dist/maps/gridEntityXMLMap.js +52 -55
- package/dist/maps/itemPoolTypeToItemPoolName.js +33 -36
- package/dist/maps/keyboardToStringMap.js +66 -69
- package/dist/maps/pillNameToEffectMap.js +83 -86
- package/dist/maps/roomNameToTypeMap.js +38 -41
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.js +9 -12
- package/dist/maps/transformationNameToPlayerFormMap.js +30 -33
- package/dist/maps/trinketNameToTypeMap.js +5 -8
- package/dist/objects/LRoomShapeToRectangles.js +22 -25
- package/dist/objects/backdropTypeToRockAltType.js +65 -68
- package/dist/objects/batteryNames.js +8 -11
- package/dist/objects/bombNames.js +11 -14
- package/dist/objects/bossIDToEntityTypeVariant.js +116 -119
- package/dist/objects/bossNamePNGFileNames.js +104 -107
- package/dist/objects/bossNames.js +105 -108
- package/dist/objects/bossPortraitPNGFileNames.js +104 -107
- package/dist/objects/cardDescriptions.js +101 -104
- package/dist/objects/cardNames.js +101 -104
- package/dist/objects/challengeBosses.js +49 -52
- package/dist/objects/challengeCharacters.js +49 -52
- package/dist/objects/challengeCollectibleTypes.js +160 -163
- package/dist/objects/challengeNames.js +49 -52
- package/dist/objects/challengeTrinketType.js +48 -51
- package/dist/objects/characterDamageMultipliers.js +44 -47
- package/dist/objects/characterNames.js +44 -47
- package/dist/objects/characterSpritePNGFileNames.js +44 -47
- package/dist/objects/characterStartingCollectibleTypes.js +49 -52
- package/dist/objects/characterStartingTrinketTypes.js +44 -47
- package/dist/objects/chestNames.js +15 -18
- package/dist/objects/coinNames.js +11 -14
- package/dist/objects/coinSubTypeToValue.js +11 -14
- package/dist/objects/collectibleDescriptions.js +725 -728
- package/dist/objects/collectibleNames.js +725 -728
- package/dist/objects/colors.js +1 -4
- package/dist/objects/directionNames.js +7 -10
- package/dist/objects/directionToDegrees.js +7 -10
- package/dist/objects/directionToMoveAction.js +7 -10
- package/dist/objects/directionToShootAction.js +7 -10
- package/dist/objects/directionToVector.js +9 -12
- package/dist/objects/doorSlotFlagToDoorSlot.js +11 -14
- package/dist/objects/doorSlotToDirection.js +11 -14
- package/dist/objects/doorSlotToDoorSlotFlag.js +11 -14
- package/dist/objects/gridEntityTypeToANM2Name.js +30 -33
- package/dist/objects/heartNames.js +16 -19
- package/dist/objects/isaacAPIClassTypeToBrand.js +8 -11
- package/dist/objects/isaacAPIClassTypeToFunctions.d.ts +15 -15
- package/dist/objects/isaacAPIClassTypeToFunctions.d.ts.map +1 -1
- package/dist/objects/isaacAPIClassTypeToFunctions.js +37 -40
- package/dist/objects/itemPoolTypeToCollectibleTypesSet.js +9 -45
- package/dist/objects/kColors.js +1 -4
- package/dist/objects/keyNames.js +8 -11
- package/dist/objects/languageNames.js +9 -12
- package/dist/objects/oppositeDoorSlots.js +11 -14
- package/dist/objects/pillEffectClasses.js +53 -56
- package/dist/objects/pillEffectNames.js +53 -56
- package/dist/objects/pillEffectTypeToPillEffects.js +11 -14
- package/dist/objects/pillEffectTypes.js +53 -56
- package/dist/objects/playerNamePNGFileNames.js +44 -47
- package/dist/objects/playerPortraitPNGFileNames.js +44 -47
- package/dist/objects/roomShapeBounds.js +23 -26
- package/dist/objects/roomShapeCorners.js +128 -131
- package/dist/objects/roomShapeLayoutSizes.js +23 -26
- package/dist/objects/roomShapeToBottomRightPosition.js +17 -20
- package/dist/objects/roomShapeToDoorSlotCoordinates.js +78 -81
- package/dist/objects/roomShapeToDoorSlots.js +48 -51
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js +82 -85
- package/dist/objects/roomShapeToGridWidth.js +14 -17
- package/dist/objects/roomShapeToTopLeftPosition.js +18 -21
- package/dist/objects/roomShapeVolumes.js +21 -24
- package/dist/objects/roomTypeNames.js +32 -35
- package/dist/objects/roomTypeSpecialGotoPrefixes.js +32 -35
- package/dist/objects/sackNames.js +6 -9
- package/dist/objects/slotNames.js +21 -24
- package/dist/objects/stageIDNames.js +33 -36
- package/dist/objects/stageToMusic.js +69 -72
- package/dist/objects/stageToStageID.js +90 -93
- package/dist/objects/stageTypeSuffixes.js +8 -11
- package/dist/objects/transformationNames.js +16 -19
- package/dist/objects/trinketDescriptions.js +192 -195
- package/dist/objects/trinketNames.js +192 -195
- package/dist/objects/versusScreenBackgroundColors.js +39 -42
- package/dist/objects/versusScreenDirtSpotColors.js +39 -42
- package/dist/patchErrorFunctions.d.ts.map +1 -1
- package/dist/patchErrorFunctions.js +7 -7
- package/dist/serialization.js +6 -9
- package/dist/sets/LRoomShapesSet.js +7 -10
- package/dist/sets/bigRoomShapesSet.js +10 -13
- package/dist/sets/bossSets.js +261 -264
- package/dist/sets/charactersThatStartWithAnActiveItemSet.js +14 -17
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.js +5 -8
- package/dist/sets/charactersWithFreeDevilDealsSet.js +3 -6
- package/dist/sets/charactersWithNoRedHeartsSet.js +11 -14
- package/dist/sets/charactersWithNoSoulHeartsSet.js +8 -11
- package/dist/sets/consoleCommandsSet.js +2 -5
- package/dist/sets/entitiesWithArmorSet.d.ts.map +1 -1
- package/dist/sets/entitiesWithArmorSet.js +44 -47
- package/dist/sets/entitiesWithArmorSet.lua +2 -1
- package/dist/sets/familiarsThatShootPlayerTearsSet.js +11 -14
- package/dist/sets/itemConfigCardTypesForCards.js +7 -10
- package/dist/sets/lostStyleCharactersSet.js +8 -11
- package/dist/sets/mineShaftRoomSubTypesSet.js +8 -11
- package/dist/sets/narrowRoomShapesSet.js +7 -10
- package/dist/sets/poopGridEntityXMLTypesSet.js +12 -15
- package/dist/sets/redHeartSubTypesSet.js +6 -9
- package/dist/sets/repentanceBossIDsSet.js +26 -29
- package/dist/sets/sinEntityTypesSet.js +10 -13
- package/dist/sets/singleUseActiveCollectibleTypesSet.js +11 -14
- package/dist/shaderCrashFix.js +4 -7
- package/dist/shouldFire.d.ts +1 -1
- package/dist/shouldFire.d.ts.map +1 -1
- package/dist/shouldFire.js +34 -71
- package/dist/shouldFire.lua +5 -5
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/AddSubtract.js +1 -2
- package/dist/types/AllButFirst.d.ts +1 -1
- package/dist/types/AllButFirst.d.ts.map +1 -1
- package/dist/types/AllButFirst.js +1 -2
- package/dist/types/AllButLast.d.ts +4 -1
- package/dist/types/AllButLast.d.ts.map +1 -1
- package/dist/types/AllButLast.js +1 -2
- package/dist/types/AnyClass.js +1 -2
- package/dist/types/AnyEntity.js +1 -2
- package/dist/types/AnyFunction.js +1 -2
- package/dist/types/AnyGridEntity.js +1 -2
- package/dist/types/CompositionTypeSatisfiesEnum.js +1 -2
- package/dist/types/ConversionHeartSubType.js +1 -2
- package/dist/types/Decrement.js +1 -2
- package/dist/types/ERange.js +1 -2
- package/dist/types/EntityID.js +1 -2
- package/dist/types/FunctionTuple.js +1 -2
- package/dist/types/GridEntityID.js +1 -2
- package/dist/types/HasFunction.js +1 -2
- package/dist/types/IRange.js +1 -2
- package/dist/types/Immutable.d.ts.map +1 -1
- package/dist/types/Immutable.js +1 -2
- package/dist/types/Increment.js +1 -2
- package/dist/types/LowercaseKeys.js +1 -2
- package/dist/types/NaturalNumbersLessThan.js +1 -2
- package/dist/types/NaturalNumbersLessThanOrEqualTo.js +1 -2
- package/dist/types/ObjectValues.js +1 -2
- package/dist/types/PickingUpItem.d.ts.map +1 -1
- package/dist/types/PickingUpItem.js +16 -27
- package/dist/types/PickupIndex.js +1 -2
- package/dist/types/PlayerIndex.js +1 -2
- package/dist/types/PossibleStatType.d.ts.map +1 -1
- package/dist/types/PossibleStatType.js +1 -2
- package/dist/types/PublicInterface.js +1 -2
- package/dist/types/ReadonlyMap.js +1 -4
- package/dist/types/ReadonlyRecord.js +1 -2
- package/dist/types/ReadonlySet.js +1 -4
- package/dist/types/StartsWithLowercase.js +1 -2
- package/dist/types/StartsWithUppercase.js +1 -2
- package/dist/types/TSTLClass.js +1 -2
- package/dist/types/Tuple.js +1 -2
- package/dist/types/TupleKeys.js +1 -2
- package/dist/types/TupleToIntersection.js +1 -2
- package/dist/types/TupleToUnion.js +1 -2
- package/dist/types/TupleWithLengthBetween.js +1 -2
- package/dist/types/TupleWithMaxLength.js +1 -2
- package/dist/types/UnionToIntersection.js +1 -2
- package/dist/types/UppercaseKeys.js +1 -2
- package/dist/types/WeightedArray.js +1 -2
- package/dist/types/WidenLiteral.js +1 -2
- package/dist/types/Writable.js +1 -2
- package/dist/types/private/CallbackTuple.js +1 -2
- package/dist/types/private/ModUpgradedWithFeatures.js +1 -2
- package/package.json +6 -7
- package/src/classes/DefaultMap.ts +1 -2
- package/src/classes/ModFeature.ts +2 -4
- package/src/classes/ModUpgraded.ts +149 -150
- package/src/classes/callbacks/EntityTakeDmgFilter.ts +11 -11
- package/src/classes/callbacks/EntityTakeDmgPlayer.ts +15 -15
- package/src/classes/callbacks/InputActionFilter.ts +14 -14
- package/src/classes/callbacks/InputActionPlayer.ts +23 -23
- package/src/classes/callbacks/PostAmbushFinished.ts +13 -13
- package/src/classes/callbacks/PostAmbushStarted.ts +13 -13
- package/src/classes/callbacks/PostBombExploded.ts +9 -9
- package/src/classes/callbacks/PostBombInitFilter.ts +7 -7
- package/src/classes/callbacks/PostBombInitLate.ts +11 -11
- package/src/classes/callbacks/PostBombRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostBombUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostBoneSwing.ts +9 -9
- package/src/classes/callbacks/PostCollectibleEmpty.ts +27 -27
- package/src/classes/callbacks/PostCursedTeleport.ts +47 -49
- package/src/classes/callbacks/PostCustomRevive.ts +6 -6
- package/src/classes/callbacks/PostDiceRoomActivated.ts +31 -29
- package/src/classes/callbacks/PostDoorRender.ts +9 -9
- package/src/classes/callbacks/PostDoorUpdate.ts +9 -9
- package/src/classes/callbacks/PostEffectInitFilter.ts +7 -7
- package/src/classes/callbacks/PostEffectInitLate.ts +11 -11
- package/src/classes/callbacks/PostEffectRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostEffectStateChanged.ts +13 -13
- package/src/classes/callbacks/PostEffectUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostEntityKillFilter.ts +7 -7
- package/src/classes/callbacks/PostEntityRemoveFilter.ts +7 -7
- package/src/classes/callbacks/PostFamiliarInitFilter.ts +7 -7
- package/src/classes/callbacks/PostFamiliarInitLate.ts +11 -11
- package/src/classes/callbacks/PostFamiliarRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +13 -13
- package/src/classes/callbacks/PostFamiliarUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostGameEndFilter.ts +7 -7
- package/src/classes/callbacks/PostGameStartedReordered.ts +1 -2
- package/src/classes/callbacks/PostGameStartedReorderedLast.ts +1 -2
- package/src/classes/callbacks/PostGreedModeWave.ts +11 -11
- package/src/classes/callbacks/PostGridEntityBroken.ts +1 -2
- package/src/classes/callbacks/PostGridEntityCollision.ts +6 -6
- package/src/classes/callbacks/PostGridEntityCustomBroken.ts +1 -2
- package/src/classes/callbacks/PostGridEntityCustomCollision.ts +6 -6
- package/src/classes/callbacks/PostGridEntityCustomInit.ts +1 -2
- package/src/classes/callbacks/PostGridEntityCustomRemove.ts +6 -6
- package/src/classes/callbacks/PostGridEntityCustomRender.ts +1 -2
- package/src/classes/callbacks/PostGridEntityCustomStateChanged.ts +1 -2
- package/src/classes/callbacks/PostGridEntityCustomUpdate.ts +1 -2
- package/src/classes/callbacks/PostGridEntityInit.ts +1 -2
- package/src/classes/callbacks/PostGridEntityRemove.ts +6 -6
- package/src/classes/callbacks/PostGridEntityRender.ts +1 -2
- package/src/classes/callbacks/PostGridEntityStateChanged.ts +1 -2
- package/src/classes/callbacks/PostGridEntityUpdate.ts +1 -2
- package/src/classes/callbacks/PostHolyMantleRemoved.ts +15 -15
- package/src/classes/callbacks/PostItemDischarge.ts +63 -63
- package/src/classes/callbacks/PostItemPickup.ts +1 -2
- package/src/classes/callbacks/PostKeyboardChanged.ts +28 -26
- package/src/classes/callbacks/PostKnifeInitFilter.ts +7 -7
- package/src/classes/callbacks/PostKnifeInitLate.ts +11 -11
- package/src/classes/callbacks/PostKnifeRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostKnifeUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostLaserInitFilter.ts +7 -7
- package/src/classes/callbacks/PostLaserInitLate.ts +11 -11
- package/src/classes/callbacks/PostLaserRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostLaserUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostNPCDeathFilter.ts +7 -7
- package/src/classes/callbacks/PostNPCInitFilter.ts +7 -7
- package/src/classes/callbacks/PostNPCInitLate.ts +11 -11
- package/src/classes/callbacks/PostNPCRenderFilter.ts +7 -7
- package/src/classes/callbacks/PostNPCStateChanged.ts +13 -13
- package/src/classes/callbacks/PostNPCUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostNewLevelReordered.ts +1 -2
- package/src/classes/callbacks/PostNewRoomEarly.ts +22 -20
- package/src/classes/callbacks/PostNewRoomReordered.ts +1 -2
- package/src/classes/callbacks/PostPEffectUpdateReordered.ts +1 -2
- package/src/classes/callbacks/PostPickupChanged.ts +1 -2
- package/src/classes/callbacks/PostPickupCollect.ts +13 -13
- package/src/classes/callbacks/PostPickupInitFilter.ts +7 -7
- package/src/classes/callbacks/PostPickupInitFirst.ts +13 -13
- package/src/classes/callbacks/PostPickupInitLate.ts +11 -11
- package/src/classes/callbacks/PostPickupRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostPickupSelectionFilter.ts +14 -14
- package/src/classes/callbacks/PostPickupStateChanged.ts +13 -13
- package/src/classes/callbacks/PostPickupUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostPitRender.ts +9 -9
- package/src/classes/callbacks/PostPitUpdate.ts +9 -9
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +15 -15
- package/src/classes/callbacks/PostPlayerChangeStat.ts +15 -15
- package/src/classes/callbacks/PostPlayerChangeType.ts +15 -15
- package/src/classes/callbacks/PostPlayerCollectibleAdded.ts +1 -2
- package/src/classes/callbacks/PostPlayerCollectibleRemoved.ts +1 -2
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +17 -17
- package/src/classes/callbacks/PostPlayerInitFirst.ts +11 -11
- package/src/classes/callbacks/PostPlayerInitLate.ts +12 -10
- package/src/classes/callbacks/PostPlayerRenderReordered.ts +1 -2
- package/src/classes/callbacks/PostPlayerUpdateReordered.ts +1 -2
- package/src/classes/callbacks/PostPoopRender.ts +9 -9
- package/src/classes/callbacks/PostPoopUpdate.ts +9 -9
- package/src/classes/callbacks/PostPressurePlateRender.ts +9 -9
- package/src/classes/callbacks/PostPressurePlateUpdate.ts +9 -9
- package/src/classes/callbacks/PostProjectileInitFilter.ts +7 -7
- package/src/classes/callbacks/PostProjectileInitLate.ts +13 -13
- package/src/classes/callbacks/PostProjectileKill.ts +19 -19
- package/src/classes/callbacks/PostProjectileRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostProjectileUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostPurchase.ts +39 -39
- package/src/classes/callbacks/PostRockRender.ts +9 -9
- package/src/classes/callbacks/PostRockUpdate.ts +9 -9
- package/src/classes/callbacks/PostRoomClearChanged.ts +25 -25
- package/src/classes/callbacks/PostSacrifice.ts +13 -13
- package/src/classes/callbacks/PostSlotAnimationChanged.ts +1 -2
- package/src/classes/callbacks/PostSlotCollision.ts +11 -11
- package/src/classes/callbacks/PostSlotDestroyed.ts +1 -2
- package/src/classes/callbacks/PostSlotInit.ts +1 -2
- package/src/classes/callbacks/PostSlotRender.ts +1 -2
- package/src/classes/callbacks/PostSlotUpdate.ts +1 -2
- package/src/classes/callbacks/PostSpikesRender.ts +9 -9
- package/src/classes/callbacks/PostSpikesUpdate.ts +9 -9
- package/src/classes/callbacks/PostTNTRender.ts +9 -9
- package/src/classes/callbacks/PostTNTUpdate.ts +9 -9
- package/src/classes/callbacks/PostTearInitFilter.ts +7 -7
- package/src/classes/callbacks/PostTearInitLate.ts +11 -11
- package/src/classes/callbacks/PostTearInitVeryLate.ts +13 -13
- package/src/classes/callbacks/PostTearKill.ts +19 -19
- package/src/classes/callbacks/PostTearRenderFilter.ts +10 -10
- package/src/classes/callbacks/PostTearUpdateFilter.ts +7 -7
- package/src/classes/callbacks/PostTransformation.ts +25 -25
- package/src/classes/callbacks/PostTrinketBreak.ts +16 -16
- package/src/classes/callbacks/PostUsePillFilter.ts +15 -15
- package/src/classes/callbacks/PreBerserkDeath.ts +15 -15
- package/src/classes/callbacks/PreBombCollisionFilter.ts +9 -9
- package/src/classes/callbacks/PreCustomRevive.ts +1 -2
- package/src/classes/callbacks/PreEntitySpawnFilter.ts +23 -23
- package/src/classes/callbacks/PreFamiliarCollisionFilter.ts +9 -9
- package/src/classes/callbacks/PreGetPedestal.ts +15 -15
- package/src/classes/callbacks/PreItemPickup.ts +1 -2
- package/src/classes/callbacks/PreKnifeCollisionFilter.ts +9 -9
- package/src/classes/callbacks/PreNPCCollisionFilter.ts +9 -9
- package/src/classes/callbacks/PreNPCUpdateFilter.ts +4 -5
- package/src/classes/callbacks/PreNewLevel.ts +13 -13
- package/src/classes/callbacks/PreProjectileCollisionFilter.ts +9 -9
- package/src/classes/callbacks/PreRoomEntitySpawnFilter.ts +23 -23
- package/src/classes/callbacks/PreTearCollisionFilter.ts +9 -9
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +29 -26
- package/src/classes/features/callbackLogic/CustomRevive.ts +51 -51
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +21 -21
- package/src/classes/features/callbackLogic/FlipDetection.ts +14 -14
- package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +48 -48
- package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +19 -19
- package/src/classes/features/callbackLogic/GridEntityRenderDetection.ts +14 -14
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +33 -33
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +16 -16
- package/src/classes/features/callbackLogic/PickupChangeDetection.ts +19 -19
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +88 -88
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +41 -38
- package/src/classes/features/callbackLogic/SlotDestroyedDetection.ts +38 -36
- package/src/classes/features/callbackLogic/SlotRenderDetection.ts +10 -10
- package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +17 -17
- package/src/classes/features/other/CharacterHealthConversion.ts +23 -23
- package/src/classes/features/other/CharacterStats.ts +10 -10
- package/src/classes/features/other/CollectibleItemPoolType.ts +15 -15
- package/src/classes/features/other/CustomHotkeys.ts +10 -10
- package/src/classes/features/other/CustomItemPools.ts +6 -6
- package/src/classes/features/other/CustomPickups.ts +23 -19
- package/src/classes/features/other/CustomStages.ts +106 -102
- package/src/classes/features/other/CustomTrapdoors.ts +48 -46
- package/src/classes/features/other/DebugDisplay.ts +20 -23
- package/src/classes/features/other/DeployJSONRoom.ts +3 -0
- package/src/classes/features/other/DisableAllSound.ts +11 -11
- package/src/classes/features/other/DisableInputs.ts +21 -21
- package/src/classes/features/other/EdenStartingStatsHealth.ts +34 -34
- package/src/classes/features/other/ExtraConsoleCommands.ts +74 -73
- package/src/classes/features/other/FadeInRemover.ts +7 -7
- package/src/classes/features/other/FastReset.ts +9 -9
- package/src/classes/features/other/ForgottenSwitch.ts +2 -2
- package/src/classes/features/other/ItemPoolDetection.ts +12 -7
- package/src/classes/features/other/ModdedElementDetection.ts +5 -5
- package/src/classes/features/other/NoSirenSteal.ts +6 -6
- package/src/classes/features/other/Pause.ts +45 -45
- package/src/classes/features/other/PersistentEntities.ts +57 -54
- package/src/classes/features/other/PickupIndexCreation.ts +17 -18
- package/src/classes/features/other/PlayerCollectibleTracking.ts +19 -19
- package/src/classes/features/other/PonyDetection.ts +15 -15
- package/src/classes/features/other/PressInput.ts +21 -18
- package/src/classes/features/other/PreventChildEntities.ts +13 -13
- package/src/classes/features/other/PreventGridEntityRespawn.ts +25 -25
- package/src/classes/features/other/RerunDetection.ts +16 -16
- package/src/classes/features/other/RoomClearFrame.ts +13 -13
- package/src/classes/features/other/RoomHistory.ts +12 -12
- package/src/classes/features/other/RunInNFrames.ts +34 -34
- package/src/classes/features/other/RunNextRoom.ts +9 -9
- package/src/classes/features/other/RunNextRun.ts +10 -10
- package/src/classes/features/other/SaveDataManager.ts +51 -50
- package/src/classes/features/other/StageHistory.ts +17 -14
- package/src/classes/features/other/TaintedLazarusPlayers.ts +17 -15
- package/src/classes/features/other/UnlockAchievementsDetection.ts +11 -11
- package/src/classes/features/other/customStages/backdrop.ts +3 -2
- package/src/classes/features/other/customStages/gridEntities.ts +1 -0
- package/src/classes/features/other/customStages/versusScreen.ts +15 -5
- package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +8 -8
- package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +6 -6
- package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +6 -6
- package/src/classes/features/other/extraConsoleCommands/commands.ts +44 -54
- package/src/classes/private/CustomCallback.ts +40 -40
- package/src/core/cachedClasses.ts +2 -0
- package/src/core/constants.ts +2 -4
- package/src/decorators.ts +3 -5
- package/src/features.ts +59 -57
- package/src/functions/array.ts +58 -55
- package/src/functions/arrayLua.ts +1 -1
- package/src/functions/bitSet128.ts +1 -1
- package/src/functions/bitwise.ts +1 -0
- package/src/functions/bosses.ts +55 -55
- package/src/functions/challenges.ts +16 -12
- package/src/functions/characters.ts +1 -1
- package/src/functions/charge.ts +38 -38
- package/src/functions/collectibles.ts +14 -16
- package/src/functions/color.ts +1 -1
- package/src/functions/decorators.ts +4 -6
- package/src/functions/deepCopy.ts +207 -210
- package/src/functions/deepCopyTests.ts +307 -314
- package/src/functions/doors.ts +57 -55
- package/src/functions/easing.ts +150 -145
- package/src/functions/emptyRoom.ts +28 -28
- package/src/functions/entities.ts +30 -40
- package/src/functions/flag.ts +1 -1
- package/src/functions/globals.ts +10 -8
- package/src/functions/gridEntities.ts +372 -369
- package/src/functions/gridEntitiesSpecific.ts +54 -54
- package/src/functions/hex.ts +25 -5
- package/src/functions/isaacAPIClass.ts +19 -20
- package/src/functions/jsonHelpers.ts +8 -8
- package/src/functions/jsonRoom.ts +18 -18
- package/src/functions/kColor.ts +1 -1
- package/src/functions/levelGrid.ts +3 -8
- package/src/functions/logEntities.ts +87 -87
- package/src/functions/logMisc.ts +15 -11
- package/src/functions/map.ts +2 -8
- package/src/functions/math.ts +1 -1
- package/src/functions/merge.ts +53 -53
- package/src/functions/mergeTests.ts +152 -176
- package/src/functions/nextStage.ts +4 -3
- package/src/functions/pickupVariants.ts +1 -1
- package/src/functions/playerHealth.ts +28 -26
- package/src/functions/playerIndex.ts +15 -15
- package/src/functions/playerTrinkets.ts +17 -17
- package/src/functions/players.ts +7 -5
- package/src/functions/revive.ts +5 -8
- package/src/functions/rng.ts +8 -6
- package/src/functions/roomData.ts +5 -17
- package/src/functions/roomGrid.ts +24 -24
- package/src/functions/roomShapeWalls.ts +29 -29
- package/src/functions/rooms.ts +9 -9
- package/src/functions/serialization.ts +18 -18
- package/src/functions/set.ts +2 -8
- package/src/functions/spawnCollectible.ts +2 -2
- package/src/functions/string.ts +5 -1
- package/src/functions/trinkets.ts +1 -2
- package/src/functions/types.ts +2 -0
- package/src/functions/ui.ts +31 -31
- package/src/functions/utils.ts +18 -18
- package/src/functions/vector.ts +2 -2
- package/src/interfaces/ChargeBarSprites.ts +6 -5
- package/src/interfaces/CustomStageTSConfig.ts +63 -63
- package/src/interfaces/GridEntityCustomData.ts +6 -6
- package/src/interfaces/JSONRoomsFile.ts +27 -27
- package/src/interfaces/PlayerHealth.ts +11 -11
- package/src/interfaces/PlayerStats.ts +13 -13
- package/src/interfaces/PocketItemDescription.ts +3 -3
- package/src/interfaces/RoomDescription.ts +12 -12
- package/src/interfaces/SaveData.ts +1 -0
- package/src/interfaces/TSTLClassMetatable.ts +5 -5
- package/src/interfaces/TrinketSituation.ts +4 -4
- package/src/interfaces/private/AddCallbackParametersCustom.ts +156 -148
- package/src/interfaces/private/CustomStage.ts +4 -1
- package/src/interfaces/private/CustomTrapdoorDescription.ts +5 -4
- package/src/interfaces/private/ModUpgradedInterface.ts +3 -2
- package/src/lib/jsonLua.js +11 -11
- package/src/objects/isaacAPIClassTypeToFunctions.ts +15 -15
- package/src/patchErrorFunctions.ts +3 -0
- package/src/sets/entitiesWithArmorSet.ts +2 -1
- package/src/shouldFire.ts +13 -20
- package/src/types/AllButFirst.ts +1 -1
- package/src/types/AllButLast.ts +4 -1
- package/src/types/CompositionTypeSatisfiesEnum.ts +6 -6
- package/src/types/Immutable.ts +1 -6
- package/src/types/PickingUpItem.ts +3 -3
- package/src/types/PossibleStatType.ts +1 -5
|
@@ -1,200 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// cspell:ignore addcharges
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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 =
|
|
212
|
-
if (activeSlot === undefined || !
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
238
|
-
|
|
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 =
|
|
96
|
+
export function bedroom() {
|
|
97
|
+
const cleanBedroomGridIndexes = getRoomGridIndexesForType(RoomType.CLEAN_BEDROOM);
|
|
244
98
|
if (cleanBedroomGridIndexes.length > 0) {
|
|
245
|
-
|
|
99
|
+
warpToRoomType(RoomType.CLEAN_BEDROOM);
|
|
246
100
|
return;
|
|
247
101
|
}
|
|
248
|
-
const dirtyBedroomGridIndexes =
|
|
102
|
+
const dirtyBedroomGridIndexes = getRoomGridIndexesForType(RoomType.DIRTY_BEDROOM);
|
|
249
103
|
if (dirtyBedroomGridIndexes.length > 0) {
|
|
250
|
-
|
|
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
|
-
|
|
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
|
-
|
|
117
|
+
export function blackMarket() {
|
|
118
|
+
changeRoom(GridRoom.BLACK_MARKET);
|
|
265
119
|
}
|
|
266
120
|
/** Toggles permanent Curse of the Blind. */
|
|
267
|
-
function blind() {
|
|
268
|
-
|
|
269
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
345
|
-
const roomGridIndexes =
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
235
|
+
const num = parseIntSafe(params);
|
|
383
236
|
if (num === undefined) {
|
|
384
|
-
const match =
|
|
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 (!
|
|
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 =
|
|
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 =
|
|
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 >
|
|
260
|
+
if (cardType > LAST_VANILLA_CARD_TYPE) {
|
|
408
261
|
return;
|
|
409
262
|
}
|
|
410
|
-
const worldPosition =
|
|
411
|
-
|
|
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
|
-
|
|
426
|
-
|
|
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 =
|
|
295
|
+
const num = parseIntSafe(params);
|
|
443
296
|
if (num === undefined) {
|
|
444
|
-
const match =
|
|
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 (!
|
|
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 =
|
|
459
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
362
|
+
export function crawlSpace() {
|
|
363
|
+
spawnTrapdoorOrCrawlSpace(false);
|
|
511
364
|
}
|
|
512
365
|
/** Toggles permanent Curse of the Cursed. */
|
|
513
|
-
function cursed() {
|
|
514
|
-
|
|
515
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
530
|
-
|
|
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
|
-
|
|
397
|
+
v.persistent.damageAmount = num;
|
|
545
398
|
}
|
|
546
|
-
|
|
399
|
+
v.persistent.damage = !v.persistent.damage;
|
|
547
400
|
const player = Isaac.GetPlayer();
|
|
548
|
-
player.AddCacheFlags(
|
|
401
|
+
player.AddCacheFlags(CacheFlag.DAMAGE);
|
|
549
402
|
player.EvaluateItems();
|
|
550
|
-
|
|
403
|
+
printEnabled(v.persistent.damage, "set damage");
|
|
551
404
|
}
|
|
552
405
|
/** Toggles permanent Curse of Darkness. */
|
|
553
|
-
function darkness() {
|
|
554
|
-
|
|
555
|
-
|
|
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
|
-
|
|
418
|
+
export function devilRoom() {
|
|
419
|
+
devilAngel(true);
|
|
567
420
|
}
|
|
568
421
|
/** Warps to the first Dirty Bedroom on the floor. */
|
|
569
|
-
function dirtyBedroom() {
|
|
570
|
-
|
|
422
|
+
export function dirtyBedroom() {
|
|
423
|
+
warpToRoomType(RoomType.DIRTY_BEDROOM);
|
|
571
424
|
}
|
|
572
425
|
/** Toggles whether curses can appear. */
|
|
573
|
-
function disableCurses() {
|
|
574
|
-
|
|
575
|
-
|
|
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
|
-
|
|
580
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
471
|
+
v.persistent.flight = true;
|
|
619
472
|
}
|
|
620
473
|
else if (params === "false") {
|
|
621
|
-
|
|
474
|
+
v.persistent.flight = false;
|
|
622
475
|
}
|
|
623
|
-
player.AddCacheFlags(
|
|
476
|
+
player.AddCacheFlags(CacheFlag.FLYING);
|
|
624
477
|
player.EvaluateItems();
|
|
625
|
-
const collectibleUsedToShowFlight =
|
|
626
|
-
if (
|
|
627
|
-
|
|
478
|
+
const collectibleUsedToShowFlight = CollectibleType.FATE;
|
|
479
|
+
if (v.persistent.flight) {
|
|
480
|
+
addCollectibleCostume(player, collectibleUsedToShowFlight);
|
|
628
481
|
}
|
|
629
482
|
else {
|
|
630
|
-
|
|
483
|
+
removeCollectibleCostume(player, collectibleUsedToShowFlight);
|
|
631
484
|
}
|
|
632
|
-
|
|
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 =
|
|
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 =
|
|
504
|
+
export function getCharge(params) {
|
|
505
|
+
let activeSlot = ActiveSlot.PRIMARY;
|
|
653
506
|
if (params !== "") {
|
|
654
|
-
const num =
|
|
655
|
-
if (num === undefined || !
|
|
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 =
|
|
663
|
-
print(`Total charge for ActiveSlot.${
|
|
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
|
|
668
|
-
const playerName =
|
|
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
|
-
|
|
675
|
-
|
|
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 =
|
|
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
|
-
|
|
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(
|
|
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 =
|
|
614
|
+
const gridEntityType = GRID_ENTITY_TYPE_VALUES[gridEntityTypeIndex];
|
|
762
615
|
if (gridEntityType === undefined) {
|
|
763
616
|
return;
|
|
764
617
|
}
|
|
765
|
-
const worldPosition =
|
|
766
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
831
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
725
|
+
export function listGridAll(params) {
|
|
726
|
+
listGridEntities(params, true);
|
|
874
727
|
}
|
|
875
728
|
/** Toggles permanent Curse of the Lost. */
|
|
876
|
-
function lost() {
|
|
877
|
-
|
|
878
|
-
|
|
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 =
|
|
895
|
-
const displayFlags =
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
for (const roomGridIndex of
|
|
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
|
-
|
|
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
|
-
|
|
915
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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 =
|
|
809
|
+
const num = parseIntSafe(params);
|
|
957
810
|
if (num === undefined) {
|
|
958
|
-
const match =
|
|
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 (!
|
|
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 =
|
|
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(
|
|
977
|
-
const horsePillColor =
|
|
978
|
-
player.SetPill(
|
|
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 =
|
|
845
|
+
pillColor = FIRST_PILL_COLOR;
|
|
993
846
|
for (let x = 0; x <= 12; x++) {
|
|
994
|
-
if (pillColor >=
|
|
847
|
+
if (pillColor >= PillColor.GOLD) {
|
|
995
848
|
break;
|
|
996
849
|
}
|
|
997
|
-
const worldPosition =
|
|
998
|
-
|
|
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 =
|
|
855
|
+
pillColor = FIRST_HORSE_PILL_COLOR;
|
|
1003
856
|
for (let x = 0; x <= 12; x++) {
|
|
1004
|
-
if (pillColor >=
|
|
857
|
+
if (pillColor >= PillColor.HORSE_GOLD) {
|
|
1005
858
|
break;
|
|
1006
859
|
}
|
|
1007
|
-
const worldPosition =
|
|
1008
|
-
|
|
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 =
|
|
1013
|
-
|
|
1014
|
-
const worldPosition2 =
|
|
1015
|
-
|
|
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
|
-
|
|
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 =
|
|
884
|
+
const collectibleType = parseIntSafe(params);
|
|
1032
885
|
if (collectibleType === undefined
|
|
1033
|
-
|| !
|
|
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,
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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
|
-
(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1101
|
-
|
|
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 =
|
|
1132
|
-
if (stage === undefined || !
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
1185
|
-
if (activeSlot === undefined || !
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
1276
|
-
if (soundEffect === undefined || !
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1293
|
-
|
|
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 =
|
|
1166
|
+
const num = parseIntSafe(params);
|
|
1314
1167
|
let collectibleType;
|
|
1315
1168
|
if (num === undefined) {
|
|
1316
|
-
const match =
|
|
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 (!
|
|
1177
|
+
if (!isValidCollectibleType(num)) {
|
|
1325
1178
|
print(`Invalid collectible type: ${num}`);
|
|
1326
1179
|
}
|
|
1327
1180
|
collectibleType = num;
|
|
1328
1181
|
}
|
|
1329
|
-
const roomClass =
|
|
1182
|
+
const roomClass = game.GetRoom();
|
|
1330
1183
|
const centerPos = roomClass.GetCenterPos();
|
|
1331
|
-
(
|
|
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 =
|
|
1213
|
+
const collectibleType = parseIntSafe(collectibleTypeString);
|
|
1361
1214
|
if (collectibleType === undefined
|
|
1362
|
-
|| !
|
|
1215
|
+
|| !isValidCollectibleType(collectibleType)) {
|
|
1363
1216
|
print(`Invalid collectible type: ${args[0]}`);
|
|
1364
1217
|
return;
|
|
1365
1218
|
}
|
|
1366
|
-
const gridIndex =
|
|
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
|
-
(
|
|
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 =
|
|
1264
|
+
const num = parseIntSafe(params);
|
|
1412
1265
|
let trinketType;
|
|
1413
1266
|
if (num === undefined) {
|
|
1414
|
-
const match =
|
|
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 (!
|
|
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 =
|
|
1281
|
+
const roomClass = game.GetRoom();
|
|
1429
1282
|
const centerPos = roomClass.GetCenterPos();
|
|
1430
|
-
const goldenTrinketType =
|
|
1283
|
+
const goldenTrinketType = getGoldenTrinketType(trinketType);
|
|
1431
1284
|
const trinketTypeToSpawn = golden ? goldenTrinketType : trinketType;
|
|
1432
|
-
(
|
|
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 =
|
|
1462
|
-
if (trinketType === undefined || !
|
|
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 =
|
|
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 =
|
|
1324
|
+
const goldenTrinketType = getGoldenTrinketType(trinketType);
|
|
1472
1325
|
const trinketTypeToSpawn = golden ? goldenTrinketType : trinketType;
|
|
1473
|
-
(
|
|
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
|
-
|
|
1341
|
+
v.persistent.damageAmount = num;
|
|
1489
1342
|
}
|
|
1490
|
-
|
|
1491
|
-
player.AddCacheFlags(
|
|
1343
|
+
v.persistent.speed = !v.persistent.speed;
|
|
1344
|
+
player.AddCacheFlags(CacheFlag.SPEED);
|
|
1492
1345
|
player.EvaluateItems();
|
|
1493
|
-
const value = tostring(
|
|
1346
|
+
const value = tostring(v.persistent.speed);
|
|
1494
1347
|
flight(value);
|
|
1495
|
-
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
1358
|
+
export function startingRoom() {
|
|
1359
|
+
const level = game.GetLevel();
|
|
1511
1360
|
const startingRoomIndex = level.GetStartingRoomIndex();
|
|
1512
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1383
|
+
v.persistent.tearsAmount = num;
|
|
1531
1384
|
}
|
|
1532
|
-
|
|
1385
|
+
v.persistent.tears = !v.persistent.tears;
|
|
1533
1386
|
const player = Isaac.GetPlayer();
|
|
1534
|
-
player.AddCacheFlags(
|
|
1387
|
+
player.AddCacheFlags(CacheFlag.FIRE_DELAY);
|
|
1535
1388
|
player.EvaluateItems();
|
|
1536
|
-
|
|
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
|
-
|
|
1396
|
+
export function trapdoor() {
|
|
1397
|
+
spawnTrapdoorOrCrawlSpace(true);
|
|
1545
1398
|
}
|
|
1546
1399
|
/** Warps to the first Treasure Room on the floor. */
|
|
1547
|
-
function treasureRoom() {
|
|
1548
|
-
|
|
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
|
-
|
|
1408
|
+
export function ultraSecretRoom() {
|
|
1409
|
+
warpToRoomType(RoomType.ULTRA_SECRET);
|
|
1557
1410
|
}
|
|
1558
1411
|
/** Toggles permanent Curse of the Unknown. */
|
|
1559
|
-
function unknown() {
|
|
1560
|
-
|
|
1561
|
-
|
|
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 (!
|
|
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
|
-
|
|
1570
|
-
|
|
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
|
-
|
|
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 =
|
|
1443
|
+
const num = parseIntSafe(params);
|
|
1591
1444
|
if (num === undefined) {
|
|
1592
|
-
const match =
|
|
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 (!
|
|
1453
|
+
if (!isEnumValue(num, RoomType)) {
|
|
1601
1454
|
print(`Invalid room type: ${num}`);
|
|
1602
1455
|
return;
|
|
1603
1456
|
}
|
|
1604
1457
|
roomType = num;
|
|
1605
1458
|
}
|
|
1606
|
-
|
|
1459
|
+
warpToRoomType(roomType);
|
|
1607
1460
|
}
|
|
1608
1461
|
/** Alias for the "labyrinth" command. */
|
|
1609
|
-
function xl() {
|
|
1462
|
+
export function xl() {
|
|
1610
1463
|
labyrinth();
|
|
1611
1464
|
}
|