version 1.24 | | version 1.25 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.24 2000/12/04 00:40:05 cvs Exp $"; | | * "$Id: apply.c,v 1.25 2000/12/14 03:52:33 avogl Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (tmp->resist[i]) { | | if (tmp->resist[i]) { |
if (!force) force=get_archetype("force"); | | if (!force) force=get_archetype("force"); |
memcpy(force->resist, tmp->resist, sizeof(tmp->resist)); | | memcpy(force->resist, tmp->resist, sizeof(tmp->resist)); |
| | force->type=POTION_EFFECT; |
break; /* Only need to find one protection since we copy entire batch */ | | break; /* Only need to find one protection since we copy entire batch */ |
} | | } |
} | | } |
| | |
/* cursed items last longer */ | | /* cursed items last longer */ |
if(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED)) { | | if(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED)) { |
force->stats.food*=10; | | force->stats.food*=10; |
| | for (i=0; i<NROFATTACKS; i++) |
| | if (force->resist[i] > 0) |
| | force->resist[i] = -force->resist[i]; /* prot => vuln */ |
} | | } |
force->speed_left= -1; | | force->speed_left= -1; |
force = insert_ob_in_ob(force,op); | | force = insert_ob_in_ob(force,op); |