isaacscript-common 81.0.5 → 82.0.1
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/arrays/cachedEnumValues.d.ts +17 -5
- package/dist/arrays/cachedEnumValues.d.ts.map +1 -1
- package/dist/arrays/cachedEnumValues.lua +1 -1
- package/dist/classes/features/other/CustomStages.lua +2 -2
- package/dist/classes/features/other/Pause.lua +2 -2
- package/dist/classes/features/other/PreventGridEntityRespawn.lua +1 -1
- package/dist/functions/bosses.d.ts +4 -2
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.lua +8 -7
- package/dist/functions/gridEntities.lua +1 -1
- package/dist/functions/logMisc.d.ts.map +1 -1
- package/dist/functions/logMisc.lua +9 -3
- package/dist/index.rollup.d.ts +4 -1
- package/dist/isaacscript-common.lua +162 -102
- package/dist/objects/versusScreenBackgroundColors.d.ts +8 -0
- package/dist/objects/versusScreenBackgroundColors.d.ts.map +1 -1
- package/dist/objects/versusScreenBackgroundColors.lua +20 -7
- package/dist/objects/versusScreenDirtSpotColors.d.ts +8 -0
- package/dist/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
- package/dist/objects/versusScreenDirtSpotColors.lua +20 -7
- package/dist/sets/bossSets.d.ts +3 -2
- package/dist/sets/bossSets.d.ts.map +1 -1
- package/dist/sets/bossSets.lua +78 -69
- package/package.json +2 -2
- package/src/arrays/cachedEnumValues.ts +23 -39
- package/src/classes/features/other/CustomStages.ts +2 -2
- package/src/classes/features/other/Pause.ts +2 -2
- package/src/classes/features/other/PreventGridEntityRespawn.ts +1 -1
- package/src/functions/bosses.ts +9 -11
- package/src/functions/gridEntities.ts +1 -1
- package/src/functions/logMisc.ts +9 -3
- package/src/objects/versusScreenBackgroundColors.ts +21 -7
- package/src/objects/versusScreenDirtSpotColors.ts +21 -7
- package/src/sets/bossSets.ts +97 -117
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import { ActiveSlot, BossID,
|
|
1
|
+
import { ActiveSlot, BossID, ControllerIndex, DoorSlot, GridEntityType, GridEntityXMLType, ItemConfigCardType, ItemPoolType, Keyboard, PillColor, PlayerForm, PocketItemSlot, RoomShape, SeedEffect, SoundEffect, TrinketSlot } from "isaac-typescript-definitions";
|
|
2
2
|
import { HealthType } from "../enums/HealthType";
|
|
3
3
|
import { ModCallbackCustom } from "../enums/ModCallbackCustom";
|
|
4
4
|
import { PlayerStat } from "../enums/PlayerStat";
|
|
5
5
|
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
6
6
|
export declare const ACTIVE_SLOT_VALUES: readonly ActiveSlot[];
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const CACHE_FLAG_VALUES: readonly
|
|
7
|
+
export declare const BOSS_ID_VALUES: readonly BossID[];
|
|
8
|
+
export declare const CACHE_FLAG_VALUES: readonly (number & {
|
|
9
|
+
readonly __bitFlagBrand: symbol;
|
|
10
|
+
} & {
|
|
11
|
+
readonly __cacheFlagBrand: symbol;
|
|
12
|
+
})[];
|
|
9
13
|
export declare const CONTROLLER_INDEX_VALUES: readonly ControllerIndex[];
|
|
10
|
-
export declare const DOOR_SLOT_FLAG_VALUES: readonly
|
|
14
|
+
export declare const DOOR_SLOT_FLAG_VALUES: readonly (number & {
|
|
15
|
+
readonly __bitFlagBrand: symbol;
|
|
16
|
+
} & {
|
|
17
|
+
readonly __doorSlotFlagBrand: symbol;
|
|
18
|
+
})[];
|
|
11
19
|
export declare const DOOR_SLOT_VALUES: readonly DoorSlot[];
|
|
12
20
|
export declare const GRID_ENTITY_TYPE_VALUES: readonly GridEntityType[];
|
|
13
21
|
export declare const GRID_ENTITY_XML_TYPE_VALUES: readonly GridEntityXMLType[];
|
|
14
22
|
export declare const MOD_CALLBACK_CUSTOM_VALUES: readonly ModCallbackCustom[];
|
|
15
|
-
export declare const ITEM_CONFIG_TAG_VALUES: readonly
|
|
23
|
+
export declare const ITEM_CONFIG_TAG_VALUES: readonly (number & {
|
|
24
|
+
readonly __bitFlagBrand: symbol;
|
|
25
|
+
} & {
|
|
26
|
+
readonly __itemConfigTagBrand: symbol;
|
|
27
|
+
})[];
|
|
16
28
|
export declare const ITEM_CONFIG_CARD_TYPE_VALUES: readonly ItemConfigCardType[];
|
|
17
29
|
export declare const ITEM_POOL_TYPE_VALUES: readonly ItemPoolType[];
|
|
18
30
|
export declare const KEYBOARD_VALUES: readonly Keyboard[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cachedEnumValues.d.ts","sourceRoot":"","sources":["../../src/arrays/cachedEnumValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,MAAM,
|
|
1
|
+
{"version":3,"file":"cachedEnumValues.d.ts","sourceRoot":"","sources":["../../src/arrays/cachedEnumValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,MAAM,EAEN,eAAe,EACf,QAAQ,EAER,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAElB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,cAAc,EACd,SAAS,EACT,UAAU,EACV,WAAW,EACX,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,eAAO,MAAM,kBAAkB,uBAA4B,CAAC;AAE5D,eAAO,MAAM,cAAc,mBAAwB,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;IAA2B,CAAC;AAE1D,eAAO,MAAM,uBAAuB,4BAAiC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;IAA8B,CAAC;AAEjE,eAAO,MAAM,gBAAgB,qBAA0B,CAAC;AAExD,eAAO,MAAM,uBAAuB,2BAAgC,CAAC;AAErE,eAAO,MAAM,2BAA2B,8BAAmC,CAAC;AAE5E,eAAO,MAAM,0BAA0B,8BAAmC,CAAC;AAE3E,eAAO,MAAM,sBAAsB;;;;IAA+B,CAAC;AAEnE,eAAO,MAAM,4BAA4B,+BAAoC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,yBAA8B,CAAC;AAEjE,eAAO,MAAM,eAAe,qBAA0B,CAAC;AAEvD,eAAO,MAAM,kBAAkB,uBAA4B,CAAC;AAE5D,eAAO,MAAM,iBAAiB,sBAA2B,CAAC;AAE1D,eAAO,MAAM,kBAAkB,uBAA4B,CAAC;AAE5D,eAAO,MAAM,uBAAuB,2BAAgC,CAAC;AAErE,eAAO,MAAM,iBAAiB,sBAA2B,CAAC;AAE1D,eAAO,MAAM,YAAY,uBAA4B,CAAC;AAEtD,eAAO,MAAM,0BAA0B,+BAAoC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,wBAA6B,CAAC;AAE9D,eAAO,MAAM,kBAAkB,uBAA4B,CAAC;AAE5D,eAAO,MAAM,mBAAmB,wBAA6B,CAAC"}
|
|
@@ -30,7 +30,7 @@ local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
|
30
30
|
local ____enums = require("functions.enums")
|
|
31
31
|
local getEnumValues = ____enums.getEnumValues
|
|
32
32
|
____exports.ACTIVE_SLOT_VALUES = getEnumValues(nil, ActiveSlot)
|
|
33
|
-
____exports.
|
|
33
|
+
____exports.BOSS_ID_VALUES = getEnumValues(nil, BossID)
|
|
34
34
|
____exports.CACHE_FLAG_VALUES = getEnumValues(nil, CacheFlag)
|
|
35
35
|
____exports.CONTROLLER_INDEX_VALUES = getEnumValues(nil, ControllerIndex)
|
|
36
36
|
____exports.DOOR_SLOT_FLAG_VALUES = getEnumValues(nil, DoorSlotFlag)
|
|
@@ -144,7 +144,7 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
144
144
|
return nil
|
|
145
145
|
end
|
|
146
146
|
if not self.usingRedKey then
|
|
147
|
-
return
|
|
147
|
+
return nil
|
|
148
148
|
end
|
|
149
149
|
self.usingRedKey = false
|
|
150
150
|
local level = game:GetLevel()
|
|
@@ -164,7 +164,7 @@ function CustomStages.prototype.____constructor(self, customGridEntities, custom
|
|
|
164
164
|
self.getShaderParams = function(____, shaderName)
|
|
165
165
|
local customStage = v.run.currentCustomStage
|
|
166
166
|
if customStage == nil then
|
|
167
|
-
return
|
|
167
|
+
return nil
|
|
168
168
|
end
|
|
169
169
|
streakTextGetShaderParams(nil, customStage, shaderName)
|
|
170
170
|
return nil
|
|
@@ -60,10 +60,10 @@ function Pause.prototype.____constructor(self, disableInputs)
|
|
|
60
60
|
end
|
|
61
61
|
self.inputActionGetActionValue = function(____, _entity, _inputHook, buttonAction)
|
|
62
62
|
if buttonAction ~= ButtonAction.SHOOT_RIGHT then
|
|
63
|
-
return
|
|
63
|
+
return nil
|
|
64
64
|
end
|
|
65
65
|
if not v.run.shouldUnpause then
|
|
66
|
-
return
|
|
66
|
+
return nil
|
|
67
67
|
end
|
|
68
68
|
v.run.shouldUnpause = false
|
|
69
69
|
return 1
|
|
@@ -52,7 +52,7 @@ function PreventGridEntityRespawn.prototype.____constructor(self, runInNFrames)
|
|
|
52
52
|
end
|
|
53
53
|
local roomListIndex = getRoomListIndex(nil)
|
|
54
54
|
if not v.level.roomListIndexToDecorationGridIndexes:has(roomListIndex) then
|
|
55
|
-
return
|
|
55
|
+
return nil
|
|
56
56
|
end
|
|
57
57
|
local decorations = getGridEntities(nil, GridEntityType.DECORATION)
|
|
58
58
|
for ____, decoration in ipairs(decorations) do
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LevelStage,
|
|
1
|
+
import type { LevelStage, StageID } from "isaac-typescript-definitions";
|
|
2
2
|
import { BossID, EntityType } from "isaac-typescript-definitions";
|
|
3
3
|
/**
|
|
4
4
|
* Helper function to get all of the non-dead bosses in the room.
|
|
@@ -56,7 +56,9 @@ export declare function getBossName(bossID: BossID): string;
|
|
|
56
56
|
*
|
|
57
57
|
* Also see the `getAllBossesSet` and `getCombinedBossSet` functions.
|
|
58
58
|
*/
|
|
59
|
-
export declare function getBossSet(
|
|
59
|
+
export declare function getBossSet(stageID: StageID): ReadonlySet<BossID> | undefined;
|
|
60
|
+
/** Helper function to get the set of stage IDs that a particular boss naturally appears in. */
|
|
61
|
+
export declare function getBossStageIDs(bossID: BossID): ReadonlySet<StageID>;
|
|
60
62
|
/**
|
|
61
63
|
* Helper function to get all of the bosses in the room.
|
|
62
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"bosses.d.ts","sourceRoot":"","sources":["../../src/functions/bosses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EACL,MAAM,EACN,UAAU,EAGX,MAAM,8BAA8B,CAAC;AAiCtC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,SAAS,SAAS,EAAE,CAGtB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAC7B,kBAAkB,UAAO,GACxB,WAAW,CAAC,MAAM,CAAC,CAIrB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CA0B9C;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,GACX,MAAM,GAAG,SAAS,CAGpB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED;;;;;GAKG;AACH,w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B,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,WAAW,CAAC,EAAE,GAAG,GAChB,SAAS,CAYX"}
|
|
@@ -21,8 +21,9 @@ local DEFAULT_BOSS_NAME = ____bossNames.DEFAULT_BOSS_NAME
|
|
|
21
21
|
local ____bossSets = require("sets.bossSets")
|
|
22
22
|
local ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET = ____bossSets.ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET
|
|
23
23
|
local ALL_BOSSES_SET = ____bossSets.ALL_BOSSES_SET
|
|
24
|
+
local BOSS_ID_TO_STAGE_IDS = ____bossSets.BOSS_ID_TO_STAGE_IDS
|
|
25
|
+
local STAGE_ID_TO_BOSS_SET_MAP = ____bossSets.STAGE_ID_TO_BOSS_SET_MAP
|
|
24
26
|
local STAGE_TO_COMBINED_BOSS_SET_MAP = ____bossSets.STAGE_TO_COMBINED_BOSS_SET_MAP
|
|
25
|
-
local STAGE_TO_STAGE_TYPE_TO_BOSS_SET_MAP = ____bossSets.STAGE_TO_STAGE_TYPE_TO_BOSS_SET_MAP
|
|
26
27
|
local ____repentanceBossIDsSet = require("sets.repentanceBossIDsSet")
|
|
27
28
|
local REPENTANCE_ONLY_BOSS_IDS_SET = ____repentanceBossIDsSet.REPENTANCE_ONLY_BOSS_IDS_SET
|
|
28
29
|
local ____sinEntityTypesSet = require("sets.sinEntityTypesSet")
|
|
@@ -147,12 +148,12 @@ end
|
|
|
147
148
|
-- combination.
|
|
148
149
|
--
|
|
149
150
|
-- Also see the `getAllBossesSet` and `getCombinedBossSet` functions.
|
|
150
|
-
function ____exports.getBossSet(self,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return
|
|
151
|
+
function ____exports.getBossSet(self, stageID)
|
|
152
|
+
return STAGE_ID_TO_BOSS_SET_MAP:get(stageID)
|
|
153
|
+
end
|
|
154
|
+
--- Helper function to get the set of stage IDs that a particular boss naturally appears in.
|
|
155
|
+
function ____exports.getBossStageIDs(self, bossID)
|
|
156
|
+
return BOSS_ID_TO_STAGE_IDS[bossID]
|
|
156
157
|
end
|
|
157
158
|
--- Helper function to get all of the bosses in the room.
|
|
158
159
|
--
|
|
@@ -443,7 +443,7 @@ function ____exports.spawnGridEntityWithVariant(self, gridEntityType, variant, g
|
|
|
443
443
|
if removeExistingGridEntity then
|
|
444
444
|
____exports.removeGridEntity(nil, existingGridEntity, true)
|
|
445
445
|
else
|
|
446
|
-
return
|
|
446
|
+
return nil
|
|
447
447
|
end
|
|
448
448
|
end
|
|
449
449
|
local position = isVector(nil, gridIndexOrPosition) and gridIndexOrPosition or room:GetGridPosition(gridIndexOrPosition)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logMisc.d.ts","sourceRoot":"","sources":["../../src/functions/logMisc.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"logMisc.d.ts","sourceRoot":"","sources":["../../src/functions/logMisc.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,UAAU,EACV,WAAW,EACX,UAAU,EAMV,cAAc,EAKd,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAsB9D;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EACxB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CAaN;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,SAAS,eAAe,EAAE,EAC5C,IAAI,CAAC,EAAE,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MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EACpB,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,IAAI,CAgCN;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAkBhE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,EACpD,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACrB,IAAI,CAqBN;AAED,wFAAwF;AACxF,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GACvC,IAAI,CAEN;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GACpC,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAoB/D;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,UAAQ,GACZ,IAAI,CAON"}
|
|
@@ -10,6 +10,7 @@ local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
|
|
|
10
10
|
local __TS__New = ____lualib.__TS__New
|
|
11
11
|
local ____exports = {}
|
|
12
12
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
13
|
+
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
13
14
|
local DamageFlag = ____isaac_2Dtypescript_2Ddefinitions.DamageFlag
|
|
14
15
|
local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
|
|
15
16
|
local EntityFlag = ____isaac_2Dtypescript_2Ddefinitions.EntityFlag
|
|
@@ -22,6 +23,7 @@ local ProjectileFlag = ____isaac_2Dtypescript_2Ddefinitions.ProjectileFlag
|
|
|
22
23
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
23
24
|
local SeedEffect = ____isaac_2Dtypescript_2Ddefinitions.SeedEffect
|
|
24
25
|
local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
26
|
+
local StageID = ____isaac_2Dtypescript_2Ddefinitions.StageID
|
|
25
27
|
local TearFlag = ____isaac_2Dtypescript_2Ddefinitions.TearFlag
|
|
26
28
|
local UseFlag = ____isaac_2Dtypescript_2Ddefinitions.UseFlag
|
|
27
29
|
local ____cachedClasses = require("core.cachedClasses")
|
|
@@ -297,7 +299,7 @@ function ____exports.logRoom()
|
|
|
297
299
|
local roomListIndex = getRoomListIndex(nil)
|
|
298
300
|
local roomData = getRoomData(nil)
|
|
299
301
|
log("Logging room information:")
|
|
300
|
-
log("- Room stage ID: " ..
|
|
302
|
+
log(("- Room stage ID: " .. StageID[roomData.StageID]) .. " (roomData.StageID)")
|
|
301
303
|
log(((("- Room type: " .. RoomType[roomData.Type]) .. " (") .. tostring(roomData.Type)) .. ")")
|
|
302
304
|
log("- Variant: " .. tostring(roomData.Variant))
|
|
303
305
|
log("- Sub-type: " .. tostring(roomData.Subtype))
|
|
@@ -306,10 +308,14 @@ function ____exports.logRoom()
|
|
|
306
308
|
if roomGridIndexName == nil then
|
|
307
309
|
log("- Grid index: " .. tostring(roomGridIndex))
|
|
308
310
|
else
|
|
309
|
-
log(((("- Grid index:
|
|
311
|
+
log(((("- Grid index: " .. roomGridIndexName) .. " (") .. tostring(roomGridIndex)) .. ")")
|
|
310
312
|
end
|
|
311
313
|
log("- List index: " .. tostring(roomListIndex))
|
|
312
|
-
|
|
314
|
+
if bossID == nil then
|
|
315
|
+
log("- Boss ID: undefined")
|
|
316
|
+
else
|
|
317
|
+
log(((("- Boss ID: " .. BossID[bossID]) .. " (") .. tostring(bossID)) .. ")")
|
|
318
|
+
end
|
|
313
319
|
end
|
|
314
320
|
--- Helper function for logging every seed effect (i.e. Easter Egg) that is turned on for the
|
|
315
321
|
-- particular run.
|
package/dist/index.rollup.d.ts
CHANGED
|
@@ -5154,7 +5154,10 @@ export declare function getBossRushDoor(): GridEntityDoor | undefined;
|
|
|
5154
5154
|
*
|
|
5155
5155
|
* Also see the `getAllBossesSet` and `getCombinedBossSet` functions.
|
|
5156
5156
|
*/
|
|
5157
|
-
export declare function getBossSet(
|
|
5157
|
+
export declare function getBossSet(stageID: StageID): ReadonlySet<BossID> | undefined;
|
|
5158
|
+
|
|
5159
|
+
/** Helper function to get the set of stage IDs that a particular boss naturally appears in. */
|
|
5160
|
+
export declare function getBossStageIDs(bossID: BossID): ReadonlySet<StageID>;
|
|
5158
5161
|
|
|
5159
5162
|
/**
|
|
5160
5163
|
* Helper function to get a card description from a `CardType` value. Returns "Unknown" if the
|