Return a simplified floor solid/liquid state based on hero's state */
| 1830 | |
| 1831 | /* Return a simplified floor solid/liquid state based on hero's state */ |
| 1832 | staticfn schar |
| 1833 | u_simple_floortyp(coordxy x, coordxy y) |
| 1834 | { |
| 1835 | boolean u_in_air = (Levitation || Flying || !grounded(gy.youmonst.data)); |
| 1836 | |
| 1837 | if (is_waterwall(x, y)) |
| 1838 | return WATER; /* wall of water, fly/lev does not matter */ |
| 1839 | if (levl[x][y].typ == LAVAWALL) |
| 1840 | return LAVAWALL; /* wall of lava, fly/lev does not matter */ |
| 1841 | if (!u_in_air) { |
| 1842 | if (is_pool(x, y)) |
| 1843 | return POOL; |
| 1844 | if (is_lava(x, y)) |
| 1845 | return LAVAPOOL; |
| 1846 | } |
| 1847 | return ROOM; |
| 1848 | } |
| 1849 | |
| 1850 | /* maybe show a helpful gameplay tip? returns True if tip gets shown */ |
| 1851 | boolean |
no test coverage detected