return an appropriate locomotion word for hero */
| 1814 | |
| 1815 | /* return an appropriate locomotion word for hero */ |
| 1816 | const char * |
| 1817 | u_locomotion(const char *def) |
| 1818 | { |
| 1819 | boolean capitalize = (*def == highc(*def)); |
| 1820 | |
| 1821 | /* regular locomotion() takes a monster type rather than a specific |
| 1822 | monster, so can't tell whether it is operating on hero; |
| 1823 | its is_flyer() and is_floater() tests wouldn't work on hero except |
| 1824 | when hero is polymorphed and not wearing an amulet of flying |
| 1825 | or boots/ring/spell of levitation */ |
| 1826 | return Levitation ? (capitalize ? "Float" : "float") |
| 1827 | : Flying ? (capitalize ? "Fly" : "fly") |
| 1828 | : locomotion(gy.youmonst.data, def); |
| 1829 | } |
| 1830 | |
| 1831 | /* Return a simplified floor solid/liquid state based on hero's state */ |
| 1832 | staticfn schar |
no test coverage detected