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

Function addTileDampDig

plugins/dig.cpp:1973–1982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971}
1972
1973static void addTileDampDig(df::coord pos) {
1974 auto block = Maps::getTileBlock(pos);
1975 if (!block)
1976 return;
1977
1978 if (auto damp_mask = World::getPersistentTilemask(damp_config, block, true)) {
1979 damp_mask->setassignment(pos, true);
1980 do_enable(true);
1981 }
1982}
1983
1984static void toggle_cur_level(color_ostream &out, PersistentDataItem &config) {
1985 std::unordered_map<df::coord, df::job *> dig_jobs;

Callers

nothing calls this directly

Calls 2

getTileBlockFunction · 0.85
do_enableFunction · 0.70

Tested by

no test coverage detected