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

◆ BiomeCampfirePlaceStyle()

int Terraria.Player.BiomeCampfirePlaceStyle ( int style)
inline

Definition at line 38042 of file Player.cs.

38043 {
38044 if (!UsingBiomeTorches || style != 0)
38045 {
38046 return style;
38047 }
38048 if (ZoneShimmer)
38049 {
38050 style = 15;
38051 }
38052 else if (ZoneLihzhardTemple)
38053 {
38054 style = 13;
38055 }
38056 else if (ZoneDungeon)
38057 {
38058 style = 7;
38059 }
38060 else if (position.Y > (float)(Main.UnderworldLayer * 16))
38061 {
38062 style = 2;
38063 }
38064 else if (ZoneHallow)
38065 {
38066 style = 12;
38067 }
38068 else if (ZoneCorrupt)
38069 {
38070 style = 10;
38071 }
38072 else if (ZoneCrimson)
38073 {
38074 style = 11;
38075 }
38076 else if (ZoneSnow)
38077 {
38078 style = 3;
38079 }
38080 else if (ZoneGlowshroom)
38081 {
38082 style = 14;
38083 }
38084 else if (ZoneJungle)
38085 {
38086 style = 13;
38087 }
38088 else if ((ZoneDesert && (double)position.Y < Main.worldSurface * 16.0) || ZoneUndergroundDesert)
38089 {
38090 style = 8;
38091 }
38092 else if (ZoneDesert && Main.remixWorld)
38093 {
38094 style = 8;
38095 }
38096 return style;
38097 }
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.