version 1.32 | | version 1.33 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.32 2002/03/01 21:33:09 avogl Exp $"; | | * "$Id: living.c,v 1.33 2002/03/03 20:05:57 avogl 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, abil->stats.exp, | | (*dragon_gain_func)(who, abil->stats.exp, |
(int)((1+abil->resist[abil->stats.exp])/5.)); | | (int)((1+abil->resist[abil->stats.exp])/5.)); |
} | | } |
| | |
if(op->level < MAXLEVEL && op->stats.exp >= level_exp(op->level+1,op->expmul)) { | | if(op->level < MAXLEVEL && op->stats.exp >= level_exp(op->level+1,op->expmul)) { |
op->level++; | | op->level++; |
| | |
if (op != NULL && op == who && op->stats.exp > 1 && | | if (op != NULL && op == who && op->stats.exp > 1 && is_dragon_pl(who)) |
op->type == PLAYER && strcmp(op->race, "dragon")==0) | | |
dragon_level_gain(who); | | dragon_level_gain(who); |
| | |
if(who && (who->level < 11) && op->type!=EXPERIENCE) { | | if(who && (who->level < 11) && op->type!=EXPERIENCE) { |