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

Function can_blow

src/mondata.c:566–576  ·  view source on GitHub ↗

returns True if monster can blow (whistle, etc) */

Source from the content-addressed store, hash-verified

564
565/* returns True if monster can blow (whistle, etc) */
566boolean
567can_blow(struct monst *mtmp)
568{
569 if ((is_silent(mtmp->data) || mtmp->data->msound == MS_BUZZ)
570 && (breathless(mtmp->data) || verysmall(mtmp->data)
571 || !has_head(mtmp->data) || mtmp->data->mlet == S_EEL))
572 return FALSE;
573 if ((mtmp == &gy.youmonst) && Strangled)
574 return FALSE;
575 return TRUE;
576}
577
578/* for casting spells and reading scrolls while blind */
579boolean

Callers 6

do_play_instrumentFunction · 0.85
find_offensiveFunction · 0.85
searches_for_itemFunction · 0.85
cures_slimingFunction · 0.85
use_whistleFunction · 0.85
use_magic_whistleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected