version 1.15 | | version 1.16 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.15 2000/12/14 03:51:21 avogl Exp $"; | | * "$Id: living.c,v 1.16 2000/12/15 15:36:25 avogl Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
wc=op->arch->clone.stats.wc; | | wc=op->arch->clone.stats.wc; |
op->stats.dam=op->arch->clone.stats.dam; | | op->stats.dam=op->arch->clone.stats.dam; |
| | |
| | if(!QUERY_FLAG(op,FLAG_USE_ARMOUR) && op->type==PLAYER) { |
if(!QUERY_FLAG(op,FLAG_USE_ARMOUR) && op->type==PLAYER) | | /* for players which cannot use armour, they gain AC -1 per 3 levels, |
/* for players which cannot use armour, they gain AC -1 per 3 levels. */ | | * plus a small amount of physical resist, those poor suckers. ;) */ |
op->stats.ac=MAX(-10,op->arch->clone.stats.ac - op->level/3); | | op->stats.ac=MAX(-10,op->arch->clone.stats.ac - op->level/3); |
| | prot[ATNR_PHYSICAL] += ((100-prot[AT_PHYSICAL])*(80*op->level/MAXLEVEL))/100; |
| | } |
else | | else |
op->stats.ac=op->arch->clone.stats.ac; | | op->stats.ac=op->arch->clone.stats.ac; |
| | |
| | |
op->stats.luck=op->arch->clone.stats.luck; | | op->stats.luck=op->arch->clone.stats.luck; |
op->speed = op->arch->clone.speed; | | op->speed = op->arch->clone.speed; |
| | |