Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BiomeTorchPlaceStyle()

int Terraria.Player.BiomeTorchPlaceStyle ( int style)
inline

Definition at line 37928 of file Player.cs.

37929 {
37930 if (!UsingBiomeTorches || style != 0)
37931 {
37932 return style;
37933 }
37934 if (ZoneShimmer)
37935 {
37936 style = 23;
37937 }
37938 else if (ZoneLihzhardTemple)
37939 {
37940 style = 21;
37941 }
37942 else if (ZoneDungeon)
37943 {
37944 style = 13;
37945 }
37946 else if (position.Y > (float)(Main.UnderworldLayer * 16))
37947 {
37948 style = 7;
37949 }
37950 else if (ZoneHallow)
37951 {
37952 style = 20;
37953 }
37954 else if (ZoneCorrupt)
37955 {
37956 style = 18;
37957 }
37958 else if (ZoneCrimson)
37959 {
37960 style = 19;
37961 }
37962 else if (ZoneSnow)
37963 {
37964 style = 9;
37965 }
37966 else if (ZoneGlowshroom)
37967 {
37968 style = 22;
37969 }
37970 else if (ZoneJungle)
37971 {
37972 style = 21;
37973 }
37974 else if ((ZoneDesert && (double)position.Y < Main.worldSurface * 16.0) || ZoneUndergroundDesert)
37975 {
37976 style = 16;
37977 }
37978 else if (ZoneDesert && Main.remixWorld)
37979 {
37980 style = 16;
37981 }
37982 return style;
37983 }
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.