| 870 | } |
| 871 | |
| 872 | BlockInfo::GroundType MapExtras::BlockInfo::getGroundType(int material) |
| 873 | { |
| 874 | auto raw = df::inorganic_raw::find(material); |
| 875 | if (!raw) |
| 876 | return G_UNKNOWN; |
| 877 | |
| 878 | if (raw->flags.is_set(inorganic_flags::SOIL_ANY)) |
| 879 | return G_SOIL; |
| 880 | |
| 881 | return G_STONE; |
| 882 | } |
| 883 | |
| 884 | t_matpair MapExtras::BlockInfo::getBaseMaterial(df::tiletype tt, df::coord2d pos) |
| 885 | { |