Regular ground materials = stone + soil
| 206 | |
| 207 | // Regular ground materials = stone + soil |
| 208 | inline bool isGroundMaterial(df::tiletype_material mat) |
| 209 | { |
| 210 | using namespace df::enums::tiletype_material; |
| 211 | switch (mat) { |
| 212 | case SOIL: |
| 213 | case STONE: case LAVA_STONE: case MINERAL: case FEATURE: |
| 214 | return true; |
| 215 | default: |
| 216 | return false; |
| 217 | } |
| 218 | } |
| 219 | inline bool isGroundMaterial(df::tiletype tt) { return isGroundMaterial(tileMaterial(tt)); } |
| 220 | |
| 221 | // Core materials - their tile sets are sufficiently close to stone |
nothing calls this directly
no test coverage detected