isaacscript-common 62.0.0 → 64.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 -6
- package/dist/isaacscript-common.lua +4148 -4156
- package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.lua +1 -3
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +1 -1
- package/dist/src/functions/itemPool.d.ts.map +1 -1
- package/dist/src/functions/itemPool.lua +1 -3
- 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/functions/run.d.ts +0 -5
- package/dist/src/functions/run.d.ts.map +1 -1
- package/dist/src/functions/run.lua +0 -6
- 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/package.json +2 -2
- package/src/classes/callbacks/PostGreedModeWave.ts +1 -2
- package/src/classes/features/other/PreventCollectibleRotation.ts +1 -1
- package/src/functions/itemPool.ts +1 -2
- package/src/functions/levelGrid.ts +4 -2
- package/src/functions/run.ts +0 -12
- package/src/maps/cardNameToTypeMap.ts +77 -77
- package/src/objects/cardDescriptions.ts +21 -21
- package/src/objects/cardNames.ts +21 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostGreedModeWave.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGreedModeWave.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"PostGreedModeWave.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGreedModeWave.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQ3D,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,oBAAoB,CAAC;IAC3E,CAAC;;;;MAAK;;IAYtB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAazB;CACH"}
|
|
@@ -6,8 +6,6 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
|
|
|
6
6
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
7
7
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
8
8
|
local game = ____cachedClasses.game
|
|
9
|
-
local ____run = require("src.functions.run")
|
|
10
|
-
local isGreedMode = ____run.isGreedMode
|
|
11
9
|
local ____CustomCallback = require("src.classes.private.CustomCallback")
|
|
12
10
|
local CustomCallback = ____CustomCallback.CustomCallback
|
|
13
11
|
local v = {run = {currentGreedWave = 0}}
|
|
@@ -19,7 +17,7 @@ function PostGreedModeWave.prototype.____constructor(self)
|
|
|
19
17
|
CustomCallback.prototype.____constructor(self)
|
|
20
18
|
self.v = v
|
|
21
19
|
self.postUpdate = function()
|
|
22
|
-
if not
|
|
20
|
+
if not game:IsGreedMode() then
|
|
23
21
|
return
|
|
24
22
|
end
|
|
25
23
|
local level = game:GetLevel()
|
|
@@ -87,7 +87,7 @@ function PreventCollectibleRotation.prototype.____constructor(self, pickupIndexC
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
self.featuresUsed = {ISCFeature.PICKUP_INDEX_CREATION, ISCFeature.RUN_IN_N_FRAMES}
|
|
90
|
-
self.callbacksUsed = {{ModCallback.POST_USE_CARD, self.postUseCardSoulOfIsaac, {CardType.
|
|
90
|
+
self.callbacksUsed = {{ModCallback.POST_USE_CARD, self.postUseCardSoulOfIsaac, {CardType.SOUL_OF_ISAAC}}, {ModCallback.PRE_USE_ITEM, self.preUseItem}}
|
|
91
91
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_DICE_ROOM_ACTIVATED, self.postDiceRoomActivated}, {ModCallbackCustom.POST_PICKUP_CHANGED, self.postPickupChanged}}
|
|
92
92
|
self.pickupIndexCreation = pickupIndexCreation
|
|
93
93
|
self.runInNFrames = runInNFrames
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemPool.d.ts","sourceRoot":"","sources":["../../../src/functions/itemPool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"itemPool.d.ts","sourceRoot":"","sources":["../../../src/functions/itemPool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAuC5D;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,YAAY,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,gBAAgB,EAAE,eAAe,EAAE,GACrC,IAAI,CAMN;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,YAAY,EAAE,WAAW,EAAE,GAAG,IAAI,CAM3E"}
|
|
@@ -12,8 +12,6 @@ local game = ____cachedClasses.game
|
|
|
12
12
|
local ____array = require("src.functions.array")
|
|
13
13
|
local arrayRemove = ____array.arrayRemove
|
|
14
14
|
local getRandomArrayElement = ____array.getRandomArrayElement
|
|
15
|
-
local ____run = require("src.functions.run")
|
|
16
|
-
local isGreedMode = ____run.isGreedMode
|
|
17
15
|
local NORMAL_MODE_ONLY_ITEM_POOL_TYPES = {
|
|
18
16
|
ItemPoolType.TREASURE,
|
|
19
17
|
ItemPoolType.BOSS,
|
|
@@ -59,7 +57,7 @@ local GREED_MODE_ITEM_POOL_TYPES = ____arrayRemove_3(__TS__SparseArraySpread(___
|
|
|
59
57
|
-- the `ItemPoolType` enum, since `ItemPoolType.SHELL_GAME` (7) is not a real item pool and the
|
|
60
58
|
-- Greed Mode item pools should be excluded if not playing in Greed Mode.
|
|
61
59
|
function ____exports.getRandomItemPool(self)
|
|
62
|
-
local itemPoolTypes =
|
|
60
|
+
local itemPoolTypes = game:IsGreedMode() and GREED_MODE_ITEM_POOL_TYPES or NORMAL_MODE_ITEM_POOL_TYPES
|
|
63
61
|
return getRandomArrayElement(nil, itemPoolTypes)
|
|
64
62
|
end
|
|
65
63
|
--- Helper function to remove one or more collectibles from all item pools.
|
|
@@ -13,6 +13,8 @@ import { RoomType } from "isaac-typescript-definitions";
|
|
|
13
13
|
*
|
|
14
14
|
* This is just a filtering of the results of the `getAdjacentExistingRoomGridIndexes` function. See
|
|
15
15
|
* that function for more information.
|
|
16
|
+
*
|
|
17
|
+
* @param roomGridIndex Optional. Default is the current room index.
|
|
16
18
|
*/
|
|
17
19
|
export declare function getAdjacentExistingRoomGridIndexes(roomGridIndex?: int): readonly int[];
|
|
18
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"levelGrid.d.ts","sourceRoot":"","sources":["../../../src/functions/levelGrid.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAIL,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAoCtC
|
|
1
|
+
{"version":3,"file":"levelGrid.d.ts","sourceRoot":"","sources":["../../../src/functions/levelGrid.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAIL,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAoCtC;;;;;;;GAOG;AACH,wBAAgB,kCAAkC,CAChD,aAAa,CAAC,EAAE,GAAG,GAClB,SAAS,GA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G,GAAG,EACtB,aAAa,UAAO,EACpB,cAAc,CAAC,EAAE,UAAU,GAC1B,GAAG,GAAG,SAAS,CAuDjB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,aAAa,EAAE,GAAG,GAAG,OAAO,CAGtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAK1E;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAE7D"}
|
|
@@ -52,6 +52,8 @@ local isSecretRoomType = ____rooms.isSecretRoomType
|
|
|
52
52
|
--
|
|
53
53
|
-- This is just a filtering of the results of the `getAdjacentExistingRoomGridIndexes` function. See
|
|
54
54
|
-- that function for more information.
|
|
55
|
+
--
|
|
56
|
+
-- @param roomGridIndex Optional. Default is the current room index.
|
|
55
57
|
function ____exports.getAdjacentExistingRoomGridIndexes(self, roomGridIndex)
|
|
56
58
|
local adjacentRoomGridIndexes = ____exports.getAdjacentRoomGridIndexes(nil, roomGridIndex)
|
|
57
59
|
return __TS__ArrayFilter(
|
|
@@ -364,8 +366,8 @@ end
|
|
|
364
366
|
--
|
|
365
367
|
-- Under the hood, this checks for the `RoomDescriptorFlag.FLAG_RED_ROOM` flag.
|
|
366
368
|
function ____exports.inRedKeyRoom(self)
|
|
367
|
-
local
|
|
368
|
-
return ____exports.isRedKeyRoom(nil,
|
|
369
|
+
local roomGridIndex = getRoomGridIndex(nil)
|
|
370
|
+
return ____exports.isRedKeyRoom(nil, roomGridIndex)
|
|
369
371
|
end
|
|
370
372
|
function ____exports.isDoorSlotValidAtGridIndex(self, doorSlot, roomGridIndex)
|
|
371
373
|
local allowedDoors = getRoomAllowedDoors(nil, roomGridIndex)
|
|
@@ -18,11 +18,6 @@ export declare function canRunUnlockAchievements(): boolean;
|
|
|
18
18
|
* Helper function to get the seed effects (i.e. Easter Eggs) that are enabled for the current run.
|
|
19
19
|
*/
|
|
20
20
|
export declare function getSeedEffects(): SeedEffect[];
|
|
21
|
-
/**
|
|
22
|
-
* Helper function to check if the difficulty of the current run is equal to `Difficulty.GREED` or
|
|
23
|
-
* `Difficulty.GREEDIER`.
|
|
24
|
-
*/
|
|
25
|
-
export declare function isGreedMode(): boolean;
|
|
26
21
|
/**
|
|
27
22
|
* Helper function to check whether the player is playing on a set seed (i.e. that they entered in a
|
|
28
23
|
* specific seed by pressing tab on the character selection screen). When the player resets the game
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/functions/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/functions/run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAEL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAUtC,qDAAqD;AACrD,wBAAgB,mBAAmB,IAAI,OAAO,CAE7C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAK9C;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAUlD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAO7C;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAMnC;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAGtC;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,IAAI,CAkBpD;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,0BAA0B,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAQ1E;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAUlC"}
|
|
@@ -3,7 +3,6 @@ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
|
3
3
|
local ____exports = {}
|
|
4
4
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
5
5
|
local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
|
|
6
|
-
local Difficulty = ____isaac_2Dtypescript_2Ddefinitions.Difficulty
|
|
7
6
|
local SeedEffect = ____isaac_2Dtypescript_2Ddefinitions.SeedEffect
|
|
8
7
|
local SlotVariant = ____isaac_2Dtypescript_2Ddefinitions.SlotVariant
|
|
9
8
|
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
@@ -51,11 +50,6 @@ function ____exports.getSeedEffects(self)
|
|
|
51
50
|
function(____, seedEffect) return seedEffect ~= SeedEffect.NORMAL and seeds:HasSeedEffect(seedEffect) end
|
|
52
51
|
)
|
|
53
52
|
end
|
|
54
|
-
--- Helper function to check if the difficulty of the current run is equal to `Difficulty.GREED` or
|
|
55
|
-
-- `Difficulty.GREEDIER`.
|
|
56
|
-
function ____exports.isGreedMode(self)
|
|
57
|
-
return game.Difficulty == Difficulty.GREED or game.Difficulty == Difficulty.GREEDIER
|
|
58
|
-
end
|
|
59
53
|
--- Helper function to check whether the player is playing on a set seed (i.e. that they entered in a
|
|
60
54
|
-- specific seed by pressing tab on the character selection screen). When the player resets the game
|
|
61
55
|
-- on a set seed, the game will not switch to a different seed.
|
|
@@ -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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "64.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
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ModCallback } from "isaac-typescript-definitions";
|
|
2
2
|
import { game } from "../../core/cachedClasses";
|
|
3
3
|
import type { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
4
|
-
import { isGreedMode } from "../../functions/run";
|
|
5
4
|
import { CustomCallback } from "../private/CustomCallback";
|
|
6
5
|
|
|
7
6
|
const v = {
|
|
@@ -24,7 +23,7 @@ export class PostGreedModeWave extends CustomCallback<ModCallbackCustom.POST_GRE
|
|
|
24
23
|
|
|
25
24
|
// ModCallback.POST_UPDATE (1)
|
|
26
25
|
private readonly postUpdate = (): void => {
|
|
27
|
-
if (!
|
|
26
|
+
if (!game.IsGreedMode()) {
|
|
28
27
|
return;
|
|
29
28
|
}
|
|
30
29
|
|
|
@@ -6,7 +6,6 @@ import { ItemPoolType } from "isaac-typescript-definitions";
|
|
|
6
6
|
import { ITEM_POOL_TYPE_VALUES } from "../arrays/cachedEnumValues";
|
|
7
7
|
import { game } from "../core/cachedClasses";
|
|
8
8
|
import { arrayRemove, getRandomArrayElement } from "./array";
|
|
9
|
-
import { isGreedMode } from "./run";
|
|
10
9
|
|
|
11
10
|
const NORMAL_MODE_ONLY_ITEM_POOL_TYPES = [
|
|
12
11
|
ItemPoolType.TREASURE, // 0
|
|
@@ -48,7 +47,7 @@ const GREED_MODE_ITEM_POOL_TYPES: readonly ItemPoolType[] = arrayRemove(
|
|
|
48
47
|
* Greed Mode item pools should be excluded if not playing in Greed Mode.
|
|
49
48
|
*/
|
|
50
49
|
export function getRandomItemPool(): ItemPoolType {
|
|
51
|
-
const itemPoolTypes =
|
|
50
|
+
const itemPoolTypes = game.IsGreedMode()
|
|
52
51
|
? GREED_MODE_ITEM_POOL_TYPES
|
|
53
52
|
: NORMAL_MODE_ITEM_POOL_TYPES;
|
|
54
53
|
return getRandomArrayElement(itemPoolTypes);
|
|
@@ -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
|
/**
|
package/src/functions/run.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PlayerType } from "isaac-typescript-definitions";
|
|
2
2
|
import {
|
|
3
3
|
Challenge,
|
|
4
|
-
Difficulty,
|
|
5
4
|
SeedEffect,
|
|
6
5
|
SlotVariant,
|
|
7
6
|
} from "isaac-typescript-definitions";
|
|
@@ -60,17 +59,6 @@ export function getSeedEffects(): SeedEffect[] {
|
|
|
60
59
|
);
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
/**
|
|
64
|
-
* Helper function to check if the difficulty of the current run is equal to `Difficulty.GREED` or
|
|
65
|
-
* `Difficulty.GREEDIER`.
|
|
66
|
-
*/
|
|
67
|
-
export function isGreedMode(): boolean {
|
|
68
|
-
return (
|
|
69
|
-
game.Difficulty === Difficulty.GREED ||
|
|
70
|
-
game.Difficulty === Difficulty.GREEDIER
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
62
|
/**
|
|
75
63
|
* Helper function to check whether the player is playing on a set seed (i.e. that they entered in a
|
|
76
64
|
* specific seed by pressing tab on the character selection screen). When the player resets the game
|