horses can't vomit

No idea about unicorns though...
This commit is contained in:
PatR
2024-04-08 12:46:41 -07:00
parent f545ca8f22
commit c96f2e7eb5

View File

@@ -566,11 +566,14 @@ sticks(struct permonst *ptr)
boolean
cantvomit(struct permonst *ptr)
{
/* rats and mice are incapable of vomiting;
/* rats and mice are incapable of vomiting; likewise with horses;
which other creatures have the same limitation? */
if (ptr->mlet == S_RODENT && ptr != &mons[PM_ROCK_MOLE]
&& ptr != &mons[PM_WOODCHUCK])
return TRUE;
if (ptr == &mons[PM_WARHORSE] || ptr == &mons[PM_HORSE]
|| ptr == &mons[PM_PONY])
return TRUE;
return FALSE;
}