version 1.16 | | version 1.17 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.16 2000/12/15 15:36:25 avogl Exp $"; | | * "$Id: living.c,v 1.17 2000/12/17 00:39:16 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* 'total resistance = vulnerability from cursed potion'. */ | | * 'total resistance = vulnerability from cursed potion'. */ |
for (i=0; i<NROFATTACKS; i++) { | | for (i=0; i<NROFATTACKS; i++) { |
op->resist[i] = prot[i] - vuln[i]; | | op->resist[i] = prot[i] - vuln[i]; |
if (potion_resist[i] && potion_resist[i] > op->resist[i] || | | if (potion_resist[i] && ((potion_resist[i] > op->resist[i]) || |
potion_resist[i] < 0) | | (potion_resist[i] < 0))) |
op->resist[i] = potion_resist[i]; | | op->resist[i] = potion_resist[i]; |
} | | } |
| | |