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

Function can_dig_up_down_stair

plugins/dig-now.cpp:283–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283static bool can_dig_up_down_stair(df::tiletype tt) {
284 df::tiletype_shape shape = tileShape(tt);
285 return shape == df::tiletype_shape::WALL ||
286 shape == df::tiletype_shape::FORTIFICATION ||
287 shape == df::tiletype_shape::STAIR_UP;
288}
289
290static bool can_dig_ramp(df::tiletype tt) {
291 df::tiletype_shape shape = tileShape(tt);

Callers 1

dig_tileFunction · 0.85

Calls 1

tileShapeFunction · 0.85

Tested by

no test coverage detected