📚
Library of Isaac
  • Library of Isaac
  • Get Started
  • F.A.Q.
  • Custom Enums
    • AmbushType
    • AngelVariant
    • BabyLongLegsVariant
    • BabyVariant
    • BeastVariant
    • BegottenVariant
    • BigBonyVariant
    • BigHornVariant
    • BloodClotSubType
    • BloodExplosionSubType
    • BloodPuppyVariant
    • BlueFlySubType
    • BoilVariant
    • BonyVariant
    • BoomFlyVariant
    • BossID
    • CallbackOptionalArgType
    • CallbackReturnMode
    • CanaryVariant
    • Charger2Variant
    • ChargerSubType
    • ChargerVariant
    • ChimeraVariant
    • ChubVariant
    • ClottyVariant
    • ClutchVariant
    • ConjoinedFattyVariant
    • ConstantStoneShooterSubType
    • ConstantStoneShooterVariant
    • ConversionHeartSubType
    • CopyableIsaacAPIClassType
    • CrawlSpaceVariant
    • CrazyLongLegsVariant
    • CultistVariant
    • CustomCallback
    • CustomReviveType
    • DaddyLongLegsVariant
    • DannyVariant
    • DarkEsauVariant
    • DeathsHeadVariant
    • DeathVariant
    • DebugMode
    • DiceFloorSubType
    • Dimension
    • DingleVariant
    • DipFamiliarSubType
    • DipVariant
    • DogmaVariant
    • DopleVariant
    • DukeVariant
    • DumpVariant
    • EnvyVariant
    • EvisVariant
    • ExorcistVariant
    • EyeVariant
    • FacelessVariant
    • FallenVariant
    • FattyVariant
    • FireplaceVariant
    • FistulaVariant
    • FlyBombVariant
    • Gaper2Variant
    • GaperVariant
    • GeminiVariant
    • GenericPropVariant
    • GibSubType
    • GlobinVariant
    • GluttonyVariant
    • GoatVariant
    • GreedVariant
    • GridEntityXMLType
    • GrimaceVariant
    • GrubVariant
    • GurgleVariant
    • GurglingVariant
    • GusherVariant
    • GutsVariant
    • GuttedFattyVariant
    • GyroVariant
    • HauntVariant
    • HealthType
    • HeartVariant
    • HeavenLightDoorSubType
    • HiveVariant
    • HomunculusVariant
    • HopperVariant
    • HostVariant
    • InventoryType
    • IsaacVariant
    • ItemConfigTag
    • KnifeVariant
    • KnightVariant
    • LambVariant
    • LarryJrVariant
    • LeaperVariant
    • LeechVariant
    • LeperVariant
    • LittleHornVariant
    • LockState
    • LokiVariant
    • LustVariant
    • MamaGurdyVariant
    • MaskVariant
    • MawVariant
    • MegaSatanVariant
    • MembrainVariant
    • MoleVariant
    • MomsHeartVariant
    • MomVariant
    • Monstro2Variant
    • MotherSubType
    • MotherVariant
    • MoveableTNTVariant
    • MrMawVariant
    • MrMineVariant
    • MulliganVariant
    • NeedleVariant
    • NerveEndingVariant
    • ParaBiteVariant
    • PeeperFattyVariant
    • PeepVariant
    • PickupNullSubType
    • PillEffectType
    • PinVariant
    • PitfallVariant
    • PitState
    • PitVariant
    • PokyVariant
    • PoltyVariant
    • PolycephalusVariant
    • PoofSubType
    • PoopEntityVariant
    • PoopGridEntityVariant
    • PoopState
    • PooterVariant
    • PortalVariant
    • PressurePlateVariant
    • PreyVariant
    • PrideVariant
    • ProjectilesMode
    • PurgatorySubType
    • RageCreepVariant
    • RaglichVariant
    • RaglingVariant
    • RagManVariant
    • RagMegaVariant
    • RevenantVariant
    • RockSpiderVariant
    • RockState
    • RockVariant
    • RotgutVariant
    • RoundWormVariant
    • SatanVariant
    • ScourgeVariant
    • SerializationBrand
    • SerializationType
    • ShockwaveSoundMode
    • ShopKeeperVariant
    • SingeVariant
    • SirenVariant
    • SkinnyVariant
    • SlothVariant
    • SlotVariant
    • SpiderWebState
    • SpittyVariant
    • SquirtVariant
    • StageID
    • StatueVariant
    • StoneyVariant
    • SubHorfVariant
    • SuckerVariant
    • SwingerVariant
    • TallLadderSubType
    • TNTState
    • TrapdoorVariant
    • TumorVariant
    • UltraCoinVariant
    • UltraGreedVariant
    • VariablePersistenceMode
    • VisageVariant
    • VisFattyVariant
    • VisVariant
    • WalkingBoilVariant
    • WallCreepVariant
    • WarVariant
    • WhipperVariant
    • WidowVariant
    • WrathVariant
  • CustomCallback
  • Modules
    • Ambush
    • Benchmark
    • BitSet128
    • Bombs
    • Bosses
    • Charge
    • Collectibles
    • Color
    • CustomItemPools
    • Debug
    • Dimensions
    • Direction
    • Doors
    • Effects
    • Entities
    • EntitySpecific
    • Familiars
    • GridEntities
    • GridIndexes
    • GridSpecific
    • Input
    • IsaacAPIClass
    • ItemPool
    • JSON
    • Log
    • Pause
    • Pickups
    • PickupSpecific
    • Pills
    • Players
    • Random
    • RNG
    • Rooms
    • RoomSpecific
    • Run
    • SaveManager
    • Serialize
    • ShockWaves
    • Sprites
    • Stage
    • Trinkets
    • UI
    • Utils
      • DeepCopy
      • Easings
      • Flags
      • Functions
      • Math
      • String
      • Tables
    • Vector
Powered by GitBook
On this page
  • Overview
  • Functions
  • CalculateStageType()
  • CalculateStageTypeRepentance()
  • GetEffectiveStage()
  • OnAscent()
  • OnFirstFloor()
  • OnRepentanceStage()
  1. Modules

Stage

PreviousSpritesNextTrinkets

Last updated 2 years ago

Overview

Return Value
Function

integer

boolean

boolean

boolean

Functions

CalculateStageType()

CalculateStageType( 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()

CalculateStageTypeRepentance( 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

( stage)

( stage)

()

()

()

()

StageType
LevelStage
StageType
LevelStage
StageType
StageType
LevelStage
CalculateStageType
LevelStage
CalculateStageTypeRepentance
GetEffectiveStage
OnAscent
OnFirstFloor
OnRepentanceStage