isaacscript-common 61.0.1 → 63.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.
- package/dist/index.rollup.d.ts +2 -0
- package/dist/isaacscript-common.lua +165 -170
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +1 -1
- package/dist/src/functions/levelGrid.d.ts +2 -0
- package/dist/src/functions/levelGrid.d.ts.map +1 -1
- package/dist/src/functions/levelGrid.lua +4 -2
- package/dist/src/maps/cardNameToTypeMap.lua +77 -77
- package/dist/src/objects/cardDescriptions.lua +21 -21
- package/dist/src/objects/cardNames.lua +21 -21
- package/dist/src/objects/pillEffectTypeToPillEffects.d.ts +0 -1
- package/dist/src/objects/pillEffectTypeToPillEffects.d.ts.map +1 -1
- package/dist/src/objects/pillEffectTypeToPillEffects.lua +0 -1
- package/package.json +2 -2
- package/src/classes/features/other/PreventCollectibleRotation.ts +1 -1
- package/src/functions/levelGrid.ts +4 -2
- package/src/maps/cardNameToTypeMap.ts +77 -77
- package/src/objects/cardDescriptions.ts +21 -21
- package/src/objects/cardNames.ts +21 -21
- package/src/objects/pillEffectTypeToPillEffects.ts +0 -5
- package/dist/src/indexLua.d.ts +0 -202
- package/dist/src/indexLua.d.ts.map +0 -1
- package/dist/src/indexLua.lua +0 -1186
|
@@ -40,14 +40,14 @@ ____exports.CARD_NAME_TO_TYPE_MAP = __TS__New(ReadonlyMap, {
|
|
|
40
40
|
{"judgement", CardType.JUDGEMENT},
|
|
41
41
|
{"judge", CardType.JUDGEMENT},
|
|
42
42
|
{"world", CardType.WORLD},
|
|
43
|
-
{"2OfClubs", CardType.
|
|
44
|
-
{"2Clubs", CardType.
|
|
45
|
-
{"2OfDiamonds", CardType.
|
|
46
|
-
{"2Diamonds", CardType.
|
|
47
|
-
{"2OfSpades", CardType.
|
|
48
|
-
{"2Spades", CardType.
|
|
49
|
-
{"2OfHearts", CardType.
|
|
50
|
-
{"2Hearts", CardType.
|
|
43
|
+
{"2OfClubs", CardType.TWO_OF_CLUBS},
|
|
44
|
+
{"2Clubs", CardType.TWO_OF_CLUBS},
|
|
45
|
+
{"2OfDiamonds", CardType.TWO_OF_DIAMONDS},
|
|
46
|
+
{"2Diamonds", CardType.TWO_OF_DIAMONDS},
|
|
47
|
+
{"2OfSpades", CardType.TWO_OF_SPADES},
|
|
48
|
+
{"2Spades", CardType.TWO_OF_SPADES},
|
|
49
|
+
{"2OfHearts", CardType.TWO_OF_HEARTS},
|
|
50
|
+
{"2Hearts", CardType.TWO_OF_HEARTS},
|
|
51
51
|
{"aceOfClubs", CardType.ACE_OF_CLUBS},
|
|
52
52
|
{"aceClubs", CardType.ACE_OF_CLUBS},
|
|
53
53
|
{"aceOfDiamonds", CardType.ACE_OF_DIAMONDS},
|
|
@@ -140,74 +140,74 @@ ____exports.CARD_NAME_TO_TYPE_MAP = __TS__New(ReadonlyMap, {
|
|
|
140
140
|
{"queenOfHearts", CardType.QUEEN_OF_HEARTS},
|
|
141
141
|
{"queenHearts", CardType.QUEEN_OF_HEARTS},
|
|
142
142
|
{"wildcard", CardType.WILD},
|
|
143
|
-
{"soulOfIsaac", CardType.
|
|
144
|
-
{"soulIsaac", CardType.
|
|
145
|
-
{"isaac", CardType.
|
|
146
|
-
{"soulOfMagdalene", CardType.
|
|
147
|
-
{"soulMagdalene", CardType.
|
|
148
|
-
{"magdalene", CardType.
|
|
149
|
-
{"soulOfCain", CardType.
|
|
150
|
-
{"soulCain", CardType.
|
|
151
|
-
{"cain", CardType.
|
|
152
|
-
{"soulOfJudas", CardType.
|
|
153
|
-
{"soulJudas", CardType.
|
|
154
|
-
{"judas", CardType.
|
|
155
|
-
{"soulOf???", CardType.
|
|
156
|
-
{"soul???", CardType.
|
|
157
|
-
{"???", CardType.
|
|
158
|
-
{"soulOfBlueBaby", CardType.
|
|
159
|
-
{"soulBlueBaby", CardType.
|
|
160
|
-
{"blueBaby", CardType.
|
|
161
|
-
{"soulOfEve", CardType.
|
|
162
|
-
{"soulEve", CardType.
|
|
163
|
-
{"eve", CardType.
|
|
164
|
-
{"soulOfSamson", CardType.
|
|
165
|
-
{"soulSamson", CardType.
|
|
166
|
-
{"samson", CardType.
|
|
167
|
-
{"soulOfAzazel", CardType.
|
|
168
|
-
{"soulAzazel", CardType.
|
|
169
|
-
{"azazel", CardType.
|
|
170
|
-
{"soulOfLazarus", CardType.
|
|
171
|
-
{"soulLazarus", CardType.
|
|
172
|
-
{"lazarus", CardType.
|
|
173
|
-
{"soulOfEden", CardType.
|
|
174
|
-
{"soulEden", CardType.
|
|
175
|
-
{"eden", CardType.
|
|
176
|
-
{"soulOfTheLost", CardType.
|
|
177
|
-
{"soulTheLost", CardType.
|
|
178
|
-
{"theLost", CardType.
|
|
179
|
-
{"soulOfLost", CardType.
|
|
180
|
-
{"soulLost", CardType.
|
|
181
|
-
{"lost", CardType.
|
|
182
|
-
{"soulOfLilith", CardType.
|
|
183
|
-
{"soulLilith", CardType.
|
|
184
|
-
{"lilith", CardType.
|
|
185
|
-
{"soulOfTheKeeper", CardType.
|
|
186
|
-
{"soulTheKeeper", CardType.
|
|
187
|
-
{"theKeeper", CardType.
|
|
188
|
-
{"soulOfKeeper", CardType.
|
|
189
|
-
{"soulKeeper", CardType.
|
|
190
|
-
{"keeper", CardType.
|
|
191
|
-
{"soulOfApollyon", CardType.
|
|
192
|
-
{"soulApollyon", CardType.
|
|
193
|
-
{"apollyon", CardType.
|
|
194
|
-
{"soulOfTheForgotten", CardType.
|
|
195
|
-
{"soulTheForgotten", CardType.
|
|
196
|
-
{"theForgotten", CardType.
|
|
197
|
-
{"soulOfForgotten", CardType.
|
|
198
|
-
{"soulForgotten", CardType.
|
|
199
|
-
{"forgotten", CardType.
|
|
200
|
-
{"soulOfBethany", CardType.
|
|
201
|
-
{"soulBethany", CardType.
|
|
202
|
-
{"bethany", CardType.
|
|
203
|
-
{"soulOfJacobAndEsau", CardType.
|
|
204
|
-
{"soulJacobAndEsau", CardType.
|
|
205
|
-
{"jacobAndEsau", CardType.
|
|
206
|
-
{"soulOfJacob&Esau", CardType.
|
|
207
|
-
{"soulJacob&Esau", CardType.
|
|
208
|
-
{"jacob&Esau", CardType.
|
|
209
|
-
{"soulOfJacob", CardType.
|
|
210
|
-
{"soulJacob", CardType.
|
|
211
|
-
{"jacob", CardType.
|
|
143
|
+
{"soulOfIsaac", CardType.SOUL_OF_ISAAC},
|
|
144
|
+
{"soulIsaac", CardType.SOUL_OF_ISAAC},
|
|
145
|
+
{"isaac", CardType.SOUL_OF_ISAAC},
|
|
146
|
+
{"soulOfMagdalene", CardType.SOUL_OF_MAGDALENE},
|
|
147
|
+
{"soulMagdalene", CardType.SOUL_OF_MAGDALENE},
|
|
148
|
+
{"magdalene", CardType.SOUL_OF_MAGDALENE},
|
|
149
|
+
{"soulOfCain", CardType.SOUL_OF_CAIN},
|
|
150
|
+
{"soulCain", CardType.SOUL_OF_CAIN},
|
|
151
|
+
{"cain", CardType.SOUL_OF_CAIN},
|
|
152
|
+
{"soulOfJudas", CardType.SOUL_OF_JUDAS},
|
|
153
|
+
{"soulJudas", CardType.SOUL_OF_JUDAS},
|
|
154
|
+
{"judas", CardType.SOUL_OF_JUDAS},
|
|
155
|
+
{"soulOf???", CardType.SOUL_OF_BLUE_BABY},
|
|
156
|
+
{"soul???", CardType.SOUL_OF_BLUE_BABY},
|
|
157
|
+
{"???", CardType.SOUL_OF_BLUE_BABY},
|
|
158
|
+
{"soulOfBlueBaby", CardType.SOUL_OF_BLUE_BABY},
|
|
159
|
+
{"soulBlueBaby", CardType.SOUL_OF_BLUE_BABY},
|
|
160
|
+
{"blueBaby", CardType.SOUL_OF_BLUE_BABY},
|
|
161
|
+
{"soulOfEve", CardType.SOUL_OF_EVE},
|
|
162
|
+
{"soulEve", CardType.SOUL_OF_EVE},
|
|
163
|
+
{"eve", CardType.SOUL_OF_EVE},
|
|
164
|
+
{"soulOfSamson", CardType.SOUL_OF_SAMSON},
|
|
165
|
+
{"soulSamson", CardType.SOUL_OF_SAMSON},
|
|
166
|
+
{"samson", CardType.SOUL_OF_SAMSON},
|
|
167
|
+
{"soulOfAzazel", CardType.SOUL_OF_AZAZEL},
|
|
168
|
+
{"soulAzazel", CardType.SOUL_OF_AZAZEL},
|
|
169
|
+
{"azazel", CardType.SOUL_OF_AZAZEL},
|
|
170
|
+
{"soulOfLazarus", CardType.SOUL_OF_LAZARUS},
|
|
171
|
+
{"soulLazarus", CardType.SOUL_OF_LAZARUS},
|
|
172
|
+
{"lazarus", CardType.SOUL_OF_LAZARUS},
|
|
173
|
+
{"soulOfEden", CardType.SOUL_OF_EDEN},
|
|
174
|
+
{"soulEden", CardType.SOUL_OF_EDEN},
|
|
175
|
+
{"eden", CardType.SOUL_OF_EDEN},
|
|
176
|
+
{"soulOfTheLost", CardType.SOUL_OF_LOST},
|
|
177
|
+
{"soulTheLost", CardType.SOUL_OF_LOST},
|
|
178
|
+
{"theLost", CardType.SOUL_OF_LOST},
|
|
179
|
+
{"soulOfLost", CardType.SOUL_OF_LOST},
|
|
180
|
+
{"soulLost", CardType.SOUL_OF_LOST},
|
|
181
|
+
{"lost", CardType.SOUL_OF_LOST},
|
|
182
|
+
{"soulOfLilith", CardType.SOUL_OF_LILITH},
|
|
183
|
+
{"soulLilith", CardType.SOUL_OF_LILITH},
|
|
184
|
+
{"lilith", CardType.SOUL_OF_LILITH},
|
|
185
|
+
{"soulOfTheKeeper", CardType.SOUL_OF_KEEPER},
|
|
186
|
+
{"soulTheKeeper", CardType.SOUL_OF_KEEPER},
|
|
187
|
+
{"theKeeper", CardType.SOUL_OF_KEEPER},
|
|
188
|
+
{"soulOfKeeper", CardType.SOUL_OF_KEEPER},
|
|
189
|
+
{"soulKeeper", CardType.SOUL_OF_KEEPER},
|
|
190
|
+
{"keeper", CardType.SOUL_OF_KEEPER},
|
|
191
|
+
{"soulOfApollyon", CardType.SOUL_OF_APOLLYON},
|
|
192
|
+
{"soulApollyon", CardType.SOUL_OF_APOLLYON},
|
|
193
|
+
{"apollyon", CardType.SOUL_OF_APOLLYON},
|
|
194
|
+
{"soulOfTheForgotten", CardType.SOUL_OF_FORGOTTEN},
|
|
195
|
+
{"soulTheForgotten", CardType.SOUL_OF_FORGOTTEN},
|
|
196
|
+
{"theForgotten", CardType.SOUL_OF_FORGOTTEN},
|
|
197
|
+
{"soulOfForgotten", CardType.SOUL_OF_FORGOTTEN},
|
|
198
|
+
{"soulForgotten", CardType.SOUL_OF_FORGOTTEN},
|
|
199
|
+
{"forgotten", CardType.SOUL_OF_FORGOTTEN},
|
|
200
|
+
{"soulOfBethany", CardType.SOUL_OF_BETHANY},
|
|
201
|
+
{"soulBethany", CardType.SOUL_OF_BETHANY},
|
|
202
|
+
{"bethany", CardType.SOUL_OF_BETHANY},
|
|
203
|
+
{"soulOfJacobAndEsau", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
204
|
+
{"soulJacobAndEsau", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
205
|
+
{"jacobAndEsau", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
206
|
+
{"soulOfJacob&Esau", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
207
|
+
{"soulJacob&Esau", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
208
|
+
{"jacob&Esau", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
209
|
+
{"soulOfJacob", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
210
|
+
{"soulJacob", CardType.SOUL_OF_JACOB_AND_ESAU},
|
|
211
|
+
{"jacob", CardType.SOUL_OF_JACOB_AND_ESAU}
|
|
212
212
|
})
|
|
213
213
|
return ____exports
|
|
@@ -27,10 +27,10 @@ ____exports.CARD_DESCRIPTIONS = {
|
|
|
27
27
|
[CardType.SUN] = "May the light heal and enlighten you",
|
|
28
28
|
[CardType.JUDGEMENT] = "Judge lest ye be judged",
|
|
29
29
|
[CardType.WORLD] = "Open your eyes and see",
|
|
30
|
-
[CardType.
|
|
31
|
-
[CardType.
|
|
32
|
-
[CardType.
|
|
33
|
-
[CardType.
|
|
30
|
+
[CardType.TWO_OF_CLUBS] = "Item multiplier",
|
|
31
|
+
[CardType.TWO_OF_DIAMONDS] = "Item multiplier",
|
|
32
|
+
[CardType.TWO_OF_SPADES] = "Item multiplier",
|
|
33
|
+
[CardType.TWO_OF_HEARTS] = "Item multiplier",
|
|
34
34
|
[CardType.ACE_OF_CLUBS] = "Convert all",
|
|
35
35
|
[CardType.ACE_OF_DIAMONDS] = "Convert all",
|
|
36
36
|
[CardType.ACE_OF_SPADES] = "Convert all",
|
|
@@ -85,22 +85,22 @@ ____exports.CARD_DESCRIPTIONS = {
|
|
|
85
85
|
[CardType.CRACKED_KEY] = "???",
|
|
86
86
|
[CardType.QUEEN_OF_HEARTS] = "<3",
|
|
87
87
|
[CardType.WILD] = "Again",
|
|
88
|
-
[CardType.
|
|
89
|
-
[CardType.
|
|
90
|
-
[CardType.
|
|
91
|
-
[CardType.
|
|
92
|
-
[CardType.
|
|
93
|
-
[CardType.
|
|
94
|
-
[CardType.
|
|
95
|
-
[CardType.
|
|
96
|
-
[CardType.
|
|
97
|
-
[CardType.
|
|
98
|
-
[CardType.
|
|
99
|
-
[CardType.
|
|
100
|
-
[CardType.
|
|
101
|
-
[CardType.
|
|
102
|
-
[CardType.
|
|
103
|
-
[CardType.
|
|
104
|
-
[CardType.
|
|
88
|
+
[CardType.SOUL_OF_ISAAC] = "Reroll... or not",
|
|
89
|
+
[CardType.SOUL_OF_MAGDALENE] = "Give me your love!",
|
|
90
|
+
[CardType.SOUL_OF_CAIN] = "Opens the unopenable",
|
|
91
|
+
[CardType.SOUL_OF_JUDAS] = "Right behind you",
|
|
92
|
+
[CardType.SOUL_OF_BLUE_BABY] = "Chemical warfare",
|
|
93
|
+
[CardType.SOUL_OF_EVE] = "Your very own murder",
|
|
94
|
+
[CardType.SOUL_OF_SAMSON] = "Slay a thousand",
|
|
95
|
+
[CardType.SOUL_OF_AZAZEL] = "Demon rage!",
|
|
96
|
+
[CardType.SOUL_OF_LAZARUS] = "Life after death",
|
|
97
|
+
[CardType.SOUL_OF_EDEN] = "Embrace chaos",
|
|
98
|
+
[CardType.SOUL_OF_LOST] = "Leave your body behind",
|
|
99
|
+
[CardType.SOUL_OF_LILITH] = "Motherhood",
|
|
100
|
+
[CardType.SOUL_OF_KEEPER] = "$$$",
|
|
101
|
+
[CardType.SOUL_OF_APOLLYON] = "Bringer of calamity",
|
|
102
|
+
[CardType.SOUL_OF_FORGOTTEN] = "Skeletal protector",
|
|
103
|
+
[CardType.SOUL_OF_BETHANY] = "Friends from beyond",
|
|
104
|
+
[CardType.SOUL_OF_JACOB_AND_ESAU] = "Bound by blood"
|
|
105
105
|
}
|
|
106
106
|
return ____exports
|
|
@@ -27,10 +27,10 @@ ____exports.CARD_NAMES = {
|
|
|
27
27
|
[CardType.SUN] = "XIX - The Sun",
|
|
28
28
|
[CardType.JUDGEMENT] = "XX - Judgement",
|
|
29
29
|
[CardType.WORLD] = "XXI - The World",
|
|
30
|
-
[CardType.
|
|
31
|
-
[CardType.
|
|
32
|
-
[CardType.
|
|
33
|
-
[CardType.
|
|
30
|
+
[CardType.TWO_OF_CLUBS] = "2 of Clubs",
|
|
31
|
+
[CardType.TWO_OF_DIAMONDS] = "2 of Diamonds",
|
|
32
|
+
[CardType.TWO_OF_SPADES] = "2 of Spades",
|
|
33
|
+
[CardType.TWO_OF_HEARTS] = "2 of Hearts",
|
|
34
34
|
[CardType.ACE_OF_CLUBS] = "Ace of Clubs",
|
|
35
35
|
[CardType.ACE_OF_DIAMONDS] = "Ace of Diamonds",
|
|
36
36
|
[CardType.ACE_OF_SPADES] = "Ace of Spades",
|
|
@@ -85,22 +85,22 @@ ____exports.CARD_NAMES = {
|
|
|
85
85
|
[CardType.CRACKED_KEY] = "Cracked Key",
|
|
86
86
|
[CardType.QUEEN_OF_HEARTS] = "Queen of Hearts",
|
|
87
87
|
[CardType.WILD] = "Wild Card",
|
|
88
|
-
[CardType.
|
|
89
|
-
[CardType.
|
|
90
|
-
[CardType.
|
|
91
|
-
[CardType.
|
|
92
|
-
[CardType.
|
|
93
|
-
[CardType.
|
|
94
|
-
[CardType.
|
|
95
|
-
[CardType.
|
|
96
|
-
[CardType.
|
|
97
|
-
[CardType.
|
|
98
|
-
[CardType.
|
|
99
|
-
[CardType.
|
|
100
|
-
[CardType.
|
|
101
|
-
[CardType.
|
|
102
|
-
[CardType.
|
|
103
|
-
[CardType.
|
|
104
|
-
[CardType.
|
|
88
|
+
[CardType.SOUL_OF_ISAAC] = "Soul of Isaac",
|
|
89
|
+
[CardType.SOUL_OF_MAGDALENE] = "Soul of Magdalene",
|
|
90
|
+
[CardType.SOUL_OF_CAIN] = "Soul of Cain",
|
|
91
|
+
[CardType.SOUL_OF_JUDAS] = "Soul of Judas",
|
|
92
|
+
[CardType.SOUL_OF_BLUE_BABY] = "Soul of ???",
|
|
93
|
+
[CardType.SOUL_OF_EVE] = "Soul of Eve",
|
|
94
|
+
[CardType.SOUL_OF_SAMSON] = "Soul of Samson",
|
|
95
|
+
[CardType.SOUL_OF_AZAZEL] = "Soul of Azazel",
|
|
96
|
+
[CardType.SOUL_OF_LAZARUS] = "Soul of Lazarus",
|
|
97
|
+
[CardType.SOUL_OF_EDEN] = "Soul of Eden",
|
|
98
|
+
[CardType.SOUL_OF_LOST] = "Soul of the Lost",
|
|
99
|
+
[CardType.SOUL_OF_LILITH] = "Soul of Lilith",
|
|
100
|
+
[CardType.SOUL_OF_KEEPER] = "Soul of the Keeper",
|
|
101
|
+
[CardType.SOUL_OF_APOLLYON] = "Soul of Apollyon",
|
|
102
|
+
[CardType.SOUL_OF_FORGOTTEN] = "Soul of the Forgotten",
|
|
103
|
+
[CardType.SOUL_OF_BETHANY] = "Soul of Bethany",
|
|
104
|
+
[CardType.SOUL_OF_JACOB_AND_ESAU] = "Soul of Jacob and Esau"
|
|
105
105
|
}
|
|
106
106
|
return ____exports
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PillEffect } from "isaac-typescript-definitions";
|
|
2
2
|
export declare const PILL_EFFECT_TYPE_TO_PILL_EFFECTS: {
|
|
3
|
-
readonly [-1]: readonly PillEffect[];
|
|
4
3
|
readonly 0: readonly PillEffect[];
|
|
5
4
|
readonly 1: readonly PillEffect[];
|
|
6
5
|
readonly 2: readonly PillEffect[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pillEffectTypeToPillEffects.d.ts","sourceRoot":"","sources":["../../../src/objects/pillEffectTypeToPillEffects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAM/D,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"pillEffectTypeToPillEffects.d.ts","sourceRoot":"","sources":["../../../src/objects/pillEffectTypeToPillEffects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAM/D,eAAO,MAAM,gCAAgC;;;;;CAoB+B,CAAC"}
|
|
@@ -19,7 +19,6 @@ function getPillEffectsOfType(self, matchingPillEffectType)
|
|
|
19
19
|
)
|
|
20
20
|
end
|
|
21
21
|
____exports.PILL_EFFECT_TYPE_TO_PILL_EFFECTS = {
|
|
22
|
-
[ItemConfigPillEffectType.NULL] = getPillEffectsOfType(nil, ItemConfigPillEffectType.NULL),
|
|
23
22
|
[ItemConfigPillEffectType.POSITIVE] = getPillEffectsOfType(nil, ItemConfigPillEffectType.POSITIVE),
|
|
24
23
|
[ItemConfigPillEffectType.NEGATIVE] = getPillEffectsOfType(nil, ItemConfigPillEffectType.NEGATIVE),
|
|
25
24
|
[ItemConfigPillEffectType.NEUTRAL] = getPillEffectsOfType(nil, ItemConfigPillEffectType.NEUTRAL),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "63.0.0",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "dist/src/index",
|
|
26
26
|
"types": "dist/index.rollup.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^
|
|
28
|
+
"isaac-typescript-definitions": "^30.0.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -54,6 +54,8 @@ const ADJACENT_ROOM_GRID_INDEX_DELTAS = [LEFT, UP, RIGHT, DOWN] as const;
|
|
|
54
54
|
*
|
|
55
55
|
* This is just a filtering of the results of the `getAdjacentExistingRoomGridIndexes` function. See
|
|
56
56
|
* that function for more information.
|
|
57
|
+
*
|
|
58
|
+
* @param roomGridIndex Optional. Default is the current room index.
|
|
57
59
|
*/
|
|
58
60
|
export function getAdjacentExistingRoomGridIndexes(
|
|
59
61
|
roomGridIndex?: int,
|
|
@@ -432,8 +434,8 @@ export function getRoomShapeAdjacentNonExistingGridIndexes(
|
|
|
432
434
|
* Under the hood, this checks for the `RoomDescriptorFlag.FLAG_RED_ROOM` flag.
|
|
433
435
|
*/
|
|
434
436
|
export function inRedKeyRoom(): boolean {
|
|
435
|
-
const
|
|
436
|
-
return isRedKeyRoom(
|
|
437
|
+
const roomGridIndex = getRoomGridIndex();
|
|
438
|
+
return isRedKeyRoom(roomGridIndex);
|
|
437
439
|
}
|
|
438
440
|
|
|
439
441
|
/**
|
|
@@ -38,14 +38,14 @@ export const CARD_NAME_TO_TYPE_MAP = new ReadonlyMap<string, CardType>([
|
|
|
38
38
|
["judgement", CardType.JUDGEMENT], // 21
|
|
39
39
|
["judge", CardType.JUDGEMENT], // 21 - Needed since we have "judge?"
|
|
40
40
|
["world", CardType.WORLD], // 22
|
|
41
|
-
["2OfClubs", CardType.
|
|
42
|
-
["2Clubs", CardType.
|
|
43
|
-
["2OfDiamonds", CardType.
|
|
44
|
-
["2Diamonds", CardType.
|
|
45
|
-
["2OfSpades", CardType.
|
|
46
|
-
["2Spades", CardType.
|
|
47
|
-
["2OfHearts", CardType.
|
|
48
|
-
["2Hearts", CardType.
|
|
41
|
+
["2OfClubs", CardType.TWO_OF_CLUBS], // 23
|
|
42
|
+
["2Clubs", CardType.TWO_OF_CLUBS], // 23
|
|
43
|
+
["2OfDiamonds", CardType.TWO_OF_DIAMONDS], // 24
|
|
44
|
+
["2Diamonds", CardType.TWO_OF_DIAMONDS], // 24
|
|
45
|
+
["2OfSpades", CardType.TWO_OF_SPADES], // 25
|
|
46
|
+
["2Spades", CardType.TWO_OF_SPADES], // 25
|
|
47
|
+
["2OfHearts", CardType.TWO_OF_HEARTS], // 26
|
|
48
|
+
["2Hearts", CardType.TWO_OF_HEARTS], // 26
|
|
49
49
|
["aceOfClubs", CardType.ACE_OF_CLUBS], // 27
|
|
50
50
|
["aceClubs", CardType.ACE_OF_CLUBS], // 27
|
|
51
51
|
["aceOfDiamonds", CardType.ACE_OF_DIAMONDS], // 28
|
|
@@ -138,73 +138,73 @@ export const CARD_NAME_TO_TYPE_MAP = new ReadonlyMap<string, CardType>([
|
|
|
138
138
|
["queenOfHearts", CardType.QUEEN_OF_HEARTS], // 79
|
|
139
139
|
["queenHearts", CardType.QUEEN_OF_HEARTS], // 79
|
|
140
140
|
["wildcard", CardType.WILD], // 80
|
|
141
|
-
["soulOfIsaac", CardType.
|
|
142
|
-
["soulIsaac", CardType.
|
|
143
|
-
["isaac", CardType.
|
|
144
|
-
["soulOfMagdalene", CardType.
|
|
145
|
-
["soulMagdalene", CardType.
|
|
146
|
-
["magdalene", CardType.
|
|
147
|
-
["soulOfCain", CardType.
|
|
148
|
-
["soulCain", CardType.
|
|
149
|
-
["cain", CardType.
|
|
150
|
-
["soulOfJudas", CardType.
|
|
151
|
-
["soulJudas", CardType.
|
|
152
|
-
["judas", CardType.
|
|
153
|
-
["soulOf???", CardType.
|
|
154
|
-
["soul???", CardType.
|
|
155
|
-
["???", CardType.
|
|
156
|
-
["soulOfBlueBaby", CardType.
|
|
157
|
-
["soulBlueBaby", CardType.
|
|
158
|
-
["blueBaby", CardType.
|
|
159
|
-
["soulOfEve", CardType.
|
|
160
|
-
["soulEve", CardType.
|
|
161
|
-
["eve", CardType.
|
|
162
|
-
["soulOfSamson", CardType.
|
|
163
|
-
["soulSamson", CardType.
|
|
164
|
-
["samson", CardType.
|
|
165
|
-
["soulOfAzazel", CardType.
|
|
166
|
-
["soulAzazel", CardType.
|
|
167
|
-
["azazel", CardType.
|
|
168
|
-
["soulOfLazarus", CardType.
|
|
169
|
-
["soulLazarus", CardType.
|
|
170
|
-
["lazarus", CardType.
|
|
171
|
-
["soulOfEden", CardType.
|
|
172
|
-
["soulEden", CardType.
|
|
173
|
-
["eden", CardType.
|
|
174
|
-
["soulOfTheLost", CardType.
|
|
175
|
-
["soulTheLost", CardType.
|
|
176
|
-
["theLost", CardType.
|
|
177
|
-
["soulOfLost", CardType.
|
|
178
|
-
["soulLost", CardType.
|
|
179
|
-
["lost", CardType.
|
|
180
|
-
["soulOfLilith", CardType.
|
|
181
|
-
["soulLilith", CardType.
|
|
182
|
-
["lilith", CardType.
|
|
183
|
-
["soulOfTheKeeper", CardType.
|
|
184
|
-
["soulTheKeeper", CardType.
|
|
185
|
-
["theKeeper", CardType.
|
|
186
|
-
["soulOfKeeper", CardType.
|
|
187
|
-
["soulKeeper", CardType.
|
|
188
|
-
["keeper", CardType.
|
|
189
|
-
["soulOfApollyon", CardType.
|
|
190
|
-
["soulApollyon", CardType.
|
|
191
|
-
["apollyon", CardType.
|
|
192
|
-
["soulOfTheForgotten", CardType.
|
|
193
|
-
["soulTheForgotten", CardType.
|
|
194
|
-
["theForgotten", CardType.
|
|
195
|
-
["soulOfForgotten", CardType.
|
|
196
|
-
["soulForgotten", CardType.
|
|
197
|
-
["forgotten", CardType.
|
|
198
|
-
["soulOfBethany", CardType.
|
|
199
|
-
["soulBethany", CardType.
|
|
200
|
-
["bethany", CardType.
|
|
201
|
-
["soulOfJacobAndEsau", CardType.
|
|
202
|
-
["soulJacobAndEsau", CardType.
|
|
203
|
-
["jacobAndEsau", CardType.
|
|
204
|
-
["soulOfJacob&Esau", CardType.
|
|
205
|
-
["soulJacob&Esau", CardType.
|
|
206
|
-
["jacob&Esau", CardType.
|
|
207
|
-
["soulOfJacob", CardType.
|
|
208
|
-
["soulJacob", CardType.
|
|
209
|
-
["jacob", CardType.
|
|
141
|
+
["soulOfIsaac", CardType.SOUL_OF_ISAAC], // 81
|
|
142
|
+
["soulIsaac", CardType.SOUL_OF_ISAAC], // 81
|
|
143
|
+
["isaac", CardType.SOUL_OF_ISAAC], // 81
|
|
144
|
+
["soulOfMagdalene", CardType.SOUL_OF_MAGDALENE], // 82
|
|
145
|
+
["soulMagdalene", CardType.SOUL_OF_MAGDALENE], // 82
|
|
146
|
+
["magdalene", CardType.SOUL_OF_MAGDALENE], // 82
|
|
147
|
+
["soulOfCain", CardType.SOUL_OF_CAIN], // 83
|
|
148
|
+
["soulCain", CardType.SOUL_OF_CAIN], // 83
|
|
149
|
+
["cain", CardType.SOUL_OF_CAIN], // 83
|
|
150
|
+
["soulOfJudas", CardType.SOUL_OF_JUDAS], // 84
|
|
151
|
+
["soulJudas", CardType.SOUL_OF_JUDAS], // 84
|
|
152
|
+
["judas", CardType.SOUL_OF_JUDAS], // 84
|
|
153
|
+
["soulOf???", CardType.SOUL_OF_BLUE_BABY], // 85
|
|
154
|
+
["soul???", CardType.SOUL_OF_BLUE_BABY], // 85
|
|
155
|
+
["???", CardType.SOUL_OF_BLUE_BABY], // 85
|
|
156
|
+
["soulOfBlueBaby", CardType.SOUL_OF_BLUE_BABY], // 85
|
|
157
|
+
["soulBlueBaby", CardType.SOUL_OF_BLUE_BABY], // 85
|
|
158
|
+
["blueBaby", CardType.SOUL_OF_BLUE_BABY], // 85
|
|
159
|
+
["soulOfEve", CardType.SOUL_OF_EVE], // 86
|
|
160
|
+
["soulEve", CardType.SOUL_OF_EVE], // 86
|
|
161
|
+
["eve", CardType.SOUL_OF_EVE], // 86
|
|
162
|
+
["soulOfSamson", CardType.SOUL_OF_SAMSON], // 87
|
|
163
|
+
["soulSamson", CardType.SOUL_OF_SAMSON], // 87
|
|
164
|
+
["samson", CardType.SOUL_OF_SAMSON], // 87
|
|
165
|
+
["soulOfAzazel", CardType.SOUL_OF_AZAZEL], // 88
|
|
166
|
+
["soulAzazel", CardType.SOUL_OF_AZAZEL], // 88
|
|
167
|
+
["azazel", CardType.SOUL_OF_AZAZEL], // 88
|
|
168
|
+
["soulOfLazarus", CardType.SOUL_OF_LAZARUS], // 89
|
|
169
|
+
["soulLazarus", CardType.SOUL_OF_LAZARUS], // 89
|
|
170
|
+
["lazarus", CardType.SOUL_OF_LAZARUS], // 89
|
|
171
|
+
["soulOfEden", CardType.SOUL_OF_EDEN], // 90
|
|
172
|
+
["soulEden", CardType.SOUL_OF_EDEN], // 90
|
|
173
|
+
["eden", CardType.SOUL_OF_EDEN], // 90
|
|
174
|
+
["soulOfTheLost", CardType.SOUL_OF_LOST], // 91
|
|
175
|
+
["soulTheLost", CardType.SOUL_OF_LOST], // 91
|
|
176
|
+
["theLost", CardType.SOUL_OF_LOST], // 91
|
|
177
|
+
["soulOfLost", CardType.SOUL_OF_LOST], // 91
|
|
178
|
+
["soulLost", CardType.SOUL_OF_LOST], // 91
|
|
179
|
+
["lost", CardType.SOUL_OF_LOST], // 91
|
|
180
|
+
["soulOfLilith", CardType.SOUL_OF_LILITH], // 92
|
|
181
|
+
["soulLilith", CardType.SOUL_OF_LILITH], // 92
|
|
182
|
+
["lilith", CardType.SOUL_OF_LILITH], // 92
|
|
183
|
+
["soulOfTheKeeper", CardType.SOUL_OF_KEEPER], // 93
|
|
184
|
+
["soulTheKeeper", CardType.SOUL_OF_KEEPER], // 93
|
|
185
|
+
["theKeeper", CardType.SOUL_OF_KEEPER], // 93
|
|
186
|
+
["soulOfKeeper", CardType.SOUL_OF_KEEPER], // 93
|
|
187
|
+
["soulKeeper", CardType.SOUL_OF_KEEPER], // 93
|
|
188
|
+
["keeper", CardType.SOUL_OF_KEEPER], // 93
|
|
189
|
+
["soulOfApollyon", CardType.SOUL_OF_APOLLYON], // 94
|
|
190
|
+
["soulApollyon", CardType.SOUL_OF_APOLLYON], // 94
|
|
191
|
+
["apollyon", CardType.SOUL_OF_APOLLYON], // 94
|
|
192
|
+
["soulOfTheForgotten", CardType.SOUL_OF_FORGOTTEN], // 95
|
|
193
|
+
["soulTheForgotten", CardType.SOUL_OF_FORGOTTEN], // 95
|
|
194
|
+
["theForgotten", CardType.SOUL_OF_FORGOTTEN], // 95
|
|
195
|
+
["soulOfForgotten", CardType.SOUL_OF_FORGOTTEN], // 95
|
|
196
|
+
["soulForgotten", CardType.SOUL_OF_FORGOTTEN], // 95
|
|
197
|
+
["forgotten", CardType.SOUL_OF_FORGOTTEN], // 95
|
|
198
|
+
["soulOfBethany", CardType.SOUL_OF_BETHANY], // 96
|
|
199
|
+
["soulBethany", CardType.SOUL_OF_BETHANY], // 96
|
|
200
|
+
["bethany", CardType.SOUL_OF_BETHANY], // 96
|
|
201
|
+
["soulOfJacobAndEsau", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
202
|
+
["soulJacobAndEsau", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
203
|
+
["jacobAndEsau", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
204
|
+
["soulOfJacob&Esau", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
205
|
+
["soulJacob&Esau", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
206
|
+
["jacob&Esau", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
207
|
+
["soulOfJacob", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
208
|
+
["soulJacob", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
209
|
+
["jacob", CardType.SOUL_OF_JACOB_AND_ESAU], // 97
|
|
210
210
|
]);
|
|
@@ -27,10 +27,10 @@ export const CARD_DESCRIPTIONS = {
|
|
|
27
27
|
[CardType.SUN]: "May the light heal and enlighten you", // 20
|
|
28
28
|
[CardType.JUDGEMENT]: "Judge lest ye be judged", // 21
|
|
29
29
|
[CardType.WORLD]: "Open your eyes and see", // 22
|
|
30
|
-
[CardType.
|
|
31
|
-
[CardType.
|
|
32
|
-
[CardType.
|
|
33
|
-
[CardType.
|
|
30
|
+
[CardType.TWO_OF_CLUBS]: "Item multiplier", // 23
|
|
31
|
+
[CardType.TWO_OF_DIAMONDS]: "Item multiplier", // 24
|
|
32
|
+
[CardType.TWO_OF_SPADES]: "Item multiplier", // 25
|
|
33
|
+
[CardType.TWO_OF_HEARTS]: "Item multiplier", // 26
|
|
34
34
|
[CardType.ACE_OF_CLUBS]: "Convert all", // 27
|
|
35
35
|
[CardType.ACE_OF_DIAMONDS]: "Convert all", // 28
|
|
36
36
|
[CardType.ACE_OF_SPADES]: "Convert all", // 29
|
|
@@ -85,21 +85,21 @@ export const CARD_DESCRIPTIONS = {
|
|
|
85
85
|
[CardType.CRACKED_KEY]: "???", // 78
|
|
86
86
|
[CardType.QUEEN_OF_HEARTS]: "<3", // 79
|
|
87
87
|
[CardType.WILD]: "Again", // 80
|
|
88
|
-
[CardType.
|
|
89
|
-
[CardType.
|
|
90
|
-
[CardType.
|
|
91
|
-
[CardType.
|
|
92
|
-
[CardType.
|
|
93
|
-
[CardType.
|
|
94
|
-
[CardType.
|
|
95
|
-
[CardType.
|
|
96
|
-
[CardType.
|
|
97
|
-
[CardType.
|
|
98
|
-
[CardType.
|
|
99
|
-
[CardType.
|
|
100
|
-
[CardType.
|
|
101
|
-
[CardType.
|
|
102
|
-
[CardType.
|
|
103
|
-
[CardType.
|
|
104
|
-
[CardType.
|
|
88
|
+
[CardType.SOUL_OF_ISAAC]: "Reroll... or not", // 81
|
|
89
|
+
[CardType.SOUL_OF_MAGDALENE]: "Give me your love!", // 82
|
|
90
|
+
[CardType.SOUL_OF_CAIN]: "Opens the unopenable", // 83
|
|
91
|
+
[CardType.SOUL_OF_JUDAS]: "Right behind you", // 84
|
|
92
|
+
[CardType.SOUL_OF_BLUE_BABY]: "Chemical warfare", // 85
|
|
93
|
+
[CardType.SOUL_OF_EVE]: "Your very own murder", // 86
|
|
94
|
+
[CardType.SOUL_OF_SAMSON]: "Slay a thousand", // 87
|
|
95
|
+
[CardType.SOUL_OF_AZAZEL]: "Demon rage!", // 88
|
|
96
|
+
[CardType.SOUL_OF_LAZARUS]: "Life after death", // 89
|
|
97
|
+
[CardType.SOUL_OF_EDEN]: "Embrace chaos", // 90
|
|
98
|
+
[CardType.SOUL_OF_LOST]: "Leave your body behind", // 91
|
|
99
|
+
[CardType.SOUL_OF_LILITH]: "Motherhood", // 92
|
|
100
|
+
[CardType.SOUL_OF_KEEPER]: "$$$", // 93
|
|
101
|
+
[CardType.SOUL_OF_APOLLYON]: "Bringer of calamity", // 94
|
|
102
|
+
[CardType.SOUL_OF_FORGOTTEN]: "Skeletal protector", // 95
|
|
103
|
+
[CardType.SOUL_OF_BETHANY]: "Friends from beyond", // 96
|
|
104
|
+
[CardType.SOUL_OF_JACOB_AND_ESAU]: "Bound by blood", // 97
|
|
105
105
|
} as const satisfies Record<CardType, string>;
|