version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_skill_util_c = | | * static char *rcsid_skill_util_c = |
* "$Id: skill_util.c,v 1.10 2000/10/16 19:19:31 peterm Exp $"; | | * "$Id: skill_util.c,v 1.11 2000/12/18 01:46:07 peterm Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
for(tmp=pl->inv;tmp&&sk_index<100;tmp=tmp->below) | | for(tmp=pl->inv;tmp&&sk_index<100;tmp=tmp->below) |
if(tmp->type==EXPERIENCE) { | | if(tmp->type==EXPERIENCE) { |
exp_ob[exp_index] = tmp; | | exp_ob[exp_index] = tmp; |
| | tmp->nrof=1; /* to handle multiple instances */ |
exp_index++; | | exp_index++; |
} else if (tmp->type==SKILL) { | | } else if (tmp->type==SKILL) { |
/* for startup, lets unapply all skills */ | | /* for startup, lets unapply all skills */ |
CLEAR_FLAG (tmp, FLAG_APPLIED); | | CLEAR_FLAG (tmp, FLAG_APPLIED); |
if (tmp->invisible) { | | if (tmp->invisible) { |
| | tmp->nrof=1; /* to handle multiple instances */ |
sk_ob[sk_index]=tmp; | | sk_ob[sk_index]=tmp; |
sk_index++; | | sk_index++; |
} | | } |