Bosses
Functions
getAliveBosses
▸ getAliveBosses(entityType?
, variant?
, subType?
, ignoreFriendly?
): readonly EntityNPC
[]
Helper function to get all of the non-dead bosses in the room.
This function will not include bosses on an internal blacklist, such as Death's scythes or Big Horn holes.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
entityType | -1 | EntityType | -1 | Optional. If specified, will only get the bosses that match the type. Default is -1, which matches every type. |
variant | number | -1 | Optional. If specified, will only get the bosses that match the variant. Default is -1, which matches every variant. |
subType | number | -1 | Optional. If specified, will only get the bosses that match the sub-type. Default is -1, which matches every sub-type. |
ignoreFriendly | boolean | false | Optional. Default is false. |
Returns
readonly EntityNPC
[]
Defined in
packages/isaacscript-common/src/functions/bosses.ts:54
getAllBosses
▸ getAllBosses(): readonly BossID
[]
Helper function to get an array with every boss in the game. This is derived from the BossID
enum.
This includes:
- Ultra Greed
- Ultra Greedier
This does not include:
- mini-bosses (e.g. Ultra Pride, Krampus)
- bosses that do not appear in Boss Rooms (e.g. Uriel, Gabriel)
- the second phase of multi-phase bosses (e.g. Mega Satan 2)
- sub-bosses of The Beast fight (e.g. Ultra Famine, Ultra Pestilence, Ultra War, Ultra Death)
- bosses that do not have any Boss Rooms defined due to being unfinished (e.g. Raglich)
Also see the getAllNonStoryBosses
function.
Returns
readonly BossID
[]
Defined in
packages/isaacscript-common/src/functions/bosses.ts:81