version 1.57 | | version 1.58 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.57 2003/11/10 05:39:50 mwedel Exp $"; | | * "$Id: living.c,v 1.58 2003/12/28 06:06:00 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
(tmp->type == BOOTS) || (tmp->type == GLOVES) || | | (tmp->type == BOOTS) || (tmp->type == GLOVES) || |
(tmp->type == AMULET ) || (tmp->type == GIRDLE) || | | (tmp->type == AMULET ) || (tmp->type == GIRDLE) || |
(tmp->type == BRACERS ) || (tmp->type == CLOAK) || | | (tmp->type == BRACERS ) || (tmp->type == CLOAK) || |
(tmp->type == DISEASE) || (tmp->type == FORCE)) { | | (tmp->type == DISEASE) || (tmp->type == FORCE) || |
| | (tmp->type == SKILL)) { |
op->contr->digestion += tmp->stats.food; | | op->contr->digestion += tmp->stats.food; |
op->contr->gen_hp += tmp->stats.hp; | | op->contr->gen_hp += tmp->stats.hp; |
op->contr->gen_sp += tmp->stats.sp; | | op->contr->gen_sp += tmp->stats.sp; |
| | |
if (abil == NULL) return; | | if (abil == NULL) return; |
| | |
/* The ability_force keeps track of maximum level ever achieved. | | /* The ability_force keeps track of maximum level ever achieved. |
New abilties can only be gained by surpassing this max level */ | | * New abilties can only be gained by surpassing this max level |
| | */ |
if (who->level > abil->level) { | | if (who->level > abil->level) { |
/* increase our focused ability */ | | /* increase our focused ability */ |
abil->resist[abil->stats.exp]++; | | abil->resist[abil->stats.exp]++; |
| | |
| | |
if (abil->resist[abil->stats.exp]>0 && abil->resist[abil->stats.exp]%5 == 0) { | | if (abil->resist[abil->stats.exp]>0 && abil->resist[abil->stats.exp]%5 == 0) { |
/* time to hand out a new ability-gift */ | | /* time to hand out a new ability-gift */ |
(*dragon_gain_func)(who, (int)abil->stats.exp, | | (*dragon_gain_func)(who, (int)abil->stats.exp, |