isaacscript-common 6.6.1-dev.1 → 6.6.1-dev.2
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/cachedClasses.d.ts +1 -0
- package/cachedClasses.js +59 -0
- package/callbacks/customRevive.js +153 -0
- package/callbacks/itemPickup.js +64 -0
- package/callbacks/postAmbush.js +54 -0
- package/callbacks/postBombExploded.js +20 -0
- package/callbacks/postBombInitLate.js +28 -0
- package/callbacks/postBoneSwing.js +49 -0
- package/callbacks/postCollectibleEmpty.js +32 -0
- package/callbacks/postCollectibleInitFirst.js +27 -0
- package/callbacks/postCursedTeleport.js +120 -0
- package/callbacks/postCustomDoorEnter.js +205 -0
- package/callbacks/postDiceRoomActivated.js +39 -0
- package/callbacks/postDoorRender.js +20 -0
- package/callbacks/postDoorUpdate.js +20 -0
- package/callbacks/postEffectInitLate.js +28 -0
- package/callbacks/postEffectStateChanged.js +31 -0
- package/callbacks/postEsauJr.js +70 -0
- package/callbacks/postFamiliarInitLate.js +28 -0
- package/callbacks/postFamiliarStateChanged.js +31 -0
- package/callbacks/postFlip.js +59 -0
- package/callbacks/postGreedModeWave.js +31 -0
- package/callbacks/postGridEntity.js +107 -0
- package/callbacks/postGridEntityCollision.js +49 -0
- package/callbacks/postGridEntityRender.js +20 -0
- package/callbacks/postHolyMantleRemoved.js +33 -0
- package/callbacks/postItemDischarged.js +94 -0
- package/callbacks/postKnifeInitLate.js +28 -0
- package/callbacks/postLaserInitLate.js +28 -0
- package/callbacks/postNPCInitLate.js +28 -0
- package/callbacks/postNPCStateChanged.js +31 -0
- package/callbacks/postNewRoomEarly.js +69 -0
- package/callbacks/postPickupCollect.js +37 -0
- package/callbacks/postPickupInitFirst.js +52 -0
- package/callbacks/postPickupInitLate.js +28 -0
- package/callbacks/postPickupStateChanged.js +31 -0
- package/callbacks/postPitRender.js +20 -0
- package/callbacks/postPitUpdate.js +20 -0
- package/callbacks/postPlayerChangeHealth.js +43 -0
- package/callbacks/postPlayerChangeType.js +31 -0
- package/callbacks/postPlayerCollectible.js +74 -0
- package/callbacks/postPlayerFatalDamage.js +74 -0
- package/callbacks/postPlayerInitLate.js +28 -0
- package/callbacks/postPlayerReordered.js +109 -0
- package/callbacks/postPoopRender.js +20 -0
- package/callbacks/postPoopUpdate.js +20 -0
- package/callbacks/postPressurePlateRender.js +20 -0
- package/callbacks/postPressurePlateUpdate.js +20 -0
- package/callbacks/postProjectileInitLate.js +28 -0
- package/callbacks/postPurchase.js +39 -0
- package/callbacks/postRockRender.js +20 -0
- package/callbacks/postRockUpdate.js +20 -0
- package/callbacks/postRoomClearChanged.js +41 -0
- package/callbacks/postSacrifice.js +38 -0
- package/callbacks/postSlotDestroyed.js +64 -0
- package/callbacks/postSlotInitUpdate.js +49 -0
- package/callbacks/postSlotRender.js +48 -0
- package/callbacks/postSpikesRender.js +20 -0
- package/callbacks/postSpikesUpdate.js +20 -0
- package/callbacks/postTNTRender.js +20 -0
- package/callbacks/postTNTUpdate.js +20 -0
- package/callbacks/postTearInitLate.js +28 -0
- package/callbacks/postTearInitVeryLate.js +32 -0
- package/callbacks/postTransformation.js +37 -0
- package/callbacks/postTrinketBreak.js +64 -0
- package/callbacks/preBerserkDeath.js +35 -0
- package/callbacks/preNewLevel.js +45 -0
- package/callbacks/reorderedCallbacks.js +136 -0
- package/callbacks/subscriptions/postAmbushFinished.js +20 -0
- package/callbacks/subscriptions/postAmbushStarted.js +20 -0
- package/callbacks/subscriptions/postBombInitLate.js +20 -0
- package/callbacks/subscriptions/postBoneExploded.js +20 -0
- package/callbacks/subscriptions/postBoneSwing.js +16 -0
- package/callbacks/subscriptions/postCollectibleEmpty.js +21 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.js +21 -0
- package/callbacks/subscriptions/postCursedTeleport.js +16 -0
- package/callbacks/subscriptions/postCustomDoorEnter.js +21 -0
- package/callbacks/subscriptions/postCustomRevive.js +21 -0
- package/callbacks/subscriptions/postDiceRoomActivated.js +21 -0
- package/callbacks/subscriptions/postDoorRender.js +22 -0
- package/callbacks/subscriptions/postDoorUpdate.js +22 -0
- package/callbacks/subscriptions/postEffectInitLate.js +20 -0
- package/callbacks/subscriptions/postEffectStateChanged.js +20 -0
- package/callbacks/subscriptions/postEsauJr.js +16 -0
- package/callbacks/subscriptions/postFamiliarInitLate.js +20 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.js +20 -0
- package/callbacks/subscriptions/postFirstEsauJr.js +16 -0
- package/callbacks/subscriptions/postFirstFlip.js +16 -0
- package/callbacks/subscriptions/postFlip.js +16 -0
- package/callbacks/subscriptions/postGameStartedReordered.js +16 -0
- package/callbacks/subscriptions/postGreedModeWave.js +16 -0
- package/callbacks/subscriptions/postGridEntityBroken.js +28 -0
- package/callbacks/subscriptions/postGridEntityCollision.js +28 -0
- package/callbacks/subscriptions/postGridEntityInit.js +28 -0
- package/callbacks/subscriptions/postGridEntityRemove.js +26 -0
- package/callbacks/subscriptions/postGridEntityRender.js +28 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.js +28 -0
- package/callbacks/subscriptions/postGridEntityUpdate.js +28 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.js +25 -0
- package/callbacks/subscriptions/postItemDischarged.js +21 -0
- package/callbacks/subscriptions/postItemPickup.js +25 -0
- package/callbacks/subscriptions/postKnifeInitLate.js +20 -0
- package/callbacks/subscriptions/postLaserInitLate.js +20 -0
- package/callbacks/subscriptions/postNPCInitLate.js +20 -0
- package/callbacks/subscriptions/postNPCStateChanged.js +24 -0
- package/callbacks/subscriptions/postNewLevelReordered.js +16 -0
- package/callbacks/subscriptions/postNewRoomEarly.js +16 -0
- package/callbacks/subscriptions/postNewRoomReordered.js +16 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.js +25 -0
- package/callbacks/subscriptions/postPickupCollect.js +20 -0
- package/callbacks/subscriptions/postPickupInitFirst.js +20 -0
- package/callbacks/subscriptions/postPickupInitLate.js +20 -0
- package/callbacks/subscriptions/postPickupStateChanged.js +20 -0
- package/callbacks/subscriptions/postPitRender.js +22 -0
- package/callbacks/subscriptions/postPitUpdate.js +22 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.js +25 -0
- package/callbacks/subscriptions/postPlayerChangeType.js +20 -0
- package/callbacks/subscriptions/postPlayerCollectibleAdded.js +21 -0
- package/callbacks/subscriptions/postPlayerCollectibleRemoved.js +21 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.js +29 -0
- package/callbacks/subscriptions/postPlayerInitLate.js +25 -0
- package/callbacks/subscriptions/postPlayerInitReordered.js +25 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.js +25 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.js +25 -0
- package/callbacks/subscriptions/postPoopRender.js +22 -0
- package/callbacks/subscriptions/postPoopUpdate.js +22 -0
- package/callbacks/subscriptions/postPressurePlateRender.js +22 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.js +22 -0
- package/callbacks/subscriptions/postProjectileInitLate.js +21 -0
- package/callbacks/subscriptions/postPurchase.js +16 -0
- package/callbacks/subscriptions/postRockRender.js +22 -0
- package/callbacks/subscriptions/postRockUpdate.js +22 -0
- package/callbacks/subscriptions/postRoomClearChanged.js +20 -0
- package/callbacks/subscriptions/postSacrifice.js +25 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.js +20 -0
- package/callbacks/subscriptions/postSlotDestroyed.js +26 -0
- package/callbacks/subscriptions/postSlotInit.js +20 -0
- package/callbacks/subscriptions/postSlotRender.js +20 -0
- package/callbacks/subscriptions/postSlotUpdate.js +20 -0
- package/callbacks/subscriptions/postSpikesRender.js +22 -0
- package/callbacks/subscriptions/postSpikesUpdate.js +22 -0
- package/callbacks/subscriptions/postTNTRender.js +22 -0
- package/callbacks/subscriptions/postTNTUpdate.js +22 -0
- package/callbacks/subscriptions/postTearInitLate.js +20 -0
- package/callbacks/subscriptions/postTearInitVeryLate.js +20 -0
- package/callbacks/subscriptions/postTransformation.js +20 -0
- package/callbacks/subscriptions/postTrinketBreak.js +21 -0
- package/callbacks/subscriptions/preBerserkDeath.js +26 -0
- package/callbacks/subscriptions/preCustomRevive.js +29 -0
- package/callbacks/subscriptions/preItemPickup.js +25 -0
- package/callbacks/subscriptions/preNewLevel.js +16 -0
- package/classes/DefaultMap.js +145 -0
- package/classes/ModUpgraded.js +57 -0
- package/constants.js +143 -0
- package/constantsFirstLast.js +156 -0
- package/enums/AmbushType.js +6 -0
- package/enums/CornerType.js +8 -0
- package/enums/DecorationVariant.js +11 -0
- package/enums/HealthType.js +18 -0
- package/enums/ModCallbackCustom.js +1213 -0
- package/enums/PocketItemType.js +10 -0
- package/enums/RockAltType.js +9 -0
- package/enums/SerializationType.js +7 -0
- package/enums/SlotDestructionType.js +6 -0
- package/enums/private/CopyableIsaacAPIClassType.js +9 -0
- package/enums/private/SaveDataKey.js +8 -0
- package/enums/private/SerializationBrand.js +41 -0
- package/features/characterHealthConversion.js +86 -0
- package/features/characterStats.js +52 -0
- package/features/collectibleItemPoolType.js +45 -0
- package/features/customGridEntity.js +148 -0
- package/features/customStage/backdrop.js +191 -0
- package/features/customStage/customStageConstants.js +2 -0
- package/features/customStage/exports.js +147 -0
- package/features/customStage/gridEntities.js +138 -0
- package/features/customStage/init.js +104 -0
- package/features/customStage/metadata.json +1 -0
- package/features/customStage/shadows.js +63 -0
- package/features/customStage/streakText.js +35 -0
- package/features/customStage/util.js +36 -0
- package/features/customStage/v.js +18 -0
- package/features/customStage/versusScreen.js +184 -0
- package/features/debugDisplay/debugDisplay.js +183 -0
- package/features/debugDisplay/exports.js +441 -0
- package/features/debugDisplay/v.d.ts +18 -0
- package/features/debugDisplay/v.js +61 -0
- package/features/deployJSONRoom.js +532 -0
- package/features/disableAllSound.js +63 -0
- package/features/disableInputs.js +130 -0
- package/features/extraConsoleCommands/commandsDisplay.js +236 -0
- package/features/extraConsoleCommands/commandsSubroutines.js +109 -0
- package/features/extraConsoleCommands/exports.js +53 -0
- package/features/extraConsoleCommands/init.js +239 -0
- package/features/extraConsoleCommands/listCommands.js +1081 -0
- package/features/extraConsoleCommands/v.js +25 -0
- package/features/fadeInRemover.js +51 -0
- package/features/fastReset.js +61 -0
- package/features/forgottenSwitch.js +33 -0
- package/features/pause.js +68 -0
- package/features/persistentEntities.js +120 -0
- package/features/playerInventory.js +89 -0
- package/features/ponyDetection.js +63 -0
- package/features/preventCollectibleRotation.js +81 -0
- package/features/registerHotkey.js +91 -0
- package/features/roomClearFrame.js +42 -0
- package/features/runInNFrames.js +189 -0
- package/features/runNextRoom.js +34 -0
- package/features/saveDataManager/exports.js +183 -0
- package/features/saveDataManager/load.js +69 -0
- package/features/saveDataManager/main.js +131 -0
- package/features/saveDataManager/maps.js +9 -0
- package/features/saveDataManager/merge.js +139 -0
- package/features/saveDataManager/save.js +43 -0
- package/features/saveDataManager/saveDataManagerConstants.js +4 -0
- package/features/saveDataManager/serializationBrand.js +12 -0
- package/features/sirenHelpers.js +90 -0
- package/features/stageHistory.js +43 -0
- package/features/taintedLazarusPlayers.js +92 -0
- package/featuresInitialized.js +16 -0
- package/functions/ambush.js +35 -0
- package/functions/array.js +423 -0
- package/functions/benchmark.js +28 -0
- package/functions/bitwise.js +74 -0
- package/functions/bombs.js +11 -0
- package/functions/boss.js +137 -0
- package/functions/cacheFlag.js +11 -0
- package/functions/cards.js +217 -0
- package/functions/challenges.js +9 -0
- package/functions/character.js +102 -0
- package/functions/charge.js +202 -0
- package/functions/chargeBar.js +44 -0
- package/functions/collectibleCacheFlag.js +68 -0
- package/functions/collectibleSet.js +108 -0
- package/functions/collectibleTag.js +65 -0
- package/functions/collectibles.js +469 -0
- package/functions/color.d.ts +1 -1
- package/functions/color.js +60 -0
- package/functions/debug.js +60 -0
- package/functions/deepCopy.js +361 -0
- package/functions/deepCopyTests.js +308 -0
- package/functions/direction.js +41 -0
- package/functions/doors.js +326 -0
- package/functions/easing.js +142 -0
- package/functions/eden.js +32 -0
- package/functions/effects.js +11 -0
- package/functions/entity.js +324 -0
- package/functions/entitySpecific.js +481 -0
- package/functions/entityTypes.js +6 -0
- package/functions/enums.js +151 -0
- package/functions/familiars.js +85 -0
- package/functions/flag.js +137 -0
- package/functions/flying.js +88 -0
- package/functions/globals.js +230 -0
- package/functions/gridEntity.js +488 -0
- package/functions/gridEntitySpecific.js +109 -0
- package/functions/input.js +95 -0
- package/functions/isaacAPIClass.js +48 -0
- package/functions/jsonHelpers.js +40 -0
- package/functions/jsonRoom.js +132 -0
- package/functions/kColor.d.ts +1 -1
- package/functions/kColor.js +63 -0
- package/functions/language.js +13 -0
- package/functions/level.js +20 -0
- package/functions/log.js +567 -0
- package/functions/map.js +45 -0
- package/functions/math.js +103 -0
- package/functions/mergeTests.js +213 -0
- package/functions/minimap.js +80 -0
- package/functions/nextStage.js +290 -0
- package/functions/npc.js +101 -0
- package/functions/pickupVariants.js +47 -0
- package/functions/pickups.js +219 -0
- package/functions/pills.js +160 -0
- package/functions/player.js +808 -0
- package/functions/playerCenter.js +50 -0
- package/functions/playerDataStructures.js +114 -0
- package/functions/playerHealth.js +321 -0
- package/functions/playerIndex.js +160 -0
- package/functions/pocketItems.js +124 -0
- package/functions/positionVelocity.js +136 -0
- package/functions/random.js +73 -0
- package/functions/revive.js +140 -0
- package/functions/rng.d.ts +1 -1
- package/functions/rng.js +117 -0
- package/functions/roomData.js +174 -0
- package/functions/roomGrid.js +81 -0
- package/functions/roomShape.js +99 -0
- package/functions/rooms.js +487 -0
- package/functions/run.js +53 -0
- package/functions/saveFile.js +104 -0
- package/functions/seeds.js +18 -0
- package/functions/serialization.js +52 -0
- package/functions/set.js +99 -0
- package/functions/sound.js +9 -0
- package/functions/spawnCollectible.js +66 -0
- package/functions/sprite.js +80 -0
- package/functions/stage.js +172 -0
- package/functions/string.js +37 -0
- package/functions/table.js +143 -0
- package/functions/tears.js +31 -0
- package/functions/transformations.js +101 -0
- package/functions/trinketCacheFlag.js +46 -0
- package/functions/trinketGive.js +121 -0
- package/functions/trinkets.js +169 -0
- package/functions/tstlClass.js +125 -0
- package/functions/types.js +27 -0
- package/functions/ui.js +124 -0
- package/functions/utils.js +172 -0
- package/functions/vector.js +68 -0
- package/index.js +140 -0
- package/initCustomCallbacks.js +133 -0
- package/initFeatures.js +51 -0
- package/interfaces/AddCallbackParameterCustom.js +2 -0
- package/interfaces/ChargeBarSprites.js +2 -0
- package/interfaces/Corner.js +2 -0
- package/interfaces/CustomGridEntityData.js +2 -0
- package/interfaces/CustomStage.js +2 -0
- package/interfaces/CustomStageLua.js +13 -0
- package/interfaces/JSONRoomsFile.js +2 -0
- package/interfaces/PlayerHealth.js +2 -0
- package/interfaces/PocketItemDescription.js +2 -0
- package/interfaces/SaveData.js +2 -0
- package/interfaces/TrinketSituation.js +2 -0
- package/interfaces/private/TSTLClassMetatable.js +2 -0
- package/maps/PHDPillConversions.js +20 -0
- package/maps/cardMap.js +208 -0
- package/maps/characterMap.js +86 -0
- package/maps/collectibleDescriptionMap.js +728 -0
- package/maps/collectibleNameMap.js +727 -0
- package/maps/defaultPlayerStatMap.js +14 -0
- package/maps/falsePHDPillConversions.js +34 -0
- package/maps/gridEntityTypeToBrokenStateMap.js +29 -0
- package/maps/gridEntityXMLMap.js +128 -0
- package/maps/pillEffectMap.js +88 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.js +14 -0
- package/maps/roomTypeMap.js +39 -0
- package/maps/trinketDescriptionMap.js +196 -0
- package/maps/trinketNameMap.js +195 -0
- package/objects/LRoomShapeToRectangles.js +33 -0
- package/objects/backdropTypeToRockAltType.js +66 -0
- package/objects/bossNamePNGFileNames.js +112 -0
- package/objects/bossPortraitPNGFileNames.js +115 -0
- package/objects/callbackRegisterFunctions.js +170 -0
- package/objects/cardDescriptions.js +104 -0
- package/objects/cardNames.js +104 -0
- package/objects/cardTypes.js +103 -0
- package/objects/challengeNames.js +51 -0
- package/objects/characterNames.js +46 -0
- package/objects/coinSubTypeToValue.js +13 -0
- package/objects/colors.d.ts +1 -0
- package/objects/colors.js +24 -0
- package/objects/directionNames.js +9 -0
- package/objects/directionToDegrees.js +9 -0
- package/objects/directionToVector.js +10 -0
- package/objects/doorSlotFlagToDoorSlot.js +13 -0
- package/objects/doorSlotToDirection.js +13 -0
- package/objects/doorSlotToDoorSlotFlag.js +13 -0
- package/objects/isaacAPIClassTypeToBrand.js +9 -0
- package/objects/isaacAPIClassTypeToCopyFunction.js +12 -0
- package/objects/languageNames.js +11 -0
- package/objects/oppositeDoorSlots.js +13 -0
- package/objects/pillEffectClasses.js +56 -0
- package/objects/pillEffectNames.js +55 -0
- package/objects/pillEffectTypes.js +55 -0
- package/objects/playerNamePNGFileNames.js +55 -0
- package/objects/playerPortraitPNGFileNames.js +52 -0
- package/objects/roomShapeBounds.js +46 -0
- package/objects/roomShapeCorners.js +268 -0
- package/objects/roomShapeLayoutSizes.js +39 -0
- package/objects/roomShapeToBottomRightPosition.js +22 -0
- package/objects/roomShapeToDoorSlotCoordinates.js +109 -0
- package/objects/roomShapeToDoorSlots.js +69 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.js +113 -0
- package/objects/roomShapeToGridWidth.js +18 -0
- package/objects/roomShapeToTopLeftPosition.js +23 -0
- package/objects/roomShapeVolumes.js +30 -0
- package/objects/roomTypeGotoPrefixes.js +33 -0
- package/objects/roomTypeNames.js +34 -0
- package/objects/serializedIsaacAPIClassTypeToIdentityFunction.js +12 -0
- package/objects/stageTypeSuffixes.js +10 -0
- package/objects/stageTypeToLetter.js +12 -0
- package/objects/transformationNames.js +18 -0
- package/objects/versusScreenBackgroundColors.js +36 -0
- package/objects/versusScreenDirtSpotColors.js +36 -0
- package/package.json +1 -1
- package/patchErrorFunctions.js +67 -0
- package/sets/LRoomShapesSet.js +8 -0
- package/sets/bossSets.js +374 -0
- package/sets/charactersThatStartWithAnActiveItemSet.js +15 -0
- package/sets/charactersWithBlackHeartFromEternalHeartSet.js +6 -0
- package/sets/charactersWithFreeDevilDealsSet.js +3 -0
- package/sets/charactersWithNoRedHeartsSet.js +16 -0
- package/sets/charactersWithNoSoulHeartsSet.js +13 -0
- package/sets/chestPickupVariantsSet.js +16 -0
- package/sets/consoleCommandsSet.js +61 -0
- package/sets/familiarsThatShootPlayerTearsSet.js +12 -0
- package/sets/lostStyleCharactersSet.js +13 -0
- package/sets/mineShaftRoomSubTypesSet.js +9 -0
- package/sets/narrowRoomShapesSet.js +8 -0
- package/sets/redHeartSubTypesSet.js +7 -0
- package/sets/sinEntityTypesSet.js +11 -0
- package/sets/singleUseActiveCollectibleTypesSet.js +12 -0
- package/sets/storyBossesSet.js +17 -0
- package/shaderCrashFix.js +17 -0
- package/types/AnyEntity.js +2 -0
- package/types/CollectibleIndex.js +2 -0
- package/types/PickingUpItem.js +38 -0
- package/types/PlayerIndex.js +2 -0
- package/types/private/IsaacAPIClass.js +2 -0
- package/types/private/SerializedIsaacAPIClass.js +2 -0
- package/types/private/TSTLClass.js +2 -0
- package/upgradeMod.js +47 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { itemConfig } from "../cachedClasses";
|
|
2
|
+
import { FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET } from "../sets/familiarsThatShootPlayerTearsSet";
|
|
3
|
+
import { getFamiliars } from "./entitySpecific";
|
|
4
|
+
/**
|
|
5
|
+
* Helper function to add and remove familiars based on a target amount that you specify.
|
|
6
|
+
*
|
|
7
|
+
* This is a convenience wrapper around the `EntityPlayer.CheckFamiliar` method. Use this helper
|
|
8
|
+
* function instead so that you do not have to retrieve the `ItemConfigItem` and so that you do not
|
|
9
|
+
* specify an incorrect RNG object. (The vanilla method is bugged in that it does not increment the
|
|
10
|
+
* RNG object; see the documentation of the method for more details.)
|
|
11
|
+
*
|
|
12
|
+
* This function is meant to be called in the EvaluateCache callback (when the cache flag is equal
|
|
13
|
+
* to `CacheFlag.FAMILIARS`).
|
|
14
|
+
*
|
|
15
|
+
* Note that this function is only meant to be used in special circumstances where the familiar
|
|
16
|
+
* count is completely custom and does not correspond to the amount of collectibles. For the general
|
|
17
|
+
* case, use the `checkFamiliarFromCollectibles` helper function instead.
|
|
18
|
+
*
|
|
19
|
+
* Note that this will spawn familiars with a completely random `InitSeed`. When calculating random
|
|
20
|
+
* events for this familiar, you should use a data structure that maps familiar `InitSeed` to RNG
|
|
21
|
+
* objects that are initialized based on the seed from
|
|
22
|
+
* `EntityPlayer.GetCollectibleRNG(collectibleType)`.
|
|
23
|
+
*
|
|
24
|
+
* @param player The player that owns the familiars.
|
|
25
|
+
* @param collectibleType The collectible type of the collectible associated with this familiar.
|
|
26
|
+
* @param targetCount The number of familiars that should exist. This function will add or remove
|
|
27
|
+
* familiars until it matches the target count.
|
|
28
|
+
* @param familiarVariant The variant of the familiar to spawn or remove.
|
|
29
|
+
* @param familiarSubType Optional. The sub-type of the familiar to spawn or remove. If not
|
|
30
|
+
* specified, it will search for existing familiars of all sub-types, and
|
|
31
|
+
* spawn new familiars with a sub-type of 0.
|
|
32
|
+
*/
|
|
33
|
+
export function checkFamiliar(player, collectibleType, targetCount, familiarVariant, familiarSubType) {
|
|
34
|
+
const itemConfigItem = itemConfig.GetCollectible(collectibleType);
|
|
35
|
+
player.CheckFamiliar(familiarVariant, targetCount, RNG(), itemConfigItem, familiarSubType);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Helper function to add and remove familiars based on the amount of associated collectibles that a
|
|
39
|
+
* player has.
|
|
40
|
+
*
|
|
41
|
+
* Use this helper function instead of invoking the `EntityPlayer.CheckFamiliar` method directly so
|
|
42
|
+
* that the target count is handled automatically.
|
|
43
|
+
*
|
|
44
|
+
* This function is meant to be called in the EvaluateCache callback (when the cache flag is equal
|
|
45
|
+
* to `CacheFlag.FAMILIARS`).
|
|
46
|
+
*
|
|
47
|
+
* Use this function when the amount of familiars should be equal to the amount of associated
|
|
48
|
+
* collectibles that the player has (plus any extras from having used Box of Friends or Monster
|
|
49
|
+
* Manual). If you instead need to have a custom amount of familiars, use the `checkFamiliars`
|
|
50
|
+
* function instead.
|
|
51
|
+
*
|
|
52
|
+
* Note that this will spawn familiars with a completely random `InitSeed`. When calculating random
|
|
53
|
+
* events for this familiar, you should use a data structure that maps familiar `InitSeed` to RNG
|
|
54
|
+
* objects that are initialized based on the seed from
|
|
55
|
+
* `EntityPlayer.GetCollectibleRNG(collectibleType)`.
|
|
56
|
+
*
|
|
57
|
+
* @param player The player that owns the familiars and collectibles.
|
|
58
|
+
* @param collectibleType The collectible type of the collectible associated with this familiar.
|
|
59
|
+
* @param familiarVariant The variant of the familiar to spawn or remove.
|
|
60
|
+
* @param familiarSubType Optional. The sub-type of the familiar to spawn or remove. If not
|
|
61
|
+
* specified, it will search for existing familiars of all sub-types, and
|
|
62
|
+
* spawn new familiars with a sub-type of 0.
|
|
63
|
+
*/
|
|
64
|
+
export function checkFamiliarFromCollectibles(player, collectibleType, familiarVariant, familiarSubType) {
|
|
65
|
+
const numCollectibles = player.GetCollectibleNum(collectibleType);
|
|
66
|
+
const effects = player.GetEffects();
|
|
67
|
+
// Whenever Box of Friends or Monster Manual is used, it will automatically increment the number
|
|
68
|
+
// of collectible effects for this familiar.
|
|
69
|
+
const numCollectibleEffects = effects.GetCollectibleEffectNum(collectibleType);
|
|
70
|
+
const targetCount = numCollectibles + numCollectibleEffects;
|
|
71
|
+
checkFamiliar(player, collectibleType, targetCount, familiarVariant, familiarSubType);
|
|
72
|
+
}
|
|
73
|
+
/** Helper function to get only the familiars that belong to a specific player. */
|
|
74
|
+
export function getPlayerFamiliars(player) {
|
|
75
|
+
const playerPtrHash = GetPtrHash(player);
|
|
76
|
+
const familiars = getFamiliars();
|
|
77
|
+
return familiars.filter((familiar) => {
|
|
78
|
+
const familiarPlayerPtrHash = GetPtrHash(familiar.Player);
|
|
79
|
+
return familiarPlayerPtrHash === playerPtrHash;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
export function isFamiliarThatShootsPlayerTears(familiar) {
|
|
83
|
+
return FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET.has(familiar.Variant);
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xNQUFNLE9BQU8sR0FBRyxNQUFNLENBQUMsVUFBVSxFQUFFLENBQUM7SUFFcEMsZ0dBQWdHO0lBQ2hHLDRDQUE0QztJQUM1QyxNQUFNLHFCQUFxQixHQUN6QixPQUFPLENBQUMsdUJBQXVCLENBQUMsZUFBZSxDQUFDLENBQUM7SUFDbkQsTUFBTSxXQUFXLEdBQUcsZUFBZSxHQUFHLHFCQUFxQixDQUFDO0lBRTVELGFBQWEsQ0FDWCxNQUFNLEVBQ04sZUFBZSxFQUNmLFdBQVcsRUFDWCxlQUFlLEVBQ2YsZUFBZSxDQUNoQixDQUFDO0FBQ0osQ0FBQztBQUVELGtGQUFrRjtBQUNsRixNQUFNLFVBQVUsa0JBQWtCLENBQUMsTUFBb0I7SUFDckQsTUFBTSxhQUFhLEdBQUcsVUFBVSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3pDLE1BQU0sU0FBUyxHQUFHLFlBQVksRUFBRSxDQUFDO0lBQ2pDLE9BQU8sU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDLFFBQVEsRUFBRSxFQUFFO1FBQ25DLE1BQU0scUJBQXFCLEdBQUcsVUFBVSxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUMxRCxPQUFPLHFCQUFxQixLQUFLLGFBQWEsQ0FBQztJQUNqRCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUM7QUFFRCxNQUFNLFVBQVUsK0JBQStCLENBQzdDLFFBQXdCO0lBRXhCLE9BQU8scUNBQXFDLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUNyRSxDQUFDIn0=
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { DamageFlag } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to add a bit flag to an existing set of bit flags.
|
|
4
|
+
*
|
|
5
|
+
* This is a variadic function, so pass as many flags as you want to add.
|
|
6
|
+
*
|
|
7
|
+
* Example 1:
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* // Give the player spectral tears
|
|
11
|
+
* const player = Isaac.GetPlayer();
|
|
12
|
+
* player.TearFlags = addFlag(player.TearFlags, TearFlags.TEAR_SPECTRAL);
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* Example 2:
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* // Give the player spectral and homing tears
|
|
19
|
+
* const player = Isaac.GetPlayer();
|
|
20
|
+
* player.TearFlags = addFlag(player.TearFlags, TearFlags.TEAR_SPECTRAL, TearFlags.TEAR_HOMING);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param flags The existing set of bit flags.
|
|
24
|
+
* @param flagsToAdd One or more bit flags to add, each as a separate argument.
|
|
25
|
+
* @returns The combined bit flags.
|
|
26
|
+
*/
|
|
27
|
+
export function addFlag(flags, ...flagsToAdd) {
|
|
28
|
+
let flagsAsInt = flags;
|
|
29
|
+
for (const flagToAdd of flagsToAdd) {
|
|
30
|
+
flagsAsInt |= flagToAdd;
|
|
31
|
+
}
|
|
32
|
+
return flagsAsInt;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Helper function for casting a flag enum value to a `BitFlags` object.
|
|
36
|
+
*
|
|
37
|
+
* This is useful because the compiler will prevent you from assigning a specific flag to a
|
|
38
|
+
* `BitFlags` property. (It does this to ensure type safety, since `BitFlags` can represent a zero
|
|
39
|
+
* value or a composition of N flags.)
|
|
40
|
+
*
|
|
41
|
+
* For example:
|
|
42
|
+
*
|
|
43
|
+
* ```ts
|
|
44
|
+
* player.TearFlags = bitFlags(TearFlag.SPECTRAL);
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export function bitFlags(flag) {
|
|
48
|
+
return flag;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Helper function to get the key associated with a particular flag.
|
|
52
|
+
*
|
|
53
|
+
* (Since bit flags are represented by custom objects instead of normal TypeScript enums, you cannot
|
|
54
|
+
* use the reverse mapping to find the associated key of a given enum value. Use this helper
|
|
55
|
+
* function instead of indexing the enum directly.)
|
|
56
|
+
*/
|
|
57
|
+
export function getFlagName(flag, flagEnum) {
|
|
58
|
+
for (const [key, value] of pairs(flagEnum)) {
|
|
59
|
+
if (value === flag) {
|
|
60
|
+
return key;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Helper function to determine if a particular bit flag is set to true.
|
|
67
|
+
*
|
|
68
|
+
* This is a variadic function, so pass as many flags as you want to check for. If passed multiple
|
|
69
|
+
* flags, it will only return true if all of the flags are set.
|
|
70
|
+
*
|
|
71
|
+
* For example:
|
|
72
|
+
*
|
|
73
|
+
* ```ts
|
|
74
|
+
* const player = Isaac.GetPlayer();
|
|
75
|
+
* if (hasFlag(player.TearFlags, TearFlags.TEAR_SPECTRAL) {
|
|
76
|
+
* // The player currently has spectral tears
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @param flags The existing set of bit flags.
|
|
81
|
+
* @param flagsToCheck One or more bit flags to check for, each as a separate argument.
|
|
82
|
+
*/
|
|
83
|
+
export function hasFlag(flags, ...flagsToCheck) {
|
|
84
|
+
const flagsAsInt = flags;
|
|
85
|
+
for (const flagToCheck of flagsToCheck) {
|
|
86
|
+
if (!((flagsAsInt & flagToCheck) === flagToCheck)) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Helper function to check if every bit in the flag is turned off.
|
|
94
|
+
*
|
|
95
|
+
* (This is equivalent to checking if the flag is equal to 0, but this is not possible without
|
|
96
|
+
* casting the flag to a number.)
|
|
97
|
+
*/
|
|
98
|
+
export function isEmptyFlag(flag) {
|
|
99
|
+
return flag === 0;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Helper function to determine whether damage to a player in the EntityTakeDmg callback was
|
|
103
|
+
* self-inflicted. For example, damage from a Curse Room door, a Razor, or a Blood Donation Machine
|
|
104
|
+
* would count as self-inflicted damage.
|
|
105
|
+
*/
|
|
106
|
+
export function isSelfDamage(damageFlags) {
|
|
107
|
+
return (
|
|
108
|
+
// Exclude self-damage from e.g. Curse Room door spikes.
|
|
109
|
+
hasFlag(damageFlags, DamageFlag.NO_PENALTIES) ||
|
|
110
|
+
// Exclude self-damage from e.g. Razor.
|
|
111
|
+
hasFlag(damageFlags, DamageFlag.RED_HEARTS));
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Helper function to remove a bit flag from an existing set of bit flags.
|
|
115
|
+
*
|
|
116
|
+
* This is a variadic function, so pass as many flags as you want to remove.
|
|
117
|
+
*
|
|
118
|
+
* For example:
|
|
119
|
+
*
|
|
120
|
+
* ```ts
|
|
121
|
+
* // Remove spectral tears from the player, if present
|
|
122
|
+
* const player = Isaac.GetPlayer();
|
|
123
|
+
* player.TearFlags = removeFlag(player.TearFlags, TearFlags.TEAR_SPECTRAL);
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @param flags The existing set of bit flags.
|
|
127
|
+
* @param flagsToRemove One or more bit flags to remove, each as a separate argument.
|
|
128
|
+
* @returns The combined bit flags.
|
|
129
|
+
*/
|
|
130
|
+
export function removeFlag(flags, ...flagsToRemove) {
|
|
131
|
+
let flagsAsInt = flags;
|
|
132
|
+
for (const flagToRemove of flagsToRemove) {
|
|
133
|
+
flagsAsInt &= ~flagToRemove;
|
|
134
|
+
}
|
|
135
|
+
return flagsAsInt;
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2lz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RQUN0QyxJQUFJLENBQUMsQ0FBQyxDQUFDLFVBQVUsR0FBSSxXQUFtQixDQUFDLEtBQUssV0FBVyxDQUFDLEVBQUU7WUFDMUQsT0FBTyxLQUFLLENBQUM7U0FDZDtLQUNGO0lBRUQsT0FBTyxJQUFJLENBQUM7QUFDZCxDQUFDO0FBRUQ7Ozs7O0dBS0c7QUFDSCxNQUFNLFVBQVUsV0FBVyxDQUFpQyxJQUFPO0lBQ2pFLE9BQU8sSUFBSSxLQUFLLENBQUMsQ0FBQztBQUNwQixDQUFDO0FBRUQ7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxZQUFZLENBQzFCLFdBQThDO0lBRTlDLE9BQU87SUFDTCx3REFBd0Q7SUFDeEQsT0FBTyxDQUFDLFdBQVcsRUFBRSxVQUFVLENBQUMsWUFBWSxDQUFDO1FBQzdDLHVDQUF1QztRQUN2QyxPQUFPLENBQUMsV0FBVyxFQUFFLFVBQVUsQ0FBQyxVQUFVLENBQUMsQ0FDNUMsQ0FBQztBQUNKLENBQUM7QUFFRDs7Ozs7Ozs7Ozs7Ozs7OztHQWdCRztBQUNILE1BQU0sVUFBVSxVQUFVLENBQ3hCLEtBQXNCLEVBQ3RCLEdBQUcsYUFBa0I7SUFFckIsSUFBSSxVQUFVLEdBQUcsS0FBWSxDQUFDO0lBRTlCLEtBQUssTUFBTSxZQUFZLElBQUksYUFBYSxFQUFFO1FBQ3hDLFVBQVUsSUFBSSxDQUFDLFlBQVksQ0FBQztLQUM3QjtJQUVELE9BQU8sVUFBeUIsQ0FBQztBQUNuQyxDQUFDIn0=
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { CacheFlag, CollectibleType, NullItemID, PlayerType, TrinketType, } from "isaac-typescript-definitions";
|
|
2
|
+
import { getCollectiblesForCacheFlag } from "./collectibleCacheFlag";
|
|
3
|
+
import { copySet, deleteSetsFromSet } from "./set";
|
|
4
|
+
const FLYING_CHARACTERS = new Set([
|
|
5
|
+
PlayerType.AZAZEL,
|
|
6
|
+
PlayerType.THE_LOST,
|
|
7
|
+
PlayerType.THE_SOUL,
|
|
8
|
+
PlayerType.THE_LOST_B,
|
|
9
|
+
PlayerType.JACOB_2_B,
|
|
10
|
+
PlayerType.THE_SOUL_B, // 40
|
|
11
|
+
]);
|
|
12
|
+
const FLYING_TRINKETS = new Set([
|
|
13
|
+
TrinketType.BAT_WING,
|
|
14
|
+
TrinketType.AZAZELS_STUMP, // 162
|
|
15
|
+
]);
|
|
16
|
+
const FLYING_NULL_ITEMS = [
|
|
17
|
+
NullItemID.REVERSE_SUN,
|
|
18
|
+
NullItemID.SPIRIT_SHACKLES_SOUL,
|
|
19
|
+
NullItemID.LOST_CURSE, // 112
|
|
20
|
+
];
|
|
21
|
+
const CONDITIONAL_FLYING_COLLECTIBLE_TYPES = [
|
|
22
|
+
CollectibleType.BIBLE,
|
|
23
|
+
CollectibleType.EMPTY_VESSEL,
|
|
24
|
+
CollectibleType.ASTRAL_PROJECTION,
|
|
25
|
+
CollectibleType.RECALL,
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* Returns a set of all of the collectibles that grant flight. This is derived from collectibles
|
|
29
|
+
* that have `CacheFlag.FLYING` set in the "items.xml" file.
|
|
30
|
+
*
|
|
31
|
+
* Collectibles that only grant flight conditionally are manually pruned. Collectibles such as Empty
|
|
32
|
+
* Vessel should be checked for via the `hasFlyingTemporaryEffect` function.
|
|
33
|
+
*
|
|
34
|
+
* @param pruneConditionalItems Whether or not collectibles that only grant flight conditionally
|
|
35
|
+
* should be included in the set (like Empty Vessel).
|
|
36
|
+
*/
|
|
37
|
+
export function getFlyingCollectibles(pruneConditionalItems) {
|
|
38
|
+
// Instead of manually compiling a list of collectibles that grant flying, we can instead
|
|
39
|
+
// dynamically look for collectibles that have `CacheFlag.FLYING`.
|
|
40
|
+
const collectiblesWithFlyingCacheFlag = getCollectiblesForCacheFlag(CacheFlag.FLYING);
|
|
41
|
+
// None of the collectibles with a cache of "all" grant flying, so we can safely remove them from
|
|
42
|
+
// the list.
|
|
43
|
+
const collectiblesWithAllCacheFlag = getCollectiblesForCacheFlag(CacheFlag.ALL);
|
|
44
|
+
deleteSetsFromSet(collectiblesWithFlyingCacheFlag, collectiblesWithAllCacheFlag);
|
|
45
|
+
if (pruneConditionalItems) {
|
|
46
|
+
for (const collectibleType of CONDITIONAL_FLYING_COLLECTIBLE_TYPES) {
|
|
47
|
+
collectiblesWithFlyingCacheFlag.delete(collectibleType);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return collectiblesWithFlyingCacheFlag;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns a set of all of the trinkets that grant flight. (All trinkets that grant flight do so
|
|
54
|
+
* conditionally, like Bat Wing.)
|
|
55
|
+
*/
|
|
56
|
+
export function getFlyingTrinkets() {
|
|
57
|
+
// We use a different algorithm than the "getFlyingCollectibles" function because Azazel's Stump
|
|
58
|
+
// has a cache of "all".
|
|
59
|
+
return copySet(FLYING_TRINKETS);
|
|
60
|
+
}
|
|
61
|
+
export function hasFlyingTemporaryEffect(player) {
|
|
62
|
+
const effects = player.GetEffects();
|
|
63
|
+
// - Hanged Man card gives a Transcendence temporary effect.
|
|
64
|
+
// - Pinking Shears gives a Transcendence temporary effect.
|
|
65
|
+
const flyingCollectibles = getFlyingCollectibles(false);
|
|
66
|
+
for (const collectibleType of flyingCollectibles.values()) {
|
|
67
|
+
if (effects.HasCollectibleEffect(collectibleType)) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const flyingTrinkets = getFlyingTrinkets();
|
|
72
|
+
for (const trinketType of flyingTrinkets.values()) {
|
|
73
|
+
if (effects.HasTrinketEffect(trinketType)) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
for (const nullItemID of FLYING_NULL_ITEMS) {
|
|
78
|
+
if (effects.HasNullEffect(nullItemID)) {
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
export function isFlyingCharacter(player) {
|
|
85
|
+
const character = player.GetPlayerType();
|
|
86
|
+
return FLYING_CHARACTERS.has(character);
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmx5aW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvaXNhYWNzY3JpcHQtY29tbW9uL3NyYy9mdW5jdGlvbnMvZmx5aW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsZUFBZSxFQUNmLFVBQVUsRUFDVixVQUFVLEVBQ1YsV0FBVyxHQUNaLE1BQU0sOEJBQThCLENBQUM7QUFDdEMsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDckUsT0FBTyxFQUFFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLE9BQU8sQ0FBQztBQUVuRCxNQUFNLGlCQUFpQixHQUE0QixJQUFJLEdBQUcsQ0FBQztJQUN6RCxVQUFVLENBQUMsTUFBTTtJQUNqQixVQUFVLENBQUMsUUFBUTtJQUNuQixVQUFVLENBQUMsUUFBUTtJQUNuQixVQUFVLENBQUMsVUFBVTtJQUNyQixVQUFVLENBQUMsU0FBUztJQUNwQixVQUFVLENBQUMsVUFBVSxFQUFFLEtBQUs7Q0FDN0IsQ0FBQyxDQUFDO0FBRUgsTUFBTSxlQUFlLEdBQTZCLElBQUksR0FBRyxDQUFDO0lBQ3hELFdBQVcsQ0FBQyxRQUFRO0lBQ3BCLFdBQVcsQ0FBQyxhQUFhLEVBQUUsTUFBTTtDQUNsQyxDQUFDLENBQUM7QUFFSCxNQUFNLGlCQUFpQixHQUEwQjtJQUMvQyxVQUFVLENBQUMsV0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UFFLENBQUM7SUFFcEMsNERBQTREO0lBQzVELDJEQUEyRDtJQUMzRCxNQUFNLGtCQUFrQixHQUFHLHFCQUFxQixDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQ3hELEtBQUssTUFBTSxlQUFlLElBQUksa0JBQWtCLENBQUMsTUFBTSxFQUFFLEVBQUU7UUFDekQsSUFBSSxPQUFPLENBQUMsb0JBQW9CLENBQUMsZUFBZSxDQUFDLEVBQUU7WUFDakQsT0FBTyxJQUFJLENBQUM7U0FDYjtLQUNGO0lBRUQsTUFBTSxjQUFjLEdBQUcsaUJBQWlCLEVBQUUsQ0FBQztJQUMzQyxLQUFLLE1BQU0sV0FBVyxJQUFJLGNBQWMsQ0FBQyxNQUFNLEVBQUUsRUFBRTtRQUNqRCxJQUFJLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxXQUFXLENBQUMsRUFBRTtZQUN6QyxPQUFPLElBQUksQ0FBQztTQUNiO0tBQ0Y7SUFFRCxLQUFLLE1BQU0sVUFBVSxJQUFJLGlCQUFpQixFQUFFO1FBQzFDLElBQUksT0FBTyxDQUFDLGFBQWEsQ0FBQyxVQUFVLENBQUMsRUFBRTtZQUNyQyxPQUFPLElBQUksQ0FBQztTQUNiO0tBQ0Y7SUFFRCxPQUFPLEtBQUssQ0FBQztBQUNmLENBQUM7QUFFRCxNQUFNLFVBQVUsaUJBQWlCLENBQUMsTUFBb0I7SUFDcEQsTUFBTSxTQUFTLEdBQUcsTUFBTSxDQUFDLGFBQWEsRUFBRSxDQUFDO0lBQ3pDLE9BQU8saUJBQWlCLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzFDLENBQUMifQ==
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { isLuaDebugEnabled } from "./debug";
|
|
2
|
+
import { log } from "./log";
|
|
3
|
+
import { addSetsToSet, copySet } from "./set";
|
|
4
|
+
import { twoDimensionalSort } from "./utils";
|
|
5
|
+
const DEFAULT_GLOBALS = new Set([
|
|
6
|
+
"ActionTriggers",
|
|
7
|
+
"ActiveSlot",
|
|
8
|
+
"BabySubType",
|
|
9
|
+
"BackdropType",
|
|
10
|
+
"BatterySubType",
|
|
11
|
+
"BedSubType",
|
|
12
|
+
"BitSet128",
|
|
13
|
+
"BombSubType",
|
|
14
|
+
"BombVariant",
|
|
15
|
+
"ButtonAction",
|
|
16
|
+
"CacheFlag",
|
|
17
|
+
"Card",
|
|
18
|
+
"Challenge",
|
|
19
|
+
"ChampionColor",
|
|
20
|
+
"ChestSubType",
|
|
21
|
+
"CoinSubType",
|
|
22
|
+
"CollectibleType",
|
|
23
|
+
"Color",
|
|
24
|
+
"CppContainer",
|
|
25
|
+
"DamageFlag",
|
|
26
|
+
"Difficulty",
|
|
27
|
+
"Direction",
|
|
28
|
+
"DoorSlot",
|
|
29
|
+
"DoorState",
|
|
30
|
+
"DoorVariant",
|
|
31
|
+
"EffectVariant",
|
|
32
|
+
"Entity",
|
|
33
|
+
"EntityBomb",
|
|
34
|
+
"EntityCollisionClass",
|
|
35
|
+
"EntityEffect",
|
|
36
|
+
"EntityFamiliar",
|
|
37
|
+
"EntityFlag",
|
|
38
|
+
"EntityGridCollisionClass",
|
|
39
|
+
"EntityKnife",
|
|
40
|
+
"EntityLaser",
|
|
41
|
+
"EntityNPC",
|
|
42
|
+
"EntityPartition",
|
|
43
|
+
"EntityPickup",
|
|
44
|
+
"EntityPlayer",
|
|
45
|
+
"EntityProjectile",
|
|
46
|
+
"EntityPtr",
|
|
47
|
+
"EntityRef",
|
|
48
|
+
"EntityTear",
|
|
49
|
+
"EntityType",
|
|
50
|
+
"FamiliarVariant",
|
|
51
|
+
"Font",
|
|
52
|
+
"Game",
|
|
53
|
+
"GameStateFlag",
|
|
54
|
+
"GetPtrHash",
|
|
55
|
+
"GridCollisionClass",
|
|
56
|
+
"GridEntity",
|
|
57
|
+
"GridEntityDesc",
|
|
58
|
+
"GridEntityDoor",
|
|
59
|
+
"GridEntityPit",
|
|
60
|
+
"GridEntityPoop",
|
|
61
|
+
"GridEntityPressurePlate",
|
|
62
|
+
"GridEntityRock",
|
|
63
|
+
"GridEntitySpikes",
|
|
64
|
+
"GridEntityTNT",
|
|
65
|
+
"GridEntityType",
|
|
66
|
+
"GridRooms",
|
|
67
|
+
"HUD",
|
|
68
|
+
"HeartSubType",
|
|
69
|
+
"Input",
|
|
70
|
+
"InputHook",
|
|
71
|
+
"Isaac",
|
|
72
|
+
"ItemConfig",
|
|
73
|
+
"ItemPool",
|
|
74
|
+
"ItemPoolType",
|
|
75
|
+
"ItemType",
|
|
76
|
+
"KColor",
|
|
77
|
+
"KeySubType",
|
|
78
|
+
"Keyboard",
|
|
79
|
+
"LaserOffset",
|
|
80
|
+
"LaserSubType",
|
|
81
|
+
"Level",
|
|
82
|
+
"LevelCurse",
|
|
83
|
+
"LevelStage",
|
|
84
|
+
"LevelStateFlag",
|
|
85
|
+
"LocustSubtypes",
|
|
86
|
+
"ModCallbacks",
|
|
87
|
+
"Mouse",
|
|
88
|
+
"Music",
|
|
89
|
+
"MusicManager",
|
|
90
|
+
"NpcState",
|
|
91
|
+
"NullItemID",
|
|
92
|
+
"Options",
|
|
93
|
+
"PathFinder",
|
|
94
|
+
"PickupPrice",
|
|
95
|
+
"PickupVariant",
|
|
96
|
+
"PillColor",
|
|
97
|
+
"PillEffect",
|
|
98
|
+
"PlayerForm",
|
|
99
|
+
"PlayerSpriteLayer",
|
|
100
|
+
"PlayerType",
|
|
101
|
+
"PlayerTypes",
|
|
102
|
+
"PoopPickupSubType",
|
|
103
|
+
"PoopSpellType",
|
|
104
|
+
"ProjectileFlags",
|
|
105
|
+
"ProjectileParams",
|
|
106
|
+
"ProjectileVariant",
|
|
107
|
+
"QueueItemData",
|
|
108
|
+
"REPENTANCE",
|
|
109
|
+
"RNG",
|
|
110
|
+
"Random",
|
|
111
|
+
"RandomVector",
|
|
112
|
+
"RegisterMod",
|
|
113
|
+
"RenderMode",
|
|
114
|
+
"Room",
|
|
115
|
+
"RoomConfig",
|
|
116
|
+
"RoomDescriptor",
|
|
117
|
+
"RoomShape",
|
|
118
|
+
"RoomTransitionAnim",
|
|
119
|
+
"RoomType",
|
|
120
|
+
"SFXManager",
|
|
121
|
+
"SackSubType",
|
|
122
|
+
"SeedEffect",
|
|
123
|
+
"Seeds",
|
|
124
|
+
"ShockwaveParams",
|
|
125
|
+
"SkinColor",
|
|
126
|
+
"SortingLayer",
|
|
127
|
+
"SoundEffect",
|
|
128
|
+
"Sprite",
|
|
129
|
+
"StageType",
|
|
130
|
+
"StartDebug",
|
|
131
|
+
"TearFlags",
|
|
132
|
+
"TearParams",
|
|
133
|
+
"TearVariant",
|
|
134
|
+
"TemporaryEffect",
|
|
135
|
+
"TemporaryEffects",
|
|
136
|
+
"TrinketType",
|
|
137
|
+
"UseFlag",
|
|
138
|
+
"Vector",
|
|
139
|
+
"WeaponType",
|
|
140
|
+
"_G",
|
|
141
|
+
"_VERSION",
|
|
142
|
+
"assert",
|
|
143
|
+
"collectgarbage",
|
|
144
|
+
"coroutine",
|
|
145
|
+
"dofile",
|
|
146
|
+
"error",
|
|
147
|
+
"getmetatable",
|
|
148
|
+
"include",
|
|
149
|
+
"ipairs",
|
|
150
|
+
"load",
|
|
151
|
+
"loadfile",
|
|
152
|
+
"math",
|
|
153
|
+
"next",
|
|
154
|
+
"pairs",
|
|
155
|
+
"pcall",
|
|
156
|
+
"print",
|
|
157
|
+
"rawequal",
|
|
158
|
+
"rawget",
|
|
159
|
+
"rawlen",
|
|
160
|
+
"rawset",
|
|
161
|
+
"require",
|
|
162
|
+
"select",
|
|
163
|
+
"setmetatable",
|
|
164
|
+
"string",
|
|
165
|
+
"table",
|
|
166
|
+
"tonumber",
|
|
167
|
+
"tostring",
|
|
168
|
+
"type",
|
|
169
|
+
"utf8",
|
|
170
|
+
"xpcall",
|
|
171
|
+
]);
|
|
172
|
+
const LUA_DEBUG_ADDED_GLOBALS = new Set([
|
|
173
|
+
"debug",
|
|
174
|
+
"io",
|
|
175
|
+
"os",
|
|
176
|
+
"package",
|
|
177
|
+
]);
|
|
178
|
+
const RACING_PLUS_SANDBOX_ADDED_GLOBALS = new Set([
|
|
179
|
+
"sandboxTraceback",
|
|
180
|
+
"sandboxGetTraceback",
|
|
181
|
+
"getParentFunctionDescription",
|
|
182
|
+
]);
|
|
183
|
+
/**
|
|
184
|
+
* Helper function to get a set containing all of the global variable names that are contained
|
|
185
|
+
* within the Isaac environment by default.
|
|
186
|
+
*
|
|
187
|
+
* Returns a slightly different set depending on whether the "--luadebug" flag is enabled or not.
|
|
188
|
+
*/
|
|
189
|
+
export function getDefaultGlobals() {
|
|
190
|
+
const defaultGlobals = copySet(DEFAULT_GLOBALS);
|
|
191
|
+
if (isLuaDebugEnabled()) {
|
|
192
|
+
addSetsToSet(defaultGlobals, LUA_DEBUG_ADDED_GLOBALS);
|
|
193
|
+
}
|
|
194
|
+
if (isRacingPlusSandboxEnabled()) {
|
|
195
|
+
addSetsToSet(defaultGlobals, RACING_PLUS_SANDBOX_ADDED_GLOBALS);
|
|
196
|
+
}
|
|
197
|
+
return defaultGlobals;
|
|
198
|
+
}
|
|
199
|
+
function isRacingPlusSandboxEnabled() {
|
|
200
|
+
return getParentFunctionDescription !== undefined;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Helper function to get an array of any added global variables in the Isaac Lua environment.
|
|
204
|
+
* Returns a sorted array of key/value tuples.
|
|
205
|
+
*/
|
|
206
|
+
export function getNewGlobals() {
|
|
207
|
+
const defaultGlobals = getDefaultGlobals();
|
|
208
|
+
const newGlobals = [];
|
|
209
|
+
for (const [key, value] of pairs(_G)) {
|
|
210
|
+
if (!defaultGlobals.has(key)) {
|
|
211
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
212
|
+
const keyValueTuple = [key, value];
|
|
213
|
+
newGlobals.push(keyValueTuple);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
newGlobals.sort(twoDimensionalSort);
|
|
217
|
+
return newGlobals;
|
|
218
|
+
}
|
|
219
|
+
export function logNewGlobals() {
|
|
220
|
+
const newGlobals = getNewGlobals();
|
|
221
|
+
log("List of added global variables in the Isaac environment:");
|
|
222
|
+
if (newGlobals.length === 0) {
|
|
223
|
+
log("- n/a (no extra global variables found)");
|
|
224
|
+
}
|
|
225
|
+
newGlobals.forEach(([key, value], i) => {
|
|
226
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
227
|
+
log(`${i + 1}) ${key} - ${value}`);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2xvYmFscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2lzYWFjc2NyaXB0LWNvbW1vbi9zcmMvZnVuY3Rpb25zL2dsb2JhbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQzVDLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxPQUFPLENBQUM7QUFDNUIsT0FBTyxFQUFFLFlBQVksRUFBRSxPQUFPLEVBQUUsTUFBTSxPQUFPLENBQUM7QUFDOUMsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRTdDLE1BQU0sZUFBZSxHQUF3QixJQUFJLEdBQUcsQ0FBQztJQUNuRCxnQkFBZ0I7SUFDaEIsWUFBWTtJQUNaLGFBQWE7SUFDYixjQUFjO0lBQ2QsZ0JBQWdCO0lBQ2hCLFlBQVk7SUFDWixXQUFXO0lBQ1gsYUFBYTtJQUNiLGFBQWE7SUFDYixjQUFjO0lBQ2QsV0FBVztJQUNYLE1BQU07SUFDTixXQUFXO0lBQ1gsZUFBZTtJQUNmLGNBQWM7SUFDZCxhQUFhO0l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