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

◆ CheckLogicTiles()

static void Terraria.WorldGen.CheckLogicTiles ( int x,
int y,
int type )
inlinestatic

Definition at line 36311 of file WorldGen.cs.

36312 {
36313 if (type == 419)
36314 {
36315 Tile tile = Main.tile[x, y + 1];
36316 if (tile != null && (!tile.active() || (tile.type != 420 && tile.type != 419)))
36317 {
36318 KillTile(x, y);
36319 return;
36320 }
36321 }
36322 Tile tile2 = Main.tile[x, y];
36323 bool flag = false;
36324 if (tile2.frameX % 18 != 0)
36325 {
36326 flag = true;
36327 }
36328 if (tile2.frameY % 18 != 0)
36329 {
36330 flag = true;
36331 }
36332 if (flag)
36333 {
36334 KillTile(x, y);
36335 }
36336 }
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)

References Terraria.Tile.active(), Terraria.Main.tile, System.type, and Terraria.Tile.type.