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

Function is_wet

plugins/dig.cpp:291–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static bool is_wet(int16_t x, int16_t y, int16_t z) {
292 auto des = Maps::getTileDesignation(x, y, z);
293 if (!des)
294 return false;
295 if (des->bits.liquid_type == df::tile_liquid::Water && des->bits.flow_size >= 1)
296 return true;
297 if (is_aquifer(x, y, z, des))
298 return true;
299 return false;
300}
301
302static bool is_damp(const df::coord &pos) {
303 return is_wet(pos.x-1, pos.y-1, pos.z) ||

Callers 1

is_dampFunction · 0.85

Calls 2

getTileDesignationFunction · 0.85
is_aquiferFunction · 0.85

Tested by

no test coverage detected