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

Function remove_ramp_top

plugins/dig-now.cpp:324–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324static void remove_ramp_top(MapExtras::MapCache &map, const DFCoord &pos) {
325 if (!map.ensureBlockAt(pos))
326 return;
327
328 if (tileShape(map.tiletypeAt(pos)) == df::tiletype_shape::RAMP_TOP)
329 dig_type(map, pos, df::tiletype::OpenSpace);
330}
331
332static bool is_wall(MapExtras::MapCache &map, const DFCoord &pos) {
333 if (!map.ensureBlockAt(pos))

Callers 2

clean_rampFunction · 0.85
dig_tileFunction · 0.85

Calls 3

tileShapeFunction · 0.85
dig_typeFunction · 0.85
tiletypeAtMethod · 0.80

Tested by

no test coverage detected