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

◆ CheckStinkbugBlocker()

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

Definition at line 45514 of file WorldGen.cs.

45515 {
45516 Tile tileSafely = Framing.GetTileSafely(x, y);
45517 int num = tileSafely.frameX / 18;
45518 int style = -1;
45519 if (AttemptReorientingStinkbugBlocker(x, y, tileSafely.wall, ref style))
45520 {
45521 if (style != num)
45522 {
45523 tileSafely.frameX = (short)(style * 18);
45524 }
45525 }
45526 else
45527 {
45528 KillTile(x, y);
45529 }
45530 }
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool AttemptReorientingStinkbugBlocker(int x, int y, int wall, ref int style)

References Terraria.Framing.GetTileSafely().