isaacscript-common 87.9.7 → 87.10.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/dist/cachedEnumValues.js +29 -32
- package/dist/callbackClasses.js +142 -289
- package/dist/callbacks.js +147 -183
- package/dist/classes/DefaultMap.js +4 -8
- package/dist/classes/ModFeature.js +21 -25
- package/dist/classes/ModUpgraded.js +43 -47
- package/dist/classes/callbacks/EntityTakeDmgFilter.js +6 -10
- package/dist/classes/callbacks/EntityTakeDmgPlayer.js +7 -11
- package/dist/classes/callbacks/InputActionFilter.js +4 -8
- package/dist/classes/callbacks/InputActionPlayer.js +4 -8
- package/dist/classes/callbacks/PostAmbushFinished.js +10 -14
- package/dist/classes/callbacks/PostAmbushStarted.js +10 -14
- package/dist/classes/callbacks/PostBombExploded.js +8 -12
- package/dist/classes/callbacks/PostBombInitFilter.js +6 -10
- package/dist/classes/callbacks/PostBombInitLate.js +6 -10
- package/dist/classes/callbacks/PostBombRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostBombUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostBoneSwing.js +7 -11
- package/dist/classes/callbacks/PostCollectibleEmpty.js +6 -10
- package/dist/classes/callbacks/PostCursedTeleport.js +30 -34
- package/dist/classes/callbacks/PostCustomRevive.js +4 -8
- package/dist/classes/callbacks/PostDiceRoomActivated.js +9 -13
- package/dist/classes/callbacks/PostDoorRender.js +8 -12
- package/dist/classes/callbacks/PostDoorUpdate.js +8 -12
- package/dist/classes/callbacks/PostEffectInitFilter.js +6 -10
- package/dist/classes/callbacks/PostEffectInitLate.js +6 -10
- package/dist/classes/callbacks/PostEffectRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostEffectStateChanged.js +8 -12
- package/dist/classes/callbacks/PostEffectUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostEntityKillFilter.js +6 -10
- package/dist/classes/callbacks/PostEntityRemoveFilter.js +6 -10
- package/dist/classes/callbacks/PostEsauJr.js +4 -8
- package/dist/classes/callbacks/PostFamiliarInitFilter.js +6 -10
- package/dist/classes/callbacks/PostFamiliarInitLate.js +6 -10
- package/dist/classes/callbacks/PostFamiliarRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostFamiliarStateChanged.js +8 -12
- package/dist/classes/callbacks/PostFamiliarUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostFirstEsauJr.js +4 -8
- package/dist/classes/callbacks/PostFirstFlip.js +4 -8
- package/dist/classes/callbacks/PostFlip.js +4 -8
- package/dist/classes/callbacks/PostGameEndFilter.js +6 -10
- package/dist/classes/callbacks/PostGameStartedReordered.js +6 -10
- package/dist/classes/callbacks/PostGameStartedReorderedLast.js +6 -10
- package/dist/classes/callbacks/PostGreedModeWave.js +7 -11
- package/dist/classes/callbacks/PostGridEntityBroken.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCollision.js +4 -8
- package/dist/classes/callbacks/PostGridEntityCustomBroken.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomCollision.js +4 -8
- package/dist/classes/callbacks/PostGridEntityCustomInit.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomRemove.js +4 -8
- package/dist/classes/callbacks/PostGridEntityCustomRender.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomStateChanged.js +6 -10
- package/dist/classes/callbacks/PostGridEntityCustomUpdate.js +6 -10
- package/dist/classes/callbacks/PostGridEntityInit.js +6 -10
- package/dist/classes/callbacks/PostGridEntityRemove.js +4 -8
- package/dist/classes/callbacks/PostGridEntityRender.js +6 -10
- package/dist/classes/callbacks/PostGridEntityStateChanged.js +6 -10
- package/dist/classes/callbacks/PostGridEntityUpdate.js +6 -10
- package/dist/classes/callbacks/PostHolyMantleRemoved.js +15 -19
- package/dist/classes/callbacks/PostItemDischarge.js +23 -27
- package/dist/classes/callbacks/PostItemPickup.js +6 -10
- package/dist/classes/callbacks/PostKeyboardChanged.js +9 -13
- package/dist/classes/callbacks/PostKnifeInitFilter.js +6 -10
- package/dist/classes/callbacks/PostKnifeInitLate.js +6 -10
- package/dist/classes/callbacks/PostKnifeRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostKnifeUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostLaserInitFilter.js +6 -10
- package/dist/classes/callbacks/PostLaserInitLate.js +6 -10
- package/dist/classes/callbacks/PostLaserRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostLaserUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostNPCDeathFilter.js +6 -10
- package/dist/classes/callbacks/PostNPCInitFilter.js +6 -10
- package/dist/classes/callbacks/PostNPCInitLate.js +6 -10
- package/dist/classes/callbacks/PostNPCRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostNPCStateChanged.js +8 -12
- package/dist/classes/callbacks/PostNPCUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostNewLevelReordered.js +6 -10
- package/dist/classes/callbacks/PostNewRoomEarly.js +17 -21
- package/dist/classes/callbacks/PostNewRoomReordered.js +6 -10
- package/dist/classes/callbacks/PostPEffectUpdateReordered.js +6 -10
- package/dist/classes/callbacks/PostPickupChanged.js +6 -10
- package/dist/classes/callbacks/PostPickupCollect.js +8 -12
- package/dist/classes/callbacks/PostPickupInitFilter.js +6 -10
- package/dist/classes/callbacks/PostPickupInitFirst.js +10 -14
- package/dist/classes/callbacks/PostPickupInitLate.js +6 -10
- package/dist/classes/callbacks/PostPickupRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostPickupSelectionFilter.js +4 -8
- package/dist/classes/callbacks/PostPickupStateChanged.js +8 -12
- package/dist/classes/callbacks/PostPickupUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostPitRender.js +8 -12
- package/dist/classes/callbacks/PostPitUpdate.js +8 -12
- package/dist/classes/callbacks/PostPlayerChangeHealth.js +14 -18
- package/dist/classes/callbacks/PostPlayerChangeStat.js +26 -30
- package/dist/classes/callbacks/PostPlayerChangeType.js +11 -15
- package/dist/classes/callbacks/PostPlayerCollectibleAdded.js +6 -10
- package/dist/classes/callbacks/PostPlayerCollectibleRemoved.js +6 -10
- package/dist/classes/callbacks/PostPlayerFatalDamage.js +24 -28
- package/dist/classes/callbacks/PostPlayerInitFirst.js +12 -16
- package/dist/classes/callbacks/PostPlayerInitLate.js +9 -13
- package/dist/classes/callbacks/PostPlayerRenderReordered.js +6 -10
- package/dist/classes/callbacks/PostPlayerUpdateReordered.js +6 -10
- package/dist/classes/callbacks/PostPoopRender.js +8 -12
- package/dist/classes/callbacks/PostPoopUpdate.js +8 -12
- package/dist/classes/callbacks/PostPressurePlateRender.js +8 -12
- package/dist/classes/callbacks/PostPressurePlateUpdate.js +8 -12
- package/dist/classes/callbacks/PostProjectileInitFilter.js +6 -10
- package/dist/classes/callbacks/PostProjectileInitLate.js +6 -10
- package/dist/classes/callbacks/PostProjectileKill.js +8 -12
- package/dist/classes/callbacks/PostProjectileRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostProjectileUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostPurchase.js +21 -25
- package/dist/classes/callbacks/PostRockRender.js +8 -12
- package/dist/classes/callbacks/PostRockUpdate.js +8 -12
- package/dist/classes/callbacks/PostRoomClearChanged.js +9 -13
- package/dist/classes/callbacks/PostSacrifice.js +12 -16
- package/dist/classes/callbacks/PostSlotAnimationChanged.js +6 -10
- package/dist/classes/callbacks/PostSlotCollision.js +8 -12
- package/dist/classes/callbacks/PostSlotDestroyed.js +6 -10
- package/dist/classes/callbacks/PostSlotInit.js +6 -10
- package/dist/classes/callbacks/PostSlotRender.js +6 -10
- package/dist/classes/callbacks/PostSlotUpdate.js +6 -10
- package/dist/classes/callbacks/PostSpikesRender.js +8 -12
- package/dist/classes/callbacks/PostSpikesUpdate.js +8 -12
- package/dist/classes/callbacks/PostTNTRender.js +8 -12
- package/dist/classes/callbacks/PostTNTUpdate.js +8 -12
- package/dist/classes/callbacks/PostTearInitFilter.js +6 -10
- package/dist/classes/callbacks/PostTearInitLate.js +6 -10
- package/dist/classes/callbacks/PostTearInitVeryLate.js +6 -10
- package/dist/classes/callbacks/PostTearKill.js +8 -12
- package/dist/classes/callbacks/PostTearRenderFilter.js +6 -10
- package/dist/classes/callbacks/PostTearUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PostTransformation.js +10 -14
- package/dist/classes/callbacks/PostTrinketBreak.js +16 -20
- package/dist/classes/callbacks/PostUsePillFilter.js +18 -22
- package/dist/classes/callbacks/PreBerserkDeath.js +14 -18
- package/dist/classes/callbacks/PreBombCollisionFilter.js +6 -10
- package/dist/classes/callbacks/PreCustomRevive.js +6 -10
- package/dist/classes/callbacks/PreEntitySpawnFilter.js +4 -8
- package/dist/classes/callbacks/PreFamiliarCollisionFilter.js +6 -10
- package/dist/classes/callbacks/PreGetPedestal.js +8 -12
- package/dist/classes/callbacks/PreItemPickup.js +6 -10
- package/dist/classes/callbacks/PreKnifeCollisionFilter.js +6 -10
- package/dist/classes/callbacks/PreNPCCollisionFilter.js +6 -10
- package/dist/classes/callbacks/PreNPCUpdateFilter.js +6 -10
- package/dist/classes/callbacks/PreNewLevel.js +10 -14
- package/dist/classes/callbacks/PreProjectileCollisionFilter.js +6 -10
- package/dist/classes/callbacks/PreRoomEntitySpawnFilter.js +4 -8
- package/dist/classes/callbacks/PreTearCollisionFilter.js +6 -10
- package/dist/classes/features/callbackLogic/CustomGridEntities.js +46 -50
- package/dist/classes/features/callbackLogic/CustomRevive.js +28 -32
- package/dist/classes/features/callbackLogic/EsauJrDetection.js +11 -15
- package/dist/classes/features/callbackLogic/FlipDetection.js +11 -15
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.js +26 -30
- package/dist/classes/features/callbackLogic/GridEntityCollisionDetection.js +10 -14
- package/dist/classes/features/callbackLogic/GridEntityRenderDetection.js +6 -10
- package/dist/classes/features/callbackLogic/GridEntityUpdateDetection.js +12 -16
- package/dist/classes/features/callbackLogic/ItemPickupDetection.js +17 -21
- package/dist/classes/features/callbackLogic/PickupChangeDetection.js +6 -10
- package/dist/classes/features/callbackLogic/PlayerCollectibleDetection.js +39 -43
- package/dist/classes/features/callbackLogic/PlayerReorderedCallbacks.js +18 -22
- package/dist/classes/features/callbackLogic/SlotDestroyedDetection.js +17 -21
- package/dist/classes/features/callbackLogic/SlotRenderDetection.js +8 -12
- package/dist/classes/features/callbackLogic/SlotUpdateDetection.js +9 -13
- package/dist/classes/features/other/CharacterHealthConversion.js +13 -17
- package/dist/classes/features/other/CharacterStats.js +9 -13
- package/dist/classes/features/other/CollectibleItemPoolType.js +17 -21
- package/dist/classes/features/other/CustomHotkeys.js +15 -19
- package/dist/classes/features/other/CustomItemPools.js +20 -24
- package/dist/classes/features/other/CustomPickups.js +15 -19
- package/dist/classes/features/other/CustomStages.js +116 -153
- package/dist/classes/features/other/CustomTrapdoors.js +119 -123
- package/dist/classes/features/other/DebugDisplay.js +77 -81
- package/dist/classes/features/other/DeployJSONRoom.js +65 -69
- package/dist/classes/features/other/DisableAllSound.js +14 -18
- package/dist/classes/features/other/DisableInputs.js +24 -28
- package/dist/classes/features/other/EdenStartingStatsHealth.js +36 -40
- package/dist/classes/features/other/ExtraConsoleCommands.js +65 -102
- package/dist/classes/features/other/FadeInRemover.js +9 -13
- package/dist/classes/features/other/FastReset.js +18 -22
- package/dist/classes/features/other/FlyingDetection.js +10 -14
- package/dist/classes/features/other/ForgottenSwitch.js +8 -12
- package/dist/classes/features/other/ItemPoolDetection.js +35 -39
- package/dist/classes/features/other/ModdedElementDetection.js +43 -47
- package/dist/classes/features/other/ModdedElementSets.js +135 -139
- package/dist/classes/features/other/NoSirenSteal.js +7 -11
- package/dist/classes/features/other/Pause.js +48 -52
- package/dist/classes/features/other/PersistentEntities.js +16 -20
- package/dist/classes/features/other/PickupIndexCreation.js +31 -35
- package/dist/classes/features/other/PlayerCollectibleTracking.js +18 -22
- package/dist/classes/features/other/PonyDetection.js +22 -26
- package/dist/classes/features/other/PressInput.js +10 -14
- package/dist/classes/features/other/PreventChildEntities.js +6 -10
- package/dist/classes/features/other/PreventGridEntityRespawn.js +34 -38
- package/dist/classes/features/other/RerunDetection.js +11 -15
- package/dist/classes/features/other/RoomClearFrame.js +11 -15
- package/dist/classes/features/other/RoomHistory.js +30 -34
- package/dist/classes/features/other/RunInNFrames.js +24 -28
- package/dist/classes/features/other/RunNextRoom.js +8 -12
- package/dist/classes/features/other/RunNextRun.js +8 -12
- package/dist/classes/features/other/SaveDataManager.js +61 -65
- package/dist/classes/features/other/SpawnRockAltRewards.js +115 -119
- package/dist/classes/features/other/StageHistory.js +76 -80
- package/dist/classes/features/other/StartAmbush.js +12 -16
- package/dist/classes/features/other/TaintedLazarusPlayers.js +10 -14
- package/dist/classes/features/other/UnlockAchievementsDetection.js +10 -14
- package/dist/classes/features/other/customStages/backdrop.js +68 -71
- package/dist/classes/features/other/customStages/constants.js +7 -10
- package/dist/classes/features/other/customStages/gridEntities.js +23 -30
- package/dist/classes/features/other/customStages/shadows.js +27 -30
- package/dist/classes/features/other/customStages/streakText.js +55 -60
- package/dist/classes/features/other/customStages/utils.js +13 -17
- package/dist/classes/features/other/customStages/v.js +4 -7
- package/dist/classes/features/other/customStages/versusScreen.js +46 -50
- package/dist/classes/features/other/debugDisplay/DebugDisplayBomb.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayDoor.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayEffect.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayFamiliar.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayKnife.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayLaser.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayNPC.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayPickup.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayPit.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayPlayer.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayPoop.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayPressurePlate.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayProjectile.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayRock.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplaySlot.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplaySpikes.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayTNT.js +8 -12
- package/dist/classes/features/other/debugDisplay/DebugDisplayTear.js +8 -12
- package/dist/classes/features/other/debugDisplay/utils.js +6 -10
- package/dist/classes/features/other/extraConsoleCommands/commands.js +411 -557
- package/dist/classes/features/other/extraConsoleCommands/subroutines.js +47 -57
- package/dist/classes/features/other/extraConsoleCommands/v.js +1 -4
- package/dist/classes/features/other/saveDataManager/constants.js +1 -4
- package/dist/classes/features/other/saveDataManager/glowingHourGlass.js +17 -21
- package/dist/classes/features/other/saveDataManager/loadFromDisk.js +19 -22
- package/dist/classes/features/other/saveDataManager/restoreDefaults.js +20 -25
- package/dist/classes/features/other/saveDataManager/saveToDisk.js +13 -16
- package/dist/classes/private/CustomCallback.js +4 -8
- package/dist/classes/private/Feature.js +1 -5
- package/dist/core/cachedClasses.js +12 -15
- package/dist/core/constants.js +126 -130
- package/dist/core/constantsFirstLast.js +22 -25
- package/dist/core/constantsVanilla.js +25 -28
- package/dist/core/upgradeMod.js +7 -10
- package/dist/decorators.js +6 -10
- package/dist/enums/AmbushType.js +2 -5
- package/dist/enums/CornerType.js +2 -5
- package/dist/enums/HealthType.js +2 -5
- package/dist/enums/ISCFeature.js +2 -5
- package/dist/enums/LadderSubTypeCustom.js +2 -5
- package/dist/enums/ModCallbackCustom.js +2 -5
- package/dist/enums/MysteriousPaperEffect.js +2 -5
- package/dist/enums/PlayerStat.js +2 -5
- package/dist/enums/PocketItemType.js +2 -5
- package/dist/enums/RockAltType.js +2 -5
- package/dist/enums/SaveDataKey.js +2 -5
- package/dist/enums/SerializationType.js +2 -5
- package/dist/enums/SlotDestructionType.js +2 -5
- package/dist/enums/private/GridEntityTypeCustom.js +1 -4
- package/dist/enums/private/SerializationBrand.js +2 -5
- package/dist/enums/private/StageTravelState.js +2 -5
- package/dist/enums/private/TrapdoorAnimation.js +2 -5
- package/dist/enums/private/UIStreakAnimation.js +2 -5
- package/dist/features.js +138 -141
- package/dist/functions/ambush.js +9 -12
- package/dist/functions/array.js +45 -76
- package/dist/functions/arrayLua.js +7 -16
- package/dist/functions/benchmark.js +4 -7
- package/dist/functions/bitSet128.js +19 -26
- package/dist/functions/bitwise.js +14 -23
- package/dist/functions/bombs.js +1 -4
- package/dist/functions/bosses.js +68 -85
- package/dist/functions/cards.js +44 -62
- package/dist/functions/challenges.js +28 -39
- package/dist/functions/characters.js +68 -87
- package/dist/functions/charge.js +41 -52
- package/dist/functions/chargeBar.js +2 -6
- package/dist/functions/collectibleTag.js +9 -13
- package/dist/functions/collectibles.js +133 -172
- package/dist/functions/color.js +29 -38
- package/dist/functions/console.js +4 -8
- package/dist/functions/curses.js +6 -10
- package/dist/functions/debugFunctions.js +7 -14
- package/dist/functions/decorators.js +13 -19
- package/dist/functions/deepCopy.js +96 -99
- package/dist/functions/deepCopyTests.js +56 -59
- package/dist/functions/dimensions.js +10 -14
- package/dist/functions/direction.js +22 -30
- package/dist/functions/doors.js +104 -154
- package/dist/functions/easing.js +30 -62
- package/dist/functions/effects.js +6 -10
- package/dist/functions/emptyRoom.js +30 -34
- package/dist/functions/entities.js +88 -115
- package/dist/functions/entitiesSpecific.js +83 -125
- package/dist/functions/entityTypes.js +3 -6
- package/dist/functions/enums.js +27 -41
- package/dist/functions/external.js +4 -8
- package/dist/functions/familiars.js +17 -25
- package/dist/functions/flag.js +10 -19
- package/dist/functions/frames.js +31 -51
- package/dist/functions/globals.js +26 -66
- package/dist/functions/gridEntities.js +231 -269
- package/dist/functions/gridEntitiesSpecific.js +86 -126
- package/dist/functions/gridIndex.js +8 -11
- package/dist/functions/hash.js +1 -4
- package/dist/functions/hex.js +7 -11
- package/dist/functions/input.js +65 -88
- package/dist/functions/isaacAPIClass.js +28 -53
- package/dist/functions/itemPool.js +39 -48
- package/dist/functions/jsonHelpers.js +5 -42
- package/dist/functions/jsonRoom.js +39 -46
- package/dist/functions/kColor.js +30 -39
- package/dist/functions/language.js +3 -6
- package/dist/functions/level.js +20 -26
- package/dist/functions/levelGrid.js +81 -108
- package/dist/functions/log.js +6 -12
- package/dist/functions/logEntities.js +49 -59
- package/dist/functions/logMisc.js +183 -214
- package/dist/functions/map.js +10 -20
- package/dist/functions/math.js +16 -31
- package/dist/functions/merge.js +48 -51
- package/dist/functions/mergeTests.js +34 -37
- package/dist/functions/minimap.js +34 -46
- package/dist/functions/modFeatures.js +1 -4
- package/dist/functions/newArray.js +5 -8
- package/dist/functions/nextStage.js +63 -67
- package/dist/functions/npcDataStructures.js +9 -20
- package/dist/functions/npcs.js +37 -45
- package/dist/functions/pickupVariants.js +26 -39
- package/dist/functions/pickups.js +43 -59
- package/dist/functions/pickupsSpecific.js +76 -118
- package/dist/functions/pills.js +52 -72
- package/dist/functions/playerCenter.js +13 -16
- package/dist/functions/playerCollectibles.js +59 -79
- package/dist/functions/playerDataStructures.js +18 -29
- package/dist/functions/playerEffects.js +12 -19
- package/dist/functions/playerHealth.js +91 -113
- package/dist/functions/playerIndex.js +22 -33
- package/dist/functions/playerTrinkets.js +31 -43
- package/dist/functions/players.js +87 -126
- package/dist/functions/pocketItems.js +33 -43
- package/dist/functions/positionVelocity.js +23 -32
- package/dist/functions/pressurePlate.js +7 -10
- package/dist/functions/projectiles.js +11 -15
- package/dist/functions/random.js +8 -13
- package/dist/functions/readOnly.js +3 -8
- package/dist/functions/render.js +7 -12
- package/dist/functions/revive.js +38 -45
- package/dist/functions/rng.js +31 -44
- package/dist/functions/rockAlt.js +18 -22
- package/dist/functions/roomData.js +24 -40
- package/dist/functions/roomGrid.js +17 -25
- package/dist/functions/roomShape.js +39 -55
- package/dist/functions/roomShapeWalls.js +67 -71
- package/dist/functions/roomTransition.js +13 -17
- package/dist/functions/rooms.js +181 -244
- package/dist/functions/run.js +29 -39
- package/dist/functions/seeds.js +6 -10
- package/dist/functions/serialization.js +27 -34
- package/dist/functions/set.js +24 -40
- package/dist/functions/slots.js +18 -22
- package/dist/functions/sort.js +9 -15
- package/dist/functions/sound.js +12 -16
- package/dist/functions/spawnCollectible.js +21 -26
- package/dist/functions/sprites.js +16 -24
- package/dist/functions/stage.js +122 -164
- package/dist/functions/stats.js +37 -43
- package/dist/functions/storyBosses.js +36 -40
- package/dist/functions/string.js +19 -33
- package/dist/functions/table.js +21 -31
- package/dist/functions/tears.js +6 -14
- package/dist/functions/transformations.js +35 -42
- package/dist/functions/trinketGive.js +29 -36
- package/dist/functions/trinkets.js +45 -60
- package/dist/functions/tstlClass.js +11 -20
- package/dist/functions/types.js +22 -46
- package/dist/functions/ui.js +25 -40
- package/dist/functions/utils.js +22 -36
- package/dist/functions/vector.js +33 -46
- package/dist/functions/versusScreen.js +12 -18
- package/dist/functions/weighted.js +8 -12
- package/dist/index.js +150 -166
- package/dist/index.rollup.d.ts +11 -11
- package/dist/indexLua.js +151 -167
- package/dist/interfaces/ChargeBarSprites.js +1 -2
- package/dist/interfaces/Corner.js +1 -2
- package/dist/interfaces/CustomStageTSConfig.js +1 -2
- package/dist/interfaces/GridEntityCustomData.js +1 -2
- package/dist/interfaces/JSONRoomsFile.js +1 -2
- package/dist/interfaces/PlayerHealth.d.ts +11 -11
- package/dist/interfaces/PlayerHealth.d.ts.map +1 -1
- package/dist/interfaces/PlayerHealth.js +1 -2
- package/dist/interfaces/PlayerStats.js +2 -4
- package/dist/interfaces/PocketItemDescription.js +1 -2
- package/dist/interfaces/RoomDescription.js +1 -2
- package/dist/interfaces/SaveData.js +1 -2
- package/dist/interfaces/StageHistoryEntry.js +1 -2
- package/dist/interfaces/TSTLClassMetatable.js +1 -2
- package/dist/interfaces/TrinketSituation.js +1 -2
- package/dist/interfaces/private/AddCallbackParametersCustom.js +2 -4
- package/dist/interfaces/private/CustomStage.js +1 -2
- package/dist/interfaces/private/CustomTrapdoorDescription.js +1 -2
- package/dist/interfaces/private/ModUpgradedInterface.js +1 -2
- package/dist/isaacscript-common.lua +1 -1
- package/dist/maps/PHDPillConversionsMap.js +19 -22
- package/dist/maps/cardNameToTypeMap.js +205 -208
- package/dist/maps/characterNameToTypeMap.js +85 -88
- package/dist/maps/collectibleNameToTypeMap.js +5 -8
- package/dist/maps/defaultPlayerStatMap.js +10 -13
- package/dist/maps/entityTypeVariantToBossIDMap.js +3 -6
- package/dist/maps/falsePHDPillConversionsMap.js +33 -36
- package/dist/maps/gridEntityTypeToBrokenStateMap.js +15 -18
- package/dist/maps/gridEntityXMLMap.js +52 -55
- package/dist/maps/itemPoolTypeToItemPoolName.js +33 -36
- package/dist/maps/keyboardToStringMap.js +66 -69
- package/dist/maps/pillNameToEffectMap.js +83 -86
- package/dist/maps/roomNameToTypeMap.js +38 -41
- package/dist/maps/roomShapeToTopLeftWallGridIndexMap.js +9 -12
- package/dist/maps/transformationNameToPlayerFormMap.js +30 -33
- package/dist/maps/trinketNameToTypeMap.js +5 -8
- package/dist/objects/LRoomShapeToRectangles.js +22 -25
- package/dist/objects/backdropTypeToRockAltType.js +65 -68
- package/dist/objects/batteryNames.js +8 -11
- package/dist/objects/bombNames.js +11 -14
- package/dist/objects/bossIDToEntityTypeVariant.js +116 -119
- package/dist/objects/bossNamePNGFileNames.js +104 -107
- package/dist/objects/bossNames.js +105 -108
- package/dist/objects/bossPortraitPNGFileNames.js +104 -107
- package/dist/objects/cardDescriptions.js +101 -104
- package/dist/objects/cardNames.js +101 -104
- package/dist/objects/challengeBosses.js +49 -52
- package/dist/objects/challengeCharacters.js +49 -52
- package/dist/objects/challengeCollectibleTypes.js +160 -163
- package/dist/objects/challengeNames.js +49 -52
- package/dist/objects/challengeTrinketType.js +48 -51
- package/dist/objects/characterDamageMultipliers.js +44 -47
- package/dist/objects/characterNames.js +44 -47
- package/dist/objects/characterSpritePNGFileNames.js +44 -47
- package/dist/objects/characterStartingCollectibleTypes.js +49 -52
- package/dist/objects/characterStartingTrinketTypes.js +44 -47
- package/dist/objects/chestNames.js +15 -18
- package/dist/objects/coinNames.js +11 -14
- package/dist/objects/coinSubTypeToValue.js +11 -14
- package/dist/objects/collectibleDescriptions.js +725 -728
- package/dist/objects/collectibleNames.js +725 -728
- package/dist/objects/colors.js +1 -4
- package/dist/objects/directionNames.js +7 -10
- package/dist/objects/directionToDegrees.js +7 -10
- package/dist/objects/directionToMoveAction.js +7 -10
- package/dist/objects/directionToShootAction.js +7 -10
- package/dist/objects/directionToVector.js +9 -12
- package/dist/objects/doorSlotFlagToDoorSlot.js +11 -14
- package/dist/objects/doorSlotToDirection.js +11 -14
- package/dist/objects/doorSlotToDoorSlotFlag.js +11 -14
- package/dist/objects/gridEntityTypeToANM2Name.js +30 -33
- package/dist/objects/heartNames.js +16 -19
- package/dist/objects/isaacAPIClassTypeToBrand.js +8 -11
- package/dist/objects/isaacAPIClassTypeToFunctions.js +37 -40
- package/dist/objects/itemPoolTypeToCollectibleTypesSet.js +9 -45
- package/dist/objects/kColors.js +1 -4
- package/dist/objects/keyNames.js +8 -11
- package/dist/objects/languageNames.js +9 -12
- package/dist/objects/oppositeDoorSlots.js +11 -14
- package/dist/objects/pillEffectClasses.js +53 -56
- package/dist/objects/pillEffectNames.js +53 -56
- package/dist/objects/pillEffectTypeToPillEffects.js +11 -14
- package/dist/objects/pillEffectTypes.js +53 -56
- package/dist/objects/playerNamePNGFileNames.js +44 -47
- package/dist/objects/playerPortraitPNGFileNames.js +44 -47
- package/dist/objects/roomShapeBounds.js +23 -26
- package/dist/objects/roomShapeCorners.js +128 -131
- package/dist/objects/roomShapeLayoutSizes.js +23 -26
- package/dist/objects/roomShapeToBottomRightPosition.js +17 -20
- package/dist/objects/roomShapeToDoorSlotCoordinates.js +78 -81
- package/dist/objects/roomShapeToDoorSlots.js +48 -51
- package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.js +82 -85
- package/dist/objects/roomShapeToGridWidth.js +14 -17
- package/dist/objects/roomShapeToTopLeftPosition.js +18 -21
- package/dist/objects/roomShapeVolumes.js +21 -24
- package/dist/objects/roomTypeNames.js +32 -35
- package/dist/objects/roomTypeSpecialGotoPrefixes.js +32 -35
- package/dist/objects/sackNames.js +6 -9
- package/dist/objects/slotNames.js +21 -24
- package/dist/objects/stageIDNames.js +33 -36
- package/dist/objects/stageToMusic.js +69 -72
- package/dist/objects/stageToStageID.js +90 -93
- package/dist/objects/stageTypeSuffixes.js +8 -11
- package/dist/objects/transformationNames.js +16 -19
- package/dist/objects/trinketDescriptions.js +192 -195
- package/dist/objects/trinketNames.js +192 -195
- package/dist/objects/versusScreenBackgroundColors.js +39 -42
- package/dist/objects/versusScreenDirtSpotColors.js +39 -42
- package/dist/patchErrorFunctions.js +4 -7
- package/dist/serialization.js +6 -9
- package/dist/sets/LRoomShapesSet.js +7 -10
- package/dist/sets/bigRoomShapesSet.js +10 -13
- package/dist/sets/bossSets.js +261 -264
- package/dist/sets/charactersThatStartWithAnActiveItemSet.js +14 -17
- package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.js +5 -8
- package/dist/sets/charactersWithFreeDevilDealsSet.js +3 -6
- package/dist/sets/charactersWithNoRedHeartsSet.js +11 -14
- package/dist/sets/charactersWithNoSoulHeartsSet.js +8 -11
- package/dist/sets/consoleCommandsSet.js +2 -5
- package/dist/sets/entitiesWithArmorSet.js +44 -47
- package/dist/sets/familiarsThatShootPlayerTearsSet.js +11 -14
- package/dist/sets/itemConfigCardTypesForCards.js +7 -10
- package/dist/sets/lostStyleCharactersSet.js +8 -11
- package/dist/sets/mineShaftRoomSubTypesSet.js +8 -11
- package/dist/sets/narrowRoomShapesSet.js +7 -10
- package/dist/sets/poopGridEntityXMLTypesSet.js +12 -15
- package/dist/sets/redHeartSubTypesSet.js +6 -9
- package/dist/sets/repentanceBossIDsSet.js +26 -29
- package/dist/sets/sinEntityTypesSet.js +10 -13
- package/dist/sets/singleUseActiveCollectibleTypesSet.js +11 -14
- package/dist/shaderCrashFix.js +4 -7
- package/dist/shouldFire.js +28 -58
- package/dist/types/AddSubtract.js +1 -2
- package/dist/types/AllButFirst.js +1 -2
- package/dist/types/AllButLast.js +1 -2
- package/dist/types/AnyClass.js +1 -2
- package/dist/types/AnyEntity.js +1 -2
- package/dist/types/AnyFunction.js +1 -2
- package/dist/types/AnyGridEntity.js +1 -2
- package/dist/types/CompositionTypeSatisfiesEnum.js +1 -2
- package/dist/types/ConversionHeartSubType.js +1 -2
- package/dist/types/Decrement.js +1 -2
- package/dist/types/ERange.js +1 -2
- package/dist/types/EntityID.js +1 -2
- package/dist/types/FunctionTuple.js +1 -2
- package/dist/types/GridEntityID.js +1 -2
- package/dist/types/HasFunction.js +1 -2
- package/dist/types/IRange.js +1 -2
- package/dist/types/Immutable.js +1 -2
- package/dist/types/Increment.js +1 -2
- package/dist/types/LowercaseKeys.js +1 -2
- package/dist/types/NaturalNumbersLessThan.js +1 -2
- package/dist/types/NaturalNumbersLessThanOrEqualTo.js +1 -2
- package/dist/types/ObjectValues.js +1 -2
- package/dist/types/PickingUpItem.js +15 -22
- package/dist/types/PickupIndex.js +1 -2
- package/dist/types/PlayerIndex.js +1 -2
- package/dist/types/PossibleStatType.js +1 -2
- package/dist/types/PublicInterface.js +1 -2
- package/dist/types/ReadonlyMap.js +1 -4
- package/dist/types/ReadonlyRecord.js +1 -2
- package/dist/types/ReadonlySet.js +1 -4
- package/dist/types/StartsWithLowercase.js +1 -2
- package/dist/types/StartsWithUppercase.js +1 -2
- package/dist/types/TSTLClass.js +1 -2
- package/dist/types/Tuple.js +1 -2
- package/dist/types/TupleKeys.js +1 -2
- package/dist/types/TupleToIntersection.js +1 -2
- package/dist/types/TupleToUnion.js +1 -2
- package/dist/types/TupleWithLengthBetween.js +1 -2
- package/dist/types/TupleWithMaxLength.js +1 -2
- package/dist/types/UnionToIntersection.js +1 -2
- package/dist/types/UppercaseKeys.js +1 -2
- package/dist/types/WeightedArray.js +1 -2
- package/dist/types/WidenLiteral.js +1 -2
- package/dist/types/Writable.js +1 -2
- package/dist/types/private/CallbackTuple.js +1 -2
- package/dist/types/private/ModUpgradedWithFeatures.js +1 -2
- package/package.json +3 -3
- package/src/interfaces/PlayerHealth.ts +12 -11
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const ReadonlyMap_1 = require("../../../types/ReadonlyMap");
|
|
28
|
-
const Feature_1 = require("../../private/Feature");
|
|
7
|
+
import { CacheFlag, CardType, CollectibleType, ItemConfigCardType, ItemConfigTag, PlayerForm, TrinketType, } from "isaac-typescript-definitions";
|
|
8
|
+
import { CACHE_FLAG_VALUES, ITEM_CONFIG_CARD_TYPE_VALUES, ITEM_CONFIG_TAG_VALUES, } from "../../../cachedEnumValues";
|
|
9
|
+
import { itemConfig } from "../../../core/cachedClasses";
|
|
10
|
+
import { FIRST_GLITCHED_COLLECTIBLE_TYPE, QUALITIES, } from "../../../core/constants";
|
|
11
|
+
import { VANILLA_CARD_TYPES, VANILLA_COLLECTIBLE_TYPES, VANILLA_PILL_EFFECTS, VANILLA_TRINKET_TYPES, } from "../../../core/constantsVanilla";
|
|
12
|
+
import { Exported } from "../../../decorators";
|
|
13
|
+
import { ISCFeature } from "../../../enums/ISCFeature";
|
|
14
|
+
import { arrayRemove, getRandomArrayElement } from "../../../functions/array";
|
|
15
|
+
import { getItemConfigCardType } from "../../../functions/cards";
|
|
16
|
+
import { collectibleHasTag } from "../../../functions/collectibleTag";
|
|
17
|
+
import { collectibleHasCacheFlag, getCollectibleQuality, isActiveCollectible, isHiddenCollectible, isPassiveOrFamiliarCollectible, } from "../../../functions/collectibles";
|
|
18
|
+
import { getFlagName } from "../../../functions/flag";
|
|
19
|
+
import { getRandomSetElement } from "../../../functions/set";
|
|
20
|
+
import { trinketHasCacheFlag } from "../../../functions/trinkets";
|
|
21
|
+
import { asCardType, asCollectibleType, asPillEffect, asTrinketType, } from "../../../functions/types";
|
|
22
|
+
import { assertDefined, iRange, repeat } from "../../../functions/utils";
|
|
23
|
+
import { ITEM_CONFIG_CARD_TYPES_FOR_CARDS } from "../../../sets/itemConfigCardTypesForCards";
|
|
24
|
+
import { ReadonlyMap } from "../../../types/ReadonlyMap";
|
|
25
|
+
import { Feature } from "../../private/Feature";
|
|
29
26
|
const CONDITIONAL_FLYING_COLLECTIBLE_TYPES = [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
CollectibleType.BIBLE,
|
|
28
|
+
CollectibleType.EMPTY_VESSEL,
|
|
29
|
+
CollectibleType.ASTRAL_PROJECTION,
|
|
30
|
+
CollectibleType.RECALL,
|
|
34
31
|
];
|
|
35
|
-
const TRANSFORMATION_TO_TAG_MAP = new
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
32
|
+
const TRANSFORMATION_TO_TAG_MAP = new ReadonlyMap([
|
|
33
|
+
[PlayerForm.GUPPY, ItemConfigTag.GUPPY], // 0
|
|
34
|
+
[PlayerForm.BEELZEBUB, ItemConfigTag.FLY], // 1
|
|
35
|
+
[PlayerForm.FUN_GUY, ItemConfigTag.MUSHROOM], // 2
|
|
36
|
+
[PlayerForm.SERAPHIM, ItemConfigTag.ANGEL], // 3
|
|
37
|
+
[PlayerForm.BOB, ItemConfigTag.BOB], // 4
|
|
38
|
+
[PlayerForm.SPUN, ItemConfigTag.SYRINGE], // 5
|
|
39
|
+
[PlayerForm.YES_MOTHER, ItemConfigTag.MOM], // 6
|
|
40
|
+
[PlayerForm.CONJOINED, ItemConfigTag.BABY], // 7
|
|
41
|
+
[PlayerForm.LEVIATHAN, ItemConfigTag.DEVIL], // 8
|
|
42
|
+
[PlayerForm.OH_CRAP, ItemConfigTag.POOP], // 9
|
|
43
|
+
[PlayerForm.BOOKWORM, ItemConfigTag.BOOK], // 10
|
|
47
44
|
// PlayerForm.ADULTHOOD (11) is based on pill usage.
|
|
48
|
-
[
|
|
45
|
+
[PlayerForm.SPIDER_BABY, ItemConfigTag.SPIDER], // 12
|
|
49
46
|
// PlayerForm.STOMPY (13) is based on size.
|
|
50
47
|
]);
|
|
51
48
|
/**
|
|
@@ -56,7 +53,7 @@ const TRANSFORMATION_TO_TAG_MAP = new ReadonlyMap_1.ReadonlyMap([
|
|
|
56
53
|
* The modded arrays/sets are created using the functions from
|
|
57
54
|
* `ISCFeature.MODDED_ELEMENT_DETECTION`.
|
|
58
55
|
*/
|
|
59
|
-
class ModdedElementSets extends
|
|
56
|
+
export class ModdedElementSets extends Feature {
|
|
60
57
|
arraysInitialized = false;
|
|
61
58
|
// ----------------
|
|
62
59
|
// Main collections
|
|
@@ -101,7 +98,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
101
98
|
/** @internal */
|
|
102
99
|
constructor(moddedElementDetection) {
|
|
103
100
|
super();
|
|
104
|
-
this.featuresUsed = [
|
|
101
|
+
this.featuresUsed = [ISCFeature.MODDED_ELEMENT_DETECTION];
|
|
105
102
|
this.moddedElementDetection = moddedElementDetection;
|
|
106
103
|
}
|
|
107
104
|
lazyInit() {
|
|
@@ -123,7 +120,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
123
120
|
this.lazyInitCardTypes();
|
|
124
121
|
}
|
|
125
122
|
lazyInitModdedCollectibleTypes() {
|
|
126
|
-
for (const collectibleType of
|
|
123
|
+
for (const collectibleType of VANILLA_COLLECTIBLE_TYPES) {
|
|
127
124
|
this.allCollectibleTypesArray.push(collectibleType);
|
|
128
125
|
this.allCollectibleTypesSet.add(collectibleType);
|
|
129
126
|
}
|
|
@@ -132,11 +129,11 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
132
129
|
return;
|
|
133
130
|
}
|
|
134
131
|
const lastCollectibleType = this.moddedElementDetection.getLastCollectibleType();
|
|
135
|
-
const moddedCollectibleTypes =
|
|
132
|
+
const moddedCollectibleTypes = iRange(firstModdedCollectibleType, lastCollectibleType);
|
|
136
133
|
for (const collectibleTypeInt of moddedCollectibleTypes) {
|
|
137
134
|
// Modded collectible types are contiguous, but we check every value just in case.
|
|
138
|
-
const collectibleType =
|
|
139
|
-
const itemConfigItem =
|
|
135
|
+
const collectibleType = asCollectibleType(collectibleTypeInt);
|
|
136
|
+
const itemConfigItem = itemConfig.GetCollectible(collectibleType);
|
|
140
137
|
if (itemConfigItem !== undefined) {
|
|
141
138
|
this.moddedCollectibleTypesArray.push(collectibleType);
|
|
142
139
|
this.moddedCollectibleTypesSet.add(collectibleType);
|
|
@@ -146,7 +143,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
146
143
|
}
|
|
147
144
|
}
|
|
148
145
|
lazyInitModdedTrinketTypes() {
|
|
149
|
-
for (const trinketType of
|
|
146
|
+
for (const trinketType of VANILLA_TRINKET_TYPES) {
|
|
150
147
|
this.allTrinketTypesArray.push(trinketType);
|
|
151
148
|
this.allTrinketTypesSet.add(trinketType);
|
|
152
149
|
}
|
|
@@ -155,11 +152,11 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
155
152
|
return;
|
|
156
153
|
}
|
|
157
154
|
const lastTrinketType = this.moddedElementDetection.getLastTrinketType();
|
|
158
|
-
const moddedTrinketTypes =
|
|
155
|
+
const moddedTrinketTypes = iRange(firstModdedTrinketType, lastTrinketType);
|
|
159
156
|
for (const trinketTypeInt of moddedTrinketTypes) {
|
|
160
157
|
// Modded trinket types are contiguous, but we check every value just in case.
|
|
161
|
-
const trinketType =
|
|
162
|
-
const itemConfigItem =
|
|
158
|
+
const trinketType = asTrinketType(trinketTypeInt);
|
|
159
|
+
const itemConfigItem = itemConfig.GetTrinket(trinketType);
|
|
163
160
|
if (itemConfigItem !== undefined) {
|
|
164
161
|
this.moddedTrinketTypesArray.push(trinketType);
|
|
165
162
|
this.moddedTrinketTypesSet.add(trinketType);
|
|
@@ -169,7 +166,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
169
166
|
}
|
|
170
167
|
}
|
|
171
168
|
lazyInitModdedCardTypes() {
|
|
172
|
-
for (const cardType of
|
|
169
|
+
for (const cardType of VANILLA_CARD_TYPES) {
|
|
173
170
|
this.allCardTypesArray.push(cardType);
|
|
174
171
|
this.allCardTypesSet.add(cardType);
|
|
175
172
|
}
|
|
@@ -178,11 +175,11 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
178
175
|
return;
|
|
179
176
|
}
|
|
180
177
|
const lastCardType = this.moddedElementDetection.getLastCardType();
|
|
181
|
-
const moddedCardTypes =
|
|
178
|
+
const moddedCardTypes = iRange(firstModdedCardType, lastCardType);
|
|
182
179
|
for (const cardTypeInt of moddedCardTypes) {
|
|
183
180
|
// Modded card types are contiguous, but we check every value just in case.
|
|
184
|
-
const cardType =
|
|
185
|
-
const itemConfigCard =
|
|
181
|
+
const cardType = asCardType(cardTypeInt);
|
|
182
|
+
const itemConfigCard = itemConfig.GetCard(cardType);
|
|
186
183
|
if (itemConfigCard !== undefined) {
|
|
187
184
|
this.moddedCardTypesArray.push(cardType);
|
|
188
185
|
this.moddedCardTypesSet.add(cardType);
|
|
@@ -192,7 +189,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
192
189
|
}
|
|
193
190
|
}
|
|
194
191
|
lazyInitModdedPillEffects() {
|
|
195
|
-
for (const pillEffect of
|
|
192
|
+
for (const pillEffect of VANILLA_PILL_EFFECTS) {
|
|
196
193
|
this.allPillEffectsArray.push(pillEffect);
|
|
197
194
|
this.allPillEffectsSet.add(pillEffect);
|
|
198
195
|
}
|
|
@@ -201,11 +198,11 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
201
198
|
return;
|
|
202
199
|
}
|
|
203
200
|
const lastPillEffect = this.moddedElementDetection.getLastPillEffect();
|
|
204
|
-
const moddedPillEffects =
|
|
201
|
+
const moddedPillEffects = iRange(firstModdedPillEffect, lastPillEffect);
|
|
205
202
|
for (const pillEffectInt of moddedPillEffects) {
|
|
206
203
|
// Modded pill effects are contiguous, but we check every value just in case.
|
|
207
|
-
const pillEffect =
|
|
208
|
-
const itemConfigPillEffect =
|
|
204
|
+
const pillEffect = asPillEffect(pillEffectInt);
|
|
205
|
+
const itemConfigPillEffect = itemConfig.GetPillEffect(pillEffect);
|
|
209
206
|
if (itemConfigPillEffect !== undefined) {
|
|
210
207
|
this.moddedPillEffectsArray.push(pillEffect);
|
|
211
208
|
this.moddedPillEffectsSet.add(pillEffect);
|
|
@@ -217,17 +214,17 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
217
214
|
lazyInitTagToCollectibleTypesMap() {
|
|
218
215
|
// The tag to collectible types map should be valid for every tag, so we initialize it with
|
|
219
216
|
// empty arrays.
|
|
220
|
-
for (const itemConfigTag of
|
|
217
|
+
for (const itemConfigTag of ITEM_CONFIG_TAG_VALUES) {
|
|
221
218
|
this.tagToCollectibleTypesMap.set(itemConfigTag, []);
|
|
222
219
|
}
|
|
223
220
|
for (const collectibleType of this.getCollectibleTypes()) {
|
|
224
|
-
for (const itemConfigTag of
|
|
225
|
-
if (!
|
|
221
|
+
for (const itemConfigTag of ITEM_CONFIG_TAG_VALUES) {
|
|
222
|
+
if (!collectibleHasTag(collectibleType, itemConfigTag)) {
|
|
226
223
|
continue;
|
|
227
224
|
}
|
|
228
225
|
const collectibleTypes = this.tagToCollectibleTypesMap.get(itemConfigTag);
|
|
229
226
|
if (collectibleTypes === undefined) {
|
|
230
|
-
const flagName =
|
|
227
|
+
const flagName = getFlagName(itemConfigTag, ItemConfigTag);
|
|
231
228
|
error(`Failed to get the collectible types for item tag: ${flagName}`);
|
|
232
229
|
}
|
|
233
230
|
collectibleTypes.push(collectibleType);
|
|
@@ -235,10 +232,10 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
235
232
|
}
|
|
236
233
|
}
|
|
237
234
|
lazyInitCacheFlagToCollectibleTypesMap() {
|
|
238
|
-
for (const cacheFlag of
|
|
235
|
+
for (const cacheFlag of CACHE_FLAG_VALUES) {
|
|
239
236
|
const collectibleTypes = [];
|
|
240
237
|
for (const collectibleType of this.getCollectibleTypes()) {
|
|
241
|
-
if (
|
|
238
|
+
if (collectibleHasCacheFlag(collectibleType, cacheFlag)) {
|
|
242
239
|
collectibleTypes.push(collectibleType);
|
|
243
240
|
}
|
|
244
241
|
}
|
|
@@ -246,10 +243,10 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
246
243
|
}
|
|
247
244
|
}
|
|
248
245
|
lazyInitCacheFlagToTrinketTypesMap() {
|
|
249
|
-
for (const cacheFlag of
|
|
246
|
+
for (const cacheFlag of CACHE_FLAG_VALUES) {
|
|
250
247
|
const trinketTypes = [];
|
|
251
248
|
for (const trinketType of this.getTrinketTypes()) {
|
|
252
|
-
if (
|
|
249
|
+
if (trinketHasCacheFlag(trinketType, cacheFlag)) {
|
|
253
250
|
trinketTypes.push(trinketType);
|
|
254
251
|
}
|
|
255
252
|
}
|
|
@@ -261,42 +258,42 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
261
258
|
// dynamically look for collectibles that have `CacheFlag.FLYING`. But none of the collectibles
|
|
262
259
|
// with a cache of "all" grant flying (including all of the 3 Dollar Bill collectibles and all
|
|
263
260
|
// of the Birthright effects), so we can safely remove them from the list.
|
|
264
|
-
const collectibleTypesWithFlyingCacheFlag = this.getCollectibleTypesWithCacheFlag(
|
|
265
|
-
const collectibleTypesWithAllCacheFlag = this.getCollectibleTypesWithCacheFlag(
|
|
266
|
-
this.flyingCollectibleTypes =
|
|
261
|
+
const collectibleTypesWithFlyingCacheFlag = this.getCollectibleTypesWithCacheFlag(CacheFlag.FLYING);
|
|
262
|
+
const collectibleTypesWithAllCacheFlag = this.getCollectibleTypesWithCacheFlag(CacheFlag.ALL);
|
|
263
|
+
this.flyingCollectibleTypes = arrayRemove(collectibleTypesWithFlyingCacheFlag, ...collectibleTypesWithAllCacheFlag);
|
|
267
264
|
// Additionally, create a second set that represents the collectible types that grant flying
|
|
268
265
|
// non-conditionally.
|
|
269
|
-
this.permanentFlyingCollectibleTypes =
|
|
266
|
+
this.permanentFlyingCollectibleTypes = arrayRemove(this.flyingCollectibleTypes, ...CONDITIONAL_FLYING_COLLECTIBLE_TYPES);
|
|
270
267
|
}
|
|
271
268
|
lazyInitFlyingTrinketTypesSet() {
|
|
272
269
|
// Instead of manually compiling a list of trinkets that grant flying, we can instead
|
|
273
270
|
// dynamically look for collectibles that have `CacheFlag.FLYING`. But none of the trinkets with
|
|
274
271
|
// `CacheFlag.ALL` grant flying except for Azazel's Stump, so we can safely remove them from the
|
|
275
272
|
// list.
|
|
276
|
-
const trinketTypesWithFlyingCacheFlag = this.getTrinketsTypesWithCacheFlag(
|
|
277
|
-
const trinketTypesWithAllCacheFlag = this.getTrinketsTypesWithCacheFlag(
|
|
278
|
-
const trinketTypesWithAllCacheFlagThatDontGrantFlying =
|
|
279
|
-
this.flyingTrinketTypes =
|
|
273
|
+
const trinketTypesWithFlyingCacheFlag = this.getTrinketsTypesWithCacheFlag(CacheFlag.FLYING);
|
|
274
|
+
const trinketTypesWithAllCacheFlag = this.getTrinketsTypesWithCacheFlag(CacheFlag.ALL);
|
|
275
|
+
const trinketTypesWithAllCacheFlagThatDontGrantFlying = arrayRemove(trinketTypesWithAllCacheFlag, TrinketType.AZAZELS_STUMP);
|
|
276
|
+
this.flyingTrinketTypes = arrayRemove(trinketTypesWithFlyingCacheFlag, ...trinketTypesWithAllCacheFlagThatDontGrantFlying);
|
|
280
277
|
}
|
|
281
278
|
lazyInitEdenCollectibleTypesSet() {
|
|
282
279
|
for (const collectibleType of this.getCollectibleTypes()) {
|
|
283
|
-
if (
|
|
284
|
-
||
|
|
280
|
+
if (isHiddenCollectible(collectibleType)
|
|
281
|
+
|| collectibleHasTag(collectibleType, ItemConfigTag.NO_EDEN)) {
|
|
285
282
|
continue;
|
|
286
283
|
}
|
|
287
|
-
if (
|
|
284
|
+
if (isActiveCollectible(collectibleType)) {
|
|
288
285
|
this.edenActiveCollectibleTypesSet.add(collectibleType);
|
|
289
286
|
}
|
|
290
|
-
if (
|
|
287
|
+
if (isPassiveOrFamiliarCollectible(collectibleType)) {
|
|
291
288
|
this.edenPassiveCollectibleTypesSet.add(collectibleType);
|
|
292
289
|
}
|
|
293
290
|
}
|
|
294
291
|
}
|
|
295
292
|
lazyInitQualityToCollectibleTypesMap() {
|
|
296
|
-
for (const quality of
|
|
293
|
+
for (const quality of QUALITIES) {
|
|
297
294
|
const collectibleTypes = [];
|
|
298
295
|
for (const collectibleType of this.getCollectibleTypes()) {
|
|
299
|
-
const collectibleTypeQuality =
|
|
296
|
+
const collectibleTypeQuality = getCollectibleQuality(collectibleType);
|
|
300
297
|
if (collectibleTypeQuality === quality) {
|
|
301
298
|
collectibleTypes.push(collectibleType);
|
|
302
299
|
}
|
|
@@ -307,16 +304,16 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
307
304
|
lazyInitCardTypes() {
|
|
308
305
|
// The card type to cards map should be valid for every card type, so we initialize it with
|
|
309
306
|
// empty arrays.
|
|
310
|
-
for (const itemConfigCardType of
|
|
307
|
+
for (const itemConfigCardType of ITEM_CONFIG_CARD_TYPE_VALUES) {
|
|
311
308
|
this.itemConfigCardTypeToCardTypeMap.set(itemConfigCardType, []);
|
|
312
309
|
}
|
|
313
310
|
for (const cardType of this.getCardTypes()) {
|
|
314
|
-
const itemConfigCardType =
|
|
311
|
+
const itemConfigCardType = getItemConfigCardType(cardType);
|
|
315
312
|
if (itemConfigCardType !== undefined) {
|
|
316
313
|
const cardTypes = this.itemConfigCardTypeToCardTypeMap.get(itemConfigCardType);
|
|
317
|
-
|
|
314
|
+
assertDefined(cardTypes, `Failed to get the card types for item config card type: ${itemConfigCardType}`);
|
|
318
315
|
cardTypes.push(cardType);
|
|
319
|
-
if (
|
|
316
|
+
if (ITEM_CONFIG_CARD_TYPES_FOR_CARDS.has(itemConfigCardType)) {
|
|
320
317
|
this.cardTypeCardArray.push(cardType);
|
|
321
318
|
}
|
|
322
319
|
}
|
|
@@ -424,11 +421,11 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
424
421
|
}
|
|
425
422
|
}
|
|
426
423
|
// If the player has TMTRAINER, they might also have glitched items.
|
|
427
|
-
if (player.HasCollectible(
|
|
428
|
-
let collectibleType =
|
|
424
|
+
if (player.HasCollectible(CollectibleType.TMTRAINER)) {
|
|
425
|
+
let collectibleType = FIRST_GLITCHED_COLLECTIBLE_TYPE;
|
|
429
426
|
let itemConfigItem;
|
|
430
427
|
do {
|
|
431
|
-
itemConfigItem =
|
|
428
|
+
itemConfigItem = itemConfig.GetCollectible(collectibleType);
|
|
432
429
|
if (itemConfigItem !== undefined) {
|
|
433
430
|
// The `EntityPlayer.GetCollectibleNum` method is bugged with TMTrainer items and will
|
|
434
431
|
// always return 0. To work around this, we simply assume that if the player has the
|
|
@@ -739,7 +736,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
739
736
|
for (const collectibleType of collectiblesWithCacheFlag) {
|
|
740
737
|
// We specify "true" as the second argument to filter out things like Lilith's Incubus.
|
|
741
738
|
const numCollectibles = player.GetCollectibleNum(collectibleType, true);
|
|
742
|
-
|
|
739
|
+
repeat(numCollectibles, () => {
|
|
743
740
|
playerCollectibles.push(collectibleType);
|
|
744
741
|
});
|
|
745
742
|
}
|
|
@@ -840,7 +837,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
840
837
|
getCollectibleTypesWithTag(itemConfigTag) {
|
|
841
838
|
this.lazyInit();
|
|
842
839
|
const collectibleTypes = this.tagToCollectibleTypesMap.get(itemConfigTag);
|
|
843
|
-
|
|
840
|
+
assertDefined(collectibleTypes, `The item config tag of ${itemConfigTag} is not a valid value of the "ItemConfigTag" enum.`);
|
|
844
841
|
return collectibleTypes;
|
|
845
842
|
}
|
|
846
843
|
/**
|
|
@@ -860,7 +857,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
860
857
|
for (const collectibleType of collectibleTypesWithTag) {
|
|
861
858
|
// We specify "true" as the second argument to filter out things like Lilith's Incubus.
|
|
862
859
|
const numCollectibles = player.GetCollectibleNum(collectibleType, true);
|
|
863
|
-
|
|
860
|
+
repeat(numCollectibles, () => {
|
|
864
861
|
playerCollectibles.push(collectibleType);
|
|
865
862
|
});
|
|
866
863
|
}
|
|
@@ -886,7 +883,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
886
883
|
*/
|
|
887
884
|
getCollectibleTypesForTransformation(playerForm) {
|
|
888
885
|
const itemConfigTag = TRANSFORMATION_TO_TAG_MAP.get(playerForm);
|
|
889
|
-
|
|
886
|
+
assertDefined(itemConfigTag, `Failed to get the collectible types for the transformation of ${playerForm} because that transformation is not based on collectibles.`);
|
|
890
887
|
return this.getCollectibleTypesWithTag(itemConfigTag);
|
|
891
888
|
}
|
|
892
889
|
/**
|
|
@@ -907,7 +904,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
907
904
|
for (const collectibleType of collectibleForTransformation) {
|
|
908
905
|
// We specify "true" as the second argument to filter out things like Lilith's Incubus.
|
|
909
906
|
const numCollectibles = player.GetCollectibleNum(collectibleType, true);
|
|
910
|
-
|
|
907
|
+
repeat(numCollectibles, () => {
|
|
911
908
|
playerCollectibles.push(collectibleType);
|
|
912
909
|
});
|
|
913
910
|
}
|
|
@@ -969,7 +966,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
969
966
|
*/
|
|
970
967
|
getRandomEdenActiveCollectibleType(seedOrRNG, exceptions = []) {
|
|
971
968
|
this.lazyInit();
|
|
972
|
-
return
|
|
969
|
+
return getRandomSetElement(this.edenPassiveCollectibleTypesSet, seedOrRNG, exceptions);
|
|
973
970
|
}
|
|
974
971
|
/**
|
|
975
972
|
* Returns a random passive collectible type that that is a valid starting item for Eden
|
|
@@ -992,7 +989,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
992
989
|
*/
|
|
993
990
|
getRandomEdenPassiveCollectibleType(seedOrRNG, exceptions = []) {
|
|
994
991
|
this.lazyInit();
|
|
995
|
-
return
|
|
992
|
+
return getRandomSetElement(this.edenPassiveCollectibleTypesSet, seedOrRNG, exceptions);
|
|
996
993
|
}
|
|
997
994
|
// -------------------
|
|
998
995
|
// Collectible Quality
|
|
@@ -1011,7 +1008,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
1011
1008
|
getCollectibleTypesOfQuality(quality) {
|
|
1012
1009
|
this.lazyInit();
|
|
1013
1010
|
const collectibleTypes = this.qualityToCollectibleTypesMap.get(quality);
|
|
1014
|
-
|
|
1011
|
+
assertDefined(collectibleTypes, `The quality of ${quality} is not a valid quality.`);
|
|
1015
1012
|
return collectibleTypes;
|
|
1016
1013
|
}
|
|
1017
1014
|
/**
|
|
@@ -1031,7 +1028,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
1031
1028
|
for (const collectibleType of collectibleTypesOfQuality) {
|
|
1032
1029
|
// We specify "true" as the second argument to filter out things like Lilith's Incubus.
|
|
1033
1030
|
const numCollectibles = player.GetCollectibleNum(collectibleType, true);
|
|
1034
|
-
|
|
1031
|
+
repeat(numCollectibles, () => {
|
|
1035
1032
|
playerCollectibleTypes.push(collectibleType);
|
|
1036
1033
|
});
|
|
1037
1034
|
}
|
|
@@ -1058,7 +1055,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
1058
1055
|
const matchingCardTypes = [];
|
|
1059
1056
|
for (const itemConfigCardType of itemConfigCardTypes) {
|
|
1060
1057
|
const cardTypes = this.itemConfigCardTypeToCardTypeMap.get(itemConfigCardType);
|
|
1061
|
-
|
|
1058
|
+
assertDefined(cardTypes, `Failed to get the card types for item config type: ${itemConfigCardType}`);
|
|
1062
1059
|
for (const cardType of cardTypes) {
|
|
1063
1060
|
matchingCardTypes.push(cardType);
|
|
1064
1061
|
}
|
|
@@ -1086,7 +1083,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
1086
1083
|
*/
|
|
1087
1084
|
getRandomCardTypeOfType(itemConfigCardType, seedOrRNG, exceptions = []) {
|
|
1088
1085
|
const cardTypes = this.getCardTypesOfType(itemConfigCardType);
|
|
1089
|
-
return
|
|
1086
|
+
return getRandomArrayElement(cardTypes, seedOrRNG, exceptions);
|
|
1090
1087
|
}
|
|
1091
1088
|
/**
|
|
1092
1089
|
* Has an equal chance of returning any card (e.g. Fool, Reverse Fool, Wild Card, etc.).
|
|
@@ -1111,7 +1108,7 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
1111
1108
|
*/
|
|
1112
1109
|
getRandomCard(seedOrRNG, exceptions = []) {
|
|
1113
1110
|
this.lazyInit();
|
|
1114
|
-
return
|
|
1111
|
+
return getRandomArrayElement(this.cardTypeCardArray, seedOrRNG, exceptions);
|
|
1115
1112
|
}
|
|
1116
1113
|
/**
|
|
1117
1114
|
* Has an equal chance of returning any rune (e.g. Rune of Hagalaz, Blank Rune, Black Rune, Soul
|
|
@@ -1132,120 +1129,119 @@ class ModdedElementSets extends Feature_1.Feature {
|
|
|
1132
1129
|
* @public
|
|
1133
1130
|
*/
|
|
1134
1131
|
getRandomRune(seedOrRNG, exceptions = []) {
|
|
1135
|
-
const runeCardTypes = this.getCardTypesOfType(
|
|
1136
|
-
const runeExceptions = [...exceptions,
|
|
1137
|
-
return
|
|
1132
|
+
const runeCardTypes = this.getCardTypesOfType(ItemConfigCardType.RUNE);
|
|
1133
|
+
const runeExceptions = [...exceptions, CardType.RUNE_SHARD];
|
|
1134
|
+
return getRandomArrayElement(runeCardTypes, seedOrRNG, runeExceptions);
|
|
1138
1135
|
}
|
|
1139
1136
|
}
|
|
1140
|
-
exports.ModdedElementSets = ModdedElementSets;
|
|
1141
1137
|
__decorate([
|
|
1142
|
-
|
|
1138
|
+
Exported
|
|
1143
1139
|
], ModdedElementSets.prototype, "getCollectibleTypes", null);
|
|
1144
1140
|
__decorate([
|
|
1145
|
-
|
|
1141
|
+
Exported
|
|
1146
1142
|
], ModdedElementSets.prototype, "getCollectibleTypeSet", null);
|
|
1147
1143
|
__decorate([
|
|
1148
|
-
|
|
1144
|
+
Exported
|
|
1149
1145
|
], ModdedElementSets.prototype, "getModdedCollectibleTypes", null);
|
|
1150
1146
|
__decorate([
|
|
1151
|
-
|
|
1147
|
+
Exported
|
|
1152
1148
|
], ModdedElementSets.prototype, "getModdedCollectibleTypesSet", null);
|
|
1153
1149
|
__decorate([
|
|
1154
|
-
|
|
1150
|
+
Exported
|
|
1155
1151
|
], ModdedElementSets.prototype, "getPlayerCollectibleMap", null);
|
|
1156
1152
|
__decorate([
|
|
1157
|
-
|
|
1153
|
+
Exported
|
|
1158
1154
|
], ModdedElementSets.prototype, "getTrinketTypes", null);
|
|
1159
1155
|
__decorate([
|
|
1160
|
-
|
|
1156
|
+
Exported
|
|
1161
1157
|
], ModdedElementSets.prototype, "getTrinketTypesSet", null);
|
|
1162
1158
|
__decorate([
|
|
1163
|
-
|
|
1159
|
+
Exported
|
|
1164
1160
|
], ModdedElementSets.prototype, "getModdedTrinketTypes", null);
|
|
1165
1161
|
__decorate([
|
|
1166
|
-
|
|
1162
|
+
Exported
|
|
1167
1163
|
], ModdedElementSets.prototype, "getModdedTrinketTypesSet", null);
|
|
1168
1164
|
__decorate([
|
|
1169
|
-
|
|
1165
|
+
Exported
|
|
1170
1166
|
], ModdedElementSets.prototype, "getCardTypes", null);
|
|
1171
1167
|
__decorate([
|
|
1172
|
-
|
|
1168
|
+
Exported
|
|
1173
1169
|
], ModdedElementSets.prototype, "getCardTypesSet", null);
|
|
1174
1170
|
__decorate([
|
|
1175
|
-
|
|
1171
|
+
Exported
|
|
1176
1172
|
], ModdedElementSets.prototype, "getModdedCardTypes", null);
|
|
1177
1173
|
__decorate([
|
|
1178
|
-
|
|
1174
|
+
Exported
|
|
1179
1175
|
], ModdedElementSets.prototype, "getModdedCardTypesSet", null);
|
|
1180
1176
|
__decorate([
|
|
1181
|
-
|
|
1177
|
+
Exported
|
|
1182
1178
|
], ModdedElementSets.prototype, "getPillEffects", null);
|
|
1183
1179
|
__decorate([
|
|
1184
|
-
|
|
1180
|
+
Exported
|
|
1185
1181
|
], ModdedElementSets.prototype, "getPillEffectsSet", null);
|
|
1186
1182
|
__decorate([
|
|
1187
|
-
|
|
1183
|
+
Exported
|
|
1188
1184
|
], ModdedElementSets.prototype, "getModdedPillEffects", null);
|
|
1189
1185
|
__decorate([
|
|
1190
|
-
|
|
1186
|
+
Exported
|
|
1191
1187
|
], ModdedElementSets.prototype, "getModdedPillEffectsSet", null);
|
|
1192
1188
|
__decorate([
|
|
1193
|
-
|
|
1189
|
+
Exported
|
|
1194
1190
|
], ModdedElementSets.prototype, "getCollectibleTypesWithCacheFlag", null);
|
|
1195
1191
|
__decorate([
|
|
1196
|
-
|
|
1192
|
+
Exported
|
|
1197
1193
|
], ModdedElementSets.prototype, "getTrinketsTypesWithCacheFlag", null);
|
|
1198
1194
|
__decorate([
|
|
1199
|
-
|
|
1195
|
+
Exported
|
|
1200
1196
|
], ModdedElementSets.prototype, "getPlayerCollectiblesWithCacheFlag", null);
|
|
1201
1197
|
__decorate([
|
|
1202
|
-
|
|
1198
|
+
Exported
|
|
1203
1199
|
], ModdedElementSets.prototype, "getPlayerTrinketsWithCacheFlag", null);
|
|
1204
1200
|
__decorate([
|
|
1205
|
-
|
|
1201
|
+
Exported
|
|
1206
1202
|
], ModdedElementSets.prototype, "getFlyingCollectibleTypes", null);
|
|
1207
1203
|
__decorate([
|
|
1208
|
-
|
|
1204
|
+
Exported
|
|
1209
1205
|
], ModdedElementSets.prototype, "getFlyingTrinketTypes", null);
|
|
1210
1206
|
__decorate([
|
|
1211
|
-
|
|
1207
|
+
Exported
|
|
1212
1208
|
], ModdedElementSets.prototype, "getCollectibleTypesWithTag", null);
|
|
1213
1209
|
__decorate([
|
|
1214
|
-
|
|
1210
|
+
Exported
|
|
1215
1211
|
], ModdedElementSets.prototype, "getPlayerCollectiblesWithTag", null);
|
|
1216
1212
|
__decorate([
|
|
1217
|
-
|
|
1213
|
+
Exported
|
|
1218
1214
|
], ModdedElementSets.prototype, "getCollectibleTypesForTransformation", null);
|
|
1219
1215
|
__decorate([
|
|
1220
|
-
|
|
1216
|
+
Exported
|
|
1221
1217
|
], ModdedElementSets.prototype, "getPlayerCollectiblesForTransformation", null);
|
|
1222
1218
|
__decorate([
|
|
1223
|
-
|
|
1219
|
+
Exported
|
|
1224
1220
|
], ModdedElementSets.prototype, "getEdenActiveCollectibleTypes", null);
|
|
1225
1221
|
__decorate([
|
|
1226
|
-
|
|
1222
|
+
Exported
|
|
1227
1223
|
], ModdedElementSets.prototype, "getEdenPassiveCollectibleTypes", null);
|
|
1228
1224
|
__decorate([
|
|
1229
|
-
|
|
1225
|
+
Exported
|
|
1230
1226
|
], ModdedElementSets.prototype, "getRandomEdenActiveCollectibleType", null);
|
|
1231
1227
|
__decorate([
|
|
1232
|
-
|
|
1228
|
+
Exported
|
|
1233
1229
|
], ModdedElementSets.prototype, "getRandomEdenPassiveCollectibleType", null);
|
|
1234
1230
|
__decorate([
|
|
1235
|
-
|
|
1231
|
+
Exported
|
|
1236
1232
|
], ModdedElementSets.prototype, "getCollectibleTypesOfQuality", null);
|
|
1237
1233
|
__decorate([
|
|
1238
|
-
|
|
1234
|
+
Exported
|
|
1239
1235
|
], ModdedElementSets.prototype, "getPlayerCollectiblesOfQuality", null);
|
|
1240
1236
|
__decorate([
|
|
1241
|
-
|
|
1237
|
+
Exported
|
|
1242
1238
|
], ModdedElementSets.prototype, "getCardTypesOfType", null);
|
|
1243
1239
|
__decorate([
|
|
1244
|
-
|
|
1240
|
+
Exported
|
|
1245
1241
|
], ModdedElementSets.prototype, "getRandomCardTypeOfType", null);
|
|
1246
1242
|
__decorate([
|
|
1247
|
-
|
|
1243
|
+
Exported
|
|
1248
1244
|
], ModdedElementSets.prototype, "getRandomCard", null);
|
|
1249
1245
|
__decorate([
|
|
1250
|
-
|
|
1246
|
+
Exported
|
|
1251
1247
|
], ModdedElementSets.prototype, "getRandomRune", null);
|