Can this monster wear a saddle? */
| 23 | |
| 24 | /* Can this monster wear a saddle? */ |
| 25 | boolean |
| 26 | can_saddle(struct monst *mtmp) |
| 27 | { |
| 28 | struct permonst *ptr = mtmp->data; |
| 29 | |
| 30 | return (strchr(steeds, ptr->mlet) && (ptr->msize >= MZ_MEDIUM) |
| 31 | && (!humanoid(ptr) || ptr->mlet == S_CENTAUR) && !amorphous(ptr) |
| 32 | && !noncorporeal(ptr) && !is_whirly(ptr) && !unsolid(ptr)); |
| 33 | } |
| 34 | |
| 35 | int |
| 36 | use_saddle(struct obj *otmp) |
no outgoing calls
no test coverage detected