Level
Functions
Section titled “Functions”fillLevelWithRedRooms()
Section titled “fillLevelWithRedRooms()”fillLevelWithRedRooms():
void
Defined in: packages/isaacscript-common/src/functions/level.ts:13
Helper function to fill every possible level grid square with a red room.
Returns
Section titled “Returns”void
getLevelBossIDs()
Section titled “getLevelBossIDs()”getLevelBossIDs(): readonly
BossID[]
Defined in: packages/isaacscript-common/src/functions/level.ts:43
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
Section titled “Returns”readonly BossID[]
levelHasBossID()
Section titled “levelHasBossID()”levelHasBossID(…
bossIDs):boolean
Defined in: packages/isaacscript-common/src/functions/level.ts:61
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
Section titled “Parameters”bossIDs
Section titled “bossIDs”…readonly BossID[]
Returns
Section titled “Returns”boolean
levelHasRoomType()
Section titled “levelHasRoomType()”levelHasRoomType(…
roomTypes):boolean
Defined in: packages/isaacscript-common/src/functions/level.ts:75
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
Section titled “Parameters”roomTypes
Section titled “roomTypes”…readonly RoomType[]
Returns
Section titled “Returns”boolean
