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

◆ Spawn_IsAreaAValidWorldSpawn()

bool Terraria.Player.Spawn_IsAreaAValidWorldSpawn ( int floorX,
int floorY )
inlineprivate

Definition at line 35981 of file Player.cs.

35982 {
35983 for (int i = floorX - 1; i < floorX + 2; i++)
35984 {
35985 for (int j = floorY - 3; j < floorY; j++)
35986 {
35987 if (Main.tile[i, j] != null)
35988 {
35989 if (Main.tile[i, j].nactive() && Main.tileSolid[Main.tile[i, j].type] && !Main.tileSolidTop[Main.tile[i, j].type])
35990 {
35991 return false;
35992 }
35993 if (Main.tile[i, j].liquid > 0)
35994 {
35995 return false;
35996 }
35997 }
35998 }
35999 }
36000 return true;
36001 }

References Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Main.tileSolidTop.