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

◆ IsUndergroundDesert()

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

Definition at line 32358 of file WorldGen.cs.

32359 {
32360 if ((double)y < Main.worldSurface)
32361 {
32362 return false;
32363 }
32364 if ((double)x < (double)Main.maxTilesX * 0.15 || (double)x > (double)Main.maxTilesX * 0.85)
32365 {
32366 return false;
32367 }
32368 if (remixWorldGen && (double)y > Main.rockLayer)
32369 {
32370 return false;
32371 }
32372 int num = 15;
32373 for (int i = x - num; i <= x + num; i++)
32374 {
32375 for (int j = y - num; j <= y + num; j++)
32376 {
32377 if (Main.tile[i, j].wall == 187 || Main.tile[i, j].wall == 216)
32378 {
32379 return true;
32380 }
32381 }
32382 }
32383 return false;
32384 }
static bool remixWorldGen
Definition WorldGen.cs:1386

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