| 289 | } |
| 290 | |
| 291 | static 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 | |
| 302 | static bool is_damp(const df::coord &pos) { |
| 303 | return is_wet(pos.x-1, pos.y-1, pos.z) || |
no test coverage detected