Difference for server/attack.c from version 1.85 to 1.86


version 1.85 version 1.86
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_attack_c =   * static char *rcsid_attack_c =
  *   "$Id: attack.c,v 1.85 2003/02/25 07:18:07 mwedel Exp $";   *   "$Id: attack.c,v 1.86 2003/03/08 05:35:32 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 1052
 
Line 1052
         if (op->speed &&           if (op->speed &&
      (QUERY_FLAG(op, FLAG_MONSTER) || op->type==PLAYER) &&       (QUERY_FLAG(op, FLAG_MONSTER) || op->type==PLAYER) &&
      !(rndm(0, (attacknum == ATNR_SLOW?6:3)-1)) &&       !(rndm(0, (attacknum == ATNR_SLOW?6:3)-1)) &&
      ((random_roll(1, 20, op, PREFER_LOW) +        !did_make_save(op, level_diff,  op->resist[attacknum]/10)) {
        op->resist[attacknum]/10) < savethrow[level_diff])) {  
   
    /* Player has been hit by something */     /* Player has been hit by something */
    if (attacknum == ATNR_CONFUSION) confuse_player(op,hitter,dam);     if (attacknum == ATNR_CONFUSION) confuse_player(op,hitter,dam);
Line 1709
 
Line 1708
  npc_call_help(op);   npc_call_help(op);
     }      }
   
     if(magic && (random_roll(1, 20, op, PREFER_HIGH))>=savethrow[op->level])      if (magic && did_make_save(op, op->level, 0))
  maxdam=maxdam/2;   maxdam=maxdam/2;
   
     attack_message(maxdam, maxattacktype, op, hitter);      attack_message(maxdam, maxattacktype, op, hitter);


Legend:
line(s) removed in v.1.85 
line(s) changed
 line(s) added in v.1.86

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