Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ BiomeTorchHoldStyle()

int Terraria.Player.BiomeTorchHoldStyle ( int style)
inline

Definition at line 37985 of file Player.cs.

37986 {
37987 if (!UsingBiomeTorches || style != 8)
37988 {
37989 return style;
37990 }
37991 if (ZoneShimmer)
37992 {
37993 style = 5353;
37994 }
37995 else if (ZoneLihzhardTemple)
37996 {
37997 style = 4388;
37998 }
37999 else if (ZoneDungeon)
38000 {
38001 style = 3004;
38002 }
38003 else if (position.Y > (float)(Main.UnderworldLayer * 16))
38004 {
38005 style = 433;
38006 }
38007 else if (ZoneHallow)
38008 {
38009 style = 4387;
38010 }
38011 else if (ZoneCorrupt)
38012 {
38013 style = 4385;
38014 }
38015 else if (ZoneCrimson)
38016 {
38017 style = 4386;
38018 }
38019 else if (ZoneSnow)
38020 {
38021 style = 974;
38022 }
38023 else if (ZoneGlowshroom)
38024 {
38025 style = 5293;
38026 }
38027 else if (ZoneJungle)
38028 {
38029 style = 4388;
38030 }
38031 else if ((ZoneDesert && (double)position.Y < Main.worldSurface * 16.0) || ZoneUndergroundDesert)
38032 {
38033 style = 4383;
38034 }
38035 else if (ZoneDesert && Main.remixWorld)
38036 {
38037 style = 4383;
38038 }
38039 return style;
38040 }
Vector2 position
Definition Entity.cs:14
bool ZoneUndergroundDesert
Definition Player.cs:3085
bool UsingBiomeTorches
Definition Player.cs:3426
bool ZoneLihzhardTemple
Definition Player.cs:3253
bool ZoneGlowshroom
Definition Player.cs:3073

References Terraria.Main.remixWorld, Terraria.Main.UnderworldLayer, and Terraria.Main.worldSurface.