* variation of leashable() that takes a PM_ index */
| 1459 | /* |
| 1460 | * variation of leashable() that takes a PM_ index */ |
| 1461 | staticfn boolean |
| 1462 | mnum_leashable(int mnum) |
| 1463 | { |
| 1464 | return ((mnum >= LOW_PM && mnum <= HIGH_PM) |
| 1465 | && mnum != PM_LONG_WORM && !unsolid(&mons[mnum]) |
| 1466 | && (!nolimbs(&mons[mnum]) || has_head(&mons[mnum]))) |
| 1467 | ? TRUE |
| 1468 | : FALSE; |
| 1469 | } |
| 1470 | |
| 1471 | void |
| 1472 | quickmimic(struct monst *mtmp) |