isaacscript-common 87.5.0 → 87.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/callbackClasses.d.ts +7 -6
- package/dist/callbackClasses.d.ts.map +1 -1
- package/dist/callbackClasses.js +17 -15
- package/dist/callbackClasses.lua +163 -300
- package/dist/callbacks.d.ts +118 -117
- package/dist/callbacks.d.ts.map +1 -1
- package/dist/callbacks.js +19 -9
- package/dist/callbacks.lua +1 -0
- package/dist/classes/DefaultMap.d.ts +5 -1
- package/dist/classes/DefaultMap.d.ts.map +1 -1
- package/dist/classes/ModFeature.js +3 -3
- package/dist/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/classes/ModUpgraded.js +4 -6
- 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 +3 -3
- 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 +6 -6
- package/dist/classes/callbacks/PostBoneSwing.js +2 -2
- 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 +3 -5
- package/dist/classes/callbacks/PostCursedTeleport.js +5 -5
- package/dist/classes/callbacks/PostCustomRevive.d.ts +2 -4
- package/dist/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
- package/dist/classes/callbacks/PostDiceRoomActivated.d.ts +2 -3
- package/dist/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/classes/callbacks/PostDiceRoomActivated.js +2 -2
- package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts +9 -0
- package/dist/classes/callbacks/PostEntityRemoveFilter.d.ts.map +1 -0
- package/dist/classes/callbacks/PostEntityRemoveFilter.js +21 -0
- package/dist/classes/callbacks/PostEntityRemoveFilter.lua +23 -0
- package/dist/classes/callbacks/PostGridEntityCollision.d.ts +2 -4
- package/dist/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCollision.js +10 -10
- package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts +2 -4
- package/dist/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomCollision.js +8 -8
- package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts +2 -3
- package/dist/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityCustomRemove.js +2 -2
- package/dist/classes/callbacks/PostGridEntityRemove.d.ts +2 -2
- package/dist/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
- package/dist/classes/callbacks/PostGridEntityRemove.js +3 -3
- package/dist/classes/callbacks/PostItemDischarge.d.ts +2 -2
- package/dist/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/classes/callbacks/PostItemDischarge.js +5 -8
- package/dist/classes/callbacks/PostKeyboardChanged.d.ts +2 -1
- package/dist/classes/callbacks/PostKeyboardChanged.d.ts.map +1 -1
- package/dist/classes/callbacks/PostKeyboardChanged.js +2 -2
- package/dist/classes/callbacks/PostNewRoomEarly.js +3 -3
- 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 +4 -3
- package/dist/classes/callbacks/PostPlayerChangeHealth.js +2 -2
- package/dist/classes/callbacks/PostPlayerChangeType.js +1 -1
- package/dist/classes/callbacks/PostPurchase.d.ts +2 -4
- package/dist/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/classes/callbacks/PostPurchase.js +9 -9
- package/dist/classes/callbacks/PostRoomClearChanged.d.ts.map +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 +1 -3
- package/dist/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/classes/callbacks/PostTrinketBreak.js +1 -3
- package/dist/classes/callbacks/PostUsePillFilter.js +2 -2
- package/dist/classes/callbacks/PreBerserkDeath.js +4 -4
- 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 +3 -3
- package/dist/classes/callbacks/PreNewLevel.d.ts.map +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 +5 -5
- package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts +1 -1
- package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/EsauJrDetection.js +2 -2
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.js +9 -11
- package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.js +4 -4
- package/dist/classes/features/callbackLogic/ItemPickupDetection.js +4 -4
- package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.js +2 -2
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts +0 -1
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.js +4 -4
- package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/classes/features/other/CustomPickups.js +1 -0
- package/dist/classes/features/other/CustomStages.js +19 -9
- package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/classes/features/other/CustomTrapdoors.js +44 -38
- package/dist/classes/features/other/CustomTrapdoors.lua +14 -7
- package/dist/classes/features/other/DebugDisplay.d.ts +0 -18
- package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
- package/dist/classes/features/other/DeployJSONRoom.d.ts +0 -2
- package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
- package/dist/classes/features/other/DeployJSONRoom.js +6 -4
- package/dist/classes/features/other/DisableInputs.js +3 -3
- package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +1 -1
- package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
- package/dist/classes/features/other/ExtraConsoleCommands.d.ts +14 -10
- package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
- package/dist/classes/features/other/ExtraConsoleCommands.js +31 -17
- package/dist/classes/features/other/ExtraConsoleCommands.lua +2 -1
- package/dist/classes/features/other/FlyingDetection.d.ts +0 -1
- package/dist/classes/features/other/FlyingDetection.d.ts.map +1 -1
- package/dist/classes/features/other/ForgottenSwitch.d.ts +0 -1
- package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
- package/dist/classes/features/other/ModdedElementDetection.js +4 -4
- package/dist/classes/features/other/ModdedElementSets.d.ts +2 -2
- package/dist/classes/features/other/ModdedElementSets.d.ts.map +1 -1
- package/dist/classes/features/other/ModdedElementSets.js +3 -3
- package/dist/classes/features/other/NoSirenSteal.js +4 -4
- package/dist/classes/features/other/PickupIndexCreation.d.ts +0 -1
- package/dist/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/classes/features/other/PickupIndexCreation.js +7 -8
- package/dist/classes/features/other/PickupIndexCreation.lua +10 -10
- package/dist/classes/features/other/PonyDetection.d.ts +0 -1
- package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
- package/dist/classes/features/other/PonyDetection.js +2 -2
- package/dist/classes/features/other/PressInput.js +2 -2
- package/dist/classes/features/other/PreventChildEntities.d.ts +0 -1
- package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/classes/features/other/PreventChildEntities.js +4 -4
- package/dist/classes/features/other/RoomClearFrame.d.ts +0 -1
- package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
- package/dist/classes/features/other/RoomHistory.d.ts +0 -1
- package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/classes/features/other/RoomHistory.js +5 -5
- package/dist/classes/features/other/RunInNFrames.js +2 -2
- package/dist/classes/features/other/SaveDataManager.js +3 -3
- package/dist/classes/features/other/SpawnRockAltRewards.d.ts +0 -4
- package/dist/classes/features/other/SpawnRockAltRewards.d.ts.map +1 -1
- package/dist/classes/features/other/StageHistory.js +2 -2
- package/dist/classes/features/other/StartAmbush.js +2 -2
- package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +0 -1
- package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/classes/features/other/TaintedLazarusPlayers.js +2 -2
- package/dist/classes/features/other/customStages/backdrop.js +2 -3
- package/dist/classes/features/other/customStages/constants.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/gridEntities.d.ts +0 -1
- package/dist/classes/features/other/customStages/gridEntities.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/gridEntities.js +9 -10
- package/dist/classes/features/other/customStages/shadows.js +1 -2
- package/dist/classes/features/other/customStages/streakText.js +7 -8
- package/dist/classes/features/other/customStages/utils.d.ts +0 -2
- package/dist/classes/features/other/customStages/utils.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/utils.js +2 -3
- package/dist/classes/features/other/customStages/v.d.ts.map +1 -1
- package/dist/classes/features/other/customStages/versusScreen.js +2 -3
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts +0 -1
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/utils.d.ts +0 -2
- package/dist/classes/features/other/debugDisplay/utils.d.ts.map +1 -1
- package/dist/classes/features/other/debugDisplay/utils.js +2 -3
- package/dist/classes/features/other/extraConsoleCommands/commands.js +155 -158
- package/dist/classes/features/other/extraConsoleCommands/subroutines.js +8 -9
- package/dist/classes/features/other/saveDataManager/constants.d.ts.map +1 -1
- package/dist/classes/features/other/saveDataManager/glowingHourGlass.d.ts +0 -1
- package/dist/classes/features/other/saveDataManager/glowingHourGlass.d.ts.map +1 -1
- package/dist/classes/features/other/saveDataManager/glowingHourGlass.js +4 -5
- package/dist/classes/features/other/saveDataManager/loadFromDisk.d.ts +0 -2
- package/dist/classes/features/other/saveDataManager/loadFromDisk.d.ts.map +1 -1
- package/dist/classes/features/other/saveDataManager/loadFromDisk.js +5 -2
- package/dist/classes/features/other/saveDataManager/loadFromDisk.lua +3 -0
- package/dist/classes/features/other/saveDataManager/restoreDefaults.d.ts +0 -1
- package/dist/classes/features/other/saveDataManager/restoreDefaults.d.ts.map +1 -1
- package/dist/classes/features/other/saveDataManager/restoreDefaults.js +3 -4
- package/dist/classes/features/other/saveDataManager/saveToDisk.d.ts +0 -2
- package/dist/classes/features/other/saveDataManager/saveToDisk.d.ts.map +1 -1
- package/dist/classes/features/other/saveDataManager/saveToDisk.js +1 -2
- package/dist/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/core/cachedClasses.d.ts +0 -5
- package/dist/core/cachedClasses.d.ts.map +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/constantsVanilla.js +4 -4
- package/dist/core/upgradeMod.d.ts +0 -2
- package/dist/core/upgradeMod.d.ts.map +1 -1
- package/dist/core/upgradeMod.js +1 -2
- package/dist/decorators.js +2 -2
- package/dist/enums/ModCallbackCustom.d.ts +134 -117
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.js +134 -117
- package/dist/enums/ModCallbackCustom.lua +119 -117
- package/dist/enums/private/GridEntityTypeCustom.d.ts.map +1 -1
- package/dist/features.js +1 -2
- package/dist/functions/ambush.js +1 -2
- package/dist/functions/array.d.ts +5 -8
- package/dist/functions/array.d.ts.map +1 -1
- package/dist/functions/array.js +55 -55
- package/dist/functions/array.lua +2 -2
- package/dist/functions/arrayLua.d.ts +1 -1
- package/dist/functions/arrayLua.d.ts.map +1 -1
- package/dist/functions/arrayLua.js +7 -8
- package/dist/functions/benchmark.d.ts +0 -1
- package/dist/functions/benchmark.d.ts.map +1 -1
- package/dist/functions/benchmark.js +1 -2
- package/dist/functions/bitSet128.d.ts +0 -1
- package/dist/functions/bitSet128.d.ts.map +1 -1
- package/dist/functions/bitSet128.js +5 -6
- package/dist/functions/bitwise.d.ts +0 -4
- package/dist/functions/bitwise.d.ts.map +1 -1
- package/dist/functions/bitwise.js +7 -8
- package/dist/functions/bitwise.lua +3 -3
- package/dist/functions/bombs.d.ts +0 -1
- package/dist/functions/bombs.d.ts.map +1 -1
- package/dist/functions/bombs.js +1 -2
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.js +19 -19
- package/dist/functions/cards.js +16 -17
- package/dist/functions/challenges.js +9 -10
- package/dist/functions/characters.js +17 -18
- package/dist/functions/charge.d.ts.map +1 -1
- package/dist/functions/charge.js +12 -13
- package/dist/functions/charge.lua +1 -1
- package/dist/functions/chargeBar.d.ts +0 -2
- package/dist/functions/chargeBar.d.ts.map +1 -1
- package/dist/functions/chargeBar.js +2 -3
- package/dist/functions/collectibleTag.js +2 -3
- package/dist/functions/collectibles.js +39 -40
- package/dist/functions/color.d.ts +0 -1
- package/dist/functions/color.d.ts.map +1 -1
- package/dist/functions/color.js +7 -8
- package/dist/functions/console.js +2 -3
- package/dist/functions/curses.js +2 -3
- package/dist/functions/debugFunctions.d.ts +0 -1
- package/dist/functions/debugFunctions.d.ts.map +1 -1
- package/dist/functions/debugFunctions.js +5 -6
- package/dist/functions/decorators.d.ts +4 -4
- package/dist/functions/decorators.d.ts.map +1 -1
- package/dist/functions/decorators.js +4 -5
- package/dist/functions/deepCopy.d.ts +0 -1
- package/dist/functions/deepCopy.d.ts.map +1 -1
- package/dist/functions/deepCopy.js +7 -10
- package/dist/functions/deepCopy.lua +0 -2
- package/dist/functions/deepCopyTests.js +5 -6
- package/dist/functions/dimensions.js +2 -3
- package/dist/functions/direction.js +6 -7
- package/dist/functions/doors.d.ts.map +1 -1
- package/dist/functions/doors.js +56 -52
- package/dist/functions/easing.js +32 -33
- package/dist/functions/effects.d.ts +0 -2
- package/dist/functions/effects.d.ts.map +1 -1
- package/dist/functions/effects.js +2 -2
- package/dist/functions/emptyRoom.js +7 -8
- package/dist/functions/entities.d.ts +0 -1
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.js +36 -38
- package/dist/functions/entitiesSpecific.js +40 -41
- package/dist/functions/entityTypes.d.ts +0 -1
- package/dist/functions/entityTypes.d.ts.map +1 -1
- package/dist/functions/entityTypes.js +1 -2
- package/dist/functions/enums.d.ts +1 -6
- package/dist/functions/enums.d.ts.map +1 -1
- package/dist/functions/enums.js +12 -13
- package/dist/functions/external.js +2 -3
- package/dist/functions/familiars.js +8 -9
- package/dist/functions/flag.d.ts +1 -1
- package/dist/functions/flag.d.ts.map +1 -1
- package/dist/functions/flag.js +9 -10
- package/dist/functions/frames.d.ts +0 -1
- package/dist/functions/frames.d.ts.map +1 -1
- package/dist/functions/frames.js +18 -19
- package/dist/functions/globals.d.ts +0 -1
- package/dist/functions/globals.d.ts.map +1 -1
- package/dist/functions/globals.js +23 -15
- package/dist/functions/gridEntities.d.ts.map +1 -1
- package/dist/functions/gridEntities.js +68 -62
- package/dist/functions/gridEntitiesSpecific.js +40 -41
- package/dist/functions/gridIndex.js +1 -2
- package/dist/functions/hash.js +1 -2
- package/dist/functions/hex.d.ts +0 -2
- package/dist/functions/hex.d.ts.map +1 -1
- package/dist/functions/hex.js +2 -3
- package/dist/functions/input.js +21 -21
- package/dist/functions/isaacAPIClass.d.ts +0 -20
- package/dist/functions/isaacAPIClass.d.ts.map +1 -1
- package/dist/functions/isaacAPIClass.js +25 -26
- package/dist/functions/itemPool.js +7 -8
- package/dist/functions/jsonHelpers.d.ts +4 -5
- package/dist/functions/jsonHelpers.d.ts.map +1 -1
- package/dist/functions/jsonHelpers.js +23 -14
- package/dist/functions/jsonHelpers.lua +4 -4
- package/dist/functions/jsonRoom.js +5 -6
- package/dist/functions/kColor.d.ts +0 -1
- package/dist/functions/kColor.d.ts.map +1 -1
- package/dist/functions/kColor.js +7 -8
- package/dist/functions/language.js +1 -2
- package/dist/functions/level.js +7 -8
- package/dist/functions/levelGrid.d.ts.map +1 -1
- package/dist/functions/levelGrid.js +33 -38
- package/dist/functions/log.js +4 -5
- package/dist/functions/logEntities.d.ts.map +1 -1
- package/dist/functions/logEntities.js +19 -17
- package/dist/functions/logMisc.d.ts +1 -2
- package/dist/functions/logMisc.d.ts.map +1 -1
- package/dist/functions/logMisc.js +35 -48
- package/dist/functions/logMisc.lua +3 -3
- package/dist/functions/map.d.ts +0 -2
- package/dist/functions/map.d.ts.map +1 -1
- package/dist/functions/map.js +12 -13
- package/dist/functions/math.js +17 -18
- package/dist/functions/merge.d.ts +0 -1
- package/dist/functions/merge.d.ts.map +1 -1
- package/dist/functions/merge.js +2 -3
- package/dist/functions/mergeTests.js +1 -2
- package/dist/functions/minimap.d.ts.map +1 -1
- package/dist/functions/minimap.js +12 -17
- package/dist/functions/modFeatures.js +1 -2
- package/dist/functions/newArray.d.ts +0 -1
- package/dist/functions/newArray.d.ts.map +1 -1
- package/dist/functions/newArray.js +2 -3
- package/dist/functions/nextStage.d.ts.map +1 -1
- package/dist/functions/nextStage.js +16 -13
- package/dist/functions/npcDataStructures.d.ts +0 -2
- package/dist/functions/npcDataStructures.d.ts.map +1 -1
- package/dist/functions/npcDataStructures.js +14 -15
- package/dist/functions/npcs.d.ts.map +1 -1
- package/dist/functions/npcs.js +19 -17
- package/dist/functions/pickupVariants.d.ts +0 -1
- package/dist/functions/pickupVariants.d.ts.map +1 -1
- package/dist/functions/pickupVariants.js +17 -18
- package/dist/functions/pickups.js +14 -15
- package/dist/functions/pickupsSpecific.js +40 -41
- package/dist/functions/pills.js +18 -19
- package/dist/functions/playerCenter.d.ts +0 -1
- package/dist/functions/playerCenter.d.ts.map +1 -1
- package/dist/functions/playerCenter.js +1 -2
- package/dist/functions/playerCollectibles.d.ts.map +1 -1
- package/dist/functions/playerCollectibles.js +21 -24
- package/dist/functions/playerCollectibles.lua +9 -9
- package/dist/functions/playerDataStructures.d.ts +0 -1
- package/dist/functions/playerDataStructures.d.ts.map +1 -1
- package/dist/functions/playerDataStructures.js +14 -15
- package/dist/functions/playerEffects.js +5 -6
- package/dist/functions/playerHealth.d.ts +0 -2
- package/dist/functions/playerHealth.d.ts.map +1 -1
- package/dist/functions/playerHealth.js +28 -29
- package/dist/functions/playerHealth.lua +26 -26
- package/dist/functions/playerIndex.d.ts +0 -3
- package/dist/functions/playerIndex.d.ts.map +1 -1
- package/dist/functions/playerIndex.js +12 -13
- package/dist/functions/playerTrinkets.js +10 -11
- package/dist/functions/players.js +41 -42
- package/dist/functions/pocketItems.js +10 -11
- package/dist/functions/positionVelocity.d.ts +0 -4
- package/dist/functions/positionVelocity.d.ts.map +1 -1
- package/dist/functions/positionVelocity.js +11 -20
- package/dist/functions/positionVelocity.lua +4 -4
- package/dist/functions/pressurePlate.js +1 -2
- package/dist/functions/projectiles.js +2 -3
- package/dist/functions/random.d.ts +0 -3
- package/dist/functions/random.d.ts.map +1 -1
- package/dist/functions/random.js +3 -4
- package/dist/functions/readOnly.d.ts +0 -4
- package/dist/functions/readOnly.d.ts.map +1 -1
- package/dist/functions/readOnly.js +3 -4
- package/dist/functions/render.d.ts +0 -3
- package/dist/functions/render.d.ts.map +1 -1
- package/dist/functions/render.js +3 -4
- package/dist/functions/revive.d.ts +0 -3
- package/dist/functions/revive.d.ts.map +1 -1
- package/dist/functions/revive.js +20 -21
- package/dist/functions/rng.d.ts +0 -1
- package/dist/functions/rng.d.ts.map +1 -1
- package/dist/functions/rng.js +15 -15
- package/dist/functions/rockAlt.d.ts +0 -1
- package/dist/functions/rockAlt.d.ts.map +1 -1
- package/dist/functions/rockAlt.js +2 -3
- package/dist/functions/roomData.d.ts.map +1 -1
- package/dist/functions/roomData.js +15 -18
- package/dist/functions/roomGrid.js +8 -9
- package/dist/functions/roomShape.js +14 -15
- package/dist/functions/roomShapeWalls.js +2 -3
- package/dist/functions/roomTransition.js +2 -3
- package/dist/functions/rooms.d.ts +1 -2
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.js +116 -105
- package/dist/functions/rooms.lua +3 -4
- package/dist/functions/run.js +8 -9
- package/dist/functions/seeds.d.ts +0 -1
- package/dist/functions/seeds.d.ts.map +1 -1
- package/dist/functions/seeds.js +2 -3
- package/dist/functions/serialization.js +5 -6
- package/dist/functions/set.d.ts +0 -2
- package/dist/functions/set.d.ts.map +1 -1
- package/dist/functions/set.js +22 -23
- package/dist/functions/slots.js +2 -3
- package/dist/functions/sort.d.ts.map +1 -1
- package/dist/functions/sort.js +8 -9
- package/dist/functions/sound.d.ts.map +1 -1
- package/dist/functions/sound.js +4 -9
- package/dist/functions/spawnCollectible.d.ts.map +1 -1
- package/dist/functions/spawnCollectible.js +7 -10
- package/dist/functions/sprites.d.ts +0 -3
- package/dist/functions/sprites.d.ts.map +1 -1
- package/dist/functions/sprites.js +6 -7
- package/dist/functions/stage.d.ts.map +1 -1
- package/dist/functions/stage.js +60 -69
- package/dist/functions/stage.lua +5 -5
- package/dist/functions/stats.js +4 -5
- package/dist/functions/storyBosses.js +2 -3
- package/dist/functions/string.d.ts +0 -1
- package/dist/functions/string.d.ts.map +1 -1
- package/dist/functions/string.js +18 -19
- package/dist/functions/table.d.ts +0 -1
- package/dist/functions/table.d.ts.map +1 -1
- package/dist/functions/table.js +8 -9
- package/dist/functions/tears.js +8 -9
- package/dist/functions/transformations.js +5 -6
- package/dist/functions/trinketGive.js +9 -10
- package/dist/functions/trinkets.d.ts.map +1 -1
- package/dist/functions/trinkets.js +14 -17
- package/dist/functions/tstlClass.d.ts +2 -3
- package/dist/functions/tstlClass.d.ts.map +1 -1
- package/dist/functions/tstlClass.js +9 -10
- package/dist/functions/tstlClass.lua +2 -2
- package/dist/functions/types.d.ts +15 -17
- package/dist/functions/types.d.ts.map +1 -1
- package/dist/functions/types.js +41 -42
- package/dist/functions/types.lua +14 -14
- package/dist/functions/ui.d.ts +0 -3
- package/dist/functions/ui.d.ts.map +1 -1
- package/dist/functions/ui.js +13 -14
- package/dist/functions/utils.d.ts +0 -1
- package/dist/functions/utils.d.ts.map +1 -1
- package/dist/functions/utils.js +11 -12
- package/dist/functions/vector.d.ts +0 -1
- package/dist/functions/vector.d.ts.map +1 -1
- package/dist/functions/vector.js +11 -12
- package/dist/functions/versusScreen.js +4 -5
- package/dist/functions/weighted.d.ts +0 -3
- package/dist/functions/weighted.d.ts.map +1 -1
- package/dist/functions/weighted.js +2 -3
- package/dist/index.d.ts +58 -58
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -58
- package/dist/index.lua +18 -18
- package/dist/index.rollup.d.ts +222 -181
- package/dist/indexLua.d.ts +58 -58
- package/dist/indexLua.d.ts.map +1 -1
- package/dist/indexLua.js +4 -58
- package/dist/indexLua.lua +18 -18
- package/dist/interfaces/ChargeBarSprites.d.ts +0 -2
- package/dist/interfaces/ChargeBarSprites.d.ts.map +1 -1
- package/dist/interfaces/Corner.d.ts +0 -2
- package/dist/interfaces/Corner.d.ts.map +1 -1
- package/dist/interfaces/SaveData.d.ts +0 -1
- package/dist/interfaces/SaveData.d.ts.map +1 -1
- package/dist/interfaces/TSTLClassMetatable.d.ts +0 -4
- package/dist/interfaces/TSTLClassMetatable.d.ts.map +1 -1
- package/dist/interfaces/private/AddCallbackParametersCustom.d.ts +6 -0
- package/dist/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/interfaces/private/ModUpgradedInterface.d.ts +0 -1
- package/dist/interfaces/private/ModUpgradedInterface.d.ts.map +1 -1
- package/dist/isaacscript-common.lua +786 -871
- package/dist/lib/jsonLua.js +34 -34
- package/dist/lualib_bundle.lua +49 -38
- package/dist/objects/LRoomShapeToRectangles.js +1 -1
- package/dist/objects/colors.d.ts +0 -1
- package/dist/objects/colors.d.ts.map +1 -1
- package/dist/objects/directionToVector.d.ts +0 -1
- package/dist/objects/directionToVector.d.ts.map +1 -1
- package/dist/objects/doorSlotFlagToDoorSlot.d.ts +9 -2
- package/dist/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -1
- package/dist/objects/doorSlotToDoorSlotFlag.d.ts +0 -1
- package/dist/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -1
- package/dist/objects/itemPoolTypeToCollectibleTypesSet.js +17 -7
- package/dist/objects/kColors.d.ts +0 -1
- package/dist/objects/kColors.d.ts.map +1 -1
- package/dist/objects/roomShapeToBottomRightPosition.d.ts +0 -1
- package/dist/objects/roomShapeToBottomRightPosition.d.ts.map +1 -1
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js +1 -1
- package/dist/objects/roomShapeToTopLeftPosition.d.ts +0 -1
- package/dist/objects/roomShapeToTopLeftPosition.d.ts.map +1 -1
- package/dist/objects/versusScreenBackgroundColors.d.ts +0 -1
- package/dist/objects/versusScreenBackgroundColors.d.ts.map +1 -1
- package/dist/objects/versusScreenDirtSpotColors.d.ts +0 -1
- package/dist/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
- package/dist/patchErrorFunctions.js +1 -2
- package/dist/serialization.js +1 -2
- package/dist/shaderCrashFix.d.ts +0 -1
- package/dist/shaderCrashFix.d.ts.map +1 -1
- package/dist/shaderCrashFix.js +1 -2
- package/dist/shouldFire.d.ts.map +1 -1
- package/dist/shouldFire.js +83 -86
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/AddSubtract.d.ts +10 -2
- package/dist/types/AddSubtract.d.ts.map +1 -1
- package/dist/types/AnyEntity.d.ts +0 -11
- package/dist/types/AnyEntity.d.ts.map +1 -1
- package/dist/types/AnyGridEntity.d.ts +0 -8
- package/dist/types/AnyGridEntity.d.ts.map +1 -1
- package/dist/types/Increment.d.ts.map +1 -1
- package/dist/types/PickingUpItem.d.ts +10 -3
- package/dist/types/PickingUpItem.d.ts.map +1 -1
- package/dist/types/PickingUpItem.js +15 -9
- package/dist/types/PickingUpItem.lua +8 -3
- package/dist/types/PickupIndex.d.ts +0 -1
- package/dist/types/PickupIndex.d.ts.map +1 -1
- package/dist/types/PlayerIndex.d.ts +0 -1
- package/dist/types/PlayerIndex.d.ts.map +1 -1
- package/dist/types/ReadonlyMap.d.ts.map +1 -1
- package/dist/types/ReadonlySet.d.ts.map +1 -1
- package/dist/types/TSTLClass.d.ts +0 -1
- package/dist/types/TSTLClass.d.ts.map +1 -1
- package/dist/types/TupleWithLengthBetween.js +2 -2
- package/dist/types/TupleWithMaxLength.js +2 -2
- package/dist/types/WeightedArray.d.ts +0 -1
- package/dist/types/WeightedArray.d.ts.map +1 -1
- package/package.json +9 -2
- package/src/callbackClasses.ts +7 -6
- package/src/callbacks.ts +1 -0
- package/src/classes/DefaultMap.ts +5 -2
- package/src/classes/ModFeature.ts +3 -3
- package/src/classes/ModUpgraded.ts +4 -6
- package/src/classes/callbacks/InputActionFilter.ts +3 -3
- package/src/classes/callbacks/InputActionPlayer.ts +6 -6
- package/src/classes/callbacks/PostBoneSwing.ts +2 -2
- package/src/classes/callbacks/PostCollectibleEmpty.ts +3 -5
- package/src/classes/callbacks/PostCursedTeleport.ts +5 -5
- package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -2
- package/src/classes/callbacks/PostEntityRemoveFilter.ts +22 -0
- package/src/classes/callbacks/PostGridEntityCollision.ts +10 -10
- package/src/classes/callbacks/PostGridEntityCustomCollision.ts +8 -8
- package/src/classes/callbacks/PostGridEntityCustomRemove.ts +2 -2
- package/src/classes/callbacks/PostGridEntityRemove.ts +3 -3
- package/src/classes/callbacks/PostItemDischarge.ts +5 -8
- package/src/classes/callbacks/PostKeyboardChanged.ts +2 -2
- package/src/classes/callbacks/PostNPCStateChanged.ts +1 -1
- package/src/classes/callbacks/PostNewRoomEarly.ts +3 -3
- package/src/classes/callbacks/PostPickupSelectionFilter.ts +4 -3
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +2 -2
- package/src/classes/callbacks/PostPlayerChangeType.ts +1 -1
- package/src/classes/callbacks/PostPurchase.ts +9 -9
- package/src/classes/callbacks/PostTransformation.ts +1 -3
- package/src/classes/callbacks/PostTrinketBreak.ts +1 -3
- package/src/classes/callbacks/PostUsePillFilter.ts +2 -2
- package/src/classes/callbacks/PreBerserkDeath.ts +4 -4
- package/src/classes/callbacks/PreEntitySpawnFilter.ts +3 -3
- package/src/classes/callbacks/PreRoomEntitySpawnFilter.ts +5 -5
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +1 -1
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +2 -2
- package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +9 -11
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +4 -4
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +4 -4
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +2 -2
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +4 -4
- package/src/classes/features/other/CustomPickups.ts +1 -0
- package/src/classes/features/other/CustomStages.ts +2 -2
- package/src/classes/features/other/CustomTrapdoors.ts +46 -39
- package/src/classes/features/other/DeployJSONRoom.ts +6 -4
- package/src/classes/features/other/DisableInputs.ts +3 -3
- package/src/classes/features/other/EdenStartingStatsHealth.ts +3 -1
- package/src/classes/features/other/ExtraConsoleCommands.ts +14 -10
- package/src/classes/features/other/ModdedElementDetection.ts +4 -4
- package/src/classes/features/other/ModdedElementSets.ts +5 -5
- package/src/classes/features/other/NoSirenSteal.ts +4 -4
- package/src/classes/features/other/PickupIndexCreation.ts +7 -8
- package/src/classes/features/other/PonyDetection.ts +2 -2
- package/src/classes/features/other/PressInput.ts +2 -2
- package/src/classes/features/other/PreventChildEntities.ts +4 -4
- package/src/classes/features/other/RoomHistory.ts +5 -5
- package/src/classes/features/other/RunInNFrames.ts +2 -2
- package/src/classes/features/other/SaveDataManager.ts +3 -3
- package/src/classes/features/other/StageHistory.ts +2 -2
- package/src/classes/features/other/StartAmbush.ts +2 -2
- package/src/classes/features/other/TaintedLazarusPlayers.ts +2 -2
- package/src/classes/features/other/customStages/backdrop.ts +1 -1
- package/src/classes/features/other/customStages/gridEntities.ts +4 -4
- package/src/classes/features/other/customStages/streakText.ts +4 -4
- package/src/classes/features/other/extraConsoleCommands/commands.ts +15 -15
- package/src/classes/features/other/saveDataManager/glowingHourGlass.ts +4 -2
- package/src/classes/features/other/saveDataManager/loadFromDisk.ts +5 -0
- package/src/core/constants.ts +1 -1
- package/src/core/constantsVanilla.ts +4 -4
- package/src/enums/ModCallbackCustom.ts +18 -0
- package/src/functions/array.ts +33 -29
- package/src/functions/arrayLua.ts +1 -1
- package/src/functions/bosses.ts +4 -3
- package/src/functions/charge.ts +3 -4
- package/src/functions/collectibles.ts +2 -2
- package/src/functions/decorators.ts +6 -9
- package/src/functions/deepCopy.ts +6 -10
- package/src/functions/deepCopyTests.ts +4 -4
- package/src/functions/doors.ts +8 -3
- package/src/functions/easing.ts +2 -2
- package/src/functions/emptyRoom.ts +5 -5
- package/src/functions/entities.ts +11 -12
- package/src/functions/enums.ts +4 -4
- package/src/functions/familiars.ts +2 -2
- package/src/functions/flag.ts +3 -3
- package/src/functions/globals.ts +2 -3
- package/src/functions/gridEntities.ts +30 -24
- package/src/functions/gridEntitiesSpecific.ts +2 -2
- package/src/functions/isaacAPIClass.ts +2 -2
- package/src/functions/jsonHelpers.ts +7 -5
- package/src/functions/level.ts +3 -3
- package/src/functions/levelGrid.ts +9 -12
- package/src/functions/logEntities.ts +11 -8
- package/src/functions/logMisc.ts +9 -20
- package/src/functions/map.ts +4 -4
- package/src/functions/math.ts +4 -4
- package/src/functions/merge.ts +1 -1
- package/src/functions/minimap.ts +2 -6
- package/src/functions/newArray.ts +1 -1
- package/src/functions/nextStage.ts +14 -10
- package/src/functions/npcDataStructures.ts +5 -5
- package/src/functions/npcs.ts +13 -10
- package/src/functions/pickupVariants.ts +6 -6
- package/src/functions/playerCollectibles.ts +3 -5
- package/src/functions/playerDataStructures.ts +5 -5
- package/src/functions/playerHealth.ts +8 -8
- package/src/functions/playerIndex.ts +3 -3
- package/src/functions/players.ts +4 -4
- package/src/functions/pocketItems.ts +2 -2
- package/src/functions/positionVelocity.ts +4 -12
- package/src/functions/revive.ts +15 -15
- package/src/functions/rng.ts +4 -3
- package/src/functions/roomData.ts +1 -3
- package/src/functions/roomGrid.ts +2 -2
- package/src/functions/rooms.ts +55 -42
- package/src/functions/set.ts +8 -8
- package/src/functions/sort.ts +4 -4
- package/src/functions/sound.ts +2 -7
- package/src/functions/spawnCollectible.ts +4 -6
- package/src/functions/stage.ts +20 -30
- package/src/functions/string.ts +6 -6
- package/src/functions/tears.ts +2 -2
- package/src/functions/trinketGive.ts +4 -4
- package/src/functions/trinkets.ts +1 -3
- package/src/functions/tstlClass.ts +2 -2
- package/src/functions/types.ts +19 -19
- package/src/index.ts +58 -58
- package/src/interfaces/SaveData.ts +2 -1
- package/src/interfaces/private/AddCallbackParametersCustom.ts +7 -0
- package/src/lib/jsonLua.js +34 -34
- package/src/objects/LRoomShapeToRectangles.ts +1 -1
- package/src/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +1 -1
- package/src/shouldFire.ts +55 -57
- package/src/types/AddSubtract.ts +10 -2
- package/src/types/HasFunction.ts +1 -1
- package/src/types/Immutable.ts +1 -1
- package/src/types/Increment.ts +2 -2
- package/src/types/PickingUpItem.ts +10 -3
- package/src/types/TupleWithLengthBetween.ts +2 -2
- package/src/types/TupleWithMaxLength.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rockAlt.d.ts","sourceRoot":"","sources":["../../src/functions/rockAlt.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rockAlt.d.ts","sourceRoot":"","sources":["../../src/functions/rockAlt.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAMxD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAK5C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAgB7D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getRockAltType = getRockAltType;
|
|
4
|
+
exports.removeUrnRewards = removeUrnRewards;
|
|
4
5
|
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
|
|
5
6
|
const cachedClasses_1 = require("../core/cachedClasses");
|
|
6
7
|
const backdropTypeToRockAltType_1 = require("../objects/backdropTypeToRockAltType");
|
|
@@ -26,7 +27,6 @@ function getRockAltType() {
|
|
|
26
27
|
const backdropType = room.GetBackdropType();
|
|
27
28
|
return backdropTypeToRockAltType_1.BACKDROP_TYPE_TO_ROCK_ALT_TYPE[backdropType];
|
|
28
29
|
}
|
|
29
|
-
exports.getRockAltType = getRockAltType;
|
|
30
30
|
/**
|
|
31
31
|
* Helper function to remove all coins, trinkets, and so on that spawned from breaking an urn.
|
|
32
32
|
*
|
|
@@ -47,4 +47,3 @@ function removeUrnRewards(gridEntity) {
|
|
|
47
47
|
const spiders = (0, entitiesSpecific_1.getNPCs)(isaac_typescript_definitions_1.EntityType.SPIDER);
|
|
48
48
|
(0, gridEntities_1.removeEntitiesSpawnedFromGridEntity)(spiders, gridEntity);
|
|
49
49
|
}
|
|
50
|
-
exports.removeUrnRewards = removeUrnRewards;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roomData.d.ts","sourceRoot":"","sources":["../../src/functions/roomData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAMtC;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,GAAG,GAClB,WAAW,CAAC,QAAQ,CAAC,CAgBvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,IAAI,UAAU,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,UAAU,GAAG,SAAS,CAAC;AAOzE;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"roomData.d.ts","sourceRoot":"","sources":["../../src/functions/roomData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAMtC;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,GAAG,GA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;;GAKG;AACH,wBAAgB,WAAW,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,QAAQ,GAAG,SAAS,CAAC;AAavE;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,IAAI,GAAG,CAAC;AAEtC;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;AAOrE;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,CAAC,EAAE,GAAG,GAAG,GAAG,CAG5D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,CAG1E"}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getRoomAllowedDoors = getRoomAllowedDoors;
|
|
4
|
+
exports.getRoomData = getRoomData;
|
|
5
|
+
exports.getRoomDescriptor = getRoomDescriptor;
|
|
6
|
+
exports.getRoomDescriptorReadOnly = getRoomDescriptorReadOnly;
|
|
7
|
+
exports.getRoomGridIndex = getRoomGridIndex;
|
|
8
|
+
exports.getRoomListIndex = getRoomListIndex;
|
|
9
|
+
exports.getRoomName = getRoomName;
|
|
10
|
+
exports.getRoomShape = getRoomShape;
|
|
11
|
+
exports.getRoomStageID = getRoomStageID;
|
|
12
|
+
exports.getRoomSubType = getRoomSubType;
|
|
13
|
+
exports.getRoomType = getRoomType;
|
|
14
|
+
exports.getRoomVariant = getRoomVariant;
|
|
15
|
+
exports.getRoomVisitedCount = getRoomVisitedCount;
|
|
16
|
+
exports.setRoomData = setRoomData;
|
|
4
17
|
const cachedEnumValues_1 = require("../cachedEnumValues");
|
|
5
18
|
const cachedClasses_1 = require("../core/cachedClasses");
|
|
6
19
|
const doors_1 = require("./doors");
|
|
@@ -23,12 +36,10 @@ function getRoomAllowedDoors(roomGridIndex) {
|
|
|
23
36
|
}
|
|
24
37
|
return allowedDoors;
|
|
25
38
|
}
|
|
26
|
-
exports.getRoomAllowedDoors = getRoomAllowedDoors;
|
|
27
39
|
function getRoomData(roomGridIndex) {
|
|
28
40
|
const roomDescriptor = getRoomDescriptor(roomGridIndex);
|
|
29
41
|
return roomDescriptor.Data;
|
|
30
42
|
}
|
|
31
|
-
exports.getRoomData = getRoomData;
|
|
32
43
|
/**
|
|
33
44
|
* Helper function to get the descriptor for a room.
|
|
34
45
|
*
|
|
@@ -36,12 +47,9 @@ exports.getRoomData = getRoomData;
|
|
|
36
47
|
*/
|
|
37
48
|
function getRoomDescriptor(roomGridIndex) {
|
|
38
49
|
const level = cachedClasses_1.game.GetLevel();
|
|
39
|
-
|
|
40
|
-
roomGridIndex = getRoomGridIndex();
|
|
41
|
-
}
|
|
50
|
+
roomGridIndex ??= getRoomGridIndex();
|
|
42
51
|
return level.GetRoomByIdx(roomGridIndex);
|
|
43
52
|
}
|
|
44
|
-
exports.getRoomDescriptor = getRoomDescriptor;
|
|
45
53
|
/**
|
|
46
54
|
* Alias for the `Level.GetCurrentRoomDesc` method. Use this to make it more clear what type of
|
|
47
55
|
* `RoomDescriptor` object that you are retrieving.
|
|
@@ -50,7 +58,6 @@ function getRoomDescriptorReadOnly() {
|
|
|
50
58
|
const level = cachedClasses_1.game.GetLevel();
|
|
51
59
|
return level.GetCurrentRoomDesc();
|
|
52
60
|
}
|
|
53
|
-
exports.getRoomDescriptorReadOnly = getRoomDescriptorReadOnly;
|
|
54
61
|
/**
|
|
55
62
|
* Helper function to get the grid index of the current room.
|
|
56
63
|
*
|
|
@@ -79,7 +86,6 @@ function getRoomGridIndex() {
|
|
|
79
86
|
const roomDescriptor = getRoomDescriptorReadOnly();
|
|
80
87
|
return roomDescriptor.SafeGridIndex;
|
|
81
88
|
}
|
|
82
|
-
exports.getRoomGridIndex = getRoomGridIndex;
|
|
83
89
|
/**
|
|
84
90
|
* Helper function to get the list grid index of the provided room, which is equal to the index in
|
|
85
91
|
* the `RoomList.Get` method. In other words, this is equal to the order that the room was created
|
|
@@ -94,27 +100,22 @@ function getRoomListIndex(roomGridIndex) {
|
|
|
94
100
|
const roomDescriptor = getRoomDescriptor(roomGridIndex);
|
|
95
101
|
return roomDescriptor.ListIndex;
|
|
96
102
|
}
|
|
97
|
-
exports.getRoomListIndex = getRoomListIndex;
|
|
98
103
|
function getRoomName(roomGridIndex) {
|
|
99
104
|
const roomData = getRoomData(roomGridIndex);
|
|
100
105
|
return roomData === undefined ? undefined : roomData.Name;
|
|
101
106
|
}
|
|
102
|
-
exports.getRoomName = getRoomName;
|
|
103
107
|
function getRoomShape(roomGridIndex) {
|
|
104
108
|
const roomData = getRoomData(roomGridIndex);
|
|
105
109
|
return roomData === undefined ? undefined : roomData.Shape;
|
|
106
110
|
}
|
|
107
|
-
exports.getRoomShape = getRoomShape;
|
|
108
111
|
function getRoomStageID(roomGridIndex) {
|
|
109
112
|
const roomData = getRoomData(roomGridIndex);
|
|
110
113
|
return roomData === undefined ? undefined : roomData.StageID;
|
|
111
114
|
}
|
|
112
|
-
exports.getRoomStageID = getRoomStageID;
|
|
113
115
|
function getRoomSubType(roomGridIndex) {
|
|
114
116
|
const roomData = getRoomData(roomGridIndex);
|
|
115
117
|
return roomData === undefined ? undefined : roomData.Subtype;
|
|
116
118
|
}
|
|
117
|
-
exports.getRoomSubType = getRoomSubType;
|
|
118
119
|
/**
|
|
119
120
|
* Helper function for getting the type of the room with the given grid index.
|
|
120
121
|
*
|
|
@@ -125,12 +126,10 @@ function getRoomType(roomGridIndex) {
|
|
|
125
126
|
const roomData = getRoomData(roomGridIndex);
|
|
126
127
|
return roomData === undefined ? undefined : roomData.Type;
|
|
127
128
|
}
|
|
128
|
-
exports.getRoomType = getRoomType;
|
|
129
129
|
function getRoomVariant(roomGridIndex) {
|
|
130
130
|
const roomData = getRoomData(roomGridIndex);
|
|
131
131
|
return roomData === undefined ? -1 : roomData.Variant;
|
|
132
132
|
}
|
|
133
|
-
exports.getRoomVariant = getRoomVariant;
|
|
134
133
|
/**
|
|
135
134
|
* Note that the room visited count will be inaccurate during the period before the `POST_NEW_ROOM`
|
|
136
135
|
* callback has fired (i.e. when entities are initializing and performing their first update). This
|
|
@@ -143,7 +142,6 @@ function getRoomVisitedCount(roomGridIndex) {
|
|
|
143
142
|
const roomDescriptor = getRoomDescriptor(roomGridIndex);
|
|
144
143
|
return roomDescriptor.VisitedCount;
|
|
145
144
|
}
|
|
146
|
-
exports.getRoomVisitedCount = getRoomVisitedCount;
|
|
147
145
|
/**
|
|
148
146
|
* Helper function to set the data for a given room. This will change the room type, contents, and
|
|
149
147
|
* so on.
|
|
@@ -152,4 +150,3 @@ function setRoomData(roomGridIndex, roomData) {
|
|
|
152
150
|
const roomDescriptor = getRoomDescriptor(roomGridIndex);
|
|
153
151
|
roomDescriptor.Data = roomData;
|
|
154
152
|
}
|
|
155
|
-
exports.setRoomData = setRoomData;
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.gridCoordinatesToWorldPosition = gridCoordinatesToWorldPosition;
|
|
12
|
+
exports.gridIndexToGridPosition = gridIndexToGridPosition;
|
|
13
|
+
exports.gridPositionToWorldPosition = gridPositionToWorldPosition;
|
|
14
|
+
exports.isValidGridPosition = isValidGridPosition;
|
|
15
|
+
exports.worldPositionToGridPosition = worldPositionToGridPosition;
|
|
16
|
+
exports.worldPositionToGridPositionFast = worldPositionToGridPositionFast;
|
|
12
17
|
const LRoomShapeToRectangles_1 = require("../objects/LRoomShapeToRectangles");
|
|
13
18
|
const math_1 = require("./math");
|
|
14
19
|
const roomShape_1 = require("./roomShape");
|
|
@@ -21,7 +26,6 @@ function gridCoordinatesToWorldPosition(x, y) {
|
|
|
21
26
|
const gridPosition = Vector(x, y);
|
|
22
27
|
return gridPositionToWorldPosition(gridPosition);
|
|
23
28
|
}
|
|
24
|
-
exports.gridCoordinatesToWorldPosition = gridCoordinatesToWorldPosition;
|
|
25
29
|
/**
|
|
26
30
|
* Helper function to convert a grid index to a grid position.
|
|
27
31
|
*
|
|
@@ -34,7 +38,6 @@ function gridIndexToGridPosition(gridIndex, roomShape) {
|
|
|
34
38
|
const y = Math.floor(gridIndex / gridWidth) - 1;
|
|
35
39
|
return Vector(x, y);
|
|
36
40
|
}
|
|
37
|
-
exports.gridIndexToGridPosition = gridIndexToGridPosition;
|
|
38
41
|
/**
|
|
39
42
|
* Helper function to convert a grid position `Vector` to a world position `Vector`.
|
|
40
43
|
*
|
|
@@ -45,7 +48,6 @@ function gridPositionToWorldPosition(gridPosition) {
|
|
|
45
48
|
const y = (gridPosition.Y + 4) * 40;
|
|
46
49
|
return Vector(x, y);
|
|
47
50
|
}
|
|
48
|
-
exports.gridPositionToWorldPosition = gridPositionToWorldPosition;
|
|
49
51
|
/**
|
|
50
52
|
* Test if a grid position is actually in the given `RoomShape`.
|
|
51
53
|
*
|
|
@@ -56,7 +58,6 @@ function isValidGridPosition(gridPosition, roomShape) {
|
|
|
56
58
|
? isValidGridPositionLRoom(gridPosition, roomShape)
|
|
57
59
|
: isValidGridPositionNormal(gridPosition, roomShape);
|
|
58
60
|
}
|
|
59
|
-
exports.isValidGridPosition = isValidGridPosition;
|
|
60
61
|
function isValidGridPositionNormal(gridPosition, roomShape) {
|
|
61
62
|
const topLeft = (0, roomShape_1.getRoomShapeTopLeftPosition)(roomShape);
|
|
62
63
|
const bottomRight = (0, roomShape_1.getRoomShapeBottomRightPosition)(roomShape);
|
|
@@ -68,8 +69,8 @@ function isValidGridPositionLRoom(gridPosition, roomShape) {
|
|
|
68
69
|
return false;
|
|
69
70
|
}
|
|
70
71
|
const { verticalTopLeft, verticalBottomRight, horizontalTopLeft, horizontalBottomRight, } = rectangles;
|
|
71
|
-
return ((0, math_1.inRectangle)(gridPosition, verticalTopLeft, verticalBottomRight)
|
|
72
|
-
(0, math_1.inRectangle)(gridPosition, horizontalTopLeft, horizontalBottomRight));
|
|
72
|
+
return ((0, math_1.inRectangle)(gridPosition, verticalTopLeft, verticalBottomRight)
|
|
73
|
+
|| (0, math_1.inRectangle)(gridPosition, horizontalTopLeft, horizontalBottomRight));
|
|
73
74
|
}
|
|
74
75
|
/**
|
|
75
76
|
* Helper function to convert a world position `Vector` to a grid position `Vector`.
|
|
@@ -81,7 +82,6 @@ function worldPositionToGridPosition(worldPos) {
|
|
|
81
82
|
const y = Math.round(worldPos.Y / 40 - 4);
|
|
82
83
|
return Vector(x, y);
|
|
83
84
|
}
|
|
84
|
-
exports.worldPositionToGridPosition = worldPositionToGridPosition;
|
|
85
85
|
/**
|
|
86
86
|
* Helper function to convert a world position `Vector` to a grid position `Vector`.
|
|
87
87
|
*
|
|
@@ -94,4 +94,3 @@ function worldPositionToGridPositionFast(worldPos) {
|
|
|
94
94
|
const y = worldPos.Y / 40 - 4;
|
|
95
95
|
return Vector(x, y);
|
|
96
96
|
}
|
|
97
|
-
exports.worldPositionToGridPositionFast = worldPositionToGridPositionFast;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getGridIndexDelta = getGridIndexDelta;
|
|
4
|
+
exports.getRoomShapeBottomRightPosition = getRoomShapeBottomRightPosition;
|
|
5
|
+
exports.getRoomShapeBounds = getRoomShapeBounds;
|
|
6
|
+
exports.getRoomShapeCharges = getRoomShapeCharges;
|
|
7
|
+
exports.getRoomShapeCorners = getRoomShapeCorners;
|
|
8
|
+
exports.getRoomShapeLayoutSize = getRoomShapeLayoutSize;
|
|
9
|
+
exports.getRoomShapeTopLeftPosition = getRoomShapeTopLeftPosition;
|
|
10
|
+
exports.getRoomShapeVolume = getRoomShapeVolume;
|
|
11
|
+
exports.getRoomShapeWidth = getRoomShapeWidth;
|
|
12
|
+
exports.is2x1RoomShape = is2x1RoomShape;
|
|
13
|
+
exports.isBigRoomShape = isBigRoomShape;
|
|
14
|
+
exports.isLRoomShape = isLRoomShape;
|
|
15
|
+
exports.isNarrowRoom = isNarrowRoom;
|
|
16
|
+
exports.isRoomShapeDoubleCharge = isRoomShapeDoubleCharge;
|
|
4
17
|
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
|
|
5
18
|
const roomShapeBounds_1 = require("../objects/roomShapeBounds");
|
|
6
19
|
const roomShapeCorners_1 = require("../objects/roomShapeCorners");
|
|
@@ -23,7 +36,6 @@ function getGridIndexDelta(roomShape, doorSlot) {
|
|
|
23
36
|
const doorSlotToGridIndexMap = roomShapeToDoorSlotsToGridIndexDelta_1.ROOM_SHAPE_TO_DOOR_SLOTS_TO_GRID_INDEX_DELTA[roomShape];
|
|
24
37
|
return doorSlotToGridIndexMap.get(doorSlot);
|
|
25
38
|
}
|
|
26
|
-
exports.getGridIndexDelta = getGridIndexDelta;
|
|
27
39
|
/**
|
|
28
40
|
* Helper function to see if a given room shape will grant a single charge or a double charge to the
|
|
29
41
|
* player's active item(s).
|
|
@@ -33,7 +45,6 @@ exports.getGridIndexDelta = getGridIndexDelta;
|
|
|
33
45
|
function getRoomShapeBottomRightPosition(roomShape) {
|
|
34
46
|
return roomShapeToBottomRightPosition_1.ROOM_SHAPE_TO_BOTTOM_RIGHT_POSITION[roomShape];
|
|
35
47
|
}
|
|
36
|
-
exports.getRoomShapeBottomRightPosition = getRoomShapeBottomRightPosition;
|
|
37
48
|
/**
|
|
38
49
|
* Helper function to get the grid position of the bottom-right tile of a given room shape.
|
|
39
50
|
*
|
|
@@ -43,7 +54,6 @@ exports.getRoomShapeBottomRightPosition = getRoomShapeBottomRightPosition;
|
|
|
43
54
|
function getRoomShapeBounds(roomShape) {
|
|
44
55
|
return roomShapeBounds_1.ROOM_SHAPE_BOUNDS[roomShape];
|
|
45
56
|
}
|
|
46
|
-
exports.getRoomShapeBounds = getRoomShapeBounds;
|
|
47
57
|
/**
|
|
48
58
|
* Helper function to get the number of charges that a given room shape will grant to a player upon
|
|
49
59
|
* clearing it.
|
|
@@ -53,7 +63,6 @@ exports.getRoomShapeBounds = getRoomShapeBounds;
|
|
|
53
63
|
function getRoomShapeCharges(roomShape) {
|
|
54
64
|
return isRoomShapeDoubleCharge(roomShape) ? 2 : 1;
|
|
55
65
|
}
|
|
56
|
-
exports.getRoomShapeCharges = getRoomShapeCharges;
|
|
57
66
|
/**
|
|
58
67
|
* Helper function to get the corners that exist in the given room shape.
|
|
59
68
|
*
|
|
@@ -63,7 +72,6 @@ exports.getRoomShapeCharges = getRoomShapeCharges;
|
|
|
63
72
|
function getRoomShapeCorners(roomShape) {
|
|
64
73
|
return roomShapeCorners_1.ROOM_SHAPE_CORNERS[roomShape];
|
|
65
74
|
}
|
|
66
|
-
exports.getRoomShapeCorners = getRoomShapeCorners;
|
|
67
75
|
/**
|
|
68
76
|
* Helper function to get the dimensions of a room shape's layout. This is NOT the size of the
|
|
69
77
|
* room's actual contents! For that, use the `getRoomShapeBounds` function.
|
|
@@ -73,7 +81,6 @@ exports.getRoomShapeCorners = getRoomShapeCorners;
|
|
|
73
81
|
function getRoomShapeLayoutSize(roomShape) {
|
|
74
82
|
return roomShapeLayoutSizes_1.ROOM_SHAPE_LAYOUT_SIZES[roomShape];
|
|
75
83
|
}
|
|
76
|
-
exports.getRoomShapeLayoutSize = getRoomShapeLayoutSize;
|
|
77
84
|
/**
|
|
78
85
|
* Helper function to get the grid position of the top-left tile of a given room shape.
|
|
79
86
|
*
|
|
@@ -83,7 +90,6 @@ exports.getRoomShapeLayoutSize = getRoomShapeLayoutSize;
|
|
|
83
90
|
function getRoomShapeTopLeftPosition(roomShape) {
|
|
84
91
|
return roomShapeToTopLeftPosition_1.ROOM_SHAPE_TO_TOP_LEFT_POSITION[roomShape];
|
|
85
92
|
}
|
|
86
|
-
exports.getRoomShapeTopLeftPosition = getRoomShapeTopLeftPosition;
|
|
87
93
|
/**
|
|
88
94
|
* Helper function to get the volume of a room shape, which is the amount of tiles that are inside
|
|
89
95
|
* the room.
|
|
@@ -93,11 +99,9 @@ exports.getRoomShapeTopLeftPosition = getRoomShapeTopLeftPosition;
|
|
|
93
99
|
function getRoomShapeVolume(roomShape) {
|
|
94
100
|
return roomShapeVolumes_1.ROOM_SHAPE_VOLUMES[roomShape];
|
|
95
101
|
}
|
|
96
|
-
exports.getRoomShapeVolume = getRoomShapeVolume;
|
|
97
102
|
function getRoomShapeWidth(roomShape) {
|
|
98
103
|
return roomShapeToGridWidth_1.ROOM_SHAPE_TO_GRID_WIDTH[roomShape];
|
|
99
104
|
}
|
|
100
|
-
exports.getRoomShapeWidth = getRoomShapeWidth;
|
|
101
105
|
/**
|
|
102
106
|
* Helper function to determine if the provided room is equal to `RoomShape.1x2` (4) or
|
|
103
107
|
* `RoomShape.2x1` (6).
|
|
@@ -105,7 +109,6 @@ exports.getRoomShapeWidth = getRoomShapeWidth;
|
|
|
105
109
|
function is2x1RoomShape(roomShape) {
|
|
106
110
|
return roomShape === isaac_typescript_definitions_1.RoomShape.SHAPE_1x2 || roomShape === isaac_typescript_definitions_1.RoomShape.SHAPE_2x1;
|
|
107
111
|
}
|
|
108
|
-
exports.is2x1RoomShape = is2x1RoomShape;
|
|
109
112
|
/**
|
|
110
113
|
* Helper function to detect if the provided room shape is big. Specifically, this is all 1x2 rooms,
|
|
111
114
|
* 2x2 rooms, and L rooms.
|
|
@@ -113,7 +116,6 @@ exports.is2x1RoomShape = is2x1RoomShape;
|
|
|
113
116
|
function isBigRoomShape(roomShape) {
|
|
114
117
|
return bigRoomShapesSet_1.BIG_ROOM_SHAPES_SET.has(roomShape);
|
|
115
118
|
}
|
|
116
|
-
exports.isBigRoomShape = isBigRoomShape;
|
|
117
119
|
/**
|
|
118
120
|
* Helper function to determine if the provided room is equal to `RoomShape.LTL` (9),
|
|
119
121
|
* `RoomShape.LTR` (10), `RoomShape.LBL` (11), or `RoomShape.LBR` (12).
|
|
@@ -121,7 +123,6 @@ exports.isBigRoomShape = isBigRoomShape;
|
|
|
121
123
|
function isLRoomShape(roomShape) {
|
|
122
124
|
return LRoomShapesSet_1.L_ROOM_SHAPES_SET.has(roomShape);
|
|
123
125
|
}
|
|
124
|
-
exports.isLRoomShape = isLRoomShape;
|
|
125
126
|
/**
|
|
126
127
|
* Helper function to determine if the provided room is equal to `RoomShape.IH` (2), `RoomShape.IV`
|
|
127
128
|
* (3), `RoomShape.IIV` (5), or `RoomShape.IIH` (7).
|
|
@@ -129,7 +130,6 @@ exports.isLRoomShape = isLRoomShape;
|
|
|
129
130
|
function isNarrowRoom(roomShape) {
|
|
130
131
|
return narrowRoomShapesSet_1.NARROW_ROOM_SHAPES_SET.has(roomShape);
|
|
131
132
|
}
|
|
132
|
-
exports.isNarrowRoom = isNarrowRoom;
|
|
133
133
|
/**
|
|
134
134
|
* Helper function to see if a given room shape will grant a single charge or a double charge to the
|
|
135
135
|
* player's active item(s).
|
|
@@ -140,4 +140,3 @@ function isRoomShapeDoubleCharge(roomShape) {
|
|
|
140
140
|
// 2x2 rooms and L rooms should grant 2 charges.
|
|
141
141
|
return roomShape >= isaac_typescript_definitions_1.RoomShape.SHAPE_2x2;
|
|
142
142
|
}
|
|
143
|
-
exports.isRoomShapeDoubleCharge = isRoomShapeDoubleCharge;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getVanillaWallGridIndexSetForRoomShape = getVanillaWallGridIndexSetForRoomShape;
|
|
4
|
+
exports.isVanillaWallGridIndex = isVanillaWallGridIndex;
|
|
4
5
|
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
|
|
5
6
|
const cachedEnumValues_1 = require("../cachedEnumValues");
|
|
6
7
|
const cachedClasses_1 = require("../core/cachedClasses");
|
|
@@ -140,7 +141,6 @@ function getVanillaWallGridIndexSetForRoomShape(roomShape) {
|
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
|
-
exports.getVanillaWallGridIndexSetForRoomShape = getVanillaWallGridIndexSetForRoomShape;
|
|
144
144
|
/**
|
|
145
145
|
* Providing the room shape is necessary so that the `getGridIndexesBetween` function can use the
|
|
146
146
|
* corresponding grid width.
|
|
@@ -184,4 +184,3 @@ function isVanillaWallGridIndex(gridIndex) {
|
|
|
184
184
|
}
|
|
185
185
|
return wallGridIndexSet.has(gridIndex);
|
|
186
186
|
}
|
|
187
|
-
exports.isVanillaWallGridIndex = isVanillaWallGridIndex;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.reloadRoom = reloadRoom;
|
|
4
|
+
exports.teleport = teleport;
|
|
4
5
|
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
|
|
5
6
|
const cachedClasses_1 = require("../core/cachedClasses");
|
|
6
7
|
const roomData_1 = require("./roomData");
|
|
@@ -15,7 +16,6 @@ function reloadRoom() {
|
|
|
15
16
|
const roomGridIndex = (0, roomData_1.getRoomGridIndex)();
|
|
16
17
|
teleport(roomGridIndex, isaac_typescript_definitions_1.Direction.NO_DIRECTION, isaac_typescript_definitions_1.RoomTransitionAnim.FADE);
|
|
17
18
|
}
|
|
18
|
-
exports.reloadRoom = reloadRoom;
|
|
19
19
|
/**
|
|
20
20
|
* Helper function to change the current room. It can be used for both teleportation and "normal"
|
|
21
21
|
* room transitions, depending on what is passed for the `direction` and `roomTransitionAnim`
|
|
@@ -40,4 +40,3 @@ function teleport(roomGridIndex, direction = isaac_typescript_definitions_1.Dire
|
|
|
40
40
|
level.LeaveDoor = isaac_typescript_definitions_1.DoorSlot.NO_DOOR_SLOT;
|
|
41
41
|
cachedClasses_1.game.StartRoomTransition(roomGridIndex, direction, roomTransitionAnim);
|
|
42
42
|
}
|
|
43
|
-
exports.teleport = teleport;
|
|
@@ -80,8 +80,7 @@ export declare function getRooms(includeExtraDimensionalRooms?: boolean): readon
|
|
|
80
80
|
* Room descriptors without any data are assumed to be non-existent and are not included.
|
|
81
81
|
*
|
|
82
82
|
* @param includeExtraDimensionalRooms Optional. On some floors (e.g. Downpour 2, Mines 2),
|
|
83
|
-
* extra-dimensional rooms
|
|
84
|
-
* is false.
|
|
83
|
+
* extra-dimensional rooms will be generated. Default is false.
|
|
85
84
|
*/
|
|
86
85
|
export declare function getRoomsInsideGrid(includeExtraDimensionalRooms?: boolean): readonly RoomDescriptor[];
|
|
87
86
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.d.ts","sourceRoot":"","sources":["../../src/functions/rooms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,SAAS,EAQT,QAAQ,EAGT,MAAM,8BAA8B,CAAC;AAsCtC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,aAAa,EAAE,GAAG,GAAG,IAAI,CAcnD;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,GAAG,CAGjC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAiB1E;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,GAAG,EAChB,oBAAoB,UAAO,EAC3B,iCAAiC,UAAQ,GACxC,QAAQ,CAAC,UAAU,CAAC,GAAG,SAAS,CAgBlC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,CAOlD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAE1D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ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