Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ IsBottomOfTreeTrunkNoRoots()

bool Terraria.Player.IsBottomOfTreeTrunkNoRoots ( int x,
int y )
inlineprivate

Definition at line 43571 of file Player.cs.

43572 {
43573 Tile tile = Main.tile[x, y];
43574 if (!tile.active())
43575 {
43576 return false;
43577 }
43578 if (!TileID.Sets.IsATreeTrunk[tile.type] && tile.type != 323)
43579 {
43580 return false;
43581 }
43582 short frameX = tile.frameX;
43583 short frameY = tile.frameY;
43584 ushort type = tile.type;
43585 if (type != 323 && frameY >= 132 && frameY <= 176 && (frameX == 22 || frameX == 44))
43586 {
43587 return false;
43588 }
43589 return true;
43590 }
static bool[] IsATreeTrunk
Definition TileID.cs:91

References Terraria.Tile.active(), Terraria.Tile.frameX, Terraria.Tile.frameY, Terraria.ID.TileID.Sets.IsATreeTrunk, Terraria.Main.tile, System.type, and Terraria.Tile.type.