True if monster-type is especially affected by silver weapons */
| 521 | |
| 522 | /* True if monster-type is especially affected by silver weapons */ |
| 523 | boolean |
| 524 | hates_silver(struct permonst *ptr) |
| 525 | { |
| 526 | return (boolean) (is_were(ptr) || ptr->mlet == S_VAMPIRE || is_demon(ptr) |
| 527 | || ptr == &mons[PM_SHADE] |
| 528 | || (ptr->mlet == S_IMP && ptr != &mons[PM_TENGU])); |
| 529 | } |
| 530 | |
| 531 | /* True if specific monster is especially affected by blessed objects */ |
| 532 | boolean |