used for monsters */
| 684 | |
| 685 | /* used for monsters */ |
| 686 | boolean |
| 687 | defends_when_carried(int adtyp, struct obj *otmp) |
| 688 | { |
| 689 | const struct artifact *weap; |
| 690 | |
| 691 | if ((weap = get_artifact(otmp)) != &artilist[ART_NONARTIFACT]) |
| 692 | return (boolean) (weap->cary.adtyp == adtyp); |
| 693 | return FALSE; |
| 694 | } |
| 695 | |
| 696 | /* determine whether an item confers Protection */ |
| 697 | boolean |
no test coverage detected