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

◆ IsBottomOfTreeTrunkNoRoots()

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

Definition at line 45519 of file Player.cs.

45520 {
45521 Tile tile = Main.tile[x, y];
45522 if (!tile.active())
45523 {
45524 return false;
45525 }
45526 if (!TileID.Sets.IsATreeTrunk[tile.type] && tile.type != 323)
45527 {
45528 return false;
45529 }
45530 short frameX = tile.frameX;
45531 short frameY = tile.frameY;
45532 if (tile.type != 323 && frameY >= 132 && frameY <= 176 && (frameX == 22 || frameX == 44))
45533 {
45534 return false;
45535 }
45536 return true;
45537 }
static bool[] IsATreeTrunk
If true for a given tile type (P:Terraria.Tile.TileType), then that tile is categorized as a tree tru...
Definition TileID.cs:114

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

Referenced by Terraria.Player.ItemCheck_UseMiningTools_ActuallyUseMiningTool().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: