Stage

Overview

Functions

CalculateStageType()

StageType CalculateStageType(LevelStage stage)

Helper function that calculates what the StageType should be for the provided LevelStage in the current run. This emulates what the game's internal code does.

CalculateStageTypeRepentance()

StageType CalculateStageTypeRepentance(LevelStage stage)

Helper function that calculates what the Repentance StageType should be for the provided LevelStage. This emulates what the game's internal code does.

GetEffectiveStage()

integer GetEffectiveStage()

Helper function to account for Repentance floors being offset by 1. For example, Downpour 2 is the third level of the run, but the game considers it to have a stage of 2. This function will consider Downpour 2 to have a stage of 3.

OnAscent()

boolean OnAscent()

Helper function to check if the appropiate ascent flag is set.

OnFirstFloor()

boolean OnFirstFloor()

Returns whether or not the player is on the first floor of the particular run. This is tricky to determine because we have to handle the cases of Downpour/Dross 1 not being the first floor and The Ascent.

OnRepentanceStage()

boolean OnRepentanceStage()

Helper function to check if the current stage type is equal to StageType.STAGETYPE_REPENTANCE or StageType.STAGETYPE_REPENTANCE_B

Last updated