version 1.80 | | version 1.81 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.80 2003/01/04 00:28:52 mwedel Exp $"; | | * "$Id: attack.c,v 1.81 2003/01/08 08:28:59 garbled Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (op->type != PLAYER || hitter->type != PLAYER) | | if (op->type != PLAYER || hitter->type != PLAYER) |
add_exp(hitter,op->stats.exp/(rate*2)); | | add_exp(hitter,op->stats.exp/(rate*2)); |
} | | } |
if (hitter->type != PLAYER) | | |
add_exp(op,-op->stats.exp/rate); | | add_exp(op,-op->stats.exp/rate); |
} | | } |
dam = 1; /* Drain is an effect. Still return 1 - otherwise, if you have pure | | dam = 1; /* Drain is an effect. Still return 1 - otherwise, if you have pure |