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

Function can_dig_default

plugins/dig-now.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244static bool can_dig_default(df::tiletype tt) {
245 df::tiletype_shape shape = tileShape(tt);
246 return shape == df::tiletype_shape::WALL ||
247 shape == df::tiletype_shape::FORTIFICATION ||
248 shape == df::tiletype_shape::RAMP ||
249 shape == df::tiletype_shape::STAIR_UP ||
250 shape == df::tiletype_shape::STAIR_UPDOWN;
251}
252
253static bool can_dig_channel(df::tiletype tt) {
254 df::tiletype_shape shape = tileShape(tt);

Callers 1

dig_tileFunction · 0.85

Calls 1

tileShapeFunction · 0.85

Tested by

no test coverage detected