isaacscript-common 4.0.0 → 4.0.1-dev.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/cachedClasses.ts +39 -0
- package/callbacks/customRevive.lua +2 -1
- package/callbacks/customRevive.ts +215 -0
- package/callbacks/itemPickup.ts +101 -0
- package/callbacks/postAmbush.ts +73 -0
- package/callbacks/postBombExploded.ts +26 -0
- package/callbacks/postBombInitLate.ts +36 -0
- package/callbacks/postBoneSwing.ts +64 -0
- package/callbacks/postCollectibleInitFirst.ts +40 -0
- package/callbacks/postCursedTeleport.ts +183 -0
- package/callbacks/postCustomDoorEnter.lua +0 -7
- package/callbacks/postCustomDoorEnter.ts +292 -0
- package/callbacks/postDiceRoomActivated.ts +60 -0
- package/callbacks/postDoorRender.ts +26 -0
- package/callbacks/postDoorUpdate.ts +26 -0
- package/callbacks/postEffectInitLate.ts +36 -0
- package/callbacks/postEffectStateChanged.ts +43 -0
- package/callbacks/postEsauJr.ts +107 -0
- package/callbacks/postFamiliarInitLate.ts +36 -0
- package/callbacks/postFamiliarStateChanged.ts +43 -0
- package/callbacks/postFlip.ts +88 -0
- package/callbacks/postGreedModeWave.ts +41 -0
- package/callbacks/postGridEntity.ts +164 -0
- package/callbacks/postGridEntityCollision.ts +69 -0
- package/callbacks/postGridEntityRender.ts +26 -0
- package/callbacks/postHolyMantleRemoved.ts +55 -0
- package/callbacks/postItemDischarged.ts +149 -0
- package/callbacks/postKnifeInitLate.ts +36 -0
- package/callbacks/postLaserInitLate.ts +36 -0
- package/callbacks/postNPCInitLate.ts +36 -0
- package/callbacks/postNPCStateChanged.ts +42 -0
- package/callbacks/postNewRoomEarly.ts +90 -0
- package/callbacks/postPickupCollect.ts +48 -0
- package/callbacks/postPickupInitFirst.ts +70 -0
- package/callbacks/postPickupInitLate.ts +36 -0
- package/callbacks/postPickupStateChanged.ts +43 -0
- package/callbacks/postPitRender.ts +26 -0
- package/callbacks/postPitUpdate.ts +26 -0
- package/callbacks/postPlayerChangeHealth.ts +62 -0
- package/callbacks/postPlayerChangeType.ts +56 -0
- package/callbacks/postPlayerCollectible.ts +113 -0
- package/callbacks/postPlayerFatalDamage.ts +141 -0
- package/callbacks/postPlayerInitLate.ts +37 -0
- package/callbacks/postPlayerReordered.ts +142 -0
- package/callbacks/postPoopRender.ts +26 -0
- package/callbacks/postPoopUpdate.ts +26 -0
- package/callbacks/postPressurePlateRender.ts +26 -0
- package/callbacks/postPressurePlateUpdate.ts +26 -0
- package/callbacks/postProjectileInitLate.ts +36 -0
- package/callbacks/postPurchase.ts +64 -0
- package/callbacks/postRockRender.ts +26 -0
- package/callbacks/postRockUpdate.ts +26 -0
- package/callbacks/postRoomClearChanged.ts +57 -0
- package/callbacks/postSacrifice.ts +62 -0
- package/callbacks/postSlotDestroyed.ts +92 -0
- package/callbacks/postSlotInitUpdate.ts +68 -0
- package/callbacks/postSlotRender.ts +69 -0
- package/callbacks/postSpikesRender.ts +26 -0
- package/callbacks/postSpikesUpdate.ts +26 -0
- package/callbacks/postTNTRender.ts +26 -0
- package/callbacks/postTNTUpdate.ts +26 -0
- package/callbacks/postTearInitLate.ts +36 -0
- package/callbacks/postTearInitVeryLate.ts +41 -0
- package/callbacks/postTransformation.ts +59 -0
- package/callbacks/postTrinketBreak.ts +110 -0
- package/callbacks/preBerserkDeath.ts +49 -0
- package/callbacks/preNewLevel.ts +55 -0
- package/callbacks/reorderedCallbacks.ts +166 -0
- package/callbacks/subscriptions/postAmbushFinished.ts +32 -0
- package/callbacks/subscriptions/postAmbushStarted.ts +32 -0
- package/callbacks/subscriptions/postBombInitLate.ts +32 -0
- package/callbacks/subscriptions/postBoneExploded.ts +32 -0
- package/callbacks/subscriptions/postBoneSwing.ts +24 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.ts +37 -0
- package/callbacks/subscriptions/postCursedTeleport.ts +24 -0
- package/callbacks/subscriptions/postCustomDoorEnter.ts +45 -0
- package/callbacks/subscriptions/postCustomRevive.ts +36 -0
- package/callbacks/subscriptions/postDiceRoomActivated.ts +38 -0
- package/callbacks/subscriptions/postDoorRender.ts +35 -0
- package/callbacks/subscriptions/postDoorUpdate.ts +35 -0
- package/callbacks/subscriptions/postEffectInitLate.ts +32 -0
- package/callbacks/subscriptions/postEffectStateChanged.ts +40 -0
- package/callbacks/subscriptions/postEsauJr.ts +24 -0
- package/callbacks/subscriptions/postFamiliarInitLate.ts +32 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.ts +40 -0
- package/callbacks/subscriptions/postFirstEsauJr.ts +24 -0
- package/callbacks/subscriptions/postFirstFlip.ts +24 -0
- package/callbacks/subscriptions/postFlip.ts +22 -0
- package/callbacks/subscriptions/postGameStartedReordered.ts +24 -0
- package/callbacks/subscriptions/postGreedModeWave.ts +24 -0
- package/callbacks/subscriptions/postGridEntityBroken.ts +51 -0
- package/callbacks/subscriptions/postGridEntityCollision.ts +54 -0
- package/callbacks/subscriptions/postGridEntityInit.ts +51 -0
- package/callbacks/subscriptions/postGridEntityRemove.ts +52 -0
- package/callbacks/subscriptions/postGridEntityRender.ts +51 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.ts +55 -0
- package/callbacks/subscriptions/postGridEntityUpdate.ts +51 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.ts +48 -0
- package/callbacks/subscriptions/postItemDischarged.ts +43 -0
- package/callbacks/subscriptions/postItemPickup.ts +64 -0
- package/callbacks/subscriptions/postKnifeInitLate.ts +32 -0
- package/callbacks/subscriptions/postLaserInitLate.ts +32 -0
- package/callbacks/subscriptions/postNPCInitLate.ts +32 -0
- package/callbacks/subscriptions/postNPCStateChanged.ts +42 -0
- package/callbacks/subscriptions/postNewLevelReordered.ts +22 -0
- package/callbacks/subscriptions/postNewRoomEarly.ts +22 -0
- package/callbacks/subscriptions/postNewRoomReordered.ts +22 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.ts +40 -0
- package/callbacks/subscriptions/postPickupCollect.ts +35 -0
- package/callbacks/subscriptions/postPickupInitFirst.ts +32 -0
- package/callbacks/subscriptions/postPickupInitLate.ts +32 -0
- package/callbacks/subscriptions/postPickupStateChanged.ts +40 -0
- package/callbacks/subscriptions/postPitRender.ts +35 -0
- package/callbacks/subscriptions/postPitUpdate.ts +35 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.ts +49 -0
- package/callbacks/subscriptions/postPlayerChangeType.ts +40 -0
- package/callbacks/subscriptions/postPlayerCollectibleAdded.ts +38 -0
- package/callbacks/subscriptions/postPlayerCollectibleRemoved.ts +38 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.d.ts +1 -1
- package/callbacks/subscriptions/postPlayerFatalDamage.ts +68 -0
- package/callbacks/subscriptions/postPlayerInitLate.ts +40 -0
- package/callbacks/subscriptions/postPlayerInitReordered.ts +40 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.ts +40 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.ts +40 -0
- package/callbacks/subscriptions/postPoopRender.ts +35 -0
- package/callbacks/subscriptions/postPoopUpdate.ts +35 -0
- package/callbacks/subscriptions/postPressurePlateRender.ts +37 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.ts +37 -0
- package/callbacks/subscriptions/postProjectileInitLate.ts +35 -0
- package/callbacks/subscriptions/postPurchase.ts +31 -0
- package/callbacks/subscriptions/postRockRender.ts +35 -0
- package/callbacks/subscriptions/postRockUpdate.ts +35 -0
- package/callbacks/subscriptions/postRoomClearChanged.ts +30 -0
- package/callbacks/subscriptions/postSacrifice.ts +43 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.ts +40 -0
- package/callbacks/subscriptions/postSlotDestroyed.ts +55 -0
- package/callbacks/subscriptions/postSlotInit.ts +32 -0
- package/callbacks/subscriptions/postSlotRender.ts +32 -0
- package/callbacks/subscriptions/postSlotUpdate.ts +32 -0
- package/callbacks/subscriptions/postSpikesRender.ts +35 -0
- package/callbacks/subscriptions/postSpikesUpdate.ts +35 -0
- package/callbacks/subscriptions/postTNTRender.ts +35 -0
- package/callbacks/subscriptions/postTNTUpdate.ts +35 -0
- package/callbacks/subscriptions/postTearInitLate.ts +32 -0
- package/callbacks/subscriptions/postTearInitVeryLate.ts +32 -0
- package/callbacks/subscriptions/postTransformation.ts +40 -0
- package/callbacks/subscriptions/postTrinketBreak.ts +38 -0
- package/callbacks/subscriptions/preBerserkDeath.ts +42 -0
- package/callbacks/subscriptions/preCustomRevive.d.ts +1 -1
- package/callbacks/subscriptions/preCustomRevive.ts +46 -0
- package/callbacks/subscriptions/preItemPickup.ts +64 -0
- package/callbacks/subscriptions/preNewLevel.ts +24 -0
- package/classes/DefaultMap.ts +174 -0
- package/classes/ModUpgraded.ts +77 -0
- package/constants.ts +162 -0
- package/constantsFirstLast.ts +217 -0
- package/enums/AmbushType.ts +4 -0
- package/enums/HealthType.ts +16 -0
- package/enums/ModCallbackCustom.d.ts +2 -2
- package/enums/ModCallbackCustom.ts +1278 -0
- package/enums/PocketItemType.ts +8 -0
- package/enums/SerializationType.ts +5 -0
- package/enums/SlotDestructionType.ts +4 -0
- package/enums/private/CopyableIsaacAPIClassType.ts +7 -0
- package/enums/private/SaveDataKey.ts +14 -0
- package/enums/private/SerializationBrand.ts +42 -0
- package/features/characterHealthConversion.lua +2 -9
- package/features/characterHealthConversion.ts +111 -0
- package/features/characterStats.ts +61 -0
- package/features/debugDisplay/debugDisplay.ts +221 -0
- package/features/debugDisplay/exports.ts +368 -0
- package/features/debugDisplay/v.ts +65 -0
- package/features/deployJSONRoom.ts +743 -0
- package/features/disableInputs.ts +193 -0
- package/features/disableSound.ts +77 -0
- package/features/extraConsoleCommands/commandsDisplay.ts +290 -0
- package/features/extraConsoleCommands/commandsSubroutines.ts +139 -0
- package/features/extraConsoleCommands/init.ts +334 -0
- package/features/extraConsoleCommands/listCommands.ts +1299 -0
- package/features/extraConsoleCommands/v.ts +14 -0
- package/features/fadeInRemover.ts +60 -0
- package/features/fastReset.ts +75 -0
- package/features/forgottenSwitch.ts +50 -0
- package/features/getCollectibleItemPoolType.ts +66 -0
- package/features/persistentEntities.ts +183 -0
- package/features/playerInventory.ts +133 -0
- package/features/ponyDetection.ts +74 -0
- package/features/preventCollectibleRotation.ts +115 -0
- package/features/runInNFrames.ts +148 -0
- package/features/saveDataManager/constants.ts +4 -0
- package/features/saveDataManager/exports.ts +229 -0
- package/features/saveDataManager/load.ts +99 -0
- package/features/saveDataManager/main.ts +195 -0
- package/features/saveDataManager/maps.ts +13 -0
- package/features/saveDataManager/merge.ts +194 -0
- package/features/saveDataManager/save.ts +74 -0
- package/features/saveDataManager/serializationBrand.ts +16 -0
- package/features/sirenHelpers.ts +129 -0
- package/features/taintedLazarusPlayers.ts +113 -0
- package/featuresInitialized.ts +20 -0
- package/functions/ambush.ts +47 -0
- package/functions/array.ts +410 -0
- package/functions/benchmark.ts +36 -0
- package/functions/bitwise.ts +24 -0
- package/functions/bombs.ts +12 -0
- package/functions/boss.ts +227 -0
- package/functions/cacheFlag.ts +12 -0
- package/functions/cards.ts +271 -0
- package/functions/challenges.ts +13 -0
- package/functions/character.ts +126 -0
- package/functions/charge.ts +237 -0
- package/functions/chargeBar.ts +67 -0
- package/functions/collectibleCacheFlag.ts +90 -0
- package/functions/collectibleSet.ts +56 -0
- package/functions/collectibleTag.ts +89 -0
- package/functions/collectibles.ts +659 -0
- package/functions/color.lua +0 -7
- package/functions/color.ts +128 -0
- package/functions/debug.ts +68 -0
- package/functions/deepCopy.lua +46 -51
- package/functions/deepCopy.ts +535 -0
- package/functions/deepCopyTests.ts +386 -0
- package/functions/direction.ts +49 -0
- package/functions/doors.ts +347 -0
- package/functions/easing.ts +182 -0
- package/functions/eden.ts +47 -0
- package/functions/effects.ts +20 -0
- package/functions/entity.ts +439 -0
- package/functions/entitySpecific.ts +889 -0
- package/functions/entityTypes.ts +6 -0
- package/functions/enums.ts +146 -0
- package/functions/familiars.ts +106 -0
- package/functions/flag.ts +165 -0
- package/functions/flying.ts +117 -0
- package/functions/globals.ts +242 -0
- package/functions/gridEntity.ts +511 -0
- package/functions/gridEntitySpecific.ts +112 -0
- package/functions/input.ts +139 -0
- package/functions/isaacAPIClass.ts +67 -0
- package/functions/jsonHelpers.ts +45 -0
- package/functions/jsonRoom.ts +100 -0
- package/functions/kColor.lua +0 -7
- package/functions/kColor.ts +129 -0
- package/functions/language.ts +13 -0
- package/functions/level.ts +31 -0
- package/functions/log.ts +720 -0
- package/functions/map.ts +56 -0
- package/functions/math.ts +149 -0
- package/functions/mergeTests.ts +288 -0
- package/functions/npc.ts +148 -0
- package/functions/pickupVariants.ts +60 -0
- package/functions/pickups.ts +499 -0
- package/functions/pills.ts +205 -0
- package/functions/player.lua +0 -6
- package/functions/player.ts +1060 -0
- package/functions/playerDataStructures.ts +150 -0
- package/functions/playerHealth.lua +28 -39
- package/functions/playerHealth.ts +382 -0
- package/functions/playerIndex.ts +195 -0
- package/functions/pocketItems.ts +149 -0
- package/functions/positionVelocity.ts +188 -0
- package/functions/random.ts +77 -0
- package/functions/revive.ts +201 -0
- package/functions/rng.lua +0 -7
- package/functions/rng.ts +172 -0
- package/functions/roomData.ts +199 -0
- package/functions/roomGrid.ts +109 -0
- package/functions/roomShape.ts +80 -0
- package/functions/rooms.ts +648 -0
- package/functions/run.ts +36 -0
- package/functions/saveFile.ts +128 -0
- package/functions/seeds.ts +19 -0
- package/functions/serialization.ts +91 -0
- package/functions/set.ts +95 -0
- package/functions/sound.ts +9 -0
- package/functions/spawnCollectible.ts +104 -0
- package/functions/sprite.ts +107 -0
- package/functions/stage.ts +125 -0
- package/functions/string.ts +47 -0
- package/functions/table.ts +189 -0
- package/functions/tears.ts +32 -0
- package/functions/transformations.ts +131 -0
- package/functions/trinketCacheFlag.ts +60 -0
- package/functions/trinketGive.ts +157 -0
- package/functions/trinkets.ts +215 -0
- package/functions/tstlClass.ts +157 -0
- package/functions/types.ts +36 -0
- package/functions/ui.ts +138 -0
- package/functions/utils.d.ts +0 -37
- package/functions/utils.lua +0 -35
- package/functions/utils.ts +189 -0
- package/functions/vector.lua +0 -7
- package/functions/vector.ts +126 -0
- package/index.ts +172 -0
- package/initCustomCallbacks.ts +132 -0
- package/initFeatures.ts +39 -0
- package/interfaces/AddCallbackParameterCustom.ts +188 -0
- package/interfaces/ChargeBarSprites.ts +12 -0
- package/interfaces/JSONDoor.d.ts +3 -3
- package/interfaces/JSONDoor.ts +13 -0
- package/interfaces/JSONEntity.d.ts +4 -4
- package/interfaces/JSONEntity.ts +16 -0
- package/interfaces/JSONRoom.d.ts +8 -8
- package/interfaces/JSONRoom.ts +36 -0
- package/interfaces/JSONRooms.ts +12 -0
- package/interfaces/JSONSpawn.d.ts +2 -2
- package/interfaces/JSONSpawn.ts +14 -0
- package/interfaces/PlayerHealth.ts +16 -0
- package/interfaces/PocketItemDescription.ts +9 -0
- package/interfaces/SaveData.ts +29 -0
- package/interfaces/TrinketSituation.ts +9 -0
- package/interfaces/private/TSTLClassMetatable.ts +8 -0
- package/maps/PHDPillConversions.ts +21 -0
- package/maps/cardMap.ts +209 -0
- package/maps/characterMap.ts +87 -0
- package/maps/collectibleDescriptionMap.ts +732 -0
- package/maps/collectibleNameMap.ts +731 -0
- package/maps/defaultPlayerStatMap.ts +17 -0
- package/maps/falsePHDPillConversions.ts +35 -0
- package/maps/gridEntityTypeToBrokenStateMap.ts +50 -0
- package/maps/gridEntityXMLMap.ts +176 -0
- package/maps/pillEffectMap.ts +88 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.ts +18 -0
- package/maps/roomTypeMap.ts +40 -0
- package/maps/trinketDescriptionMap.ts +200 -0
- package/maps/trinketNameMap.ts +198 -0
- package/objects/LRoomShapeToRectangles.ts +44 -0
- package/objects/callbackRegisterFunctions.ts +187 -0
- package/objects/cardDescriptions.ts +105 -0
- package/objects/cardNames.ts +105 -0
- package/objects/cardTypes.ts +104 -0
- package/objects/challengeNames.ts +52 -0
- package/objects/characterNames.ts +48 -0
- package/objects/coinSubTypeToValue.ts +14 -0
- package/objects/colors.ts +16 -0
- package/objects/directionNames.ts +11 -0
- package/objects/directionToDegrees.ts +11 -0
- package/objects/directionToVector.ts +12 -0
- package/objects/doorSlotFlagToDoorSlot.ts +16 -0
- package/objects/doorSlotToDirection.ts +14 -0
- package/objects/isaacAPIClassTypeToBrand.ts +11 -0
- package/objects/isaacAPIClassTypeToCopyFunction.ts +18 -0
- package/objects/languageNames.ts +13 -0
- package/objects/oppositeDoorSlots.ts +15 -0
- package/objects/pillEffectClasses.ts +63 -0
- package/objects/pillEffectNames.ts +57 -0
- package/objects/pillEffectTypes.ts +62 -0
- package/objects/roomShapeBounds.ts +71 -0
- package/objects/roomShapeLayoutSizes.ts +45 -0
- package/objects/roomShapeToBottomRightPosition.ts +25 -0
- package/objects/roomShapeToDoorSlots.ts +83 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +127 -0
- package/objects/roomShapeToGridWidth.ts +21 -0
- package/objects/roomShapeToTopLeftPosition.ts +26 -0
- package/objects/roomShapeVolumes.ts +38 -0
- package/objects/roomTypeNames.ts +36 -0
- package/objects/serializedIsaacAPIClassTypeToIdentityFunction.ts +14 -0
- package/objects/stageTypeToLetter.ts +15 -0
- package/objects/transformationNames.d.ts +0 -1
- package/objects/transformationNames.lua +0 -1
- package/objects/transformationNames.ts +18 -0
- package/package.json +1 -1
- package/patchErrorFunctions.ts +92 -0
- package/sets/LRoomShapesSet.ts +8 -0
- package/sets/bossSets.ts +470 -0
- package/sets/charactersThatStartWithAnActiveItemSet.ts +16 -0
- package/sets/charactersWithBlackHeartFromEternalHeartSet.ts +7 -0
- package/sets/charactersWithFreeDevilDealsSet.ts +4 -0
- package/sets/charactersWithNoRedHeartsSet.ts +17 -0
- package/sets/charactersWithNoSoulHeartsSet.ts +14 -0
- package/sets/chestPickupVariantsSet.ts +16 -0
- package/sets/familiarsThatShootPlayerTearsSet.ts +13 -0
- package/sets/lostStyleCharactersSet.ts +13 -0
- package/sets/mineShaftRoomSubTypesSet.ts +10 -0
- package/sets/redHeartSubTypesSet.ts +7 -0
- package/sets/sinEntityTypesSet.ts +11 -0
- package/sets/singleUseActiveCollectibleTypesSet.ts +13 -0
- package/sets/storyBossesSet.ts +17 -0
- package/types/AnyEntity.ts +12 -0
- package/types/AwaitingTextInput.d.ts +2 -0
- package/types/CollectibleIndex.ts +16 -0
- package/types/PickingUpItem.ts +89 -0
- package/types/PlayerIndex.ts +13 -0
- package/types/private/IsaacAPIClass.ts +3 -0
- package/types/private/SerializedIsaacAPIClass.ts +3 -0
- package/types/private/TSTLClass.ts +3 -0
- package/upgradeMod.ts +55 -0
package/maps/cardMap.ts
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { Card } from "isaac-typescript-definitions";
|
|
2
|
+
|
|
3
|
+
// cspell:ignore hiero
|
|
4
|
+
|
|
5
|
+
/** Maps card names to card sub-types. */
|
|
6
|
+
export const CARD_MAP: ReadonlyMap<string, Card> = new Map([
|
|
7
|
+
["fool", Card.FOOL], // 1
|
|
8
|
+
["magician", Card.MAGICIAN], // 2
|
|
9
|
+
["mag", Card.MAGICIAN], // 2 - Needed since we have "mag?"
|
|
10
|
+
["highPriestess", Card.HIGH_PRIESTESS], // 3
|
|
11
|
+
["priestess", Card.HIGH_PRIESTESS], // 3
|
|
12
|
+
["priest", Card.HIGH_PRIESTESS], // 3 - Needed since we have "priest?"
|
|
13
|
+
["hp", Card.HIGH_PRIESTESS], // 3
|
|
14
|
+
["empress", Card.EMPRESS], // 4
|
|
15
|
+
["emperor", Card.EMPEROR], // 5
|
|
16
|
+
["emp", Card.EMPEROR], // 5 - Needed since we have "hemp?"
|
|
17
|
+
["hierophant", Card.HIEROPHANT], // 6
|
|
18
|
+
["hi", Card.HIEROPHANT], // 6 - Needed since we have "hiero?"
|
|
19
|
+
["lovers", Card.LOVERS], // 7
|
|
20
|
+
["chariot", Card.CHARIOT], // 8
|
|
21
|
+
["justice", Card.JUSTICE], // 9
|
|
22
|
+
["hermit", Card.HERMIT], // 10
|
|
23
|
+
["wheelOfFortune", Card.WHEEL_OF_FORTUNE], // 11
|
|
24
|
+
["wheel", Card.WHEEL_OF_FORTUNE], // 11 - Needed since we have "wheel?"
|
|
25
|
+
["fortune", Card.WHEEL_OF_FORTUNE], // 11
|
|
26
|
+
["strength", Card.STRENGTH], // 12
|
|
27
|
+
["str", Card.STRENGTH], // 12 - Needed since we have "str?"
|
|
28
|
+
["hangedMan", Card.HANGED_MAN], // 13
|
|
29
|
+
["hanged", Card.HANGED_MAN], // 13
|
|
30
|
+
["death", Card.DEATH], // 14
|
|
31
|
+
["temperance", Card.TEMPERANCE], // 15
|
|
32
|
+
["devil", Card.DEVIL], // 16
|
|
33
|
+
["tower", Card.TOWER], // 17
|
|
34
|
+
["stars", Card.STARS], // 18
|
|
35
|
+
["moon", Card.MOON], // 19
|
|
36
|
+
["sun", Card.SUN], // 20
|
|
37
|
+
["judgement", Card.JUDGEMENT], // 21
|
|
38
|
+
["judge", Card.JUDGEMENT], // 21 - Needed since we have "judge?"
|
|
39
|
+
["world", Card.WORLD], // 22
|
|
40
|
+
["2OfClubs", Card.CLUBS_2], // 23
|
|
41
|
+
["2Clubs", Card.CLUBS_2], // 23
|
|
42
|
+
["2OfDiamonds", Card.DIAMONDS_2], // 24
|
|
43
|
+
["2Diamonds", Card.DIAMONDS_2], // 24
|
|
44
|
+
["2OfSpades", Card.SPADES_2], // 25
|
|
45
|
+
["2Spades", Card.SPADES_2], // 25
|
|
46
|
+
["2OfHearts", Card.HEARTS_2], // 26
|
|
47
|
+
["2Hearts", Card.HEARTS_2], // 26
|
|
48
|
+
["aceOfClubs", Card.ACE_OF_CLUBS], // 27
|
|
49
|
+
["aceClubs", Card.ACE_OF_CLUBS], // 27
|
|
50
|
+
["aceOfDiamonds", Card.ACE_OF_DIAMONDS], // 28
|
|
51
|
+
["aceDiamonds", Card.ACE_OF_DIAMONDS], // 28
|
|
52
|
+
["aceOfSpades", Card.ACE_OF_SPADES], // 29
|
|
53
|
+
["aceSpades", Card.ACE_OF_SPADES], // 29
|
|
54
|
+
["aceOfHearts", Card.ACE_OF_HEARTS], // 30
|
|
55
|
+
["aceHearts", Card.ACE_OF_HEARTS], // 30
|
|
56
|
+
["joker", Card.JOKER], // 31
|
|
57
|
+
["hagalaz", Card.RUNE_HAGALAZ], // 32
|
|
58
|
+
["destruction", Card.RUNE_HAGALAZ], // 32
|
|
59
|
+
["jera", Card.RUNE_JERA], // 33
|
|
60
|
+
["abundance", Card.RUNE_JERA], // 33
|
|
61
|
+
["ehwaz", Card.RUNE_EHWAZ], // 34
|
|
62
|
+
["passage", Card.RUNE_EHWAZ], // 34
|
|
63
|
+
["dagaz", Card.RUNE_DAGAZ], // 35
|
|
64
|
+
["purity", Card.RUNE_DAGAZ], // 35
|
|
65
|
+
["ansuz", Card.RUNE_ANSUZ], // 36
|
|
66
|
+
["vision", Card.RUNE_ANSUZ], // 36
|
|
67
|
+
["perthro", Card.RUNE_PERTHRO], // 37
|
|
68
|
+
["change", Card.RUNE_PERTHRO], // 37
|
|
69
|
+
["berkano", Card.RUNE_BERKANO], // 38
|
|
70
|
+
["companionship", Card.RUNE_BERKANO], // 38
|
|
71
|
+
["algiz", Card.RUNE_ALGIZ], // 39
|
|
72
|
+
["resistance", Card.RUNE_ALGIZ], // 39
|
|
73
|
+
["shield", Card.RUNE_ALGIZ], // 39
|
|
74
|
+
["blank", Card.RUNE_BLANK], // 40
|
|
75
|
+
["black", Card.RUNE_BLACK], // 41
|
|
76
|
+
["chaos", Card.CHAOS], // 42
|
|
77
|
+
["credit", Card.CREDIT], // 43
|
|
78
|
+
["rules", Card.RULES], // 44
|
|
79
|
+
["againstHumanity", Card.AGAINST_HUMANITY], // 45
|
|
80
|
+
["humanity", Card.AGAINST_HUMANITY], // 45
|
|
81
|
+
["suicideKing", Card.SUICIDE_KING], // 46
|
|
82
|
+
["suicide", Card.SUICIDE_KING], // 46
|
|
83
|
+
["getOutOfJailFree", Card.GET_OUT_OF_JAIL_FREE], // 47
|
|
84
|
+
["jail", Card.GET_OUT_OF_JAIL_FREE], // 47
|
|
85
|
+
["?", Card.QUESTION_MARK], // 48
|
|
86
|
+
["diceShard", Card.DICE_SHARD], // 49
|
|
87
|
+
["shard", Card.DICE_SHARD], // 49
|
|
88
|
+
["emergencyContact", Card.EMERGENCY_CONTACT], // 50
|
|
89
|
+
["contact", Card.EMERGENCY_CONTACT], // 50
|
|
90
|
+
["holy", Card.HOLY], // 51
|
|
91
|
+
["hugeGrowth", Card.HUGE_GROWTH], // 52
|
|
92
|
+
["growth", Card.HUGE_GROWTH], // 52
|
|
93
|
+
["ancientRecall", Card.ANCIENT_RECALL], // 53
|
|
94
|
+
["recall", Card.ANCIENT_RECALL], // 53
|
|
95
|
+
["eraWalk", Card.ERA_WALK], // 54
|
|
96
|
+
["walk", Card.ERA_WALK], // 54
|
|
97
|
+
["runeShard", Card.RUNE_SHARD], // 55
|
|
98
|
+
["shard", Card.RUNE_SHARD], // 55
|
|
99
|
+
["fool?", Card.REVERSE_FOOL], // 56
|
|
100
|
+
["magician?", Card.REVERSE_MAGICIAN], // 57
|
|
101
|
+
["magi?", Card.REVERSE_MAGICIAN], // 57
|
|
102
|
+
["mag?", Card.REVERSE_MAGICIAN], // 57
|
|
103
|
+
["highPriestess?", Card.REVERSE_HIGH_PRIESTESS], // 58
|
|
104
|
+
["high?", Card.REVERSE_HIGH_PRIESTESS], // 58
|
|
105
|
+
["hi?", Card.REVERSE_HIGH_PRIESTESS], // 58
|
|
106
|
+
["priestess?", Card.REVERSE_HIGH_PRIESTESS], // 58
|
|
107
|
+
["priest?", Card.REVERSE_HIGH_PRIESTESS], // 58
|
|
108
|
+
["hp?", Card.REVERSE_HIGH_PRIESTESS], // 58
|
|
109
|
+
["empress?", Card.REVERSE_EMPRESS], // 59
|
|
110
|
+
["emperor?", Card.REVERSE_EMPEROR], // 60
|
|
111
|
+
["emp?", Card.REVERSE_EMPEROR], // 60
|
|
112
|
+
["hierophant?", Card.REVERSE_HIEROPHANT], // 61
|
|
113
|
+
["hiero?", Card.REVERSE_HIEROPHANT], // 61
|
|
114
|
+
["lovers?", Card.REVERSE_LOVERS], // 62
|
|
115
|
+
["chariot?", Card.REVERSE_CHARIOT], // 63
|
|
116
|
+
["justice?", Card.REVERSE_JUSTICE], // 64
|
|
117
|
+
["hermit?", Card.REVERSE_HERMIT], // 65
|
|
118
|
+
["wheelOfFortune?", Card.REVERSE_WHEEL_OF_FORTUNE], // 66
|
|
119
|
+
["wheel?", Card.REVERSE_WHEEL_OF_FORTUNE], // 66
|
|
120
|
+
["fortune?", Card.REVERSE_WHEEL_OF_FORTUNE], // 66
|
|
121
|
+
["strength?", Card.REVERSE_STRENGTH], // 67
|
|
122
|
+
["str?", Card.REVERSE_STRENGTH], // 67
|
|
123
|
+
["hangedMan?", Card.REVERSE_HANGED_MAN], // 68
|
|
124
|
+
["hanged?", Card.REVERSE_HANGED_MAN], // 68
|
|
125
|
+
["death?", Card.REVERSE_DEATH], // 6
|
|
126
|
+
["temperance?", Card.REVERSE_TEMPERANCE], // 70
|
|
127
|
+
["devil?", Card.REVERSE_DEVIL], // 71
|
|
128
|
+
["tower?", Card.REVERSE_TOWER], // 72
|
|
129
|
+
["stars?", Card.REVERSE_STARS], // 73
|
|
130
|
+
["moon?", Card.REVERSE_MOON], // 74
|
|
131
|
+
["sun?", Card.REVERSE_SUN], // 75
|
|
132
|
+
["judgement?", Card.REVERSE_JUDGEMENT], // 76
|
|
133
|
+
["judge?", Card.REVERSE_JUDGEMENT], // 76
|
|
134
|
+
["world?", Card.REVERSE_WORLD], // 77
|
|
135
|
+
["crackedKey", Card.CRACKED_KEY], // 78
|
|
136
|
+
["key", Card.CRACKED_KEY], // 78
|
|
137
|
+
["queenOfHearts", Card.QUEEN_OF_HEARTS], // 79
|
|
138
|
+
["queenHearts", Card.QUEEN_OF_HEARTS], // 79
|
|
139
|
+
["wildcard", Card.WILD], // 80
|
|
140
|
+
["soulOfIsaac", Card.SOUL_ISAAC], // 81
|
|
141
|
+
["soulIsaac", Card.SOUL_ISAAC], // 81
|
|
142
|
+
["isaac", Card.SOUL_ISAAC], // 81
|
|
143
|
+
["soulOfMagdalene", Card.SOUL_MAGDALENE], // 82
|
|
144
|
+
["soulMagdalene", Card.SOUL_MAGDALENE], // 82
|
|
145
|
+
["magdalene", Card.SOUL_MAGDALENE], // 82
|
|
146
|
+
["soulOfCain", Card.SOUL_CAIN], // 83
|
|
147
|
+
["soulCain", Card.SOUL_CAIN], // 83
|
|
148
|
+
["cain", Card.SOUL_CAIN], // 83
|
|
149
|
+
["soulOfJudas", Card.SOUL_JUDAS], // 84
|
|
150
|
+
["soulJudas", Card.SOUL_JUDAS], // 84
|
|
151
|
+
["judas", Card.SOUL_JUDAS], // 84
|
|
152
|
+
["soulOf???", Card.SOUL_BLUE_BABY], // 85
|
|
153
|
+
["soul???", Card.SOUL_BLUE_BABY], // 85
|
|
154
|
+
["???", Card.SOUL_BLUE_BABY], // 85
|
|
155
|
+
["soulOfBlueBaby", Card.SOUL_BLUE_BABY], // 85
|
|
156
|
+
["soulBlueBaby", Card.SOUL_BLUE_BABY], // 85
|
|
157
|
+
["blueBaby", Card.SOUL_BLUE_BABY], // 85
|
|
158
|
+
["soulOfEve", Card.SOUL_EVE], // 86
|
|
159
|
+
["soulEve", Card.SOUL_EVE], // 86
|
|
160
|
+
["eve", Card.SOUL_EVE], // 86
|
|
161
|
+
["soulOfSamson", Card.SOUL_SAMSON], // 87
|
|
162
|
+
["soulSamson", Card.SOUL_SAMSON], // 87
|
|
163
|
+
["samson", Card.SOUL_SAMSON], // 87
|
|
164
|
+
["soulOfAzazel", Card.SOUL_AZAZEL], // 88
|
|
165
|
+
["soulAzazel", Card.SOUL_AZAZEL], // 88
|
|
166
|
+
["azazel", Card.SOUL_AZAZEL], // 88
|
|
167
|
+
["soulOfLazarus", Card.SOUL_LAZARUS], // 89
|
|
168
|
+
["soulLazarus", Card.SOUL_LAZARUS], // 89
|
|
169
|
+
["lazarus", Card.SOUL_LAZARUS], // 89
|
|
170
|
+
["soulOfEden", Card.SOUL_EDEN], // 90
|
|
171
|
+
["soulEden", Card.SOUL_EDEN], // 90
|
|
172
|
+
["eden", Card.SOUL_EDEN], // 90
|
|
173
|
+
["soulOfTheLost", Card.SOUL_LOST], // 91
|
|
174
|
+
["soulTheLost", Card.SOUL_LOST], // 91
|
|
175
|
+
["theLost", Card.SOUL_LOST], // 91
|
|
176
|
+
["soulOfLost", Card.SOUL_LOST], // 91
|
|
177
|
+
["soulLost", Card.SOUL_LOST], // 91
|
|
178
|
+
["lost", Card.SOUL_LOST], // 91
|
|
179
|
+
["soulOfLilith", Card.SOUL_LILITH], // 92
|
|
180
|
+
["soulLilith", Card.SOUL_LILITH], // 92
|
|
181
|
+
["lilith", Card.SOUL_LILITH], // 92
|
|
182
|
+
["soulOfTheKeeper", Card.SOUL_KEEPER], // 93
|
|
183
|
+
["soulTheKeeper", Card.SOUL_KEEPER], // 93
|
|
184
|
+
["theKeeper", Card.SOUL_KEEPER], // 93
|
|
185
|
+
["soulOfKeeper", Card.SOUL_KEEPER], // 93
|
|
186
|
+
["soulKeeper", Card.SOUL_KEEPER], // 93
|
|
187
|
+
["keeper", Card.SOUL_KEEPER], // 93
|
|
188
|
+
["soulOfApollyon", Card.SOUL_APOLLYON], // 94
|
|
189
|
+
["soulApollyon", Card.SOUL_APOLLYON], // 94
|
|
190
|
+
["apollyon", Card.SOUL_APOLLYON], // 94
|
|
191
|
+
["soulOfTheForgotten", Card.SOUL_FORGOTTEN], // 95
|
|
192
|
+
["soulTheForgotten", Card.SOUL_FORGOTTEN], // 95
|
|
193
|
+
["theForgotten", Card.SOUL_FORGOTTEN], // 95
|
|
194
|
+
["soulOfForgotten", Card.SOUL_FORGOTTEN], // 95
|
|
195
|
+
["soulForgotten", Card.SOUL_FORGOTTEN], // 95
|
|
196
|
+
["forgotten", Card.SOUL_FORGOTTEN], // 95
|
|
197
|
+
["soulOfBethany", Card.SOUL_BETHANY], // 96
|
|
198
|
+
["soulBethany", Card.SOUL_BETHANY], // 96
|
|
199
|
+
["bethany", Card.SOUL_BETHANY], // 96
|
|
200
|
+
["soulOfJacobAndEsau", Card.SOUL_JACOB], // 97
|
|
201
|
+
["soulJacobAndEsau", Card.SOUL_JACOB], // 97
|
|
202
|
+
["jacobAndEsau", Card.SOUL_JACOB], // 97
|
|
203
|
+
["soulOfJacob&Esau", Card.SOUL_JACOB], // 97
|
|
204
|
+
["soulJacob&Esau", Card.SOUL_JACOB], // 97
|
|
205
|
+
["jacob&Esau", Card.SOUL_JACOB], // 97
|
|
206
|
+
["soulOfJacob", Card.SOUL_JACOB], // 97
|
|
207
|
+
["soulJacob", Card.SOUL_JACOB], // 97
|
|
208
|
+
["jacob", Card.SOUL_JACOB], // 97
|
|
209
|
+
]);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PlayerType } from "isaac-typescript-definitions";
|
|
2
|
+
|
|
3
|
+
/** Maps character names to character sub-types. */
|
|
4
|
+
export const CHARACTER_MAP = new Map<string, PlayerType>([
|
|
5
|
+
["isaac", 0],
|
|
6
|
+
["magdalene", 1],
|
|
7
|
+
["maggy", 1],
|
|
8
|
+
["cain", 2],
|
|
9
|
+
["judas", 3],
|
|
10
|
+
["blueBaby", 4],
|
|
11
|
+
["bb", 4],
|
|
12
|
+
["eve", 5],
|
|
13
|
+
["samson", 6],
|
|
14
|
+
["azazel", 7],
|
|
15
|
+
["lazarus", 8],
|
|
16
|
+
["laz", 8], // Needed so that "laz2" does not take precedence over "lazarus"
|
|
17
|
+
["eden", 9],
|
|
18
|
+
["theLost", 10],
|
|
19
|
+
["lost", 10],
|
|
20
|
+
["lazarus2", 11],
|
|
21
|
+
["laz2", 11],
|
|
22
|
+
["darkJudas", 12],
|
|
23
|
+
["dJudas", 12],
|
|
24
|
+
["blackJudas", 12],
|
|
25
|
+
["bJudas", 12],
|
|
26
|
+
["lilith", 13],
|
|
27
|
+
["keeper", 14],
|
|
28
|
+
["apollyon", 15],
|
|
29
|
+
["theForgotten", 16],
|
|
30
|
+
["forgotten", 16],
|
|
31
|
+
["theSoul", 17],
|
|
32
|
+
["soul", 17],
|
|
33
|
+
["bethany", 18],
|
|
34
|
+
["jacob", 19],
|
|
35
|
+
["esau", 20],
|
|
36
|
+
["taintedIsaac", 21],
|
|
37
|
+
["tIsaac", 21],
|
|
38
|
+
["taintedMagdalene", 22],
|
|
39
|
+
["tMagdalene", 22],
|
|
40
|
+
["taintedMaggy", 22],
|
|
41
|
+
["tMaggy", 22],
|
|
42
|
+
["taintedCain", 23],
|
|
43
|
+
["tCain", 23],
|
|
44
|
+
["taintedJudas", 24],
|
|
45
|
+
["tJudas", 24],
|
|
46
|
+
["taintedBlueBaby", 25],
|
|
47
|
+
["tBlueBaby", 25],
|
|
48
|
+
["tbb", 25],
|
|
49
|
+
["taintedEve", 26],
|
|
50
|
+
["tEve", 26],
|
|
51
|
+
["taintedSamson", 27],
|
|
52
|
+
["tSamson", 27],
|
|
53
|
+
["taintedAzazel", 28],
|
|
54
|
+
["tAzazel", 28],
|
|
55
|
+
["taintedLazarus", 29],
|
|
56
|
+
["tLazarus", 29],
|
|
57
|
+
["taintedLaz", 29],
|
|
58
|
+
["tLaz", 29],
|
|
59
|
+
["taintedEden", 30],
|
|
60
|
+
["tEden", 30],
|
|
61
|
+
["taintedLost", 31],
|
|
62
|
+
["tLost", 31],
|
|
63
|
+
["taintedLilith", 32],
|
|
64
|
+
["tLilith", 32],
|
|
65
|
+
["taintedKeeper", 33],
|
|
66
|
+
["tKeeper", 33],
|
|
67
|
+
["taintedApollyon", 34],
|
|
68
|
+
["tApollyon", 34],
|
|
69
|
+
["taintedForgotten", 34],
|
|
70
|
+
["tForgotten", 35],
|
|
71
|
+
["taintedBethany", 36],
|
|
72
|
+
["tBethany", 36],
|
|
73
|
+
["taintedJacob", 37],
|
|
74
|
+
["tJacob", 37],
|
|
75
|
+
["taintedLazarusDead", 38],
|
|
76
|
+
["tLazarusDead", 38],
|
|
77
|
+
["taintedLazDead", 38],
|
|
78
|
+
["tLazDead", 38],
|
|
79
|
+
["deadTaintedLazarus", 38],
|
|
80
|
+
["deadTLazarus", 38],
|
|
81
|
+
["deadTaintedLaz", 38],
|
|
82
|
+
["deadTLaz", 38],
|
|
83
|
+
["taintedJacobGhost", 39],
|
|
84
|
+
["tJacobGhost", 39],
|
|
85
|
+
["taintedSoul", 40],
|
|
86
|
+
["tSoul", 40],
|
|
87
|
+
]);
|