isaacscript-common 1.2.291 → 2.0.1
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 +20 -14
- 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 +9 -7
- package/dist/callbacks/postGridEntityCollision.lua +5 -2
- package/dist/callbacks/postHolyMantleRemoved.d.ts +1 -0
- package/dist/callbacks/postHolyMantleRemoved.lua +39 -0
- 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.d.ts +1 -0
- package/dist/callbacks/postRoomClearChanged.lua +40 -0
- 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 -0
- package/dist/callbacks/subscriptions/postGridEntityStateChanged.lua +23 -0
- 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 -0
- package/dist/callbacks/subscriptions/postHolyMantleRemoved.lua +28 -0
- 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 -0
- package/dist/callbacks/subscriptions/postRoomClearChanged.lua +16 -0
- 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 +89 -59
- package/dist/enums/ModCallbacksCustom.lua +110 -107
- 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 +3 -3
- 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.d.ts +2 -0
- package/dist/initCustomCallbacks.lua +133 -0
- package/dist/initFeatures.d.ts +3 -0
- package/dist/initFeatures.lua +54 -0
- 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 +57 -52
- 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 -271
- 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/dist/upgradeMod.lua +5 -178
- package/package.json +9 -6
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
3
3
|
local ____exports = {}
|
|
4
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
5
|
+
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
4
6
|
local ____constants = require("constants")
|
|
5
7
|
local VectorZero = ____constants.VectorZero
|
|
6
8
|
local ____coinSubTypeToValue = require("objects.coinSubTypeToValue")
|
|
@@ -18,13 +20,13 @@ function ____exports.getBatteries(self, matchingSubType)
|
|
|
18
20
|
if matchingSubType == nil then
|
|
19
21
|
matchingSubType = -1
|
|
20
22
|
end
|
|
21
|
-
return getPickups(nil,
|
|
23
|
+
return getPickups(nil, PickupVariant.LIL_BATTERY, matchingSubType)
|
|
22
24
|
end
|
|
23
25
|
function ____exports.getCards(self, matchingSubType)
|
|
24
26
|
if matchingSubType == nil then
|
|
25
27
|
matchingSubType = -1
|
|
26
28
|
end
|
|
27
|
-
return getPickups(nil,
|
|
29
|
+
return getPickups(nil, PickupVariant.TAROT_CARD, matchingSubType)
|
|
28
30
|
end
|
|
29
31
|
function ____exports.getCoinValue(self, coinSubType)
|
|
30
32
|
local value = COIN_SUBTYPE_TO_VALUE[coinSubType]
|
|
@@ -34,31 +36,31 @@ function ____exports.getCoins(self, matchingSubType)
|
|
|
34
36
|
if matchingSubType == nil then
|
|
35
37
|
matchingSubType = -1
|
|
36
38
|
end
|
|
37
|
-
return getPickups(nil,
|
|
39
|
+
return getPickups(nil, PickupVariant.COIN, matchingSubType)
|
|
38
40
|
end
|
|
39
41
|
function ____exports.getCollectibles(self, matchingSubType)
|
|
40
42
|
if matchingSubType == nil then
|
|
41
43
|
matchingSubType = -1
|
|
42
44
|
end
|
|
43
|
-
return getPickups(nil,
|
|
45
|
+
return getPickups(nil, PickupVariant.COLLECTIBLE, matchingSubType)
|
|
44
46
|
end
|
|
45
47
|
function ____exports.getHearts(self, matchingSubType)
|
|
46
48
|
if matchingSubType == nil then
|
|
47
49
|
matchingSubType = -1
|
|
48
50
|
end
|
|
49
|
-
return getPickups(nil,
|
|
51
|
+
return getPickups(nil, PickupVariant.HEART, matchingSubType)
|
|
50
52
|
end
|
|
51
53
|
function ____exports.getKeys(self, matchingSubType)
|
|
52
54
|
if matchingSubType == nil then
|
|
53
55
|
matchingSubType = -1
|
|
54
56
|
end
|
|
55
|
-
return getPickups(nil,
|
|
57
|
+
return getPickups(nil, PickupVariant.KEY, matchingSubType)
|
|
56
58
|
end
|
|
57
59
|
function ____exports.getPills(self, matchingSubType)
|
|
58
60
|
if matchingSubType == nil then
|
|
59
61
|
matchingSubType = -1
|
|
60
62
|
end
|
|
61
|
-
return getPickups(nil,
|
|
63
|
+
return getPickups(nil, PickupVariant.PILL, matchingSubType)
|
|
62
64
|
end
|
|
63
65
|
function ____exports.getRedHearts(self)
|
|
64
66
|
local hearts = ____exports.getHearts(nil)
|
|
@@ -71,46 +73,46 @@ function ____exports.getSacks(self, matchingSubType)
|
|
|
71
73
|
if matchingSubType == nil then
|
|
72
74
|
matchingSubType = -1
|
|
73
75
|
end
|
|
74
|
-
return getPickups(nil,
|
|
76
|
+
return getPickups(nil, PickupVariant.GRAB_BAG, matchingSubType)
|
|
75
77
|
end
|
|
76
78
|
function ____exports.getTrinkets(self, matchingSubType)
|
|
77
79
|
if matchingSubType == nil then
|
|
78
80
|
matchingSubType = -1
|
|
79
81
|
end
|
|
80
|
-
return getPickups(nil,
|
|
82
|
+
return getPickups(nil, PickupVariant.TRINKET, matchingSubType)
|
|
81
83
|
end
|
|
82
84
|
function ____exports.isChest(self, pickup)
|
|
83
85
|
return CHEST_PICKUP_VARIANTS:has(pickup.Variant)
|
|
84
86
|
end
|
|
85
87
|
function ____exports.isRedHeart(self, pickup)
|
|
86
|
-
return pickup.Variant ==
|
|
88
|
+
return pickup.Variant == PickupVariant.HEART and RED_HEART_SUB_TYPES_SET:has(pickup.SubType)
|
|
87
89
|
end
|
|
88
90
|
function ____exports.removeAllBatteries(self, batterySubType, cap)
|
|
89
|
-
return removeAllPickups(nil,
|
|
91
|
+
return removeAllPickups(nil, PickupVariant.LIL_BATTERY, batterySubType, cap)
|
|
90
92
|
end
|
|
91
93
|
function ____exports.removeAllCards(self, card, cap)
|
|
92
|
-
return removeAllPickups(nil,
|
|
94
|
+
return removeAllPickups(nil, PickupVariant.TAROT_CARD, card, cap)
|
|
93
95
|
end
|
|
94
96
|
function ____exports.removeAllCoins(self, coinSubType, cap)
|
|
95
|
-
return removeAllPickups(nil,
|
|
97
|
+
return removeAllPickups(nil, PickupVariant.COIN, coinSubType, cap)
|
|
96
98
|
end
|
|
97
99
|
function ____exports.removeAllCollectibles(self, collectibleType, cap)
|
|
98
|
-
return removeAllPickups(nil,
|
|
100
|
+
return removeAllPickups(nil, PickupVariant.COLLECTIBLE, collectibleType, cap)
|
|
99
101
|
end
|
|
100
102
|
function ____exports.removeAllHearts(self, heartSubType, cap)
|
|
101
|
-
return removeAllPickups(nil,
|
|
103
|
+
return removeAllPickups(nil, PickupVariant.HEART, heartSubType, cap)
|
|
102
104
|
end
|
|
103
105
|
function ____exports.removeAllKeys(self, keySubType, cap)
|
|
104
|
-
return removeAllPickups(nil,
|
|
106
|
+
return removeAllPickups(nil, PickupVariant.KEY, keySubType, cap)
|
|
105
107
|
end
|
|
106
108
|
function ____exports.removeAllPills(self, pillColor, cap)
|
|
107
|
-
return removeAllPickups(nil,
|
|
109
|
+
return removeAllPickups(nil, PickupVariant.PILL, pillColor, cap)
|
|
108
110
|
end
|
|
109
111
|
function ____exports.removeAllSacks(self, sackSubType, cap)
|
|
110
|
-
return removeAllPickups(nil,
|
|
112
|
+
return removeAllPickups(nil, PickupVariant.TRINKET, sackSubType, cap)
|
|
111
113
|
end
|
|
112
114
|
function ____exports.removeAllTrinkets(self, trinketType, cap)
|
|
113
|
-
return removeAllPickups(nil,
|
|
115
|
+
return removeAllPickups(nil, PickupVariant.TRINKET, trinketType, cap)
|
|
114
116
|
end
|
|
115
117
|
function ____exports.spawnBattery(self, subType, position, velocity, spawner, seed)
|
|
116
118
|
if velocity == nil then
|
|
@@ -124,7 +126,7 @@ function ____exports.spawnBattery(self, subType, position, velocity, spawner, se
|
|
|
124
126
|
end
|
|
125
127
|
return spawnPickup(
|
|
126
128
|
nil,
|
|
127
|
-
|
|
129
|
+
PickupVariant.LIL_BATTERY,
|
|
128
130
|
subType,
|
|
129
131
|
position,
|
|
130
132
|
velocity,
|
|
@@ -160,7 +162,7 @@ function ____exports.spawnCard(self, subType, position, velocity, spawner, seed)
|
|
|
160
162
|
end
|
|
161
163
|
return spawnPickup(
|
|
162
164
|
nil,
|
|
163
|
-
|
|
165
|
+
PickupVariant.TAROT_CARD,
|
|
164
166
|
subType,
|
|
165
167
|
position,
|
|
166
168
|
velocity,
|
|
@@ -196,7 +198,7 @@ function ____exports.spawnCoin(self, subType, position, velocity, spawner, seed)
|
|
|
196
198
|
end
|
|
197
199
|
return spawnPickup(
|
|
198
200
|
nil,
|
|
199
|
-
|
|
201
|
+
PickupVariant.COIN,
|
|
200
202
|
subType,
|
|
201
203
|
position,
|
|
202
204
|
velocity,
|
|
@@ -232,7 +234,7 @@ function ____exports.spawnHeart(self, subType, position, velocity, spawner, seed
|
|
|
232
234
|
end
|
|
233
235
|
return spawnPickup(
|
|
234
236
|
nil,
|
|
235
|
-
|
|
237
|
+
PickupVariant.HEART,
|
|
236
238
|
subType,
|
|
237
239
|
position,
|
|
238
240
|
velocity,
|
|
@@ -268,7 +270,7 @@ function ____exports.spawnKey(self, subType, position, velocity, spawner, seed)
|
|
|
268
270
|
end
|
|
269
271
|
return spawnPickup(
|
|
270
272
|
nil,
|
|
271
|
-
|
|
273
|
+
PickupVariant.KEY,
|
|
272
274
|
subType,
|
|
273
275
|
position,
|
|
274
276
|
velocity,
|
|
@@ -292,7 +294,7 @@ function ____exports.spawnKeyWithSeed(self, subType, position, seed, velocity, s
|
|
|
292
294
|
seed
|
|
293
295
|
)
|
|
294
296
|
end
|
|
295
|
-
function ____exports.spawnPill(self,
|
|
297
|
+
function ____exports.spawnPill(self, pillColor, position, velocity, spawner, seed)
|
|
296
298
|
if velocity == nil then
|
|
297
299
|
velocity = VectorZero
|
|
298
300
|
end
|
|
@@ -304,8 +306,8 @@ function ____exports.spawnPill(self, subType, position, velocity, spawner, seed)
|
|
|
304
306
|
end
|
|
305
307
|
return spawnPickup(
|
|
306
308
|
nil,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
+
PickupVariant.PILL,
|
|
310
|
+
pillColor,
|
|
309
311
|
position,
|
|
310
312
|
velocity,
|
|
311
313
|
spawner,
|
|
@@ -340,7 +342,7 @@ function ____exports.spawnSack(self, subType, position, velocity, spawner, seed)
|
|
|
340
342
|
end
|
|
341
343
|
return spawnPickup(
|
|
342
344
|
nil,
|
|
343
|
-
|
|
345
|
+
PickupVariant.GRAB_BAG,
|
|
344
346
|
subType,
|
|
345
347
|
position,
|
|
346
348
|
velocity,
|
|
@@ -376,7 +378,7 @@ function ____exports.spawnTrinket(self, subType, position, velocity, spawner, se
|
|
|
376
378
|
end
|
|
377
379
|
return spawnPickup(
|
|
378
380
|
nil,
|
|
379
|
-
|
|
381
|
+
PickupVariant.TRINKET,
|
|
380
382
|
subType,
|
|
381
383
|
position,
|
|
382
384
|
velocity,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import { PillEffectClass } from "../enums/PillEffectClass";
|
|
3
|
-
import { PillEffectType } from "../enums/PillEffectType";
|
|
1
|
+
import { ItemConfigPillEffectClass, ItemConfigPillEffectType, PillColor, PillEffect } from "isaac-typescript-definitions";
|
|
4
2
|
/**
|
|
5
|
-
* Helper function to get the
|
|
6
|
-
*
|
|
3
|
+
* Helper function to get the corresponding horse pill color from a normal pill color.
|
|
4
|
+
*
|
|
5
|
+
* For example, passing `PillColor.BLUE_BLUE` would result in 2049, which is the value that
|
|
6
|
+
* corresponds to the horse pill color for blue/blue.
|
|
7
7
|
*/
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function getHorsePillColor(pillColor: PillColor): PillColor;
|
|
9
9
|
/**
|
|
10
10
|
* Helper function to get a pill effect class from a PillEffect enum value. In this context, the
|
|
11
11
|
* class is equal to the numerical prefix in the "class" tag in the "pocketitems.xml" file. Use the
|
|
@@ -15,24 +15,25 @@ export declare function getMaxPillEffects(): int;
|
|
|
15
15
|
* Due to limitations in the API, this function will not work properly for modded pill effects, and
|
|
16
16
|
* will always return `DEFAULT_PILL_EFFECT_CLASS` in those cases.
|
|
17
17
|
*/
|
|
18
|
-
export declare function getPillEffectClass(pillEffect: PillEffect | int):
|
|
18
|
+
export declare function getPillEffectClass(pillEffect: PillEffect | int): ItemConfigPillEffectClass;
|
|
19
19
|
/**
|
|
20
20
|
* Helper function to get a pill effect name from a PillEffect enum value.
|
|
21
21
|
*
|
|
22
22
|
* Example:
|
|
23
23
|
* ```ts
|
|
24
|
-
* const pillEffect = PillEffect.
|
|
24
|
+
* const pillEffect = PillEffect.BAD_GAS;
|
|
25
25
|
* const pillEffectName = getPillEffectName(pillEffect); // trinketName is "Bad Gas"
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
export declare function getPillEffectName(pillEffect: PillEffect | int): string;
|
|
29
29
|
/**
|
|
30
|
-
* Helper function to get a pill effect type from a PillEffect enum value. In this context, the
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
30
|
+
* Helper function to get a pill effect type from a PillEffect enum value. In this context, the type
|
|
31
|
+
* is equal to positive, negative, or neutral. This is derived from the suffix of the the "class"
|
|
32
|
+
* tag in the "pocketitems.xml" file. Use the `getPillEffectClass` helper function to determine the
|
|
33
|
+
* "power" of the pill.
|
|
34
34
|
*
|
|
35
35
|
* Due to limitations in the API, this function will not work properly for modded pill effects, and
|
|
36
36
|
* will always return `DEFAULT_PILL_EFFECT_TYPE` in those cases.
|
|
37
37
|
*/
|
|
38
|
-
export declare function getPillEffectType(pillEffect: PillEffect | int):
|
|
38
|
+
export declare function getPillEffectType(pillEffect: PillEffect | int): ItemConfigPillEffectType;
|
|
39
|
+
export declare function isHorsePill(pillColor: PillColor): boolean;
|
package/dist/functions/pills.lua
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
1
|
local ____exports = {}
|
|
3
2
|
local ____cachedClasses = require("cachedClasses")
|
|
4
3
|
local itemConfig = ____cachedClasses.itemConfig
|
|
@@ -11,8 +10,12 @@ local PILL_EFFECT_NAMES = ____pillEffectNames.PILL_EFFECT_NAMES
|
|
|
11
10
|
local ____pillEffectTypes = require("objects.pillEffectTypes")
|
|
12
11
|
local DEFAULT_PILL_EFFECT_TYPE = ____pillEffectTypes.DEFAULT_PILL_EFFECT_TYPE
|
|
13
12
|
local PILL_EFFECT_TYPES = ____pillEffectTypes.PILL_EFFECT_TYPES
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
local ____flag = require("functions.flag")
|
|
14
|
+
local hasFlag = ____flag.hasFlag
|
|
15
|
+
local HORSE_PILL_FLAG = 2047
|
|
16
|
+
local HORSE_PILL_ADJUSTMENT = 2048
|
|
17
|
+
function ____exports.getHorsePillColor(self, pillColor)
|
|
18
|
+
return pillColor + HORSE_PILL_ADJUSTMENT
|
|
16
19
|
end
|
|
17
20
|
function ____exports.getPillEffectClass(self, pillEffect)
|
|
18
21
|
local pillEffectClass = PILL_EFFECT_CLASSES[pillEffect]
|
|
@@ -33,4 +36,7 @@ function ____exports.getPillEffectType(self, pillEffect)
|
|
|
33
36
|
local pillEffectClass = PILL_EFFECT_TYPES[pillEffect]
|
|
34
37
|
return pillEffectClass == nil and DEFAULT_PILL_EFFECT_TYPE or pillEffectClass
|
|
35
38
|
end
|
|
39
|
+
function ____exports.isHorsePill(self, pillColor)
|
|
40
|
+
return hasFlag(nil, pillColor, HORSE_PILL_FLAG)
|
|
41
|
+
end
|
|
36
42
|
return ____exports
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { ActiveSlot, CacheFlag, CollectibleType, PlayerType, TrinketType } from "isaac-typescript-definitions";
|
|
2
2
|
import { HealthType } from "../enums/HealthType";
|
|
3
3
|
export declare function addCollectibleCostume(player: EntityPlayer, collectibleType: CollectibleType | int): void;
|
|
4
4
|
/**
|
|
5
5
|
* Helper function to add a stat to a player based on the `CacheFlag` provided. Call this function
|
|
6
6
|
* from the EvaluateCache callback.
|
|
7
7
|
*
|
|
8
|
-
* Note that for `CacheFlag.
|
|
9
|
-
*
|
|
8
|
+
* Note that for `CacheFlag.FIRE_DELAY`, the "amount" argument will be interpreted as the tear stat
|
|
9
|
+
* to add (and not the amount to mutate `EntityPlayer.MaxFireDelay` by).
|
|
10
10
|
*
|
|
11
11
|
* This function supports the following cache flags:
|
|
12
|
-
* - CacheFlag.
|
|
13
|
-
* - CacheFlag.
|
|
14
|
-
* - CacheFlag.
|
|
15
|
-
* - CacheFlag.
|
|
16
|
-
* - CacheFlag.
|
|
17
|
-
* - CacheFlag.
|
|
12
|
+
* - CacheFlag.DAMAGE (1 << 0)
|
|
13
|
+
* - CacheFlag.FIRE_DELAY (1 << 1)
|
|
14
|
+
* - CacheFlag.SHOT_SPEED (1 << 2)
|
|
15
|
+
* - CacheFlag.RANGE (1 << 3)
|
|
16
|
+
* - CacheFlag.SPEED (1 << 4)
|
|
17
|
+
* - CacheFlag.LUCK (1 << 10)
|
|
18
18
|
*/
|
|
19
19
|
export declare function addStat(player: EntityPlayer, cacheFlag: CacheFlag, amount: number): void;
|
|
20
20
|
export declare function addTrinketCostume(player: EntityPlayer, trinketType: TrinketType | int): void;
|
|
@@ -218,12 +218,12 @@ export declare function isJacobOrEsau(player: EntityPlayer): boolean;
|
|
|
218
218
|
export declare function isKeeper(player: EntityPlayer): boolean;
|
|
219
219
|
/** Helper function for detecting when a player is The Lost or Tainted Lost. */
|
|
220
220
|
export declare function isLost(player: EntityPlayer): boolean;
|
|
221
|
-
export declare function
|
|
221
|
+
export declare function isModdedPlayer(player: EntityPlayer): boolean;
|
|
222
222
|
/** Helper function for detecting if a player is one of the Tainted characters. */
|
|
223
223
|
export declare function isTainted(player: EntityPlayer): boolean;
|
|
224
224
|
/** Helper function for detecting when a player is Tainted Lazarus or Dead Tainted Lazarus. */
|
|
225
225
|
export declare function isTaintedLazarus(player: EntityPlayer): boolean;
|
|
226
|
-
export declare function
|
|
226
|
+
export declare function isVanillaPlayer(player: EntityPlayer): boolean;
|
|
227
227
|
/**
|
|
228
228
|
* Helper function to add one or more collectibles to a player.
|
|
229
229
|
*
|