version 1.107 | | version 1.108 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.107 2005/07/19 20:59:34 ryo_saeba Exp $"; | | * "$Id: attack.c,v 1.108 2005/07/26 00:23:00 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
{ | | { |
object *tmp; | | object *tmp; |
| | |
| | if (op->invisible) |
| | return; |
| | |
if (QUERY_FLAG (op, FLAG_ALIVE) || op->type == CONTAINER || op->type == THROWN_OBJ) { | | if (QUERY_FLAG (op, FLAG_ALIVE) || op->type == CONTAINER || op->type == THROWN_OBJ) { |
/* Recur through the inventory */ | | /* Recur through the inventory */ |
for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) | | for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) |
| | |
{ | | { |
object *tmp; | | object *tmp; |
for(tmp=op->inv; tmp!=NULL; tmp=tmp->below) { | | for(tmp=op->inv; tmp!=NULL; tmp=tmp->below) { |
| | if(tmp->invisible) |
| | continue; |
if(!QUERY_FLAG(tmp, FLAG_APPLIED) || | | if(!QUERY_FLAG(tmp, FLAG_APPLIED) || |
(tmp->resist[ATNR_ACID] >= 10)) | | (tmp->resist[ATNR_ACID] >= 10)) |
/* >= 10% acid res. on itmes will protect these */ | | /* >= 10% acid res. on itmes will protect these */ |