some monster-types can't vomit */
| 660 | |
| 661 | /* some monster-types can't vomit */ |
| 662 | boolean |
| 663 | cantvomit(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 */ |
| 677 | int |
no outgoing calls
no test coverage detected