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