MCPcopy Create free account
hub / github.com/NetHack/NetHack / m_in_air

Function m_in_air

src/mon.c:2129–2136  ·  view source on GitHub ↗

return TRUE if monster is up in the air/on the ceiling */

Source from the content-addressed store, hash-verified

2127
2128/* return TRUE if monster is up in the air/on the ceiling */
2129boolean
2130m_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 */
2139int

Callers 9

goodposFunction · 0.85
boulder_hits_poolFunction · 0.85
minliquid_coreFunction · 0.85
mfndposFunction · 0.85
trapeffect_sqky_boardFunction · 0.85
trapeffect_bear_trapFunction · 0.85
trapeffect_landmineFunction · 0.85

Calls 1

has_ceilingFunction · 0.85

Tested by

no test coverage detected