isaacscript-common 51.2.2 → 51.3.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 +16 -4
- package/dist/isaacscript-common.lua +43 -8
- package/dist/src/functions/bosses.d.ts +3 -2
- package/dist/src/functions/bosses.d.ts.map +1 -1
- package/dist/src/functions/bosses.lua +3 -2
- package/dist/src/functions/entities.d.ts +1 -1
- package/dist/src/functions/entities.lua +4 -4
- package/dist/src/functions/pickups.lua +2 -1
- package/dist/src/functions/slots.d.ts +11 -1
- package/dist/src/functions/slots.d.ts.map +1 -1
- package/dist/src/functions/slots.lua +13 -0
- package/dist/src/objects/chestNames.d.ts +1 -0
- package/dist/src/objects/chestNames.d.ts.map +1 -1
- package/dist/src/objects/chestNames.lua +1 -0
- package/dist/src/objects/slotNames.d.ts +23 -0
- package/dist/src/objects/slotNames.d.ts.map +1 -0
- package/dist/src/objects/slotNames.lua +26 -0
- package/dist/src/sets/bossSets.lua +1 -1
- package/dist/src/sets/storyBossEntityTypesSet.d.ts +3 -0
- package/dist/src/sets/storyBossEntityTypesSet.d.ts.map +1 -0
- package/dist/src/sets/{storyBossesSet.lua → storyBossEntityTypesSet.lua} +1 -1
- package/package.json +1 -1
- package/src/functions/bosses.ts +3 -2
- package/src/functions/entities.ts +3 -3
- package/src/functions/pickups.ts +2 -2
- package/src/functions/slots.ts +16 -0
- package/src/objects/chestNames.ts +2 -0
- package/src/objects/slotNames.ts +25 -0
- package/src/sets/bossSets.ts +1 -1
- package/src/sets/{storyBossesSet.ts → storyBossEntityTypesSet.ts} +1 -1
- package/dist/src/sets/storyBossesSet.d.ts +0 -3
- package/dist/src/sets/storyBossesSet.d.ts.map +0 -1
package/dist/index.rollup.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ import { RoomTransitionAnim } from 'isaac-typescript-definitions';
|
|
|
75
75
|
import { RoomType } from 'isaac-typescript-definitions';
|
|
76
76
|
import type { SackSubType } from 'isaac-typescript-definitions';
|
|
77
77
|
import { SeedEffect } from 'isaac-typescript-definitions';
|
|
78
|
-
import
|
|
78
|
+
import { SlotVariant } from 'isaac-typescript-definitions';
|
|
79
79
|
import type { StageID } from 'isaac-typescript-definitions';
|
|
80
80
|
import { StageType } from 'isaac-typescript-definitions';
|
|
81
81
|
import { TearFlag } from 'isaac-typescript-definitions';
|
|
@@ -4720,7 +4720,8 @@ export declare function getAliveBosses(entityType?: EntityType | -1, variant?: n
|
|
|
4720
4720
|
export declare function getAliveNPCs(entityType?: EntityType | -1, variant?: number, subType?: number, ignoreFriendly?: boolean): EntityNPC[];
|
|
4721
4721
|
|
|
4722
4722
|
/**
|
|
4723
|
-
* Helper function to get the set of every boss in the game
|
|
4723
|
+
* Helper function to get the set of every boss in the game (which is derived from the `BossID`
|
|
4724
|
+
* enum).
|
|
4724
4725
|
*
|
|
4725
4726
|
* This includes:
|
|
4726
4727
|
* - Ultra Greed
|
|
@@ -4729,7 +4730,7 @@ export declare function getAliveNPCs(entityType?: EntityType | -1, variant?: num
|
|
|
4729
4730
|
* - mini-bosses (e.g. Ultra Pride, Krampus)
|
|
4730
4731
|
* - bosses that do not appear in Boss Rooms (e.g. Uriel, Gabriel)
|
|
4731
4732
|
* - the second phase of multi-phase bosses (e.g. Mega Satan 2)
|
|
4732
|
-
* - sub-bosses of The Beast
|
|
4733
|
+
* - sub-bosses of The Beast fight (e.g. Ultra Famine, Ultra Pestilence, Ultra War, Ultra Death)
|
|
4733
4734
|
* - bosses that do not have any Boss Rooms defined due to being unfinished (e.g. Raglich)
|
|
4734
4735
|
*
|
|
4735
4736
|
* Also see the `getBossSet` and `getCombinedBossSet` functions.
|
|
@@ -7426,6 +7427,17 @@ export declare function getShootActions(controllerIndex: ControllerIndex): Butto
|
|
|
7426
7427
|
*/
|
|
7427
7428
|
export declare function getSirenHelper(familiar: EntityFamiliar): Entity | undefined;
|
|
7428
7429
|
|
|
7430
|
+
/**
|
|
7431
|
+
* Helper function to get the name of a slot, as listed in the "entities2.xml" file. Returns
|
|
7432
|
+
* "Unknown" if the provided slot variant is not valid.
|
|
7433
|
+
*
|
|
7434
|
+
* This function only works for vanilla slot variants.
|
|
7435
|
+
*
|
|
7436
|
+
* For example, `getSlotName(SlotVariant.BLOOD_DONATION_MACHINE)` would return "Blood Donation
|
|
7437
|
+
* Machine".
|
|
7438
|
+
*/
|
|
7439
|
+
export declare function getSlotName(slotVariant: SlotVariant): string;
|
|
7440
|
+
|
|
7429
7441
|
/**
|
|
7430
7442
|
* Helper function to get all of the slots in the room.
|
|
7431
7443
|
*
|
|
@@ -9489,7 +9501,7 @@ export declare function isStageWithStoryBoss(stage: LevelStage): boolean;
|
|
|
9489
9501
|
/**
|
|
9490
9502
|
* Helper function to determine if the specified entity type is an end-game story boss, like Isaac,
|
|
9491
9503
|
* Blue Baby, Mega Satan, The Beast, and so on. This is useful because certain effects should only
|
|
9492
|
-
* apply to non-story bosses, like Vanishing Twin.
|
|
9504
|
+
* apply to non-story bosses, like Vanishing Twin.
|
|
9493
9505
|
*/
|
|
9494
9506
|
export declare function isStoryBoss(entityType: EntityType): boolean;
|
|
9495
9507
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 51.
|
|
3
|
+
isaacscript-common 51.3.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -21438,7 +21438,7 @@ ____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
|
|
|
21438
21438
|
)
|
|
21439
21439
|
return ____exports
|
|
21440
21440
|
end,
|
|
21441
|
-
["src.sets.
|
|
21441
|
+
["src.sets.storyBossEntityTypesSet"] = function(...)
|
|
21442
21442
|
local ____lualib = require("lualib_bundle")
|
|
21443
21443
|
local __TS__New = ____lualib.__TS__New
|
|
21444
21444
|
local ____exports = {}
|
|
@@ -21446,7 +21446,7 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescri
|
|
|
21446
21446
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
21447
21447
|
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
21448
21448
|
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
21449
|
-
____exports.
|
|
21449
|
+
____exports.STORY_BOSS_ENTITY_TYPES_SET = __TS__New(ReadonlySet, {
|
|
21450
21450
|
EntityType.MOM,
|
|
21451
21451
|
EntityType.MOMS_HEART,
|
|
21452
21452
|
EntityType.SATAN,
|
|
@@ -21576,8 +21576,8 @@ local ____constants = require("src.core.constants")
|
|
|
21576
21576
|
local VectorZero = ____constants.VectorZero
|
|
21577
21577
|
local ____entitiesWithArmorSet = require("src.sets.entitiesWithArmorSet")
|
|
21578
21578
|
local ENTITIES_WITH_ARMOR_SET = ____entitiesWithArmorSet.ENTITIES_WITH_ARMOR_SET
|
|
21579
|
-
local
|
|
21580
|
-
local
|
|
21579
|
+
local ____storyBossEntityTypesSet = require("src.sets.storyBossEntityTypesSet")
|
|
21580
|
+
local STORY_BOSS_ENTITY_TYPES_SET = ____storyBossEntityTypesSet.STORY_BOSS_ENTITY_TYPES_SET
|
|
21581
21581
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
21582
21582
|
local getIsaacAPIClassName = ____isaacAPIClass.getIsaacAPIClassName
|
|
21583
21583
|
local ____random = require("src.functions.random")
|
|
@@ -21818,7 +21818,7 @@ function ____exports.isEntityMoving(self, entity, threshold)
|
|
|
21818
21818
|
return doesVectorHaveLength(nil, entity.Velocity, threshold)
|
|
21819
21819
|
end
|
|
21820
21820
|
function ____exports.isStoryBoss(self, entityType)
|
|
21821
|
-
return
|
|
21821
|
+
return STORY_BOSS_ENTITY_TYPES_SET:has(entityType)
|
|
21822
21822
|
end
|
|
21823
21823
|
function ____exports.parseEntityID(self, entityID)
|
|
21824
21824
|
local entityIDArray = __TS__StringSplit(entityID, ".")
|
|
@@ -39681,6 +39681,33 @@ function PlayerReorderedCallbacks.prototype.____constructor(self, postPEffectUpd
|
|
|
39681
39681
|
self.postPlayerRenderReordered = postPlayerRenderReordered
|
|
39682
39682
|
self.postPlayerUpdateReordered = postPlayerUpdateReordered
|
|
39683
39683
|
end
|
|
39684
|
+
return ____exports
|
|
39685
|
+
end,
|
|
39686
|
+
["src.objects.slotNames"] = function(...)
|
|
39687
|
+
local ____exports = {}
|
|
39688
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
39689
|
+
local SlotVariant = ____isaac_2Dtypescript_2Ddefinitions.SlotVariant
|
|
39690
|
+
____exports.DEFAULT_SLOT_NAME = "Unknown"
|
|
39691
|
+
____exports.SLOT_NAMES = {
|
|
39692
|
+
[SlotVariant.SLOT_MACHINE] = "Slot Machine",
|
|
39693
|
+
[SlotVariant.BLOOD_DONATION_MACHINE] = "Blood Donation Machine",
|
|
39694
|
+
[SlotVariant.FORTUNE_TELLING_MACHINE] = "Fortune Telling Machine",
|
|
39695
|
+
[SlotVariant.BEGGAR] = "Beggar",
|
|
39696
|
+
[SlotVariant.DEVIL_BEGGAR] = "Devil Beggar",
|
|
39697
|
+
[SlotVariant.SHELL_GAME] = "Shell Game",
|
|
39698
|
+
[SlotVariant.KEY_MASTER] = "Key Master",
|
|
39699
|
+
[SlotVariant.DONATION_MACHINE] = "Donation Machine",
|
|
39700
|
+
[SlotVariant.BOMB_BUM] = "Bomb Bum",
|
|
39701
|
+
[SlotVariant.SHOP_RESTOCK_MACHINE] = "Shop Restock Machine",
|
|
39702
|
+
[SlotVariant.GREED_DONATION_MACHINE] = "Greed Donation Machine",
|
|
39703
|
+
[SlotVariant.MOMS_DRESSING_TABLE] = "Mom's Dressing Table",
|
|
39704
|
+
[SlotVariant.BATTERY_BUM] = "Battery Bum",
|
|
39705
|
+
[SlotVariant.ISAAC_SECRET] = "Isaac (secret)",
|
|
39706
|
+
[SlotVariant.HELL_GAME] = "Hell Game",
|
|
39707
|
+
[SlotVariant.CRANE_GAME] = "Crane Game",
|
|
39708
|
+
[SlotVariant.CONFESSIONAL] = "Confessional",
|
|
39709
|
+
[SlotVariant.ROTTEN_BEGGAR] = "Rotten Beggar"
|
|
39710
|
+
}
|
|
39684
39711
|
return ____exports
|
|
39685
39712
|
end,
|
|
39686
39713
|
["src.functions.slots"] = function(...)
|
|
@@ -39689,6 +39716,9 @@ local __TS__New = ____lualib.__TS__New
|
|
|
39689
39716
|
local ____exports = {}
|
|
39690
39717
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
39691
39718
|
local SlotVariant = ____isaac_2Dtypescript_2Ddefinitions.SlotVariant
|
|
39719
|
+
local ____slotNames = require("src.objects.slotNames")
|
|
39720
|
+
local DEFAULT_SLOT_NAME = ____slotNames.DEFAULT_SLOT_NAME
|
|
39721
|
+
local SLOT_NAMES = ____slotNames.SLOT_NAMES
|
|
39692
39722
|
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
39693
39723
|
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
39694
39724
|
local ____entityTypes = require("src.functions.entityTypes")
|
|
@@ -39704,6 +39734,9 @@ local SLOT_MACHINE_VARIANTS = __TS__New(ReadonlySet, {
|
|
|
39704
39734
|
SlotVariant.CRANE_GAME,
|
|
39705
39735
|
SlotVariant.CONFESSIONAL
|
|
39706
39736
|
})
|
|
39737
|
+
function ____exports.getSlotName(self, slotVariant)
|
|
39738
|
+
return SLOT_NAMES[slotVariant] or DEFAULT_SLOT_NAME
|
|
39739
|
+
end
|
|
39707
39740
|
function ____exports.isSlotMachine(self, entity)
|
|
39708
39741
|
if not isSlot(nil, entity) then
|
|
39709
39742
|
return false
|
|
@@ -39921,6 +39954,7 @@ return ____exports
|
|
|
39921
39954
|
local ____exports = {}
|
|
39922
39955
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
39923
39956
|
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
39957
|
+
____exports.DEFAULT_CHEST_NAME = "Unknown"
|
|
39924
39958
|
____exports.CHEST_NAMES = {
|
|
39925
39959
|
[PickupVariant.CHEST] = "Chest",
|
|
39926
39960
|
[PickupVariant.BOMB_CHEST] = "Bomb Chest",
|
|
@@ -40394,6 +40428,7 @@ local BOMB_NAMES = ____bombNames.BOMB_NAMES
|
|
|
40394
40428
|
local DEFAULT_BOMB_NAME = ____bombNames.DEFAULT_BOMB_NAME
|
|
40395
40429
|
local ____chestNames = require("src.objects.chestNames")
|
|
40396
40430
|
local CHEST_NAMES = ____chestNames.CHEST_NAMES
|
|
40431
|
+
local DEFAULT_CHEST_NAME = ____chestNames.DEFAULT_CHEST_NAME
|
|
40397
40432
|
local ____coinNames = require("src.objects.coinNames")
|
|
40398
40433
|
local COIN_NAMES = ____coinNames.COIN_NAMES
|
|
40399
40434
|
local DEFAULT_COIN_NAME = ____coinNames.DEFAULT_COIN_NAME
|
|
@@ -40428,7 +40463,7 @@ function ____exports.getBombName(self, bombSubType)
|
|
|
40428
40463
|
end
|
|
40429
40464
|
function ____exports.getChestName(self, pickupVariant)
|
|
40430
40465
|
local chestNames = CHEST_NAMES
|
|
40431
|
-
return chestNames[pickupVariant] or
|
|
40466
|
+
return chestNames[pickupVariant] or DEFAULT_CHEST_NAME
|
|
40432
40467
|
end
|
|
40433
40468
|
function ____exports.getCoinName(self, coinSubType)
|
|
40434
40469
|
return COIN_NAMES[coinSubType] or DEFAULT_COIN_NAME
|
|
@@ -44307,7 +44342,7 @@ ____exports.ALL_BOSSES_SET = __TS__New(
|
|
|
44307
44342
|
ReadonlySet,
|
|
44308
44343
|
__TS__ArrayFilter(
|
|
44309
44344
|
BOSS_IDS,
|
|
44310
|
-
function(____, bossID) return bossID
|
|
44345
|
+
function(____, bossID) return bossID ~= BossID.RAGLICH end
|
|
44311
44346
|
)
|
|
44312
44347
|
)
|
|
44313
44348
|
local STORY_BOSS_IDS_SET = __TS__New(ReadonlySet, {
|
|
@@ -16,7 +16,8 @@ import { EntityType } from "isaac-typescript-definitions";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function getAliveBosses(entityType?: EntityType | -1, variant?: number, subType?: number, ignoreFriendly?: boolean): EntityNPC[];
|
|
18
18
|
/**
|
|
19
|
-
* Helper function to get the set of every boss in the game
|
|
19
|
+
* Helper function to get the set of every boss in the game (which is derived from the `BossID`
|
|
20
|
+
* enum).
|
|
20
21
|
*
|
|
21
22
|
* This includes:
|
|
22
23
|
* - Ultra Greed
|
|
@@ -25,7 +26,7 @@ export declare function getAliveBosses(entityType?: EntityType | -1, variant?: n
|
|
|
25
26
|
* - mini-bosses (e.g. Ultra Pride, Krampus)
|
|
26
27
|
* - bosses that do not appear in Boss Rooms (e.g. Uriel, Gabriel)
|
|
27
28
|
* - the second phase of multi-phase bosses (e.g. Mega Satan 2)
|
|
28
|
-
* - sub-bosses of The Beast
|
|
29
|
+
* - sub-bosses of The Beast fight (e.g. Ultra Famine, Ultra Pestilence, Ultra War, Ultra Death)
|
|
29
30
|
* - bosses that do not have any Boss Rooms defined due to being unfinished (e.g. Raglich)
|
|
30
31
|
*
|
|
31
32
|
* Also see the `getBossSet` and `getCombinedBossSet` functions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAe,MAAM,8BAA8B,CAAC;AA4BvE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,SAAS,EAAE,CAGb;AAED
|
|
1
|
+
{"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACV,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAe,MAAM,8BAA8B,CAAC;AA4BvE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,SAAS,EAAE,CAGb;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAC7B,kBAAkB,UAAO,GACxB,WAAW,CAAC,MAAM,CAAC,CAIrB;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAOjC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CACvB,UAAU,CAAC,EAAE,UAAU,EACvB,OAAO,CAAC,EAAE,GAAG,EACb,OAAO,CAAC,EAAE,GAAG,EACb,cAAc,UAAQ,GACrB,SAAS,EAAE,CAGb;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,GAChB,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAEjC;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,MAAM,GACb,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,CAE5B;AAED,6FAA6F;AAC7F,wBAAgB,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAE7C;AAmCD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACvB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,SAAS,GAAE,IAAI,GAAG,GAAG,GAAG,SAAqB,EAC7C,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAiCX;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAYX"}
|
|
@@ -76,7 +76,8 @@ function ____exports.getAliveBosses(self, entityType, variant, subType, ignoreFr
|
|
|
76
76
|
function(____, aliveNPC) return aliveNPC:IsBoss() end
|
|
77
77
|
)
|
|
78
78
|
end
|
|
79
|
-
--- Helper function to get the set of every boss in the game
|
|
79
|
+
--- Helper function to get the set of every boss in the game (which is derived from the `BossID`
|
|
80
|
+
-- enum).
|
|
80
81
|
--
|
|
81
82
|
-- This includes:
|
|
82
83
|
-- - Ultra Greed
|
|
@@ -85,7 +86,7 @@ end
|
|
|
85
86
|
-- - mini-bosses (e.g. Ultra Pride, Krampus)
|
|
86
87
|
-- - bosses that do not appear in Boss Rooms (e.g. Uriel, Gabriel)
|
|
87
88
|
-- - the second phase of multi-phase bosses (e.g. Mega Satan 2)
|
|
88
|
-
-- - sub-bosses of The Beast
|
|
89
|
+
-- - sub-bosses of The Beast fight (e.g. Ultra Famine, Ultra Pestilence, Ultra War, Ultra Death)
|
|
89
90
|
-- - bosses that do not have any Boss Rooms defined due to being unfinished (e.g. Raglich)
|
|
90
91
|
--
|
|
91
92
|
-- Also see the `getBossSet` and `getCombinedBossSet` functions.
|
|
@@ -127,7 +127,7 @@ export declare function isEntityMoving(entity: Entity, threshold?: number): bool
|
|
|
127
127
|
/**
|
|
128
128
|
* Helper function to determine if the specified entity type is an end-game story boss, like Isaac,
|
|
129
129
|
* Blue Baby, Mega Satan, The Beast, and so on. This is useful because certain effects should only
|
|
130
|
-
* apply to non-story bosses, like Vanishing Twin.
|
|
130
|
+
* apply to non-story bosses, like Vanishing Twin.
|
|
131
131
|
*/
|
|
132
132
|
export declare function isStoryBoss(entityType: EntityType): boolean;
|
|
133
133
|
/**
|
|
@@ -16,8 +16,8 @@ local ____constants = require("src.core.constants")
|
|
|
16
16
|
local VectorZero = ____constants.VectorZero
|
|
17
17
|
local ____entitiesWithArmorSet = require("src.sets.entitiesWithArmorSet")
|
|
18
18
|
local ENTITIES_WITH_ARMOR_SET = ____entitiesWithArmorSet.ENTITIES_WITH_ARMOR_SET
|
|
19
|
-
local
|
|
20
|
-
local
|
|
19
|
+
local ____storyBossEntityTypesSet = require("src.sets.storyBossEntityTypesSet")
|
|
20
|
+
local STORY_BOSS_ENTITY_TYPES_SET = ____storyBossEntityTypesSet.STORY_BOSS_ENTITY_TYPES_SET
|
|
21
21
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
22
22
|
local getIsaacAPIClassName = ____isaacAPIClass.getIsaacAPIClassName
|
|
23
23
|
local ____random = require("src.functions.random")
|
|
@@ -352,9 +352,9 @@ function ____exports.isEntityMoving(self, entity, threshold)
|
|
|
352
352
|
end
|
|
353
353
|
--- Helper function to determine if the specified entity type is an end-game story boss, like Isaac,
|
|
354
354
|
-- Blue Baby, Mega Satan, The Beast, and so on. This is useful because certain effects should only
|
|
355
|
-
-- apply to non-story bosses, like Vanishing Twin.
|
|
355
|
+
-- apply to non-story bosses, like Vanishing Twin.
|
|
356
356
|
function ____exports.isStoryBoss(self, entityType)
|
|
357
|
-
return
|
|
357
|
+
return STORY_BOSS_ENTITY_TYPES_SET:has(entityType)
|
|
358
358
|
end
|
|
359
359
|
--- Helper function to parse a string that contains an entity type, a variant, and a sub-type,
|
|
360
360
|
-- separated by periods.
|
|
@@ -11,6 +11,7 @@ local BOMB_NAMES = ____bombNames.BOMB_NAMES
|
|
|
11
11
|
local DEFAULT_BOMB_NAME = ____bombNames.DEFAULT_BOMB_NAME
|
|
12
12
|
local ____chestNames = require("src.objects.chestNames")
|
|
13
13
|
local CHEST_NAMES = ____chestNames.CHEST_NAMES
|
|
14
|
+
local DEFAULT_CHEST_NAME = ____chestNames.DEFAULT_CHEST_NAME
|
|
14
15
|
local ____coinNames = require("src.objects.coinNames")
|
|
15
16
|
local COIN_NAMES = ____coinNames.COIN_NAMES
|
|
16
17
|
local DEFAULT_COIN_NAME = ____coinNames.DEFAULT_COIN_NAME
|
|
@@ -64,7 +65,7 @@ end
|
|
|
64
65
|
-- For example, `getChestName(PickupVariant.SPIKED_CHEST)` would return "Spiked Chest".
|
|
65
66
|
function ____exports.getChestName(self, pickupVariant)
|
|
66
67
|
local chestNames = CHEST_NAMES
|
|
67
|
-
return chestNames[pickupVariant] or
|
|
68
|
+
return chestNames[pickupVariant] or DEFAULT_CHEST_NAME
|
|
68
69
|
end
|
|
69
70
|
--- Helper function to get the name of a coin, as listed in the "entities2.xml" file. Returns
|
|
70
71
|
-- "Unknown" if the provided coin sub-type is not valid.
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { SlotVariant } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to get the name of a slot, as listed in the "entities2.xml" file. Returns
|
|
4
|
+
* "Unknown" if the provided slot variant is not valid.
|
|
5
|
+
*
|
|
6
|
+
* This function only works for vanilla slot variants.
|
|
7
|
+
*
|
|
8
|
+
* For example, `getSlotName(SlotVariant.BLOOD_DONATION_MACHINE)` would return "Blood Donation
|
|
9
|
+
* Machine".
|
|
10
|
+
*/
|
|
11
|
+
export declare function getSlotName(slotVariant: SlotVariant): string;
|
|
2
12
|
/** Returns true for the specific variants of `EntityType.SLOT` that are machines. */
|
|
3
13
|
export declare function isSlotMachine(entity: Entity): boolean;
|
|
4
14
|
//# sourceMappingURL=slots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../src/functions/slots.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../src/functions/slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAiB3D;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAI5D;AAED,qFAAqF;AACrF,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAMrD"}
|
|
@@ -3,6 +3,9 @@ local __TS__New = ____lualib.__TS__New
|
|
|
3
3
|
local ____exports = {}
|
|
4
4
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
5
5
|
local SlotVariant = ____isaac_2Dtypescript_2Ddefinitions.SlotVariant
|
|
6
|
+
local ____slotNames = require("src.objects.slotNames")
|
|
7
|
+
local DEFAULT_SLOT_NAME = ____slotNames.DEFAULT_SLOT_NAME
|
|
8
|
+
local SLOT_NAMES = ____slotNames.SLOT_NAMES
|
|
6
9
|
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
7
10
|
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
8
11
|
local ____entityTypes = require("src.functions.entityTypes")
|
|
@@ -18,6 +21,16 @@ local SLOT_MACHINE_VARIANTS = __TS__New(ReadonlySet, {
|
|
|
18
21
|
SlotVariant.CRANE_GAME,
|
|
19
22
|
SlotVariant.CONFESSIONAL
|
|
20
23
|
})
|
|
24
|
+
--- Helper function to get the name of a slot, as listed in the "entities2.xml" file. Returns
|
|
25
|
+
-- "Unknown" if the provided slot variant is not valid.
|
|
26
|
+
--
|
|
27
|
+
-- This function only works for vanilla slot variants.
|
|
28
|
+
--
|
|
29
|
+
-- For example, `getSlotName(SlotVariant.BLOOD_DONATION_MACHINE)` would return "Blood Donation
|
|
30
|
+
-- Machine".
|
|
31
|
+
function ____exports.getSlotName(self, slotVariant)
|
|
32
|
+
return SLOT_NAMES[slotVariant] or DEFAULT_SLOT_NAME
|
|
33
|
+
end
|
|
21
34
|
--- Returns true for the specific variants of `EntityType.SLOT` that are machines.
|
|
22
35
|
function ____exports.isSlotMachine(self, entity)
|
|
23
36
|
if not isSlot(nil, entity) then
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chestNames.d.ts","sourceRoot":"","sources":["../../../src/objects/chestNames.ts"],"names":[],"mappings":"AAGA,kCAAkC;AAClC,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAamD,CAAC"}
|
|
1
|
+
{"version":3,"file":"chestNames.d.ts","sourceRoot":"","sources":["../../../src/objects/chestNames.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,kCAAkC;AAClC,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAamD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
|
|
4
|
+
____exports.DEFAULT_CHEST_NAME = "Unknown"
|
|
4
5
|
--- Taken from "entities2.xml".
|
|
5
6
|
____exports.CHEST_NAMES = {
|
|
6
7
|
[PickupVariant.CHEST] = "Chest",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const DEFAULT_SLOT_NAME = "Unknown";
|
|
2
|
+
/** Taken from "entities2.xml". */
|
|
3
|
+
export declare const SLOT_NAMES: {
|
|
4
|
+
readonly 1: "Slot Machine";
|
|
5
|
+
readonly 2: "Blood Donation Machine";
|
|
6
|
+
readonly 3: "Fortune Telling Machine";
|
|
7
|
+
readonly 4: "Beggar";
|
|
8
|
+
readonly 5: "Devil Beggar";
|
|
9
|
+
readonly 6: "Shell Game";
|
|
10
|
+
readonly 7: "Key Master";
|
|
11
|
+
readonly 8: "Donation Machine";
|
|
12
|
+
readonly 9: "Bomb Bum";
|
|
13
|
+
readonly 10: "Shop Restock Machine";
|
|
14
|
+
readonly 11: "Greed Donation Machine";
|
|
15
|
+
readonly 12: "Mom's Dressing Table";
|
|
16
|
+
readonly 13: "Battery Bum";
|
|
17
|
+
readonly 14: "Isaac (secret)";
|
|
18
|
+
readonly 15: "Hell Game";
|
|
19
|
+
readonly 16: "Crane Game";
|
|
20
|
+
readonly 17: "Confessional";
|
|
21
|
+
readonly 18: "Rotten Beggar";
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=slotNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slotNames.d.ts","sourceRoot":"","sources":["../../../src/objects/slotNames.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAE3C,kCAAkC;AAClC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAmByB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local SlotVariant = ____isaac_2Dtypescript_2Ddefinitions.SlotVariant
|
|
4
|
+
____exports.DEFAULT_SLOT_NAME = "Unknown"
|
|
5
|
+
--- Taken from "entities2.xml".
|
|
6
|
+
____exports.SLOT_NAMES = {
|
|
7
|
+
[SlotVariant.SLOT_MACHINE] = "Slot Machine",
|
|
8
|
+
[SlotVariant.BLOOD_DONATION_MACHINE] = "Blood Donation Machine",
|
|
9
|
+
[SlotVariant.FORTUNE_TELLING_MACHINE] = "Fortune Telling Machine",
|
|
10
|
+
[SlotVariant.BEGGAR] = "Beggar",
|
|
11
|
+
[SlotVariant.DEVIL_BEGGAR] = "Devil Beggar",
|
|
12
|
+
[SlotVariant.SHELL_GAME] = "Shell Game",
|
|
13
|
+
[SlotVariant.KEY_MASTER] = "Key Master",
|
|
14
|
+
[SlotVariant.DONATION_MACHINE] = "Donation Machine",
|
|
15
|
+
[SlotVariant.BOMB_BUM] = "Bomb Bum",
|
|
16
|
+
[SlotVariant.SHOP_RESTOCK_MACHINE] = "Shop Restock Machine",
|
|
17
|
+
[SlotVariant.GREED_DONATION_MACHINE] = "Greed Donation Machine",
|
|
18
|
+
[SlotVariant.MOMS_DRESSING_TABLE] = "Mom's Dressing Table",
|
|
19
|
+
[SlotVariant.BATTERY_BUM] = "Battery Bum",
|
|
20
|
+
[SlotVariant.ISAAC_SECRET] = "Isaac (secret)",
|
|
21
|
+
[SlotVariant.HELL_GAME] = "Hell Game",
|
|
22
|
+
[SlotVariant.CRANE_GAME] = "Crane Game",
|
|
23
|
+
[SlotVariant.CONFESSIONAL] = "Confessional",
|
|
24
|
+
[SlotVariant.ROTTEN_BEGGAR] = "Rotten Beggar"
|
|
25
|
+
}
|
|
26
|
+
return ____exports
|
|
@@ -365,7 +365,7 @@ ____exports.ALL_BOSSES_SET = __TS__New(
|
|
|
365
365
|
ReadonlySet,
|
|
366
366
|
__TS__ArrayFilter(
|
|
367
367
|
BOSS_IDS,
|
|
368
|
-
function(____, bossID) return bossID
|
|
368
|
+
function(____, bossID) return bossID ~= BossID.RAGLICH end
|
|
369
369
|
)
|
|
370
370
|
)
|
|
371
371
|
local STORY_BOSS_IDS_SET = __TS__New(ReadonlySet, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storyBossEntityTypesSet.d.ts","sourceRoot":"","sources":["../../../src/sets/storyBossEntityTypesSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,eAAO,MAAM,2BAA2B,yBActC,CAAC"}
|
|
@@ -5,7 +5,7 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
|
|
|
5
5
|
local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
|
|
6
6
|
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
7
7
|
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
8
|
-
____exports.
|
|
8
|
+
____exports.STORY_BOSS_ENTITY_TYPES_SET = __TS__New(ReadonlySet, {
|
|
9
9
|
EntityType.MOM,
|
|
10
10
|
EntityType.MOMS_HEART,
|
|
11
11
|
EntityType.SATAN,
|
package/package.json
CHANGED
package/src/functions/bosses.ts
CHANGED
|
@@ -56,7 +56,8 @@ export function getAliveBosses(
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* Helper function to get the set of every boss in the game
|
|
59
|
+
* Helper function to get the set of every boss in the game (which is derived from the `BossID`
|
|
60
|
+
* enum).
|
|
60
61
|
*
|
|
61
62
|
* This includes:
|
|
62
63
|
* - Ultra Greed
|
|
@@ -65,7 +66,7 @@ export function getAliveBosses(
|
|
|
65
66
|
* - mini-bosses (e.g. Ultra Pride, Krampus)
|
|
66
67
|
* - bosses that do not appear in Boss Rooms (e.g. Uriel, Gabriel)
|
|
67
68
|
* - the second phase of multi-phase bosses (e.g. Mega Satan 2)
|
|
68
|
-
* - sub-bosses of The Beast
|
|
69
|
+
* - sub-bosses of The Beast fight (e.g. Ultra Famine, Ultra Pestilence, Ultra War, Ultra Death)
|
|
69
70
|
* - bosses that do not have any Boss Rooms defined due to being unfinished (e.g. Raglich)
|
|
70
71
|
*
|
|
71
72
|
* Also see the `getBossSet` and `getCombinedBossSet` functions.
|
|
@@ -3,7 +3,7 @@ import { EntityFlag } from "isaac-typescript-definitions";
|
|
|
3
3
|
import { game } from "../core/cachedClasses";
|
|
4
4
|
import { VectorZero } from "../core/constants";
|
|
5
5
|
import { ENTITIES_WITH_ARMOR_SET } from "../sets/entitiesWithArmorSet";
|
|
6
|
-
import {
|
|
6
|
+
import { STORY_BOSS_ENTITY_TYPES_SET } from "../sets/storyBossEntityTypesSet";
|
|
7
7
|
import type { AnyEntity } from "../types/AnyEntity";
|
|
8
8
|
import type { EntityID } from "../types/EntityID";
|
|
9
9
|
import { getIsaacAPIClassName } from "./isaacAPIClass";
|
|
@@ -367,10 +367,10 @@ export function isEntityMoving(entity: Entity, threshold = 0.01): boolean {
|
|
|
367
367
|
/**
|
|
368
368
|
* Helper function to determine if the specified entity type is an end-game story boss, like Isaac,
|
|
369
369
|
* Blue Baby, Mega Satan, The Beast, and so on. This is useful because certain effects should only
|
|
370
|
-
* apply to non-story bosses, like Vanishing Twin.
|
|
370
|
+
* apply to non-story bosses, like Vanishing Twin.
|
|
371
371
|
*/
|
|
372
372
|
export function isStoryBoss(entityType: EntityType): boolean {
|
|
373
|
-
return
|
|
373
|
+
return STORY_BOSS_ENTITY_TYPES_SET.has(entityType);
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
/**
|
package/src/functions/pickups.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
import { CHEST_PICKUP_VARIANTS_SET } from "../core/constants";
|
|
11
11
|
import { BATTERY_NAMES, DEFAULT_BATTERY_NAME } from "../objects/batteryNames";
|
|
12
12
|
import { BOMB_NAMES, DEFAULT_BOMB_NAME } from "../objects/bombNames";
|
|
13
|
-
import { CHEST_NAMES } from "../objects/chestNames";
|
|
13
|
+
import { CHEST_NAMES, DEFAULT_CHEST_NAME } from "../objects/chestNames";
|
|
14
14
|
import { COIN_NAMES, DEFAULT_COIN_NAME } from "../objects/coinNames";
|
|
15
15
|
import {
|
|
16
16
|
COIN_SUB_TYPE_TO_VALUE,
|
|
@@ -62,7 +62,7 @@ export function getBombName(bombSubType: BombSubType): string {
|
|
|
62
62
|
*/
|
|
63
63
|
export function getChestName(pickupVariant: PickupVariant): string {
|
|
64
64
|
const chestNames = CHEST_NAMES as Partial<Record<PickupVariant, string>>;
|
|
65
|
-
return chestNames[pickupVariant] ??
|
|
65
|
+
return chestNames[pickupVariant] ?? DEFAULT_CHEST_NAME;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
package/src/functions/slots.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SlotVariant } from "isaac-typescript-definitions";
|
|
2
|
+
import { DEFAULT_SLOT_NAME, SLOT_NAMES } from "../objects/slotNames";
|
|
2
3
|
import { ReadonlySet } from "../types/ReadonlySet";
|
|
3
4
|
import { isSlot } from "./entityTypes";
|
|
4
5
|
|
|
@@ -14,6 +15,21 @@ const SLOT_MACHINE_VARIANTS = new ReadonlySet<SlotVariant>([
|
|
|
14
15
|
SlotVariant.CONFESSIONAL, // 17
|
|
15
16
|
]);
|
|
16
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Helper function to get the name of a slot, as listed in the "entities2.xml" file. Returns
|
|
20
|
+
* "Unknown" if the provided slot variant is not valid.
|
|
21
|
+
*
|
|
22
|
+
* This function only works for vanilla slot variants.
|
|
23
|
+
*
|
|
24
|
+
* For example, `getSlotName(SlotVariant.BLOOD_DONATION_MACHINE)` would return "Blood Donation
|
|
25
|
+
* Machine".
|
|
26
|
+
*/
|
|
27
|
+
export function getSlotName(slotVariant: SlotVariant): string {
|
|
28
|
+
// Handle modded slots.
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
30
|
+
return SLOT_NAMES[slotVariant] ?? DEFAULT_SLOT_NAME;
|
|
31
|
+
}
|
|
32
|
+
|
|
17
33
|
/** Returns true for the specific variants of `EntityType.SLOT` that are machines. */
|
|
18
34
|
export function isSlotMachine(entity: Entity): boolean {
|
|
19
35
|
if (!isSlot(entity)) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PickupVariant } from "isaac-typescript-definitions";
|
|
2
2
|
import type { CHEST_PICKUP_VARIANTS } from "../core/constants";
|
|
3
3
|
|
|
4
|
+
export const DEFAULT_CHEST_NAME = "Unknown";
|
|
5
|
+
|
|
4
6
|
/** Taken from "entities2.xml". */
|
|
5
7
|
export const CHEST_NAMES = {
|
|
6
8
|
[PickupVariant.CHEST]: "Chest", // 50
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SlotVariant } from "isaac-typescript-definitions";
|
|
2
|
+
|
|
3
|
+
export const DEFAULT_SLOT_NAME = "Unknown";
|
|
4
|
+
|
|
5
|
+
/** Taken from "entities2.xml". */
|
|
6
|
+
export const SLOT_NAMES = {
|
|
7
|
+
[SlotVariant.SLOT_MACHINE]: "Slot Machine", // 1
|
|
8
|
+
[SlotVariant.BLOOD_DONATION_MACHINE]: "Blood Donation Machine", // 2
|
|
9
|
+
[SlotVariant.FORTUNE_TELLING_MACHINE]: "Fortune Telling Machine", // 3
|
|
10
|
+
[SlotVariant.BEGGAR]: "Beggar", // 4
|
|
11
|
+
[SlotVariant.DEVIL_BEGGAR]: "Devil Beggar", // 5
|
|
12
|
+
[SlotVariant.SHELL_GAME]: "Shell Game", // 6
|
|
13
|
+
[SlotVariant.KEY_MASTER]: "Key Master", // 7
|
|
14
|
+
[SlotVariant.DONATION_MACHINE]: "Donation Machine", // 8
|
|
15
|
+
[SlotVariant.BOMB_BUM]: "Bomb Bum", // 9
|
|
16
|
+
[SlotVariant.SHOP_RESTOCK_MACHINE]: "Shop Restock Machine", // 10
|
|
17
|
+
[SlotVariant.GREED_DONATION_MACHINE]: "Greed Donation Machine", // 11
|
|
18
|
+
[SlotVariant.MOMS_DRESSING_TABLE]: "Mom's Dressing Table", // 12
|
|
19
|
+
[SlotVariant.BATTERY_BUM]: "Battery Bum", // 13
|
|
20
|
+
[SlotVariant.ISAAC_SECRET]: "Isaac (secret)", // 14
|
|
21
|
+
[SlotVariant.HELL_GAME]: "Hell Game", // 15
|
|
22
|
+
[SlotVariant.CRANE_GAME]: "Crane Game", // 16
|
|
23
|
+
[SlotVariant.CONFESSIONAL]: "Confessional", // 17
|
|
24
|
+
[SlotVariant.ROTTEN_BEGGAR]: "Rotten Beggar", // 18
|
|
25
|
+
} as const satisfies Record<SlotVariant, string>;
|
package/src/sets/bossSets.ts
CHANGED
|
@@ -530,7 +530,7 @@ export const STAGE_TO_COMBINED_BOSS_SET_MAP = new ReadonlyMap<
|
|
|
530
530
|
]);
|
|
531
531
|
|
|
532
532
|
export const ALL_BOSSES_SET = new ReadonlySet<BossID>(
|
|
533
|
-
BOSS_IDS.filter((bossID) => bossID
|
|
533
|
+
BOSS_IDS.filter((bossID) => bossID !== BossID.RAGLICH),
|
|
534
534
|
);
|
|
535
535
|
|
|
536
536
|
const STORY_BOSS_IDS_SET = new ReadonlySet([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityType } from "isaac-typescript-definitions";
|
|
2
2
|
import { ReadonlySet } from "../types/ReadonlySet";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const STORY_BOSS_ENTITY_TYPES_SET = new ReadonlySet<EntityType>([
|
|
5
5
|
EntityType.MOM, // 45
|
|
6
6
|
EntityType.MOMS_HEART, // 78
|
|
7
7
|
EntityType.SATAN, // 84
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storyBossesSet.d.ts","sourceRoot":"","sources":["../../../src/sets/storyBossesSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,eAAO,MAAM,gBAAgB,yBAc3B,CAAC"}
|