isaacscript-common 8.8.2 → 9.0.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.
Files changed (77) hide show
  1. package/dist/core/constantsFirstLast.d.ts +4 -4
  2. package/dist/core/constantsFirstLast.d.ts.map +1 -1
  3. package/dist/core/constantsFirstLast.lua +4 -4
  4. package/dist/features/customStage/exports.d.ts +11 -1
  5. package/dist/features/customStage/exports.d.ts.map +1 -1
  6. package/dist/features/customStage/exports.lua +10 -4
  7. package/dist/features/customStage/versusScreen.d.ts.map +1 -1
  8. package/dist/features/customStage/versusScreen.lua +3 -3
  9. package/dist/features/extraConsoleCommands/listCommands.lua +14 -14
  10. package/dist/features/firstLast.d.ts +9 -9
  11. package/dist/features/firstLast.d.ts.map +1 -1
  12. package/dist/features/firstLast.lua +26 -26
  13. package/dist/features/preventCollectibleRotation.lua +2 -2
  14. package/dist/functions/cards.d.ts +27 -36
  15. package/dist/functions/cards.d.ts.map +1 -1
  16. package/dist/functions/cards.lua +70 -79
  17. package/dist/functions/collectibles.d.ts +1 -6
  18. package/dist/functions/collectibles.d.ts.map +1 -1
  19. package/dist/functions/collectibles.lua +1 -6
  20. package/dist/functions/gridEntities.d.ts +1 -13
  21. package/dist/functions/gridEntities.d.ts.map +1 -1
  22. package/dist/functions/gridEntities.lua +45 -66
  23. package/dist/functions/gridEntitiesSpecific.d.ts +49 -4
  24. package/dist/functions/gridEntitiesSpecific.d.ts.map +1 -1
  25. package/dist/functions/gridEntitiesSpecific.lua +81 -3
  26. package/dist/functions/pickupsSpecific.d.ts +9 -9
  27. package/dist/functions/pickupsSpecific.d.ts.map +1 -1
  28. package/dist/functions/pickupsSpecific.lua +16 -16
  29. package/dist/functions/pills.d.ts +1 -6
  30. package/dist/functions/pills.d.ts.map +1 -1
  31. package/dist/functions/pills.lua +1 -6
  32. package/dist/functions/pocketItems.lua +4 -4
  33. package/dist/functions/rockAlt.lua +2 -2
  34. package/dist/functions/trinkets.d.ts +1 -6
  35. package/dist/functions/trinkets.d.ts.map +1 -1
  36. package/dist/functions/trinkets.lua +1 -6
  37. package/dist/functions/types.d.ts +3 -3
  38. package/dist/functions/types.d.ts.map +1 -1
  39. package/dist/functions/types.lua +2 -2
  40. package/dist/index.d.ts +111 -85
  41. package/dist/maps/cardMap.d.ts +2 -2
  42. package/dist/maps/cardMap.d.ts.map +1 -1
  43. package/dist/maps/cardMap.lua +203 -203
  44. package/dist/objects/cardDescriptions.d.ts +2 -2
  45. package/dist/objects/cardDescriptions.d.ts.map +1 -1
  46. package/dist/objects/cardDescriptions.lua +99 -99
  47. package/dist/objects/cardNames.d.ts +2 -2
  48. package/dist/objects/cardNames.d.ts.map +1 -1
  49. package/dist/objects/cardNames.lua +99 -99
  50. package/dist/objects/cardTypeToItemConfigCardType.d.ts +6 -0
  51. package/dist/objects/cardTypeToItemConfigCardType.d.ts.map +1 -0
  52. package/dist/objects/cardTypeToItemConfigCardType.lua +106 -0
  53. package/package.json +2 -2
  54. package/src/core/constantsFirstLast.ts +4 -4
  55. package/src/features/customStage/exports.ts +15 -7
  56. package/src/features/customStage/versusScreen.ts +3 -3
  57. package/src/features/extraConsoleCommands/listCommands.ts +16 -16
  58. package/src/features/firstLast.ts +26 -26
  59. package/src/features/preventCollectibleRotation.ts +2 -2
  60. package/src/functions/cards.ts +102 -88
  61. package/src/functions/collectibles.ts +1 -6
  62. package/src/functions/gridEntities.ts +0 -29
  63. package/src/functions/gridEntitiesSpecific.ts +119 -3
  64. package/src/functions/pickupsSpecific.ts +16 -13
  65. package/src/functions/pills.ts +1 -6
  66. package/src/functions/pocketItems.ts +4 -4
  67. package/src/functions/rockAlt.ts +2 -2
  68. package/src/functions/trinkets.ts +1 -6
  69. package/src/functions/types.ts +3 -3
  70. package/src/maps/cardMap.ts +204 -204
  71. package/src/objects/cardDescriptions.ts +100 -100
  72. package/src/objects/cardNames.ts +100 -100
  73. package/src/objects/cardTypeToItemConfigCardType.ts +106 -0
  74. package/dist/objects/cardTypes.d.ts +0 -6
  75. package/dist/objects/cardTypes.d.ts.map +0 -1
  76. package/dist/objects/cardTypes.lua +0 -106
  77. package/src/objects/cardTypes.ts +0 -104
@@ -1,105 +1,105 @@
1
1
  local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
- local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
3
+ local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
4
4
  ____exports.DEFAULT_CARD_DESCRIPTION = "Unknown"
5
5
  ____exports.CARD_DESCRIPTIONS = {
6
- [Card.NULL] = ____exports.DEFAULT_CARD_DESCRIPTION,
7
- [Card.FOOL] = "Where journey begins",
8
- [Card.MAGICIAN] = "May you never miss your goal",
9
- [Card.HIGH_PRIESTESS] = "Mother is watching you",
10
- [Card.EMPRESS] = "May your rage bring power",
11
- [Card.EMPEROR] = "Challenge me!",
12
- [Card.HIEROPHANT] = "Two prayers for the lost",
13
- [Card.LOVERS] = "May you prosper and be in good health",
14
- [Card.CHARIOT] = "May nothing stand before you",
15
- [Card.JUSTICE] = "May your future become balanced",
16
- [Card.HERMIT] = "May you see what life has to offer",
17
- [Card.WHEEL_OF_FORTUNE] = "Spin the wheel of destiny",
18
- [Card.STRENGTH] = "May your power bring rage",
19
- [Card.HANGED_MAN] = "May you find enlightenment ",
20
- [Card.DEATH] = "Lay waste to all that oppose you ",
21
- [Card.TEMPERANCE] = "May you be pure in heart",
22
- [Card.DEVIL] = "Revel in the power of darkness",
23
- [Card.TOWER] = "Destruction brings creation",
24
- [Card.STARS] = "May you find what you desire ",
25
- [Card.MOON] = "May you find all you have lost",
26
- [Card.SUN] = "May the light heal and enlighten you",
27
- [Card.JUDGEMENT] = "Judge lest ye be judged",
28
- [Card.WORLD] = "Open your eyes and see",
29
- [Card.CLUBS_2] = "Item multiplier",
30
- [Card.DIAMONDS_2] = "Item multiplier",
31
- [Card.SPADES_2] = "Item multiplier",
32
- [Card.HEARTS_2] = "Item multiplier",
33
- [Card.ACE_OF_CLUBS] = "Convert all",
34
- [Card.ACE_OF_DIAMONDS] = "Convert all",
35
- [Card.ACE_OF_SPADES] = "Convert all",
36
- [Card.ACE_OF_HEARTS] = "Convert all",
37
- [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.CHAOS] = "???",
49
- [Card.CREDIT] = "Charge it!",
50
- [Card.RULES] = "???",
51
- [Card.AGAINST_HUMANITY] = "Something stinks...",
52
- [Card.SUICIDE_KING] = "A true ending?",
53
- [Card.GET_OUT_OF_JAIL_FREE] = "Open Sesame",
54
- [Card.QUESTION_MARK] = "Double active",
55
- [Card.DICE_SHARD] = "D6 + D20",
56
- [Card.EMERGENCY_CONTACT] = "Help from above",
57
- [Card.HOLY] = "You feel protected",
58
- [Card.HUGE_GROWTH] = "Become immense!",
59
- [Card.ANCIENT_RECALL] = "Draw 3 cards",
60
- [Card.ERA_WALK] = "Savor the moment",
61
- [Card.RUNE_SHARD] = "It still glows faintly",
62
- [Card.REVERSE_FOOL] = "Let go and move on",
63
- [Card.REVERSE_MAGICIAN] = "May no harm come to you",
64
- [Card.REVERSE_HIGH_PRIESTESS] = "Run",
65
- [Card.REVERSE_EMPRESS] = "May your love bring protection",
66
- [Card.REVERSE_EMPEROR] = "May you find a worthy opponent",
67
- [Card.REVERSE_HIEROPHANT] = "Two prayers for the forgotten",
68
- [Card.REVERSE_LOVERS] = "May your heart shatter into pieces",
69
- [Card.REVERSE_CHARIOT] = "May nothing walk past you",
70
- [Card.REVERSE_JUSTICE] = "May your sins come back to torment you",
71
- [Card.REVERSE_HERMIT] = "May you see the value of all things in life",
72
- [Card.REVERSE_WHEEL_OF_FORTUNE] = "Throw the dice of fate",
73
- [Card.REVERSE_STRENGTH] = "May you break their resolve",
74
- [Card.REVERSE_HANGED_MAN] = "May your greed know no bounds",
75
- [Card.REVERSE_DEATH] = "May life spring forth from the fallen",
76
- [Card.REVERSE_TEMPERANCE] = "May your hunger be satiated",
77
- [Card.REVERSE_DEVIL] = "Bask in the light of your mercy",
78
- [Card.REVERSE_TOWER] = "Creation brings destruction",
79
- [Card.REVERSE_STARS] = "May your loss bring fortune",
80
- [Card.REVERSE_MOON] = "May you remember lost memories",
81
- [Card.REVERSE_SUN] = "May the darkness swallow all around you",
82
- [Card.REVERSE_JUDGEMENT] = "May you redeem those found wanting",
83
- [Card.REVERSE_WORLD] = "Step into the abyss",
84
- [Card.CRACKED_KEY] = "???",
85
- [Card.QUEEN_OF_HEARTS] = "<3",
86
- [Card.WILD] = "Again",
87
- [Card.SOUL_ISAAC] = "Reroll... or not",
88
- [Card.SOUL_MAGDALENE] = "Give me your love!",
89
- [Card.SOUL_CAIN] = "Opens the unopenable",
90
- [Card.SOUL_JUDAS] = "Right behind you",
91
- [Card.SOUL_BLUE_BABY] = "Chemical warfare",
92
- [Card.SOUL_EVE] = "Your very own murder",
93
- [Card.SOUL_SAMSON] = "Slay a thousand",
94
- [Card.SOUL_AZAZEL] = "Demon rage!",
95
- [Card.SOUL_LAZARUS] = "Life after death",
96
- [Card.SOUL_EDEN] = "Embrace chaos",
97
- [Card.SOUL_LOST] = "Leave your body behind",
98
- [Card.SOUL_LILITH] = "Motherhood",
99
- [Card.SOUL_KEEPER] = "$$$",
100
- [Card.SOUL_APOLLYON] = "Bringer of calamity",
101
- [Card.SOUL_FORGOTTEN] = "Skeletal protector",
102
- [Card.SOUL_BETHANY] = "Friends from beyond",
103
- [Card.SOUL_JACOB] = "Bound by blood"
6
+ [CardType.NULL] = ____exports.DEFAULT_CARD_DESCRIPTION,
7
+ [CardType.FOOL] = "Where journey begins",
8
+ [CardType.MAGICIAN] = "May you never miss your goal",
9
+ [CardType.HIGH_PRIESTESS] = "Mother is watching you",
10
+ [CardType.EMPRESS] = "May your rage bring power",
11
+ [CardType.EMPEROR] = "Challenge me!",
12
+ [CardType.HIEROPHANT] = "Two prayers for the lost",
13
+ [CardType.LOVERS] = "May you prosper and be in good health",
14
+ [CardType.CHARIOT] = "May nothing stand before you",
15
+ [CardType.JUSTICE] = "May your future become balanced",
16
+ [CardType.HERMIT] = "May you see what life has to offer",
17
+ [CardType.WHEEL_OF_FORTUNE] = "Spin the wheel of destiny",
18
+ [CardType.STRENGTH] = "May your power bring rage",
19
+ [CardType.HANGED_MAN] = "May you find enlightenment ",
20
+ [CardType.DEATH] = "Lay waste to all that oppose you ",
21
+ [CardType.TEMPERANCE] = "May you be pure in heart",
22
+ [CardType.DEVIL] = "Revel in the power of darkness",
23
+ [CardType.TOWER] = "Destruction brings creation",
24
+ [CardType.STARS] = "May you find what you desire ",
25
+ [CardType.MOON] = "May you find all you have lost",
26
+ [CardType.SUN] = "May the light heal and enlighten you",
27
+ [CardType.JUDGEMENT] = "Judge lest ye be judged",
28
+ [CardType.WORLD] = "Open your eyes and see",
29
+ [CardType.CLUBS_2] = "Item multiplier",
30
+ [CardType.DIAMONDS_2] = "Item multiplier",
31
+ [CardType.SPADES_2] = "Item multiplier",
32
+ [CardType.HEARTS_2] = "Item multiplier",
33
+ [CardType.ACE_OF_CLUBS] = "Convert all",
34
+ [CardType.ACE_OF_DIAMONDS] = "Convert all",
35
+ [CardType.ACE_OF_SPADES] = "Convert all",
36
+ [CardType.ACE_OF_HEARTS] = "Convert all",
37
+ [CardType.JOKER] = "???",
38
+ [CardType.RUNE_HAGALAZ] = "Destruction",
39
+ [CardType.RUNE_JERA] = "Abundance",
40
+ [CardType.RUNE_EHWAZ] = "Passage",
41
+ [CardType.RUNE_DAGAZ] = "Purity",
42
+ [CardType.RUNE_ANSUZ] = "Vision",
43
+ [CardType.RUNE_PERTHRO] = "Change",
44
+ [CardType.RUNE_BERKANO] = "Companionship",
45
+ [CardType.RUNE_ALGIZ] = "Resistance",
46
+ [CardType.RUNE_BLANK] = "???",
47
+ [CardType.RUNE_BLACK] = "Void",
48
+ [CardType.CHAOS] = "???",
49
+ [CardType.CREDIT] = "Charge it!",
50
+ [CardType.RULES] = "???",
51
+ [CardType.AGAINST_HUMANITY] = "Something stinks...",
52
+ [CardType.SUICIDE_KING] = "A true ending?",
53
+ [CardType.GET_OUT_OF_JAIL_FREE] = "Open Sesame",
54
+ [CardType.QUESTION_MARK] = "Double active",
55
+ [CardType.DICE_SHARD] = "D6 + D20",
56
+ [CardType.EMERGENCY_CONTACT] = "Help from above",
57
+ [CardType.HOLY] = "You feel protected",
58
+ [CardType.HUGE_GROWTH] = "Become immense!",
59
+ [CardType.ANCIENT_RECALL] = "Draw 3 cards",
60
+ [CardType.ERA_WALK] = "Savor the moment",
61
+ [CardType.RUNE_SHARD] = "It still glows faintly",
62
+ [CardType.REVERSE_FOOL] = "Let go and move on",
63
+ [CardType.REVERSE_MAGICIAN] = "May no harm come to you",
64
+ [CardType.REVERSE_HIGH_PRIESTESS] = "Run",
65
+ [CardType.REVERSE_EMPRESS] = "May your love bring protection",
66
+ [CardType.REVERSE_EMPEROR] = "May you find a worthy opponent",
67
+ [CardType.REVERSE_HIEROPHANT] = "Two prayers for the forgotten",
68
+ [CardType.REVERSE_LOVERS] = "May your heart shatter into pieces",
69
+ [CardType.REVERSE_CHARIOT] = "May nothing walk past you",
70
+ [CardType.REVERSE_JUSTICE] = "May your sins come back to torment you",
71
+ [CardType.REVERSE_HERMIT] = "May you see the value of all things in life",
72
+ [CardType.REVERSE_WHEEL_OF_FORTUNE] = "Throw the dice of fate",
73
+ [CardType.REVERSE_STRENGTH] = "May you break their resolve",
74
+ [CardType.REVERSE_HANGED_MAN] = "May your greed know no bounds",
75
+ [CardType.REVERSE_DEATH] = "May life spring forth from the fallen",
76
+ [CardType.REVERSE_TEMPERANCE] = "May your hunger be satiated",
77
+ [CardType.REVERSE_DEVIL] = "Bask in the light of your mercy",
78
+ [CardType.REVERSE_TOWER] = "Creation brings destruction",
79
+ [CardType.REVERSE_STARS] = "May your loss bring fortune",
80
+ [CardType.REVERSE_MOON] = "May you remember lost memories",
81
+ [CardType.REVERSE_SUN] = "May the darkness swallow all around you",
82
+ [CardType.REVERSE_JUDGEMENT] = "May you redeem those found wanting",
83
+ [CardType.REVERSE_WORLD] = "Step into the abyss",
84
+ [CardType.CRACKED_KEY] = "???",
85
+ [CardType.QUEEN_OF_HEARTS] = "<3",
86
+ [CardType.WILD] = "Again",
87
+ [CardType.SOUL_ISAAC] = "Reroll... or not",
88
+ [CardType.SOUL_MAGDALENE] = "Give me your love!",
89
+ [CardType.SOUL_CAIN] = "Opens the unopenable",
90
+ [CardType.SOUL_JUDAS] = "Right behind you",
91
+ [CardType.SOUL_BLUE_BABY] = "Chemical warfare",
92
+ [CardType.SOUL_EVE] = "Your very own murder",
93
+ [CardType.SOUL_SAMSON] = "Slay a thousand",
94
+ [CardType.SOUL_AZAZEL] = "Demon rage!",
95
+ [CardType.SOUL_LAZARUS] = "Life after death",
96
+ [CardType.SOUL_EDEN] = "Embrace chaos",
97
+ [CardType.SOUL_LOST] = "Leave your body behind",
98
+ [CardType.SOUL_LILITH] = "Motherhood",
99
+ [CardType.SOUL_KEEPER] = "$$$",
100
+ [CardType.SOUL_APOLLYON] = "Bringer of calamity",
101
+ [CardType.SOUL_FORGOTTEN] = "Skeletal protector",
102
+ [CardType.SOUL_BETHANY] = "Friends from beyond",
103
+ [CardType.SOUL_JACOB] = "Bound by blood"
104
104
  }
105
105
  return ____exports
@@ -1,6 +1,6 @@
1
- import { Card } from "isaac-typescript-definitions";
1
+ import { CardType } from "isaac-typescript-definitions";
2
2
  export declare const DEFAULT_CARD_NAME = "Unknown";
3
3
  export declare const CARD_NAMES: {
4
- readonly [key in Card]: string;
4
+ readonly [key in CardType]: string;
5
5
  };
6
6
  //# sourceMappingURL=cardNames.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cardNames.d.ts","sourceRoot":"","sources":["../../src/objects/cardNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAG3C,eAAO,MAAM,UAAU,EAAE;IAAE,QAAQ,EAAE,GAAG,IAAI,IAAI,GAAG,MAAM;CAmG/C,CAAC"}
1
+ {"version":3,"file":"cardNames.d.ts","sourceRoot":"","sources":["../../src/objects/cardNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAG3C,eAAO,MAAM,UAAU,EAAE;IAAE,QAAQ,EAAE,GAAG,IAAI,QAAQ,GAAG,MAAM;CAmGnD,CAAC"}
@@ -1,105 +1,105 @@
1
1
  local ____exports = {}
2
2
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
- local Card = ____isaac_2Dtypescript_2Ddefinitions.Card
3
+ local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
4
4
  ____exports.DEFAULT_CARD_NAME = "Unknown"
5
5
  ____exports.CARD_NAMES = {
6
- [Card.NULL] = ____exports.DEFAULT_CARD_NAME,
7
- [Card.FOOL] = "0 - The Fool",
8
- [Card.MAGICIAN] = "I - The Magician",
9
- [Card.HIGH_PRIESTESS] = "II - The High Priestess",
10
- [Card.EMPRESS] = "III - The Empress",
11
- [Card.EMPEROR] = "IV - The Emperor",
12
- [Card.HIEROPHANT] = "V - The Hierophant",
13
- [Card.LOVERS] = "VI - The Lovers",
14
- [Card.CHARIOT] = "VII - The Chariot",
15
- [Card.JUSTICE] = "VIII - Justice",
16
- [Card.HERMIT] = "IX - The Hermit",
17
- [Card.WHEEL_OF_FORTUNE] = "X - Wheel of Fortune",
18
- [Card.STRENGTH] = "XI - Strength",
19
- [Card.HANGED_MAN] = "XII - The Hanged Man",
20
- [Card.DEATH] = "XIII - Death",
21
- [Card.TEMPERANCE] = "XIV - Temperance",
22
- [Card.DEVIL] = "XV - The Devil",
23
- [Card.TOWER] = "XVI - The Tower",
24
- [Card.STARS] = "XVII - The Stars",
25
- [Card.MOON] = "XVIII - The Moon",
26
- [Card.SUN] = "XIX - The Sun",
27
- [Card.JUDGEMENT] = "XX - Judgement",
28
- [Card.WORLD] = "XXI - The World",
29
- [Card.CLUBS_2] = "2 of Clubs",
30
- [Card.DIAMONDS_2] = "2 of Diamonds",
31
- [Card.SPADES_2] = "2 of Spades",
32
- [Card.HEARTS_2] = "2 of Hearts",
33
- [Card.ACE_OF_CLUBS] = "Ace of Clubs",
34
- [Card.ACE_OF_DIAMONDS] = "Ace of Diamonds",
35
- [Card.ACE_OF_SPADES] = "Ace of Spades",
36
- [Card.ACE_OF_HEARTS] = "Ace of Hearts",
37
- [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.CHAOS] = "Chaos Card",
49
- [Card.CREDIT] = "Credit Card",
50
- [Card.RULES] = "Rules Card",
51
- [Card.AGAINST_HUMANITY] = "A Card Against Humanity",
52
- [Card.SUICIDE_KING] = "Suicide King",
53
- [Card.GET_OUT_OF_JAIL_FREE] = "Get Out Of Jail Free Card",
54
- [Card.QUESTION_MARK] = "? Card",
55
- [Card.DICE_SHARD] = "Dice Shard",
56
- [Card.EMERGENCY_CONTACT] = "Emergency Contact",
57
- [Card.HOLY] = "Holy Card",
58
- [Card.HUGE_GROWTH] = "Huge Growth",
59
- [Card.ANCIENT_RECALL] = "Ancient Recall",
60
- [Card.ERA_WALK] = "Era Walk",
61
- [Card.RUNE_SHARD] = "Rune Shard",
62
- [Card.REVERSE_FOOL] = "0 - The Fool?",
63
- [Card.REVERSE_MAGICIAN] = "I - The Magician?",
64
- [Card.REVERSE_HIGH_PRIESTESS] = "II - The High Priestess?",
65
- [Card.REVERSE_EMPRESS] = "III - The Empress?",
66
- [Card.REVERSE_EMPEROR] = "IV - The Emperor?",
67
- [Card.REVERSE_HIEROPHANT] = "V - The Hierophant?",
68
- [Card.REVERSE_LOVERS] = "VI - The Lovers?",
69
- [Card.REVERSE_CHARIOT] = "VII - The Chariot?",
70
- [Card.REVERSE_JUSTICE] = "VIII - Justice?",
71
- [Card.REVERSE_HERMIT] = "IX - The Hermit?",
72
- [Card.REVERSE_WHEEL_OF_FORTUNE] = "X - Wheel of Fortune?",
73
- [Card.REVERSE_STRENGTH] = "XI - Strength?",
74
- [Card.REVERSE_HANGED_MAN] = "XII - The Hanged Man?",
75
- [Card.REVERSE_DEATH] = "XIII - Death?",
76
- [Card.REVERSE_TEMPERANCE] = "XIV - Temperance?",
77
- [Card.REVERSE_DEVIL] = "XV - The Devil?",
78
- [Card.REVERSE_TOWER] = "XVI - The Tower?",
79
- [Card.REVERSE_STARS] = "XVII - The Stars?",
80
- [Card.REVERSE_MOON] = "XVIII - The Moon?",
81
- [Card.REVERSE_SUN] = "XIX - The Sun?",
82
- [Card.REVERSE_JUDGEMENT] = "XX - Judgement?",
83
- [Card.REVERSE_WORLD] = "XXI - The World?",
84
- [Card.CRACKED_KEY] = "Cracked Key",
85
- [Card.QUEEN_OF_HEARTS] = "Queen of Hearts",
86
- [Card.WILD] = "Wild Card",
87
- [Card.SOUL_ISAAC] = "Soul of Isaac",
88
- [Card.SOUL_MAGDALENE] = "Soul of Magdalene",
89
- [Card.SOUL_CAIN] = "Soul of Cain",
90
- [Card.SOUL_JUDAS] = "Soul of Judas",
91
- [Card.SOUL_BLUE_BABY] = "Soul of ???",
92
- [Card.SOUL_EVE] = "Soul of Eve",
93
- [Card.SOUL_SAMSON] = "Soul of Samson",
94
- [Card.SOUL_AZAZEL] = "Soul of Azazel",
95
- [Card.SOUL_LAZARUS] = "Soul of Lazarus",
96
- [Card.SOUL_EDEN] = "Soul of Eden",
97
- [Card.SOUL_LOST] = "Soul of the Lost",
98
- [Card.SOUL_LILITH] = "Soul of Lilith",
99
- [Card.SOUL_KEEPER] = "Soul of the Keeper",
100
- [Card.SOUL_APOLLYON] = "Soul of Apollyon",
101
- [Card.SOUL_FORGOTTEN] = "Soul of the Forgotten",
102
- [Card.SOUL_BETHANY] = "Soul of Bethany",
103
- [Card.SOUL_JACOB] = "Soul of Jacob and Esau"
6
+ [CardType.NULL] = ____exports.DEFAULT_CARD_NAME,
7
+ [CardType.FOOL] = "0 - The Fool",
8
+ [CardType.MAGICIAN] = "I - The Magician",
9
+ [CardType.HIGH_PRIESTESS] = "II - The High Priestess",
10
+ [CardType.EMPRESS] = "III - The Empress",
11
+ [CardType.EMPEROR] = "IV - The Emperor",
12
+ [CardType.HIEROPHANT] = "V - The Hierophant",
13
+ [CardType.LOVERS] = "VI - The Lovers",
14
+ [CardType.CHARIOT] = "VII - The Chariot",
15
+ [CardType.JUSTICE] = "VIII - Justice",
16
+ [CardType.HERMIT] = "IX - The Hermit",
17
+ [CardType.WHEEL_OF_FORTUNE] = "X - Wheel of Fortune",
18
+ [CardType.STRENGTH] = "XI - Strength",
19
+ [CardType.HANGED_MAN] = "XII - The Hanged Man",
20
+ [CardType.DEATH] = "XIII - Death",
21
+ [CardType.TEMPERANCE] = "XIV - Temperance",
22
+ [CardType.DEVIL] = "XV - The Devil",
23
+ [CardType.TOWER] = "XVI - The Tower",
24
+ [CardType.STARS] = "XVII - The Stars",
25
+ [CardType.MOON] = "XVIII - The Moon",
26
+ [CardType.SUN] = "XIX - The Sun",
27
+ [CardType.JUDGEMENT] = "XX - Judgement",
28
+ [CardType.WORLD] = "XXI - The World",
29
+ [CardType.CLUBS_2] = "2 of Clubs",
30
+ [CardType.DIAMONDS_2] = "2 of Diamonds",
31
+ [CardType.SPADES_2] = "2 of Spades",
32
+ [CardType.HEARTS_2] = "2 of Hearts",
33
+ [CardType.ACE_OF_CLUBS] = "Ace of Clubs",
34
+ [CardType.ACE_OF_DIAMONDS] = "Ace of Diamonds",
35
+ [CardType.ACE_OF_SPADES] = "Ace of Spades",
36
+ [CardType.ACE_OF_HEARTS] = "Ace of Hearts",
37
+ [CardType.JOKER] = "Joker",
38
+ [CardType.RUNE_HAGALAZ] = "Hagalaz",
39
+ [CardType.RUNE_JERA] = "Jera",
40
+ [CardType.RUNE_EHWAZ] = "Ehwaz",
41
+ [CardType.RUNE_DAGAZ] = "Dagaz",
42
+ [CardType.RUNE_ANSUZ] = "Ansuz",
43
+ [CardType.RUNE_PERTHRO] = "Perthro",
44
+ [CardType.RUNE_BERKANO] = "Berkano",
45
+ [CardType.RUNE_ALGIZ] = "Algiz",
46
+ [CardType.RUNE_BLANK] = "Blank Rune",
47
+ [CardType.RUNE_BLACK] = "Black Rune",
48
+ [CardType.CHAOS] = "Chaos Card",
49
+ [CardType.CREDIT] = "Credit Card",
50
+ [CardType.RULES] = "Rules Card",
51
+ [CardType.AGAINST_HUMANITY] = "A Card Against Humanity",
52
+ [CardType.SUICIDE_KING] = "Suicide King",
53
+ [CardType.GET_OUT_OF_JAIL_FREE] = "Get Out Of Jail Free Card",
54
+ [CardType.QUESTION_MARK] = "? Card",
55
+ [CardType.DICE_SHARD] = "Dice Shard",
56
+ [CardType.EMERGENCY_CONTACT] = "Emergency Contact",
57
+ [CardType.HOLY] = "Holy Card",
58
+ [CardType.HUGE_GROWTH] = "Huge Growth",
59
+ [CardType.ANCIENT_RECALL] = "Ancient Recall",
60
+ [CardType.ERA_WALK] = "Era Walk",
61
+ [CardType.RUNE_SHARD] = "Rune Shard",
62
+ [CardType.REVERSE_FOOL] = "0 - The Fool?",
63
+ [CardType.REVERSE_MAGICIAN] = "I - The Magician?",
64
+ [CardType.REVERSE_HIGH_PRIESTESS] = "II - The High Priestess?",
65
+ [CardType.REVERSE_EMPRESS] = "III - The Empress?",
66
+ [CardType.REVERSE_EMPEROR] = "IV - The Emperor?",
67
+ [CardType.REVERSE_HIEROPHANT] = "V - The Hierophant?",
68
+ [CardType.REVERSE_LOVERS] = "VI - The Lovers?",
69
+ [CardType.REVERSE_CHARIOT] = "VII - The Chariot?",
70
+ [CardType.REVERSE_JUSTICE] = "VIII - Justice?",
71
+ [CardType.REVERSE_HERMIT] = "IX - The Hermit?",
72
+ [CardType.REVERSE_WHEEL_OF_FORTUNE] = "X - Wheel of Fortune?",
73
+ [CardType.REVERSE_STRENGTH] = "XI - Strength?",
74
+ [CardType.REVERSE_HANGED_MAN] = "XII - The Hanged Man?",
75
+ [CardType.REVERSE_DEATH] = "XIII - Death?",
76
+ [CardType.REVERSE_TEMPERANCE] = "XIV - Temperance?",
77
+ [CardType.REVERSE_DEVIL] = "XV - The Devil?",
78
+ [CardType.REVERSE_TOWER] = "XVI - The Tower?",
79
+ [CardType.REVERSE_STARS] = "XVII - The Stars?",
80
+ [CardType.REVERSE_MOON] = "XVIII - The Moon?",
81
+ [CardType.REVERSE_SUN] = "XIX - The Sun?",
82
+ [CardType.REVERSE_JUDGEMENT] = "XX - Judgement?",
83
+ [CardType.REVERSE_WORLD] = "XXI - The World?",
84
+ [CardType.CRACKED_KEY] = "Cracked Key",
85
+ [CardType.QUEEN_OF_HEARTS] = "Queen of Hearts",
86
+ [CardType.WILD] = "Wild Card",
87
+ [CardType.SOUL_ISAAC] = "Soul of Isaac",
88
+ [CardType.SOUL_MAGDALENE] = "Soul of Magdalene",
89
+ [CardType.SOUL_CAIN] = "Soul of Cain",
90
+ [CardType.SOUL_JUDAS] = "Soul of Judas",
91
+ [CardType.SOUL_BLUE_BABY] = "Soul of ???",
92
+ [CardType.SOUL_EVE] = "Soul of Eve",
93
+ [CardType.SOUL_SAMSON] = "Soul of Samson",
94
+ [CardType.SOUL_AZAZEL] = "Soul of Azazel",
95
+ [CardType.SOUL_LAZARUS] = "Soul of Lazarus",
96
+ [CardType.SOUL_EDEN] = "Soul of Eden",
97
+ [CardType.SOUL_LOST] = "Soul of the Lost",
98
+ [CardType.SOUL_LILITH] = "Soul of Lilith",
99
+ [CardType.SOUL_KEEPER] = "Soul of the Keeper",
100
+ [CardType.SOUL_APOLLYON] = "Soul of Apollyon",
101
+ [CardType.SOUL_FORGOTTEN] = "Soul of the Forgotten",
102
+ [CardType.SOUL_BETHANY] = "Soul of Bethany",
103
+ [CardType.SOUL_JACOB] = "Soul of Jacob and Esau"
104
104
  }
105
105
  return ____exports
@@ -0,0 +1,6 @@
1
+ import { CardType, ItemConfigCardType } from "isaac-typescript-definitions";
2
+ export declare const DEFAULT_CARD_TYPE = ItemConfigCardType.MODDED;
3
+ export declare const CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE: {
4
+ readonly [key in CardType]: ItemConfigCardType;
5
+ };
6
+ //# sourceMappingURL=cardTypeToItemConfigCardType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cardTypeToItemConfigCardType.d.ts","sourceRoot":"","sources":["../../src/objects/cardTypeToItemConfigCardType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAE3D,eAAO,MAAM,kCAAkC,EAAE;IAC/C,QAAQ,EAAE,GAAG,IAAI,QAAQ,GAAG,kBAAkB;CAoGtC,CAAC"}
@@ -0,0 +1,106 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
4
+ local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardType
5
+ ____exports.DEFAULT_CARD_TYPE = ItemConfigCardType.MODDED
6
+ ____exports.CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE = {
7
+ [CardType.NULL] = ItemConfigCardType.NULL,
8
+ [CardType.FOOL] = ItemConfigCardType.TAROT,
9
+ [CardType.MAGICIAN] = ItemConfigCardType.TAROT,
10
+ [CardType.HIGH_PRIESTESS] = ItemConfigCardType.TAROT,
11
+ [CardType.EMPRESS] = ItemConfigCardType.TAROT,
12
+ [CardType.EMPEROR] = ItemConfigCardType.TAROT,
13
+ [CardType.HIEROPHANT] = ItemConfigCardType.TAROT,
14
+ [CardType.LOVERS] = ItemConfigCardType.TAROT,
15
+ [CardType.CHARIOT] = ItemConfigCardType.TAROT,
16
+ [CardType.JUSTICE] = ItemConfigCardType.TAROT,
17
+ [CardType.HERMIT] = ItemConfigCardType.TAROT,
18
+ [CardType.WHEEL_OF_FORTUNE] = ItemConfigCardType.TAROT,
19
+ [CardType.STRENGTH] = ItemConfigCardType.TAROT,
20
+ [CardType.HANGED_MAN] = ItemConfigCardType.TAROT,
21
+ [CardType.DEATH] = ItemConfigCardType.TAROT,
22
+ [CardType.TEMPERANCE] = ItemConfigCardType.TAROT,
23
+ [CardType.DEVIL] = ItemConfigCardType.TAROT,
24
+ [CardType.TOWER] = ItemConfigCardType.TAROT,
25
+ [CardType.STARS] = ItemConfigCardType.TAROT,
26
+ [CardType.MOON] = ItemConfigCardType.TAROT,
27
+ [CardType.SUN] = ItemConfigCardType.TAROT,
28
+ [CardType.JUDGEMENT] = ItemConfigCardType.TAROT,
29
+ [CardType.WORLD] = ItemConfigCardType.TAROT,
30
+ [CardType.CLUBS_2] = ItemConfigCardType.SUIT,
31
+ [CardType.DIAMONDS_2] = ItemConfigCardType.SUIT,
32
+ [CardType.SPADES_2] = ItemConfigCardType.SUIT,
33
+ [CardType.HEARTS_2] = ItemConfigCardType.SUIT,
34
+ [CardType.ACE_OF_CLUBS] = ItemConfigCardType.SUIT,
35
+ [CardType.ACE_OF_DIAMONDS] = ItemConfigCardType.SUIT,
36
+ [CardType.ACE_OF_SPADES] = ItemConfigCardType.SUIT,
37
+ [CardType.ACE_OF_HEARTS] = ItemConfigCardType.SUIT,
38
+ [CardType.JOKER] = ItemConfigCardType.SUIT,
39
+ [CardType.RUNE_HAGALAZ] = ItemConfigCardType.RUNE,
40
+ [CardType.RUNE_JERA] = ItemConfigCardType.RUNE,
41
+ [CardType.RUNE_EHWAZ] = ItemConfigCardType.RUNE,
42
+ [CardType.RUNE_DAGAZ] = ItemConfigCardType.RUNE,
43
+ [CardType.RUNE_ANSUZ] = ItemConfigCardType.RUNE,
44
+ [CardType.RUNE_PERTHRO] = ItemConfigCardType.RUNE,
45
+ [CardType.RUNE_BERKANO] = ItemConfigCardType.RUNE,
46
+ [CardType.RUNE_ALGIZ] = ItemConfigCardType.RUNE,
47
+ [CardType.RUNE_BLANK] = ItemConfigCardType.RUNE,
48
+ [CardType.RUNE_BLACK] = ItemConfigCardType.RUNE,
49
+ [CardType.CHAOS] = ItemConfigCardType.SPECIAL,
50
+ [CardType.CREDIT] = ItemConfigCardType.SPECIAL,
51
+ [CardType.RULES] = ItemConfigCardType.SPECIAL,
52
+ [CardType.AGAINST_HUMANITY] = ItemConfigCardType.SPECIAL,
53
+ [CardType.SUICIDE_KING] = ItemConfigCardType.SPECIAL,
54
+ [CardType.GET_OUT_OF_JAIL_FREE] = ItemConfigCardType.SPECIAL,
55
+ [CardType.QUESTION_MARK] = ItemConfigCardType.SPECIAL,
56
+ [CardType.DICE_SHARD] = ItemConfigCardType.SPECIAL_OBJECT,
57
+ [CardType.EMERGENCY_CONTACT] = ItemConfigCardType.SPECIAL_OBJECT,
58
+ [CardType.HOLY] = ItemConfigCardType.SPECIAL,
59
+ [CardType.HUGE_GROWTH] = ItemConfigCardType.SPECIAL,
60
+ [CardType.ANCIENT_RECALL] = ItemConfigCardType.SPECIAL,
61
+ [CardType.ERA_WALK] = ItemConfigCardType.SPECIAL,
62
+ [CardType.RUNE_SHARD] = ItemConfigCardType.RUNE,
63
+ [CardType.REVERSE_FOOL] = ItemConfigCardType.TAROT_REVERSE,
64
+ [CardType.REVERSE_MAGICIAN] = ItemConfigCardType.TAROT_REVERSE,
65
+ [CardType.REVERSE_HIGH_PRIESTESS] = ItemConfigCardType.TAROT_REVERSE,
66
+ [CardType.REVERSE_EMPRESS] = ItemConfigCardType.TAROT_REVERSE,
67
+ [CardType.REVERSE_EMPEROR] = ItemConfigCardType.TAROT_REVERSE,
68
+ [CardType.REVERSE_HIEROPHANT] = ItemConfigCardType.TAROT_REVERSE,
69
+ [CardType.REVERSE_LOVERS] = ItemConfigCardType.TAROT_REVERSE,
70
+ [CardType.REVERSE_CHARIOT] = ItemConfigCardType.TAROT_REVERSE,
71
+ [CardType.REVERSE_JUSTICE] = ItemConfigCardType.TAROT_REVERSE,
72
+ [CardType.REVERSE_HERMIT] = ItemConfigCardType.TAROT_REVERSE,
73
+ [CardType.REVERSE_WHEEL_OF_FORTUNE] = ItemConfigCardType.TAROT_REVERSE,
74
+ [CardType.REVERSE_STRENGTH] = ItemConfigCardType.TAROT_REVERSE,
75
+ [CardType.REVERSE_HANGED_MAN] = ItemConfigCardType.TAROT_REVERSE,
76
+ [CardType.REVERSE_DEATH] = ItemConfigCardType.TAROT_REVERSE,
77
+ [CardType.REVERSE_TEMPERANCE] = ItemConfigCardType.TAROT_REVERSE,
78
+ [CardType.REVERSE_DEVIL] = ItemConfigCardType.TAROT_REVERSE,
79
+ [CardType.REVERSE_TOWER] = ItemConfigCardType.TAROT_REVERSE,
80
+ [CardType.REVERSE_STARS] = ItemConfigCardType.TAROT_REVERSE,
81
+ [CardType.REVERSE_MOON] = ItemConfigCardType.TAROT_REVERSE,
82
+ [CardType.REVERSE_SUN] = ItemConfigCardType.TAROT_REVERSE,
83
+ [CardType.REVERSE_JUDGEMENT] = ItemConfigCardType.TAROT_REVERSE,
84
+ [CardType.REVERSE_WORLD] = ItemConfigCardType.TAROT_REVERSE,
85
+ [CardType.CRACKED_KEY] = ItemConfigCardType.SPECIAL_OBJECT,
86
+ [CardType.QUEEN_OF_HEARTS] = ItemConfigCardType.SUIT,
87
+ [CardType.WILD] = ItemConfigCardType.SPECIAL,
88
+ [CardType.SOUL_ISAAC] = ItemConfigCardType.RUNE,
89
+ [CardType.SOUL_MAGDALENE] = ItemConfigCardType.RUNE,
90
+ [CardType.SOUL_CAIN] = ItemConfigCardType.RUNE,
91
+ [CardType.SOUL_JUDAS] = ItemConfigCardType.RUNE,
92
+ [CardType.SOUL_BLUE_BABY] = ItemConfigCardType.RUNE,
93
+ [CardType.SOUL_EVE] = ItemConfigCardType.RUNE,
94
+ [CardType.SOUL_SAMSON] = ItemConfigCardType.RUNE,
95
+ [CardType.SOUL_AZAZEL] = ItemConfigCardType.RUNE,
96
+ [CardType.SOUL_LAZARUS] = ItemConfigCardType.RUNE,
97
+ [CardType.SOUL_EDEN] = ItemConfigCardType.RUNE,
98
+ [CardType.SOUL_LOST] = ItemConfigCardType.RUNE,
99
+ [CardType.SOUL_LILITH] = ItemConfigCardType.RUNE,
100
+ [CardType.SOUL_KEEPER] = ItemConfigCardType.RUNE,
101
+ [CardType.SOUL_APOLLYON] = ItemConfigCardType.RUNE,
102
+ [CardType.SOUL_FORGOTTEN] = ItemConfigCardType.RUNE,
103
+ [CardType.SOUL_BETHANY] = ItemConfigCardType.RUNE,
104
+ [CardType.SOUL_JACOB] = ItemConfigCardType.RUNE
105
+ }
106
+ return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "8.8.2",
3
+ "version": "9.0.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -22,6 +22,6 @@
22
22
  "main": "dist/index",
23
23
  "types": "dist/index.d.ts",
24
24
  "dependencies": {
25
- "isaac-typescript-definitions": "^3.6.2"
25
+ "isaac-typescript-definitions": "^4.0.0"
26
26
  }
27
27
  }
@@ -1,7 +1,7 @@
1
1
  // Constants related to modded items can be found in the "firstLast.ts" file.
2
2
 
3
3
  import {
4
- Card,
4
+ CardType,
5
5
  CollectibleType,
6
6
  LevelStage,
7
7
  PillColor,
@@ -48,13 +48,13 @@ export const NUM_VANILLA_TRINKET_TYPES = getEnumLength(TrinketType) - 1;
48
48
  // -----
49
49
 
50
50
  /** Equal to `Card.FOOL`. */
51
- export const FIRST_CARD = Card.FOOL;
51
+ export const FIRST_CARD_TYPE = CardType.FOOL;
52
52
 
53
53
  /** Calculated from the `Card` enum. */
54
- export const LAST_VANILLA_CARD = getLastEnumValue(Card);
54
+ export const LAST_VANILLA_CARD_TYPE = getLastEnumValue(CardType);
55
55
 
56
56
  /** Calculated from the `Card` enum. `Card.NULL` is not included. */
57
- export const NUM_VANILLA_CARDS = getEnumLength(Card) - 1;
57
+ export const NUM_VANILLA_CARD_TYPES = getEnumLength(CardType) - 1;
58
58
 
59
59
  // ------------
60
60
  // Pill Effects
@@ -36,7 +36,18 @@ import v, { customStageCachedRoomData, customStagesMap } from "./v";
36
36
  export const DEFAULT_BASE_STAGE = LevelStage.BASEMENT_2;
37
37
  export const DEFAULT_BASE_STAGE_TYPE = StageType.ORIGINAL;
38
38
 
39
- export const INVALID_STAGE_VALUE = -1 as LevelStage;
39
+ /**
40
+ * Equal to -1. Setting the stage to an invalid stage value is useful in that it prevents backdrops
41
+ * and shadows from loading.
42
+ */
43
+ export const CUSTOM_FLOOR_STAGE = -1 as LevelStage;
44
+
45
+ /**
46
+ * We must use `StageType.WRATH_OF_THE_LAMB` instead of `StageType.ORIGINAL` or else the walls will
47
+ * not render properly. DeadInfinity suspects that this might be because it is trying to use the
48
+ * Dark Room's backdrop (instead of The Chest).
49
+ */
50
+ export const CUSTOM_FLOOR_STAGE_TYPE = StageType.WRATH_OF_THE_LAMB;
40
51
 
41
52
  /**
42
53
  * Helper function to warp to a custom stage/level.
@@ -74,7 +85,7 @@ export function setCustomStage(
74
85
 
75
86
  // Before changing the stage, we have to revert the bugged stage, if necessary. This prevents the
76
87
  // bug where the backdrop will not spawn.
77
- if (stage === INVALID_STAGE_VALUE) {
88
+ if (stage === CUSTOM_FLOOR_STAGE) {
78
89
  level.SetStage(LevelStage.BASEMENT_1, StageType.ORIGINAL);
79
90
  }
80
91
 
@@ -98,11 +109,8 @@ export function setCustomStage(
98
109
  setStageRoomsData(customStage, rng, verbose);
99
110
 
100
111
  // Set the stage to an invalid value, which will prevent the walls and floors from loading.
101
- // Furthermore, we must use `StageType.WRATH_OF_THE_LAMB` instead of `StageType.ORIGINAL` or else
102
- // the walls will not render properly. DeadInfinity suspects that this might be because it is
103
- // trying to use the Dark Room's backdrop (instead of The Chest).
104
- const targetStage = INVALID_STAGE_VALUE;
105
- const targetStageType = StageType.WRATH_OF_THE_LAMB;
112
+ const targetStage = CUSTOM_FLOOR_STAGE;
113
+ const targetStageType = CUSTOM_FLOOR_STAGE_TYPE;
106
114
  level.SetStage(targetStage, targetStageType);
107
115
  reorderedCallbacksSetStageInternal(targetStage, targetStageType);
108
116