version 1.53 | | version 1.54 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.53 2001/11/01 06:34:32 garbled Exp $"; | | * "$Id: attack.c,v 1.54 2001/11/01 19:53:14 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
sprintf(buf2, " misses"); | | sprintf(buf2, " misses"); |
found++; | | found++; |
} else if ((hitter->type == DISEASE || hitter->type == SYMPTOM || | | } else if ((hitter->type == DISEASE || hitter->type == SYMPTOM || |
| | hitter->type == POISONING || |
(type & AT_POISON && IS_LIVE(op))) && !found) { | | (type & AT_POISON && IS_LIVE(op))) && !found) { |
for (i=0; i < MAXATTACKMESS && attack_mess[ATM_SUFFER][i].level != -1; | | for (i=0; i < MAXATTACKMESS && attack_mess[ATM_SUFFER][i].level != -1; |
i++) | | i++) |
| | |
fix_player(op); | | fix_player(op); |
new_draw_info(NDI_UNIQUE, 0,op,"You suddenly feel very ill."); | | new_draw_info(NDI_UNIQUE, 0,op,"You suddenly feel very ill."); |
} | | } |
| | if (hitter->type == PLAYER) |
| | new_draw_info_format(NDI_UNIQUE, 0, hitter, "You poison %s.", |
| | op->name); |
| | else if (get_owner(hitter) != NULL && hitter->owner->type == PLAYER) |
| | new_draw_info_format(NDI_UNIQUE, 0, hitter->owner, |
| | "Your %s poisons %s.", hitter->name, op->name); |
} | | } |
tmp->speed_left=0; | | tmp->speed_left=0; |
} | | } |