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

◆ CheckGolf1x1()

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

Definition at line 36289 of file WorldGen.cs.

36290 {
36291 Tile tile = Main.tile[x, y];
36292 bool flag = false;
36293 if (tile.frameX % 18 != 0)
36294 {
36295 flag = true;
36296 }
36297 if (tile.frameY % 18 != 0)
36298 {
36299 flag = true;
36300 }
36301 if (!SolidTileAllowBottomSlope(x, y + 1))
36302 {
36303 flag = true;
36304 }
36305 if (flag)
36306 {
36307 KillTile(x, y);
36308 }
36309 }
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool SolidTileAllowBottomSlope(int i, int j)

References Terraria.Tile.frameX, Terraria.Tile.frameY, and Terraria.Main.tile.