tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.RGB.CommonConditions.Depth Class Reference

Static Public Attributes

static readonly ChromaCondition Caverns = new SimpleCondition((Player player) => player.ZoneRockLayerHeight && player.position.ToTileCoordinates().Y <= Main.maxTilesY - 400)
 
static readonly ChromaCondition Magma = new SimpleCondition((Player player) => player.ZoneRockLayerHeight && player.position.ToTileCoordinates().Y > Main.maxTilesY - 400)
 
static readonly ChromaCondition Sky = new SimpleCondition((Player player) => (double)(player.position.Y / 16f) < Main.worldSurface * 0.44999998807907104)
 
static readonly ChromaCondition Surface = new SimpleCondition((Player player) => player.ZoneOverworldHeight && !((double)(player.position.Y / 16f) < Main.worldSurface * 0.44999998807907104) && !IsPlayerInFrontOfDirtWall(player))
 
static readonly ChromaCondition Underground = new SimpleCondition((Player player) => player.ZoneDirtLayerHeight)
 
static readonly ChromaCondition Underworld = new SimpleCondition((Player player) => player.ZoneUnderworldHeight)
 
static readonly ChromaCondition Vines = new SimpleCondition((Player player) => player.ZoneOverworldHeight && !((double)(player.position.Y / 16f) < Main.worldSurface * 0.44999998807907104) && IsPlayerInFrontOfDirtWall(player))