| 904 | } |
| 905 | |
| 906 | static const char * get_roller_str(df::building *b) { |
| 907 | df::building_rollersst *r = virtual_cast<df::building_rollersst>(b); |
| 908 | if (!r) |
| 909 | return "~"; |
| 910 | |
| 911 | switch (r->direction) { |
| 912 | case screw_pump_direction::FromNorth: return add_speed_suffix(r, "Mr"); |
| 913 | case screw_pump_direction::FromEast: return add_speed_suffix(r, "Mrs"); |
| 914 | case screw_pump_direction::FromSouth: return add_speed_suffix(r, "Mrss"); |
| 915 | case screw_pump_direction::FromWest: return add_speed_suffix(r, "Mrsss"); |
| 916 | default: |
| 917 | return "~"; |
| 918 | } |
| 919 | } |
| 920 | |
| 921 | static const char * get_build_keys(const df::coord &pos, |
| 922 | const tile_context &ctx, |
no test coverage detected