version 1.24 | | version 1.25 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.24 2000/12/14 03:52:33 avogl Exp $"; | | * "$Id: attack.c,v 1.25 2000/12/15 15:42:36 avogl Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
object *tmp; | | object *tmp; |
int flag=0; | | int flag=0; |
| | |
/* Items only get corroded if your not on a battleground and your not immune. */ | | /* Items only get corroded if you're not on a battleground and if |
if (!op_on_battleground(op, NULL, NULL) && (op->resist[ATNR_ACID]<100)) { | | * your acid resistance is below 50%. */ |
| | if (!op_on_battleground(op, NULL, NULL) && (op->resist[ATNR_ACID]<50)) { |
for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) { | | for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) { |
| | |
if(!QUERY_FLAG(tmp,FLAG_APPLIED)||tmp->resist[ATNR_ACID]>=50) | | if(!QUERY_FLAG(tmp,FLAG_APPLIED)||tmp->resist[ATNR_ACID]>=10) |
continue; | | continue; /* >= 10% acid res. on itmes will protect these */ |
| | |
if(!(tmp->material&M_IRON)) | | if(!(tmp->material&M_IRON)) |
continue; | | continue; |
| | |
def_lev = 1; | | def_lev = 1; |
} | | } |
atk_lev = SK_level (hitter) / 2; | | atk_lev = SK_level (hitter) / 2; |
LOG(llevDebug,"Deathstrike - attack level %d, defender level %d\n", | | /* LOG(llevDebug,"Deathstrike - attack level %d, defender level %d\n", |
atk_lev, def_lev); | | atk_lev, def_lev); */ |
| | |
if(atk_lev >= def_lev ){ | | if(atk_lev >= def_lev ){ |
kill_lev = RANDOM() % atk_lev; | | kill_lev = RANDOM() % atk_lev; |