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

Function is_heavy_aquifer

plugins/dig.cpp:274–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274static bool is_heavy_aquifer(int16_t x, int16_t y, int16_t z, df::map_block *block = NULL) {
275 if (!block)
276 block = Maps::getTileBlock(x, y, z);
277 if (!block || !block->flags.bits.has_aquifer)
278 return false;
279
280 auto occ = Maps::getTileOccupancy(x, y, z);
281 if (!occ)
282 return false;
283
284 return occ->bits.heavy_aquifer;
285}
286
287static bool is_heavy_aquifer(const df::coord &pos, df::map_block *block = NULL) {
288 return is_heavy_aquifer(pos.x, pos.y, pos.z, block);

Callers 1

paintScreenWarmDampFunction · 0.85

Calls 2

getTileBlockFunction · 0.85
getTileOccupancyFunction · 0.85

Tested by

no test coverage detected