Skip to content

Level

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.

void


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.

readonly BossID[]


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.

…readonly BossID[]

boolean


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.

…readonly RoomType[]

boolean