version 1.50 | | version 1.51 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.50 2001/10/31 07:00:24 garbled Exp $"; | | * "$Id: attack.c,v 1.51 2001/10/31 10:21:09 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
sprintf(buf1, "missed %s", op->name); | | sprintf(buf1, "missed %s", op->name); |
sprintf(buf2, " misses"); | | sprintf(buf2, " misses"); |
found++; | | found++; |
| | } else if (op->type == DOOR && !found) { |
| | for (i=0; i < MAXATTACKMESS && attack_mess[ATM_DOOR][i].level != -1; |
| | i++) |
| | if (dam < attack_mess[ATM_DOOR][i].level) { |
| | sprintf(buf1, "%s %s%s", attack_mess[ATM_DOOR][i].buf1, |
| | op->name, attack_mess[ATM_DOOR][i].buf2); |
| | sprintf(buf2, "%s", attack_mess[ATM_DOOR][i].buf3); |
| | found++; |
| | break; |
| | } |
} else if (hitter->type == PLAYER && IS_LIVE(op)) { | | } else if (hitter->type == PLAYER && IS_LIVE(op)) { |
if (USING_SKILL(hitter, SK_KARATE)) { | | if (USING_SKILL(hitter, SK_KARATE)) { |
for (i=0; i < MAXATTACKMESS && attack_mess[ATM_KARATE][i].level != -1; | | for (i=0; i < MAXATTACKMESS && attack_mess[ATM_KARATE][i].level != -1; |