isaacscript-common 1.2.137 → 1.2.140

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 (81) hide show
  1. package/dist/callbacks/postPlayerChangeHealth.lua +4 -64
  2. package/dist/constants.d.ts +2 -0
  3. package/dist/features/deployJSONRoom.lua +11 -22
  4. package/dist/features/disableInputs.lua +6 -20
  5. package/dist/features/disableSound.lua +4 -12
  6. package/dist/features/extraConsoleCommands/commands.d.ts +185 -13
  7. package/dist/features/extraConsoleCommands/commands.lua +491 -77
  8. package/dist/features/extraConsoleCommands/init.lua +72 -9
  9. package/dist/features/extraConsoleCommands/v.d.ts +5 -1
  10. package/dist/features/extraConsoleCommands/v.lua +7 -1
  11. package/dist/features/forgottenSwitch.lua +3 -8
  12. package/dist/features/getCollectibleItemPoolType.lua +4 -9
  13. package/dist/features/isPonyActive.lua +3 -8
  14. package/dist/features/preventCollectibleRotate.lua +3 -8
  15. package/dist/features/runInNFrames.lua +6 -20
  16. package/dist/features/saveDataManager/constants.d.ts +3 -0
  17. package/dist/features/saveDataManager/constants.lua +5 -0
  18. package/dist/features/saveDataManager/exports.lua +9 -18
  19. package/dist/features/saveDataManager/load.lua +4 -3
  20. package/dist/features/saveDataManager/main.lua +4 -10
  21. package/dist/features/saveDataManager/merge.lua +2 -2
  22. package/dist/features/saveDataManager/save.lua +3 -1
  23. package/dist/features/sirenHelpers.lua +4 -8
  24. package/dist/featuresInitialized.d.ts +1 -1
  25. package/dist/featuresInitialized.lua +5 -0
  26. package/dist/functions/cards.lua +12 -18
  27. package/dist/functions/challenges.lua +3 -2
  28. package/dist/functions/collectibles.lua +8 -14
  29. package/dist/functions/deepCopy.lua +2 -2
  30. package/dist/functions/log.lua +3 -0
  31. package/dist/functions/map.d.ts +4 -1
  32. package/dist/functions/map.lua +5 -1
  33. package/dist/functions/pills.lua +10 -15
  34. package/dist/functions/player.d.ts +4 -2
  35. package/dist/functions/player.lua +37 -81
  36. package/dist/functions/playerHealth.d.ts +3 -0
  37. package/dist/functions/playerHealth.lua +142 -0
  38. package/dist/functions/rooms.lua +4 -5
  39. package/dist/functions/transformations.lua +3 -3
  40. package/dist/functions/trinkets.lua +8 -14
  41. package/dist/index.d.ts +2 -0
  42. package/dist/index.lua +16 -0
  43. package/dist/maps/cardDescriptionMap.d.ts +4 -1
  44. package/dist/maps/cardDescriptionMap.lua +103 -102
  45. package/dist/maps/cardNameMap.d.ts +4 -1
  46. package/dist/maps/cardNameMap.lua +103 -102
  47. package/dist/maps/cardTypeMap.d.ts +3 -1
  48. package/dist/maps/cardTypeMap.lua +102 -102
  49. package/dist/maps/challengeNameMap.d.ts +4 -1
  50. package/dist/maps/challengeNameMap.lua +50 -50
  51. package/dist/maps/characterNameMap.d.ts +5 -0
  52. package/dist/maps/characterNameMap.lua +49 -0
  53. package/dist/maps/collectibleDescriptionMap.d.ts +1 -0
  54. package/dist/maps/collectibleDescriptionMap.lua +1 -0
  55. package/dist/maps/collectibleNameMap.d.ts +1 -0
  56. package/dist/maps/collectibleNameMap.lua +1 -0
  57. package/dist/maps/pillEffectClassMap.d.ts +4 -1
  58. package/dist/maps/pillEffectClassMap.lua +56 -55
  59. package/dist/maps/pillEffectNameMap.d.ts +4 -1
  60. package/dist/maps/pillEffectNameMap.lua +55 -55
  61. package/dist/maps/pillEffectTypeMap.d.ts +4 -1
  62. package/dist/maps/pillEffectTypeMap.lua +55 -55
  63. package/dist/maps/roomTypeMap.d.ts +3 -0
  64. package/dist/maps/roomTypeMap.lua +43 -0
  65. package/dist/maps/roomTypeNameMap.d.ts +5 -0
  66. package/dist/maps/roomTypeNameMap.lua +37 -0
  67. package/dist/maps/transformationNameMap.d.ts +4 -1
  68. package/dist/maps/transformationNameMap.lua +19 -20
  69. package/dist/maps/trinketDescriptionMap.d.ts +1 -0
  70. package/dist/maps/trinketDescriptionMap.lua +1 -0
  71. package/dist/maps/trinketNameMap.d.ts +1 -0
  72. package/dist/maps/trinketNameMap.lua +1 -0
  73. package/dist/types/CardType.d.ts +10 -8
  74. package/dist/types/CardType.lua +9 -7
  75. package/dist/types/HealthType.d.ts +4 -2
  76. package/dist/types/HealthType.lua +3 -1
  77. package/dist/types/PillEffectClass.d.ts +11 -5
  78. package/dist/types/PillEffectClass.lua +8 -5
  79. package/dist/types/PillEffectType.d.ts +10 -4
  80. package/dist/types/PillEffectType.lua +7 -4
  81. package/package.json +1 -1
@@ -221,10 +221,8 @@ function ____exports.inLRoom(self)
221
221
  return roomShape == RoomShape.ROOMSHAPE_LTL or roomShape == RoomShape.ROOMSHAPE_LTR or roomShape == RoomShape.ROOMSHAPE_LBL or roomShape == RoomShape.ROOMSHAPE_LBR
222
222
  end
223
223
  function ____exports.inGenesisRoom(self)
224
- local room = game:GetRoom()
225
- local roomType = room:GetType()
226
- local roomSubType = ____exports.getRoomSubType(nil)
227
- return roomType == RoomType.ROOM_ISAACS and roomSubType == 99
224
+ local roomGridIndex = ____exports.getRoomGridIndex(nil)
225
+ return roomGridIndex == GridRooms.ROOM_GENESIS_IDX
228
226
  end
229
227
  function ____exports.inMegaSatanRoom(self)
230
228
  local roomGridIndex = ____exports.getRoomGridIndex(nil)
@@ -238,7 +236,8 @@ function ____exports.inMinibossRoomOf(self, minibossID)
238
236
  return roomType == RoomType.ROOM_MINIBOSS and roomStageID == 0 and roomSubType == minibossID
239
237
  end
240
238
  function ____exports.inSecretShop(self)
241
- return ____exports.getRoomGridIndex(nil) == GridRooms.ROOM_SECRET_SHOP_IDX
239
+ local roomGridIndex = ____exports.getRoomGridIndex(nil)
240
+ return roomGridIndex == GridRooms.ROOM_SECRET_SHOP_IDX
242
241
  end
243
242
  function ____exports.inStartingRoom(self)
244
243
  local level = game:GetLevel()
@@ -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
@@ -83,6 +83,8 @@ export * from "./maps/pillEffectMap";
83
83
  export * from "./maps/pillEffectNameMap";
84
84
  export * from "./maps/pillEffectTypeMap";
85
85
  export * from "./maps/roomShapeToTopLeftWallGridIndexMap";
86
+ export * from "./maps/roomTypeMap";
87
+ export * from "./maps/roomTypeNameMap";
86
88
  export * from "./maps/transformationNameMap";
87
89
  export * from "./maps/trinketDescriptionMap";
88
90
  export * from "./maps/trinketNameMap";
package/dist/index.lua CHANGED
@@ -671,6 +671,22 @@ do
671
671
  end
672
672
  end
673
673
  end
674
+ do
675
+ local ____export = require("maps.roomTypeMap")
676
+ for ____exportKey, ____exportValue in pairs(____export) do
677
+ if ____exportKey ~= "default" then
678
+ ____exports[____exportKey] = ____exportValue
679
+ end
680
+ end
681
+ end
682
+ do
683
+ local ____export = require("maps.roomTypeNameMap")
684
+ for ____exportKey, ____exportValue in pairs(____export) do
685
+ if ____exportKey ~= "default" then
686
+ ____exports[____exportKey] = ____exportValue
687
+ end
688
+ end
689
+ end
674
690
  do
675
691
  local ____export = require("maps.transformationNameMap")
676
692
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -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
+ };
@@ -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_NAME_MAP = __TS__New(Map, {
7
- {Card.CARD_FOOL, "0 - The Fool"},
8
- {Card.CARD_MAGICIAN, "I - The Magician"},
9
- {Card.CARD_HIGH_PRIESTESS, "II - The High Priestess"},
10
- {Card.CARD_EMPRESS, "III - The Empress"},
11
- {Card.CARD_EMPEROR, "IV - The Emperor"},
12
- {Card.CARD_HIEROPHANT, "V - The Hierophant"},
13
- {Card.CARD_LOVERS, "VI - The Lovers"},
14
- {Card.CARD_CHARIOT, "VII - The Chariot"},
15
- {Card.CARD_JUSTICE, "VIII - Justice"},
16
- {Card.CARD_HERMIT, "IX - The Hermit"},
17
- {Card.CARD_WHEEL_OF_FORTUNE, "X - Wheel of Fortune"},
18
- {Card.CARD_STRENGTH, "XI - Strength"},
19
- {Card.CARD_HANGED_MAN, "XII - The Hanged Man"},
20
- {Card.CARD_DEATH, "XIII - Death"},
21
- {Card.CARD_TEMPERANCE, "XIV - Temperance"},
22
- {Card.CARD_DEVIL, "XV - The Devil"},
23
- {Card.CARD_TOWER, "XVI - The Tower"},
24
- {Card.CARD_STARS, "XVII - The Stars"},
25
- {Card.CARD_MOON, "XVIII - The Moon"},
26
- {Card.CARD_SUN, "XIX - The Sun"},
27
- {Card.CARD_JUDGEMENT, "XX - Judgement"},
28
- {Card.CARD_WORLD, "XXI - The World"},
29
- {Card.CARD_CLUBS_2, "2 of Clubs"},
30
- {Card.CARD_DIAMONDS_2, "2 of Diamonds"},
31
- {Card.CARD_SPADES_2, "2 of Spades"},
32
- {Card.CARD_HEARTS_2, "2 of Hearts"},
33
- {Card.CARD_ACE_OF_CLUBS, "Ace of Clubs"},
34
- {Card.CARD_ACE_OF_DIAMONDS, "Ace of Diamonds"},
35
- {Card.CARD_ACE_OF_SPADES, "Ace of Spades"},
36
- {Card.CARD_ACE_OF_HEARTS, "Ace of Hearts"},
37
- {Card.CARD_JOKER, "Joker"},
38
- {Card.RUNE_HAGALAZ, "Hagalaz"},
39
- {Card.RUNE_JERA, "Jera"},
40
- {Card.RUNE_EHWAZ, "Ehwaz"},
41
- {Card.RUNE_DAGAZ, "Dagaz"},
42
- {Card.RUNE_ANSUZ, "Ansuz"},
43
- {Card.RUNE_PERTHRO, "Perthro"},
44
- {Card.RUNE_BERKANO, "Berkano"},
45
- {Card.RUNE_ALGIZ, "Algiz"},
46
- {Card.RUNE_BLANK, "Blank Rune"},
47
- {Card.RUNE_BLACK, "Black Rune"},
48
- {Card.CARD_CHAOS, "Chaos Card"},
49
- {Card.CARD_CREDIT, "Credit Card"},
50
- {Card.CARD_RULES, "Rules Card"},
51
- {Card.CARD_HUMANITY, "A Card Against Humanity"},
52
- {Card.CARD_SUICIDE_KING, "Suicide King"},
53
- {Card.CARD_GET_OUT_OF_JAIL, "Get Out Of Jail Free Card"},
54
- {Card.CARD_QUESTIONMARK, "? Card"},
55
- {Card.CARD_DICE_SHARD, "Dice Shard"},
56
- {Card.CARD_EMERGENCY_CONTACT, "Emergency Contact"},
57
- {Card.CARD_HOLY, "Holy Card"},
58
- {Card.CARD_HUGE_GROWTH, "Huge Growth"},
59
- {Card.CARD_ANCIENT_RECALL, "Ancient Recall"},
60
- {Card.CARD_ERA_WALK, "Era Walk"},
61
- {Card.RUNE_SHARD, "Rune Shard"},
62
- {Card.CARD_REVERSE_FOOL, "0 - The Fool?"},
63
- {Card.CARD_REVERSE_MAGICIAN, "I - The Magician?"},
64
- {Card.CARD_REVERSE_HIGH_PRIESTESS, "II - The High Priestess?"},
65
- {Card.CARD_REVERSE_EMPRESS, "III - The Empress?"},
66
- {Card.CARD_REVERSE_EMPEROR, "IV - The Emperor?"},
67
- {Card.CARD_REVERSE_HIEROPHANT, "V - The Hierophant?"},
68
- {Card.CARD_REVERSE_LOVERS, "VI - The Lovers?"},
69
- {Card.CARD_REVERSE_CHARIOT, "VII - The Chariot?"},
70
- {Card.CARD_REVERSE_JUSTICE, "VIII - Justice?"},
71
- {Card.CARD_REVERSE_HERMIT, "IX - The Hermit?"},
72
- {Card.CARD_REVERSE_WHEEL_OF_FORTUNE, "X - Wheel of Fortune?"},
73
- {Card.CARD_REVERSE_STRENGTH, "XI - Strength?"},
74
- {Card.CARD_REVERSE_HANGED_MAN, "XII - The Hanged Man?"},
75
- {Card.CARD_REVERSE_DEATH, "XIII - Death?"},
76
- {Card.CARD_REVERSE_TEMPERANCE, "XIV - Temperance?"},
77
- {Card.CARD_REVERSE_DEVIL, "XV - The Devil?"},
78
- {Card.CARD_REVERSE_TOWER, "XVI - The Tower?"},
79
- {Card.CARD_REVERSE_STARS, "XVII - The Stars?"},
80
- {Card.CARD_REVERSE_MOON, "XVIII - The Moon?"},
81
- {Card.CARD_REVERSE_SUN, "XIX - The Sun?"},
82
- {Card.CARD_REVERSE_JUDGEMENT, "XX - Judgement?"},
83
- {Card.CARD_REVERSE_WORLD, "XXI - The World?"},
84
- {Card.CARD_CRACKED_KEY, "Cracked Key"},
85
- {Card.CARD_QUEEN_OF_HEARTS, "Queen of Hearts"},
86
- {Card.CARD_WILD, "Wild Card"},
87
- {Card.CARD_SOUL_ISAAC, "Soul of Isaac"},
88
- {Card.CARD_SOUL_MAGDALENE, "Soul of Magdalene"},
89
- {Card.CARD_SOUL_CAIN, "Soul of Cain"},
90
- {Card.CARD_SOUL_JUDAS, "Soul of Judas"},
91
- {Card.CARD_SOUL_BLUEBABY, "Soul of ???"},
92
- {Card.CARD_SOUL_EVE, "Soul of Eve"},
93
- {Card.CARD_SOUL_SAMSON, "Soul of Samson"},
94
- {Card.CARD_SOUL_AZAZEL, "Soul of Azazel"},
95
- {Card.CARD_SOUL_LAZARUS, "Soul of Lazarus"},
96
- {Card.CARD_SOUL_EDEN, "Soul of Eden"},
97
- {Card.CARD_SOUL_LOST, "Soul of the Lost"},
98
- {Card.CARD_SOUL_LILITH, "Soul of Lilith"},
99
- {Card.CARD_SOUL_KEEPER, "Soul of the Keeper"},
100
- {Card.CARD_SOUL_APOLLYON, "Soul of Apollyon"},
101
- {Card.CARD_SOUL_FORGOTTEN, "Soul of the Forgotten"},
102
- {Card.CARD_SOUL_BETHANY, "Soul of Bethany"},
103
- {Card.CARD_SOUL_JACOB, "Soul of Jacob and Esau"}
104
- })
3
+ ____exports.DEFAULT_CARD_NAME = "Unknown"
4
+ ____exports.CARD_NAME_MAP = {
5
+ [Card.CARD_RANDOM] = ____exports.DEFAULT_CARD_NAME,
6
+ [Card.CARD_NULL] = ____exports.DEFAULT_CARD_NAME,
7
+ [Card.CARD_FOOL] = "0 - The Fool",
8
+ [Card.CARD_MAGICIAN] = "I - The Magician",
9
+ [Card.CARD_HIGH_PRIESTESS] = "II - The High Priestess",
10
+ [Card.CARD_EMPRESS] = "III - The Empress",
11
+ [Card.CARD_EMPEROR] = "IV - The Emperor",
12
+ [Card.CARD_HIEROPHANT] = "V - The Hierophant",
13
+ [Card.CARD_LOVERS] = "VI - The Lovers",
14
+ [Card.CARD_CHARIOT] = "VII - The Chariot",
15
+ [Card.CARD_JUSTICE] = "VIII - Justice",
16
+ [Card.CARD_HERMIT] = "IX - The Hermit",
17
+ [Card.CARD_WHEEL_OF_FORTUNE] = "X - Wheel of Fortune",
18
+ [Card.CARD_STRENGTH] = "XI - Strength",
19
+ [Card.CARD_HANGED_MAN] = "XII - The Hanged Man",
20
+ [Card.CARD_DEATH] = "XIII - Death",
21
+ [Card.CARD_TEMPERANCE] = "XIV - Temperance",
22
+ [Card.CARD_DEVIL] = "XV - The Devil",
23
+ [Card.CARD_TOWER] = "XVI - The Tower",
24
+ [Card.CARD_STARS] = "XVII - The Stars",
25
+ [Card.CARD_MOON] = "XVIII - The Moon",
26
+ [Card.CARD_SUN] = "XIX - The Sun",
27
+ [Card.CARD_JUDGEMENT] = "XX - Judgement",
28
+ [Card.CARD_WORLD] = "XXI - The World",
29
+ [Card.CARD_CLUBS_2] = "2 of Clubs",
30
+ [Card.CARD_DIAMONDS_2] = "2 of Diamonds",
31
+ [Card.CARD_SPADES_2] = "2 of Spades",
32
+ [Card.CARD_HEARTS_2] = "2 of Hearts",
33
+ [Card.CARD_ACE_OF_CLUBS] = "Ace of Clubs",
34
+ [Card.CARD_ACE_OF_DIAMONDS] = "Ace of Diamonds",
35
+ [Card.CARD_ACE_OF_SPADES] = "Ace of Spades",
36
+ [Card.CARD_ACE_OF_HEARTS] = "Ace of Hearts",
37
+ [Card.CARD_JOKER] = "Joker",
38
+ [Card.RUNE_HAGALAZ] = "Hagalaz",
39
+ [Card.RUNE_JERA] = "Jera",
40
+ [Card.RUNE_EHWAZ] = "Ehwaz",
41
+ [Card.RUNE_DAGAZ] = "Dagaz",
42
+ [Card.RUNE_ANSUZ] = "Ansuz",
43
+ [Card.RUNE_PERTHRO] = "Perthro",
44
+ [Card.RUNE_BERKANO] = "Berkano",
45
+ [Card.RUNE_ALGIZ] = "Algiz",
46
+ [Card.RUNE_BLANK] = "Blank Rune",
47
+ [Card.RUNE_BLACK] = "Black Rune",
48
+ [Card.CARD_CHAOS] = "Chaos Card",
49
+ [Card.CARD_CREDIT] = "Credit Card",
50
+ [Card.CARD_RULES] = "Rules Card",
51
+ [Card.CARD_HUMANITY] = "A Card Against Humanity",
52
+ [Card.CARD_SUICIDE_KING] = "Suicide King",
53
+ [Card.CARD_GET_OUT_OF_JAIL] = "Get Out Of Jail Free Card",
54
+ [Card.CARD_QUESTIONMARK] = "? Card",
55
+ [Card.CARD_DICE_SHARD] = "Dice Shard",
56
+ [Card.CARD_EMERGENCY_CONTACT] = "Emergency Contact",
57
+ [Card.CARD_HOLY] = "Holy Card",
58
+ [Card.CARD_HUGE_GROWTH] = "Huge Growth",
59
+ [Card.CARD_ANCIENT_RECALL] = "Ancient Recall",
60
+ [Card.CARD_ERA_WALK] = "Era Walk",
61
+ [Card.RUNE_SHARD] = "Rune Shard",
62
+ [Card.CARD_REVERSE_FOOL] = "0 - The Fool?",
63
+ [Card.CARD_REVERSE_MAGICIAN] = "I - The Magician?",
64
+ [Card.CARD_REVERSE_HIGH_PRIESTESS] = "II - The High Priestess?",
65
+ [Card.CARD_REVERSE_EMPRESS] = "III - The Empress?",
66
+ [Card.CARD_REVERSE_EMPEROR] = "IV - The Emperor?",
67
+ [Card.CARD_REVERSE_HIEROPHANT] = "V - The Hierophant?",
68
+ [Card.CARD_REVERSE_LOVERS] = "VI - The Lovers?",
69
+ [Card.CARD_REVERSE_CHARIOT] = "VII - The Chariot?",
70
+ [Card.CARD_REVERSE_JUSTICE] = "VIII - Justice?",
71
+ [Card.CARD_REVERSE_HERMIT] = "IX - The Hermit?",
72
+ [Card.CARD_REVERSE_WHEEL_OF_FORTUNE] = "X - Wheel of Fortune?",
73
+ [Card.CARD_REVERSE_STRENGTH] = "XI - Strength?",
74
+ [Card.CARD_REVERSE_HANGED_MAN] = "XII - The Hanged Man?",
75
+ [Card.CARD_REVERSE_DEATH] = "XIII - Death?",
76
+ [Card.CARD_REVERSE_TEMPERANCE] = "XIV - Temperance?",
77
+ [Card.CARD_REVERSE_DEVIL] = "XV - The Devil?",
78
+ [Card.CARD_REVERSE_TOWER] = "XVI - The Tower?",
79
+ [Card.CARD_REVERSE_STARS] = "XVII - The Stars?",
80
+ [Card.CARD_REVERSE_MOON] = "XVIII - The Moon?",
81
+ [Card.CARD_REVERSE_SUN] = "XIX - The Sun?",
82
+ [Card.CARD_REVERSE_JUDGEMENT] = "XX - Judgement?",
83
+ [Card.CARD_REVERSE_WORLD] = "XXI - The World?",
84
+ [Card.CARD_CRACKED_KEY] = "Cracked Key",
85
+ [Card.CARD_QUEEN_OF_HEARTS] = "Queen of Hearts",
86
+ [Card.CARD_WILD] = "Wild Card",
87
+ [Card.CARD_SOUL_ISAAC] = "Soul of Isaac",
88
+ [Card.CARD_SOUL_MAGDALENE] = "Soul of Magdalene",
89
+ [Card.CARD_SOUL_CAIN] = "Soul of Cain",
90
+ [Card.CARD_SOUL_JUDAS] = "Soul of Judas",
91
+ [Card.CARD_SOUL_BLUEBABY] = "Soul of ???",
92
+ [Card.CARD_SOUL_EVE] = "Soul of Eve",
93
+ [Card.CARD_SOUL_SAMSON] = "Soul of Samson",
94
+ [Card.CARD_SOUL_AZAZEL] = "Soul of Azazel",
95
+ [Card.CARD_SOUL_LAZARUS] = "Soul of Lazarus",
96
+ [Card.CARD_SOUL_EDEN] = "Soul of Eden",
97
+ [Card.CARD_SOUL_LOST] = "Soul of the Lost",
98
+ [Card.CARD_SOUL_LILITH] = "Soul of Lilith",
99
+ [Card.CARD_SOUL_KEEPER] = "Soul of the Keeper",
100
+ [Card.CARD_SOUL_APOLLYON] = "Soul of Apollyon",
101
+ [Card.CARD_SOUL_FORGOTTEN] = "Soul of the Forgotten",
102
+ [Card.CARD_SOUL_BETHANY] = "Soul of Bethany",
103
+ [Card.CARD_SOUL_JACOB] = "Soul of Jacob and Esau",
104
+ [Card.NUM_CARDS] = ____exports.DEFAULT_CARD_NAME
105
+ }
105
106
  return ____exports
@@ -1,4 +1,6 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  import { CardType } from "../types/CardType";
3
- export declare const CARD_TYPE_MAP: ReadonlyMap<Card, CardType>;
4
3
  export declare const DEFAULT_CARD_TYPE = CardType.MODDED;
4
+ export declare const CARD_TYPE_MAP: {
5
+ readonly [key in Card]: CardType;
6
+ };