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

◆ IsUndergroundDesert()

static bool Terraria.WorldGen.IsUndergroundDesert ( int x,
int y )
inlinestaticprivate

Definition at line 30895 of file WorldGen.cs.

30896 {
30897 if ((double)y < Main.worldSurface)
30898 {
30899 return false;
30900 }
30901 if ((double)x < (double)Main.maxTilesX * 0.15 || (double)x > (double)Main.maxTilesX * 0.85)
30902 {
30903 return false;
30904 }
30905 if (remixWorldGen && (double)y > Main.rockLayer)
30906 {
30907 return false;
30908 }
30909 int num = 15;
30910 for (int i = x - num; i <= x + num; i++)
30911 {
30912 for (int j = y - num; j <= y + num; j++)
30913 {
30914 if (Main.tile[i, j].wall == 187 || Main.tile[i, j].wall == 216)
30915 {
30916 return true;
30917 }
30918 }
30919 }
30920 return false;
30921 }
static bool remixWorldGen
Definition WorldGen.cs:1148

References Terraria.Main.maxTilesX, Terraria.Main.rockLayer, Terraria.Main.tile, and Terraria.Main.worldSurface.