MCPcopy Create free account
hub / github.com/DFHack/dfhack / is_tree

Function is_tree

plugins/burrow.cpp:498–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498static bool is_tree(const df::tiletype *tt) {
499 return tileMaterial(*tt) == tiletype_material::TREE;
500}
501
502static bool is_tree_trunk(const df::tiletype *tt) {
503 return is_tree(tt) && tileShape(*tt)== tiletype_shape::WALL;

Callers 2

is_tree_trunkFunction · 0.85
is_outsideFunction · 0.85

Calls 1

tileMaterialFunction · 0.85

Tested by

no test coverage detected