Level
Functions
fillLevelWithRedRooms
▸ fillLevelWithRedRooms(): void
Helper function to fill every possible level grid square with a red room.
Returns
void
Defined in
packages/isaacscript-common/src/functions/level.ts:13
getLevelBossIDs
▸ getLevelBossIDs(): readonly BossID
[]
Helper function to get the boss IDs of all of the Boss Rooms on this floor. (This is equivalent to the sub-type of the room data.)
Note that this will only look at Boss Rooms inside of the grid, so e.g. Reverse Emperor card rooms will not count.
Returns
readonly BossID
[]
Defined in
packages/isaacscript-common/src/functions/level.ts:43
levelHasBossID
▸ levelHasBossID(...bossIDs
): boolean
Helper function to check if the current floor has a Boss Room that matches the boss ID provided.
This function is variadic, meaning that you can pass as many boss IDs as you want to check for. It will return true if one or more of the boss IDs are matched.
Parameters
Name | Type |
---|---|
...bossIDs | readonly BossID [] |
Returns
boolean
Defined in
packages/isaacscript-common/src/functions/level.ts:61
levelHasRoomType
▸ levelHasRoomType(...roomTypes
): boolean
Helper function to check to see if the current floor has one or more of a specific room type in it.
This function is variadic, meaning that you can pass as many room types as you want to check for. This function will return true if any of the room types are found.
Parameters
Name | Type |
---|---|
...roomTypes | readonly RoomType [] |
Returns
boolean