version 1.15 | | version 1.16 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.15 2000/10/12 18:10:35 peterm Exp $"; | | * "$Id: attack.c,v 1.16 2000/10/19 08:20:29 peterm Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
return 1; | | return 1; |
} | | } |
| | |
| | /* BROKEN: the luck code. If you look carefully, luck has these effects: |
| | positive luck adds to the damage YOU take and to YOUR likelihood |
| | of getting HIT. This is intolerable. I am setting "luck" in this |
| | broken routine to zero, for now. |
if(op->stats.luck) { | | if(op->stats.luck) { |
luck=RANDOM()%abs(op->stats.luck); | | luck=RANDOM()%abs(op->stats.luck); |
if(op->stats.luck<0) | | if(op->stats.luck<0) |
luck= -luck; | | luck= -luck; |
} | | }*/ |
| | luck = 0; /* Fix for the broken code below */ |
if((int)luck < -5) | | if((int)luck < -5) |
roll= -20; | | roll= -20; |
else | | else |