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

◆ BiomeTileCheck()

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

Definition at line 7113 of file WorldGen.cs.

7114 {
7115 int num = 50;
7116 for (int i = x - num; i <= x + num; i++)
7117 {
7118 for (int j = y - num; j <= y + num; j++)
7119 {
7120 if (!InWorld(i, j))
7121 {
7122 continue;
7123 }
7124 if (Main.tile[i, j].active())
7125 {
7126 int type = Main.tile[i, j].type;
7127 if (type == 368 || type == 367 || type == 147 || type == 161 || type == 162 || type == 70 || type == 72 || type == 396 || type == 397)
7128 {
7129 return true;
7130 }
7131 }
7132 int wall = Main.tile[i, j].wall;
7133 if (wall == 187 || wall == 216)
7134 {
7135 return true;
7136 }
7137 }
7138 }
7139 return false;
7140 }
static bool InWorld(int x, int y, int fluff=0)
Definition WorldGen.cs:5816

References Terraria.WorldGen.InWorld(), Terraria.Main.tile, and System.type.

Referenced by Terraria.GameContent.Biomes.GraniteBiome.CanPlace(), and Terraria.GameContent.Biomes.MarbleBiome.Place().