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

Function can_chant

src/mondata.c:579–587  ·  view source on GitHub ↗

for casting spells and reading scrolls while blind */

Source from the content-addressed store, hash-verified

577
578/* for casting spells and reading scrolls while blind */
579boolean
580can_chant(struct monst *mtmp)
581{
582 if ((mtmp == &gy.youmonst && Strangled)
583 || is_silent(mtmp->data) || !has_head(mtmp->data)
584 || mtmp->data->msound == MS_BUZZ || mtmp->data->msound == MS_BURBLE)
585 return FALSE;
586 return TRUE;
587}
588
589/* True if mon is vulnerable to strangulation */
590boolean

Callers 3

doturnFunction · 0.85
rejectcastingFunction · 0.85
doreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected