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

Function is_damp

plugins/dig.cpp:302–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302static bool is_damp(const df::coord &pos) {
303 return is_wet(pos.x-1, pos.y-1, pos.z) ||
304 is_wet(pos.x, pos.y-1, pos.z) ||
305 is_wet(pos.x+1, pos.y-1, pos.z) ||
306 is_wet(pos.x-1, pos.y, pos.z) ||
307 is_wet(pos.x+1, pos.y, pos.z) ||
308 is_wet(pos.x-1, pos.y+1, pos.z) ||
309 is_wet(pos.x, pos.y+1, pos.z) ||
310 is_wet(pos.x+1, pos.y+1, pos.z) ||
311 is_wet(pos.x, pos.y, pos.z+1);
312}
313
314/////////////////////////////////////////////////////
315// event handlers

Callers 3

unhide_taggedFunction · 0.85
paintScreenWarmDampFunction · 0.85

Calls 1

is_wetFunction · 0.85

Tested by

no test coverage detected