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

◆ ReplaceTile_EliminateNaturalExtras()

static void Terraria.WorldGen.ReplaceTile_EliminateNaturalExtras ( int x,
int y )
inlinestaticprivate

Definition at line 53306 of file WorldGen.cs.

53307 {
53308 if (InWorld(x, y, 2))
53309 {
53310 if (Main.tile[x, y - 1] != null && Main.tile[x, y - 1].active() && (TileID.Sets.ReplaceTileBreakUp[Main.tile[x, y - 1].type] || (Main.tile[x, y - 1].type == 165 && (Main.tile[x, y - 1].frameY == 36 || Main.tile[x, y - 1].frameY == 54 || Main.tile[x, y - 1].frameY == 90))))
53311 {
53312 KillTile(x, y - 1);
53313 }
53314 if (Main.tile[x, y + 1] != null && Main.tile[x, y + 1].active() && (TileID.Sets.ReplaceTileBreakDown[Main.tile[x, y + 1].type] || (Main.tile[x, y + 1].type == 165 && (Main.tile[x, y + 1].frameY == 0 || Main.tile[x, y + 1].frameY == 18 || Main.tile[x, y + 1].frameY == 72))))
53315 {
53316 KillTile(x, y + 1);
53317 }
53318 }
53319 }
static bool[] ReplaceTileBreakUp
Definition TileID.cs:165
static bool[] ReplaceTileBreakDown
Definition TileID.cs:167
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool InWorld(int x, int y, int fluff=0)
Definition WorldGen.cs:5816

References Terraria.ID.TileID.Sets.ReplaceTileBreakDown, Terraria.ID.TileID.Sets.ReplaceTileBreakUp, and Terraria.Main.tile.