isaacscript-common 1.2.139 → 1.2.142

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.
Files changed (61) hide show
  1. package/dist/callbacks/postSlotRender.d.ts +1 -0
  2. package/dist/callbacks/postSlotRender.lua +73 -0
  3. package/dist/callbacks/subscriptions/postSlotAnimationChanged.d.ts +2 -0
  4. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +25 -0
  5. package/dist/features/extraConsoleCommands/commands.lua +76 -62
  6. package/dist/features/extraConsoleCommands/init.lua +6 -4
  7. package/dist/features/playerInventory.d.ts +6 -0
  8. package/dist/features/playerInventory.lua +73 -0
  9. package/dist/functions/cards.lua +12 -18
  10. package/dist/functions/challenges.lua +3 -2
  11. package/dist/functions/collectibles.lua +8 -14
  12. package/dist/functions/map.d.ts +4 -1
  13. package/dist/functions/map.lua +5 -1
  14. package/dist/functions/pills.lua +10 -15
  15. package/dist/functions/player.d.ts +2 -0
  16. package/dist/functions/player.lua +37 -81
  17. package/dist/functions/playerHealth.d.ts +3 -3
  18. package/dist/functions/transformations.lua +3 -3
  19. package/dist/functions/trinkets.lua +8 -14
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.lua +5 -0
  22. package/dist/maps/cardDescriptionMap.d.ts +4 -1
  23. package/dist/maps/cardDescriptionMap.lua +103 -102
  24. package/dist/maps/cardNameMap.d.ts +4 -1
  25. package/dist/maps/cardNameMap.lua +103 -102
  26. package/dist/maps/cardTypeMap.d.ts +3 -1
  27. package/dist/maps/cardTypeMap.lua +102 -102
  28. package/dist/maps/challengeNameMap.d.ts +4 -1
  29. package/dist/maps/challengeNameMap.lua +50 -50
  30. package/dist/maps/characterNameMap.d.ts +5 -0
  31. package/dist/maps/characterNameMap.lua +49 -0
  32. package/dist/maps/collectibleDescriptionMap.d.ts +1 -0
  33. package/dist/maps/collectibleDescriptionMap.lua +1 -0
  34. package/dist/maps/collectibleNameMap.d.ts +1 -0
  35. package/dist/maps/collectibleNameMap.lua +1 -0
  36. package/dist/maps/pillEffectClassMap.d.ts +4 -1
  37. package/dist/maps/pillEffectClassMap.lua +56 -55
  38. package/dist/maps/pillEffectNameMap.d.ts +4 -1
  39. package/dist/maps/pillEffectNameMap.lua +55 -55
  40. package/dist/maps/pillEffectTypeMap.d.ts +4 -1
  41. package/dist/maps/pillEffectTypeMap.lua +55 -55
  42. package/dist/maps/roomTypeNameMap.d.ts +4 -1
  43. package/dist/maps/roomTypeNameMap.lua +34 -35
  44. package/dist/maps/transformationNameMap.d.ts +4 -1
  45. package/dist/maps/transformationNameMap.lua +19 -20
  46. package/dist/maps/trinketDescriptionMap.d.ts +1 -0
  47. package/dist/maps/trinketDescriptionMap.lua +1 -0
  48. package/dist/maps/trinketNameMap.d.ts +1 -0
  49. package/dist/maps/trinketNameMap.lua +1 -0
  50. package/dist/types/CallbackParametersCustom.d.ts +5 -0
  51. package/dist/types/CardType.d.ts +10 -8
  52. package/dist/types/CardType.lua +9 -7
  53. package/dist/types/ModCallbacksCustom.d.ts +10 -9
  54. package/dist/types/ModCallbacksCustom.lua +11 -9
  55. package/dist/types/ModUpgraded.lua +8 -0
  56. package/dist/types/PillEffectClass.d.ts +11 -5
  57. package/dist/types/PillEffectClass.lua +8 -5
  58. package/dist/types/PillEffectType.d.ts +10 -4
  59. package/dist/types/PillEffectType.lua +7 -4
  60. package/dist/upgradeMod.lua +3 -3
  61. package/package.json +1 -1
@@ -11,7 +11,7 @@ local __TS__Iterator = ____lualib.__TS__Iterator
11
11
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
12
12
  local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
13
13
  local ____exports = {}
14
- local getPlayerIndexCollectibleType, getAdjustedPlayerName, isTaintedModded, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
14
+ local getPlayerIndexCollectibleType, isTaintedModded, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
15
15
  local ____cachedClasses = require("cachedClasses")
16
16
  local game = ____cachedClasses.game
17
17
  local itemConfig = ____cachedClasses.itemConfig
@@ -22,6 +22,9 @@ local CHARACTERS_WITH_NO_RED_HEARTS = ____constants.CHARACTERS_WITH_NO_RED_HEART
22
22
  local CHARACTERS_WITH_NO_SOUL_HEARTS = ____constants.CHARACTERS_WITH_NO_SOUL_HEARTS
23
23
  local LOST_STYLE_PLAYER_TYPES = ____constants.LOST_STYLE_PLAYER_TYPES
24
24
  local MAX_VANILLA_CHARACTER = ____constants.MAX_VANILLA_CHARACTER
25
+ local ____characterNameMap = require("maps.characterNameMap")
26
+ local CHARACTER_NAME_MAP = ____characterNameMap.CHARACTER_NAME_MAP
27
+ local DEFAULT_CHARACTER_NAME = ____characterNameMap.DEFAULT_CHARACTER_NAME
25
28
  local ____HealthType = require("types.HealthType")
26
29
  local HealthType = ____HealthType.HealthType
27
30
  local ____array = require("functions.array")
@@ -35,9 +38,6 @@ local ____collectibles = require("functions.collectibles")
35
38
  local getCollectibleMaxCharges = ____collectibles.getCollectibleMaxCharges
36
39
  local ____collectibleSet = require("functions.collectibleSet")
37
40
  local getCollectibleSet = ____collectibleSet.getCollectibleSet
38
- local ____string = require("functions.string")
39
- local stringContains = ____string.stringContains
40
- local trimPrefix = ____string.trimPrefix
41
41
  local ____utils = require("functions.utils")
42
42
  local ensureAllCases = ____utils.ensureAllCases
43
43
  local ____repeat = ____utils["repeat"]
@@ -100,15 +100,15 @@ end
100
100
  function getPlayerIndexCollectibleType(self, player, differentiateForgottenAndSoul)
101
101
  local character = player:GetPlayerType()
102
102
  repeat
103
- local ____switch69 = character
104
- local ____cond69 = ____switch69 == PlayerType.PLAYER_THESOUL
105
- if ____cond69 then
103
+ local ____switch71 = character
104
+ local ____cond71 = ____switch71 == PlayerType.PLAYER_THESOUL
105
+ if ____cond71 then
106
106
  do
107
107
  return differentiateForgottenAndSoul and CollectibleType.COLLECTIBLE_SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
108
108
  end
109
109
  end
110
- ____cond69 = ____cond69 or ____switch69 == PlayerType.PLAYER_LAZARUS2_B
111
- if ____cond69 then
110
+ ____cond71 = ____cond71 or ____switch71 == PlayerType.PLAYER_LAZARUS2_B
111
+ if ____cond71 then
112
112
  do
113
113
  return CollectibleType.COLLECTIBLE_INNER_EYE
114
114
  end
@@ -136,53 +136,6 @@ function ____exports.getPlayerMaxHeartContainers(self, player)
136
136
  end
137
137
  return characterMaxHeartContainers
138
138
  end
139
- function getAdjustedPlayerName(self, player)
140
- local character = player:GetPlayerType()
141
- repeat
142
- local ____switch82 = character
143
- local ____cond82 = ____switch82 == PlayerType.PLAYER_BLUEBABY or ____switch82 == PlayerType.PLAYER_BLUEBABY_B
144
- if ____cond82 then
145
- do
146
- return "Blue Baby"
147
- end
148
- end
149
- ____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_LAZARUS2
150
- if ____cond82 then
151
- do
152
- return "Lazarus II"
153
- end
154
- end
155
- ____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_BLACKJUDAS
156
- if ____cond82 then
157
- do
158
- return "Dark Judas"
159
- end
160
- end
161
- ____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_JACOB
162
- if ____cond82 then
163
- do
164
- return "Jacob & Esau"
165
- end
166
- end
167
- ____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_LAZARUS2_B
168
- if ____cond82 then
169
- do
170
- return "Dead Tainted Lazarus"
171
- end
172
- end
173
- ____cond82 = ____cond82 or ____switch82 == PlayerType.PLAYER_JACOB2_B
174
- if ____cond82 then
175
- do
176
- return "Dead Tainted Jacob"
177
- end
178
- end
179
- do
180
- do
181
- return player:GetName()
182
- end
183
- end
184
- until true
185
- end
186
139
  function ____exports.getPlayers(self, performCharacterExclusions)
187
140
  if performCharacterExclusions == nil then
188
141
  performCharacterExclusions = false
@@ -223,16 +176,6 @@ function ____exports.isKeeper(self, player)
223
176
  local character = player:GetPlayerType()
224
177
  return character == PlayerType.PLAYER_KEEPER or character == PlayerType.PLAYER_KEEPER_B
225
178
  end
226
- function ____exports.isTainted(self, player)
227
- local character = player:GetPlayerType()
228
- local ____isVanillaCharacter_result_1
229
- if ____exports.isVanillaCharacter(nil, player) then
230
- ____isVanillaCharacter_result_1 = character >= PlayerType.PLAYER_ISAAC_B
231
- else
232
- ____isVanillaCharacter_result_1 = isTaintedModded(nil, player)
233
- end
234
- return ____isVanillaCharacter_result_1
235
- end
236
179
  function isTaintedModded(self, player)
237
180
  local character = player:GetPlayerType()
238
181
  local name = player:GetName()
@@ -318,6 +261,13 @@ function ____exports.getBlackHearts(self, player)
318
261
  local blackHeartBits = countSetBits(nil, blackHeartsBitmask)
319
262
  return blackHeartBits * 2
320
263
  end
264
+ function ____exports.getCharacterName(self, character)
265
+ if character >= PlayerType.NUM_PLAYER_TYPES then
266
+ return "unknown"
267
+ end
268
+ local characterName = CHARACTER_NAME_MAP[character]
269
+ return characterName == nil and DEFAULT_CHARACTER_NAME or characterName
270
+ end
321
271
  function ____exports.getClosestPlayer(self, position)
322
272
  local closestPlayer = nil
323
273
  local closestDistance = math.huge
@@ -476,12 +426,8 @@ function ____exports.getPlayerIndexVanilla(self, playerToFind)
476
426
  return nil
477
427
  end
478
428
  function ____exports.getPlayerName(self, player)
479
- local adjustedName = getAdjustedPlayerName(nil, player)
480
- if not ____exports.isTainted(nil, player) then
481
- return adjustedName
482
- end
483
- local baseName = trimPrefix(nil, adjustedName, "The ")
484
- return stringContains(nil, baseName, "Tainted") and baseName or "Tainted " .. baseName
429
+ local character = player:GetPlayerType()
430
+ return character >= PlayerType.NUM_PLAYER_TYPES and player:GetName() or ____exports.getCharacterName(nil, character)
485
431
  end
486
432
  function ____exports.getPlayerNumHitsRemaining(self, player)
487
433
  local hearts = player:GetHearts()
@@ -578,6 +524,16 @@ function ____exports.canTakeFreeDevilDeals(self, player)
578
524
  local character = player:GetPlayerType()
579
525
  return CHARACTERS_WITH_FREE_DEVIL_DEALS:has(character)
580
526
  end
527
+ function ____exports.isTainted(self, player)
528
+ local character = player:GetPlayerType()
529
+ local ____isVanillaCharacter_result_1
530
+ if ____exports.isVanillaCharacter(nil, player) then
531
+ ____isVanillaCharacter_result_1 = character >= PlayerType.PLAYER_ISAAC_B
532
+ else
533
+ ____isVanillaCharacter_result_1 = isTaintedModded(nil, player)
534
+ end
535
+ return ____isVanillaCharacter_result_1
536
+ end
581
537
  function ____exports.isTaintedLazarus(self, player)
582
538
  local character = player:GetPlayerType()
583
539
  return character == PlayerType.PLAYER_LAZARUS_B or character == PlayerType.PLAYER_LAZARUS2_B
@@ -620,9 +576,9 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
620
576
  itemPool:RemoveCollectible(collectibleType)
621
577
  end
622
578
  repeat
623
- local ____switch133 = activeSlot
624
- local ____cond133 = ____switch133 == ActiveSlot.SLOT_PRIMARY
625
- if ____cond133 then
579
+ local ____switch125 = activeSlot
580
+ local ____cond125 = ____switch125 == ActiveSlot.SLOT_PRIMARY
581
+ if ____cond125 then
626
582
  do
627
583
  if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
628
584
  player:RemoveCollectible(primaryCollectibleType)
@@ -631,8 +587,8 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
631
587
  break
632
588
  end
633
589
  end
634
- ____cond133 = ____cond133 or ____switch133 == ActiveSlot.SLOT_SECONDARY
635
- if ____cond133 then
590
+ ____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_SECONDARY
591
+ if ____cond125 then
636
592
  do
637
593
  if primaryCollectibleType ~= CollectibleType.COLLECTIBLE_NULL then
638
594
  player:RemoveCollectible(primaryCollectibleType)
@@ -647,16 +603,16 @@ function ____exports.setActiveItem(self, player, collectibleType, activeSlot, ch
647
603
  break
648
604
  end
649
605
  end
650
- ____cond133 = ____cond133 or ____switch133 == ActiveSlot.SLOT_POCKET
651
- if ____cond133 then
606
+ ____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_POCKET
607
+ if ____cond125 then
652
608
  do
653
609
  player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
654
610
  player:SetActiveCharge(charge, activeSlot)
655
611
  break
656
612
  end
657
613
  end
658
- ____cond133 = ____cond133 or ____switch133 == ActiveSlot.SLOT_POCKET2
659
- if ____cond133 then
614
+ ____cond125 = ____cond125 or ____switch125 == ActiveSlot.SLOT_POCKET2
615
+ if ____cond125 then
660
616
  do
661
617
  player:SetPocketActiveItem(collectibleType, activeSlot, keepInPools)
662
618
  break
@@ -3,9 +3,9 @@ import { HealthType } from "../types/HealthType";
3
3
  import { PlayerHealth } from "../types/PlayerHealth";
4
4
  export declare function addPlayerHealthType(player: EntityPlayer, healthType: HealthType, numHearts: int): void;
5
5
  /**
6
- * Helper function to get an inventory of the player's health. Use this in combination with the
7
- * `setPlayerHealth` function to restore the player's health back to a certain configuration at a
8
- * later time.
6
+ * Helper function to get an object representing the player's health. You can use this in
7
+ * combination with the `setPlayerHealth` function to restore the player's health back to a certain
8
+ * configuration at a later time.
9
9
  *
10
10
  * This is based on the `REVEL.StoreHealth` function in the Revelations mod.
11
11
  */
@@ -6,6 +6,7 @@ local Set = ____lualib.Set
6
6
  local __TS__Iterator = ____lualib.__TS__Iterator
7
7
  local ____exports = {}
8
8
  local ____transformationNameMap = require("maps.transformationNameMap")
9
+ local DEFAULT_TRANSFORMATION_NAME = ____transformationNameMap.DEFAULT_TRANSFORMATION_NAME
9
10
  local TRANSFORMATION_NAME_MAP = ____transformationNameMap.TRANSFORMATION_NAME_MAP
10
11
  local ____DefaultMap = require("types.DefaultMap")
11
12
  local DefaultMap = ____DefaultMap.DefaultMap
@@ -90,9 +91,8 @@ function ____exports.getPlayerNumTransformationCollectibles(self, player, player
90
91
  return numCollectibles
91
92
  end
92
93
  function ____exports.getTransformationName(self, playerForm)
93
- local defaultName = "Unknown"
94
- local transformationName = TRANSFORMATION_NAME_MAP:get(playerForm)
95
- return transformationName == nil and defaultName or transformationName
94
+ local transformationName = TRANSFORMATION_NAME_MAP[playerForm]
95
+ return transformationName == nil and DEFAULT_TRANSFORMATION_NAME or transformationName
96
96
  end
97
97
  function ____exports.getTransformationsForCollectibleType(self, collectibleType)
98
98
  if COLLECTIBLE_TYPE_TO_TRANSFORMATION_MAP.size == 0 then
@@ -5,8 +5,10 @@ local itemConfig = ____cachedClasses.itemConfig
5
5
  local ____constants = require("constants")
6
6
  local TRINKET_GOLDEN_FLAG = ____constants.TRINKET_GOLDEN_FLAG
7
7
  local ____trinketDescriptionMap = require("maps.trinketDescriptionMap")
8
+ local DEFAULT_TRINKET_DESCRIPTION = ____trinketDescriptionMap.DEFAULT_TRINKET_DESCRIPTION
8
9
  local TRINKET_DESCRIPTION_MAP = ____trinketDescriptionMap.TRINKET_DESCRIPTION_MAP
9
10
  local ____trinketNameMap = require("maps.trinketNameMap")
11
+ local DEFAULT_TRINKET_NAME = ____trinketNameMap.DEFAULT_TRINKET_NAME
10
12
  local TRINKET_NAME_MAP = ____trinketNameMap.TRINKET_NAME_MAP
11
13
  local ____flag = require("functions.flag")
12
14
  local hasFlag = ____flag.hasFlag
@@ -44,34 +46,26 @@ function ____exports.getTrinkets(self, matchingSubType)
44
46
  return getPickups(nil, PickupVariant.PICKUP_TRINKET, matchingSubType)
45
47
  end
46
48
  function ____exports.getTrinketDescription(self, trinketType)
47
- local defaultDescription = "Unknown"
48
- if type(trinketType) ~= "number" then
49
- return defaultDescription
50
- end
51
49
  local trinketDescription = TRINKET_DESCRIPTION_MAP:get(trinketType)
52
50
  if trinketDescription ~= nil then
53
51
  return trinketDescription
54
52
  end
55
53
  local itemConfigItem = itemConfig:GetCollectible(trinketType)
56
- if itemConfigItem == nil then
57
- return defaultDescription
54
+ if itemConfigItem ~= nil then
55
+ return itemConfigItem.Description
58
56
  end
59
- return itemConfigItem.Description
57
+ return DEFAULT_TRINKET_DESCRIPTION
60
58
  end
61
59
  function ____exports.getTrinketName(self, trinketType)
62
- local defaultName = "Unknown"
63
- if type(trinketType) ~= "number" then
64
- return defaultName
65
- end
66
60
  local trinketName = TRINKET_NAME_MAP:get(trinketType)
67
61
  if trinketName ~= nil then
68
62
  return trinketName
69
63
  end
70
64
  local itemConfigItem = itemConfig:GetCollectible(trinketType)
71
- if itemConfigItem == nil then
72
- return defaultName
65
+ if itemConfigItem ~= nil then
66
+ return itemConfigItem.Name
73
67
  end
74
- return itemConfigItem.Name
68
+ return DEFAULT_TRINKET_NAME
75
69
  end
76
70
  function ____exports.hasOpenTrinketSlot(self, player)
77
71
  local character = player:GetPlayerType()
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { addConsoleCommand, enableExtraConsoleCommands, removeConsoleCommand, }
9
9
  export { forgottenSwitch } from "./features/forgottenSwitch";
10
10
  export { getCollectibleItemPoolType } from "./features/getCollectibleItemPoolType";
11
11
  export * from "./features/isPonyActive";
12
+ export { getPlayerInventory } from "./features/playerInventory";
12
13
  export { preventCollectibleRotate } from "./features/preventCollectibleRotate";
13
14
  export { runInNGameFrames, runInNRenderFrames, runNextGameFrame, runNextRenderFrame, } from "./features/runInNFrames";
14
15
  export * from "./features/saveDataManager/exports";
package/dist/index.lua CHANGED
@@ -86,6 +86,11 @@ do
86
86
  end
87
87
  end
88
88
  end
89
+ do
90
+ local ____playerInventory = require("features.playerInventory")
91
+ local getPlayerInventory = ____playerInventory.getPlayerInventory
92
+ ____exports.getPlayerInventory = getPlayerInventory
93
+ end
89
94
  do
90
95
  local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
91
96
  local preventCollectibleRotate = ____preventCollectibleRotate.preventCollectibleRotate
@@ -1,2 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
- export declare const CARD_DESCRIPTION_MAP: ReadonlyMap<Card, string>;
2
+ export declare const DEFAULT_CARD_DESCRIPTION = "Unknown";
3
+ export declare const CARD_DESCRIPTION_MAP: {
4
+ readonly [key in Card]: string;
5
+ };
@@ -1,105 +1,106 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____lualib = require("lualib_bundle")
3
- local Map = ____lualib.Map
4
- local __TS__New = ____lualib.__TS__New
5
2
  local ____exports = {}
6
- ____exports.CARD_DESCRIPTION_MAP = __TS__New(Map, {
7
- {1, "Where journey begins"},
8
- {2, "May you never miss your goal"},
9
- {3, "Mother is watching you"},
10
- {4, "May your rage bring power"},
11
- {5, "Challenge me!"},
12
- {6, "Two prayers for the lost"},
13
- {7, "May you prosper and be in good health"},
14
- {8, "May nothing stand before you"},
15
- {9, "May your future become balanced"},
16
- {10, "May you see what life has to offer"},
17
- {11, "Spin the wheel of destiny"},
18
- {12, "May your power bring rage"},
19
- {13, "May you find enlightenment "},
20
- {14, "Lay waste to all that oppose you "},
21
- {15, "May you be pure in heart"},
22
- {16, "Revel in the power of darkness"},
23
- {17, "Destruction brings creation"},
24
- {18, "May you find what you desire "},
25
- {19, "May you find all you have lost"},
26
- {20, "May the light heal and enlighten you"},
27
- {21, "Judge lest ye be judged"},
28
- {22, "Open your eyes and see"},
29
- {23, "Item multiplier"},
30
- {24, "Item multiplier"},
31
- {25, "Item multiplier"},
32
- {26, "Item multiplier"},
33
- {27, "Convert all"},
34
- {28, "Convert all"},
35
- {29, "Convert all"},
36
- {30, "Convert all"},
37
- {31, "???"},
38
- {32, "Destruction"},
39
- {33, "Abundance"},
40
- {34, "Passage"},
41
- {35, "Purity"},
42
- {36, "Vision"},
43
- {37, "Change"},
44
- {38, "Companionship"},
45
- {39, "Resistance"},
46
- {40, "???"},
47
- {41, "Void"},
48
- {42, "???"},
49
- {43, "Charge it!"},
50
- {44, "???"},
51
- {45, "Something stinks..."},
52
- {46, "A true ending?"},
53
- {47, "Open Sesame"},
54
- {48, "Double active"},
55
- {49, "D6 + D20"},
56
- {50, "Help from above"},
57
- {51, "You feel protected"},
58
- {52, "Become immense!"},
59
- {53, "Draw 3 cards"},
60
- {54, "Savor the moment"},
61
- {55, "It still glows faintly"},
62
- {56, "Let go and move on"},
63
- {57, "May no harm come to you"},
64
- {58, "Run"},
65
- {59, "May your love bring protection"},
66
- {60, "May you find a worthy opponent"},
67
- {61, "Two prayers for the forgotten"},
68
- {62, "May your heart shatter into pieces"},
69
- {63, "May nothing walk past you"},
70
- {64, "May your sins come back to torment you"},
71
- {65, "May you see the value of all things in life"},
72
- {66, "Throw the dice of fate"},
73
- {67, "May you break their resolve"},
74
- {68, "May your greed know no bounds"},
75
- {69, "May life spring forth from the fallen"},
76
- {70, "May your hunger be satiated"},
77
- {71, "Bask in the light of your mercy"},
78
- {72, "Creation brings destruction"},
79
- {73, "May your loss bring fortune"},
80
- {74, "May you remember lost memories"},
81
- {75, "May the darkness swallow all around you"},
82
- {76, "May you redeem those found wanting"},
83
- {77, "Step into the abyss"},
84
- {78, "???"},
85
- {79, "<3"},
86
- {80, "Again"},
87
- {81, "Reroll... or not"},
88
- {82, "Give me your love!"},
89
- {83, "Opens the unopenable"},
90
- {84, "Right behind you"},
91
- {85, "Chemical warfare"},
92
- {86, "Your very own murder"},
93
- {87, "Slay a thousand"},
94
- {88, "Demon rage!"},
95
- {89, "Life after death"},
96
- {90, "Embrace chaos"},
97
- {91, "Leave your body behind"},
98
- {92, "Motherhood"},
99
- {93, "$$$"},
100
- {94, "Bringer of calamity"},
101
- {95, "Skeletal protector"},
102
- {96, "Friends from beyond"},
103
- {97, "Bound by blood"}
104
- })
3
+ ____exports.DEFAULT_CARD_DESCRIPTION = "Unknown"
4
+ ____exports.CARD_DESCRIPTION_MAP = {
5
+ [Card.CARD_RANDOM] = ____exports.DEFAULT_CARD_DESCRIPTION,
6
+ [Card.CARD_NULL] = ____exports.DEFAULT_CARD_DESCRIPTION,
7
+ [Card.CARD_FOOL] = "Where journey begins",
8
+ [Card.CARD_MAGICIAN] = "May you never miss your goal",
9
+ [Card.CARD_HIGH_PRIESTESS] = "Mother is watching you",
10
+ [Card.CARD_EMPRESS] = "May your rage bring power",
11
+ [Card.CARD_EMPEROR] = "Challenge me!",
12
+ [Card.CARD_HIEROPHANT] = "Two prayers for the lost",
13
+ [Card.CARD_LOVERS] = "May you prosper and be in good health",
14
+ [Card.CARD_CHARIOT] = "May nothing stand before you",
15
+ [Card.CARD_JUSTICE] = "May your future become balanced",
16
+ [Card.CARD_HERMIT] = "May you see what life has to offer",
17
+ [Card.CARD_WHEEL_OF_FORTUNE] = "Spin the wheel of destiny",
18
+ [Card.CARD_STRENGTH] = "May your power bring rage",
19
+ [Card.CARD_HANGED_MAN] = "May you find enlightenment ",
20
+ [Card.CARD_DEATH] = "Lay waste to all that oppose you ",
21
+ [Card.CARD_TEMPERANCE] = "May you be pure in heart",
22
+ [Card.CARD_DEVIL] = "Revel in the power of darkness",
23
+ [Card.CARD_TOWER] = "Destruction brings creation",
24
+ [Card.CARD_STARS] = "May you find what you desire ",
25
+ [Card.CARD_MOON] = "May you find all you have lost",
26
+ [Card.CARD_SUN] = "May the light heal and enlighten you",
27
+ [Card.CARD_JUDGEMENT] = "Judge lest ye be judged",
28
+ [Card.CARD_WORLD] = "Open your eyes and see",
29
+ [Card.CARD_CLUBS_2] = "Item multiplier",
30
+ [Card.CARD_DIAMONDS_2] = "Item multiplier",
31
+ [Card.CARD_SPADES_2] = "Item multiplier",
32
+ [Card.CARD_HEARTS_2] = "Item multiplier",
33
+ [Card.CARD_ACE_OF_CLUBS] = "Convert all",
34
+ [Card.CARD_ACE_OF_DIAMONDS] = "Convert all",
35
+ [Card.CARD_ACE_OF_SPADES] = "Convert all",
36
+ [Card.CARD_ACE_OF_HEARTS] = "Convert all",
37
+ [Card.CARD_JOKER] = "???",
38
+ [Card.RUNE_HAGALAZ] = "Destruction",
39
+ [Card.RUNE_JERA] = "Abundance",
40
+ [Card.RUNE_EHWAZ] = "Passage",
41
+ [Card.RUNE_DAGAZ] = "Purity",
42
+ [Card.RUNE_ANSUZ] = "Vision",
43
+ [Card.RUNE_PERTHRO] = "Change",
44
+ [Card.RUNE_BERKANO] = "Companionship",
45
+ [Card.RUNE_ALGIZ] = "Resistance",
46
+ [Card.RUNE_BLANK] = "???",
47
+ [Card.RUNE_BLACK] = "Void",
48
+ [Card.CARD_CHAOS] = "???",
49
+ [Card.CARD_CREDIT] = "Charge it!",
50
+ [Card.CARD_RULES] = "???",
51
+ [Card.CARD_HUMANITY] = "Something stinks...",
52
+ [Card.CARD_SUICIDE_KING] = "A true ending?",
53
+ [Card.CARD_GET_OUT_OF_JAIL] = "Open Sesame",
54
+ [Card.CARD_QUESTIONMARK] = "Double active",
55
+ [Card.CARD_DICE_SHARD] = "D6 + D20",
56
+ [Card.CARD_EMERGENCY_CONTACT] = "Help from above",
57
+ [Card.CARD_HOLY] = "You feel protected",
58
+ [Card.CARD_HUGE_GROWTH] = "Become immense!",
59
+ [Card.CARD_ANCIENT_RECALL] = "Draw 3 cards",
60
+ [Card.CARD_ERA_WALK] = "Savor the moment",
61
+ [Card.RUNE_SHARD] = "It still glows faintly",
62
+ [Card.CARD_REVERSE_FOOL] = "Let go and move on",
63
+ [Card.CARD_REVERSE_MAGICIAN] = "May no harm come to you",
64
+ [Card.CARD_REVERSE_HIGH_PRIESTESS] = "Run",
65
+ [Card.CARD_REVERSE_EMPRESS] = "May your love bring protection",
66
+ [Card.CARD_REVERSE_EMPEROR] = "May you find a worthy opponent",
67
+ [Card.CARD_REVERSE_HIEROPHANT] = "Two prayers for the forgotten",
68
+ [Card.CARD_REVERSE_LOVERS] = "May your heart shatter into pieces",
69
+ [Card.CARD_REVERSE_CHARIOT] = "May nothing walk past you",
70
+ [Card.CARD_REVERSE_JUSTICE] = "May your sins come back to torment you",
71
+ [Card.CARD_REVERSE_HERMIT] = "May you see the value of all things in life",
72
+ [Card.CARD_REVERSE_WHEEL_OF_FORTUNE] = "Throw the dice of fate",
73
+ [Card.CARD_REVERSE_STRENGTH] = "May you break their resolve",
74
+ [Card.CARD_REVERSE_HANGED_MAN] = "May your greed know no bounds",
75
+ [Card.CARD_REVERSE_DEATH] = "May life spring forth from the fallen",
76
+ [Card.CARD_REVERSE_TEMPERANCE] = "May your hunger be satiated",
77
+ [Card.CARD_REVERSE_DEVIL] = "Bask in the light of your mercy",
78
+ [Card.CARD_REVERSE_TOWER] = "Creation brings destruction",
79
+ [Card.CARD_REVERSE_STARS] = "May your loss bring fortune",
80
+ [Card.CARD_REVERSE_MOON] = "May you remember lost memories",
81
+ [Card.CARD_REVERSE_SUN] = "May the darkness swallow all around you",
82
+ [Card.CARD_REVERSE_JUDGEMENT] = "May you redeem those found wanting",
83
+ [Card.CARD_REVERSE_WORLD] = "Step into the abyss",
84
+ [Card.CARD_CRACKED_KEY] = "???",
85
+ [Card.CARD_QUEEN_OF_HEARTS] = "<3",
86
+ [Card.CARD_WILD] = "Again",
87
+ [Card.CARD_SOUL_ISAAC] = "Reroll... or not",
88
+ [Card.CARD_SOUL_MAGDALENE] = "Give me your love!",
89
+ [Card.CARD_SOUL_CAIN] = "Opens the unopenable",
90
+ [Card.CARD_SOUL_JUDAS] = "Right behind you",
91
+ [Card.CARD_SOUL_BLUEBABY] = "Chemical warfare",
92
+ [Card.CARD_SOUL_EVE] = "Your very own murder",
93
+ [Card.CARD_SOUL_SAMSON] = "Slay a thousand",
94
+ [Card.CARD_SOUL_AZAZEL] = "Demon rage!",
95
+ [Card.CARD_SOUL_LAZARUS] = "Life after death",
96
+ [Card.CARD_SOUL_EDEN] = "Embrace chaos",
97
+ [Card.CARD_SOUL_LOST] = "Leave your body behind",
98
+ [Card.CARD_SOUL_LILITH] = "Motherhood",
99
+ [Card.CARD_SOUL_KEEPER] = "$$$",
100
+ [Card.CARD_SOUL_APOLLYON] = "Bringer of calamity",
101
+ [Card.CARD_SOUL_FORGOTTEN] = "Skeletal protector",
102
+ [Card.CARD_SOUL_BETHANY] = "Friends from beyond",
103
+ [Card.CARD_SOUL_JACOB] = "Bound by blood",
104
+ [Card.NUM_CARDS] = ____exports.DEFAULT_CARD_DESCRIPTION
105
+ }
105
106
  return ____exports
@@ -1,2 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
- export declare const CARD_NAME_MAP: ReadonlyMap<Card, string>;
2
+ export declare const DEFAULT_CARD_NAME = "Unknown";
3
+ export declare const CARD_NAME_MAP: {
4
+ readonly [key in Card]: string;
5
+ };