isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
23 lines • 1.22 kB
TypeScript
import { LevelStage, StageType } from "isaac-typescript-definitions";
/**
* 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.
*/
export declare function getNextStage(): LevelStage;
/**
* 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.
*
* @param upwards Whether the player should go up to Cathedral in the case of being on Womb 2.
* Default is false.
*/
export declare function getNextStageType(upwards?: boolean): StageType;
//# sourceMappingURL=nextStage.d.ts.map