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

◆ IsPlayerInAPlaceWhereTheyCanSeeAmbienceHell()

static bool Terraria.GameContent.Ambience.AmbienceServer.IsPlayerInAPlaceWhereTheyCanSeeAmbienceHell ( Player plr)
inlinestaticprivate

Definition at line 195 of file AmbienceServer.cs.

196 {
197 return plr.position.Y >= (float)((Main.UnderworldLayer - 100) * 16);
198 }

References Terraria.Main.UnderworldLayer.

Referenced by Terraria.GameContent.Ambience.AmbienceServer.IsPlayerAtRightHeightForType(), and Terraria.GameContent.Ambience.AmbienceServer.IsPlayerInAPlaceWhereTheyCanSeeAmbience().