version 1.16 | | version 1.17 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.16 2001/04/21 01:22:43 mardahl Exp $"; | | * "$Id: item.c,v 1.17 2001/06/12 04:29:44 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* Physical protection is expected on some item types, so they should | | /* Physical protection is expected on some item types, so they should |
* not be considered magical. | | * not be considered magical. |
*/ | | */ |
if (op->resist[ATNR_PHYSICAL] && op->type != HELMET && op->type != SHIELD | | if (op->resist[ATNR_PHYSICAL] && op->type != HELMET && op->type != SHIELD && |
&& op->type != ARMOUR) return 1; | | op->type != BOOTS && op->type != GLOVES && op->type != ARMOUR) return 1; |
| | |
/* power crystal, spellbooks, and scrolls are always magical. */ | | /* power crystal, spellbooks, and scrolls are always magical. */ |
if (op->magic || op->type==POWER_CRYSTAL || op->type==SPELLBOOK || | | if (op->magic || op->type==POWER_CRYSTAL || op->type==SPELLBOOK || |