Skip to content

Next Stage

getNextStage(): LevelStage

Defined in: packages/isaacscript-common/src/functions/nextStage.ts:25

Helper function to get the stage that a trapdoor or heaven door would take the player to, based on the current stage, room, and game state flags.

If you want to account for the player having visited Repentance floors in The Ascent, use the getNextStageUsingHistory helper function instead (from the stage history feature). Handling this requires stateful tracking as the player progresses through the run.

LevelStage


getNextStageType(upwards?): StageType

Defined in: packages/isaacscript-common/src/functions/nextStage.ts:138

Helper function to get the stage type that a trapdoor or heaven door would take the player to, based on the current stage, room, and game state flags.

If you want to account for previous floors visited on The Ascent, use the getNextStageTypeUsingHistory helper function instead (from the stage history feature). Handling this requires stateful tracking as the player progresses through the run.

boolean = false

Whether the player should go up to Cathedral in the case of being on Womb 2. Default is false.

StageType