[CF-Devel] CVS update: crossfire/server
Crossfire CVS devel
mwedel at scruznet.com
Thu Oct 19 03:20:29 CDT 2000
Date: Thursday October 19, 2000 @ 1:20
Author: peterm
Update of /home/cvs/CVS/crossfire/server
In directory boltzmann.eecs.berkeley.edu:/tmp/cvs-serv433
Modified Files:
attack.c
Log Message:
Very broken code having to do with luck and attacking/being hit.
Disabled it for now by setting luck to 0 in this code.
--PeterM
****************************************
Index: crossfire/server/attack.c
diff -u crossfire/server/attack.c:1.15 crossfire/server/attack.c:1.16
--- crossfire/server/attack.c:1.15 Thu Oct 12 11:10:35 2000
+++ crossfire/server/attack.c Thu Oct 19 01:20:29 2000
@@ -1,6 +1,6 @@
/*
* 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
@@ -362,12 +362,17 @@
}
return 1;
}
-
- if(op->stats.luck) {
+
+ /* 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) {
luck=RANDOM()%abs(op->stats.luck);
if(op->stats.luck<0)
luck= -luck;
- }
+ }*/
+ luck = 0; /* Fix for the broken code below */
if((int)luck < -5)
roll= -20;
else
More information about the crossfire
mailing list