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

Function can_dig_down_stair

plugins/dig-now.cpp:268–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268static bool can_dig_down_stair(df::tiletype tt) {
269 df::tiletype_shape shape = tileShape(tt);
270 return shape == df::tiletype_shape::BOULDER ||
271 shape == df::tiletype_shape::BROOK_BED ||
272 shape == df::tiletype_shape::BROOK_TOP ||
273 shape == df::tiletype_shape::FLOOR ||
274 shape == df::tiletype_shape::FORTIFICATION ||
275 shape == df::tiletype_shape::PEBBLES ||
276 shape == df::tiletype_shape::RAMP ||
277 shape == df::tiletype_shape::SAPLING ||
278 shape == df::tiletype_shape::SHRUB ||
279 shape == df::tiletype_shape::TWIG ||
280 shape == df::tiletype_shape::WALL;
281}
282
283static bool can_dig_up_down_stair(df::tiletype tt) {
284 df::tiletype_shape shape = tileShape(tt);

Callers 1

dig_tileFunction · 0.85

Calls 1

tileShapeFunction · 0.85

Tested by

no test coverage detected