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

◆ BiomeCampfireHoldStyle()

int Terraria.Player.BiomeCampfireHoldStyle ( int itemType)
inline

Definition at line 38099 of file Player.cs.

38100 {
38101 if (!UsingBiomeTorches || itemType != 966)
38102 {
38103 return itemType;
38104 }
38105 if (ZoneShimmer)
38106 {
38107 itemType = 5357;
38108 }
38109 else if (ZoneLihzhardTemple)
38110 {
38111 itemType = 4694;
38112 }
38113 else if (ZoneDungeon)
38114 {
38115 itemType = 3724;
38116 }
38117 else if (position.Y > (float)(Main.UnderworldLayer * 16))
38118 {
38119 itemType = 3047;
38120 }
38121 else if (ZoneHallow)
38122 {
38123 itemType = 4693;
38124 }
38125 else if (ZoneCorrupt)
38126 {
38127 itemType = 4691;
38128 }
38129 else if (ZoneCrimson)
38130 {
38131 itemType = 4692;
38132 }
38133 else if (ZoneSnow)
38134 {
38135 itemType = 3048;
38136 }
38137 else if (ZoneJungle)
38138 {
38139 itemType = 4694;
38140 }
38141 else if (ZoneGlowshroom)
38142 {
38143 itemType = 5299;
38144 }
38145 else if ((ZoneDesert && (double)position.Y < Main.worldSurface * 16.0) || ZoneUndergroundDesert)
38146 {
38147 itemType = 4689;
38148 }
38149 else if (ZoneDesert && Main.remixWorld)
38150 {
38151 itemType = 4689;
38152 }
38153 return itemType;
38154 }
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.