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

◆ nearPicture2()

static bool Terraria.WorldGen.nearPicture2 ( int x,
int y )
inlinestatic

Definition at line 27637 of file WorldGen.cs.

27638 {
27639 if (Main.tile[x, y].wall != 7 && Main.tile[x, y].wall != 8 && Main.tile[x, y].wall != 9)
27640 {
27641 for (int i = x - 8; i <= x + 8; i++)
27642 {
27643 for (int j = y - 5; j <= y + 5; j++)
27644 {
27645 if (Main.tile[i, j].active() && (Main.tile[i, j].type == 240 || Main.tile[i, j].type == 241 || Main.tile[i, j].type == 242))
27646 {
27647 return true;
27648 }
27649 }
27650 }
27651 }
27652 else
27653 {
27654 for (int k = x - 15; k <= x + 15; k++)
27655 {
27656 for (int l = y - 10; l <= y + 10; l++)
27657 {
27658 if (Main.tile[k, l].active() && (Main.tile[k, l].type == 240 || Main.tile[k, l].type == 241 || Main.tile[k, l].type == 242))
27659 {
27660 return true;
27661 }
27662 }
27663 }
27664 }
27665 return false;
27666 }

References Terraria.Main.tile.