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

Function can_dig_channel

plugins/dig-now.cpp:253–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253static bool can_dig_channel(df::tiletype tt) {
254 df::tiletype_shape shape = tileShape(tt);
255 return shape != df::tiletype_shape::EMPTY &&
256 shape != df::tiletype_shape::ENDLESS_PIT &&
257 shape != df::tiletype_shape::NONE &&
258 shape != df::tiletype_shape::RAMP_TOP &&
259 shape != df::tiletype_shape::TRUNK_BRANCH;
260}
261
262static bool can_dig_up_stair(df::tiletype tt) {
263 df::tiletype_shape shape = tileShape(tt);

Callers 1

dig_tileFunction · 0.85

Calls 1

tileShapeFunction · 0.85

Tested by

no test coverage detected