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

◆ IsPlayerInAPlaceWhereTheyCanSeeAmbienceSky()

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

Definition at line 190 of file AmbienceServer.cs.

191 {
192 return (double)plr.position.Y <= Main.worldSurface * 16.0 + 1600.0;
193 }

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