Difference for server/attack.c from version 1.15 to 1.16


version 1.15 version 1.16
Line 1
 
Line 1
 /*  /*
  * 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
Line 363
 
Line 363
  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


Legend:
line(s) removed in v.1.15 
line(s) changed
 line(s) added in v.1.16

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:25