return TRUE if monster is up in the air/on the ceiling */
| 2127 | |
| 2128 | /* return TRUE if monster is up in the air/on the ceiling */ |
| 2129 | boolean |
| 2130 | m_in_air(struct monst *mtmp) |
| 2131 | { |
| 2132 | return (is_flyer(mtmp->data) |
| 2133 | || is_floater(mtmp->data) |
| 2134 | || (is_clinger(mtmp->data) |
| 2135 | && has_ceiling(&u.uz) && mtmp->mundetected)); |
| 2136 | } |
| 2137 | |
| 2138 | /* return number of acceptable neighbour positions */ |
| 2139 | int |
no test coverage detected