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

Function cantvomit

src/mondata.c:662–674  ·  view source on GitHub ↗

some monster-types can't vomit */

Source from the content-addressed store, hash-verified

660
661/* some monster-types can't vomit */
662boolean
663cantvomit(struct permonst *ptr)
664{
665 /* rats and mice are incapable of vomiting; likewise with horses;
666 which other creatures have the same limitation? */
667 if (ptr->mlet == S_RODENT && ptr != &mons[PM_ROCK_MOLE]
668 && ptr != &mons[PM_WOODCHUCK])
669 return TRUE;
670 if (ptr == &mons[PM_WARHORSE] || ptr == &mons[PM_HORSE]
671 || ptr == &mons[PM_PONY])
672 return TRUE;
673 return FALSE;
674}
675
676/* number of horns this type of monster has on its head */
677int

Callers 2

vomiting_dialogueFunction · 0.85
vomitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected