Difference for server/attack.c from version 1.75 to 1.76


version 1.75 version 1.76
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_attack_c =   * static char *rcsid_attack_c =
  *   "$Id: attack.c,v 1.75 2002/09/28 07:19:40 mwedel Exp $";   *   "$Id: attack.c,v 1.76 2002/11/13 00:49:47 garbled Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 663
 
Line 663
     /* See if we hit the creature */      /* See if we hit the creature */
     if(roll==20 || op->stats.ac>=base_wc-roll) {      if(roll==20 || op->stats.ac>=base_wc-roll) {
  int hitdam = base_dam;   int hitdam = base_dam;
 #ifdef CASTING_TIME   if (settings.casting_time == TRUE) {
  if ((hitter->type == PLAYER)&&(hitter->casting > -1)){   if ((hitter->type == PLAYER)&&(hitter->casting > -1)){
      hitter->casting = -1;       hitter->casting = -1;
      hitter->spell_state = 1;       hitter->spell_state = 1;
      new_draw_info(NDI_UNIQUE, 0,hitter,"You attacked and lost your spell!");   new_draw_info(NDI_UNIQUE, 0,hitter,"You attacked and lost "
        "your spell!");
  }   }
  if ((op->casting > -1)&&(hitdam > 0)){   if ((op->casting > -1)&&(hitdam > 0)){
      op->casting = -1;       op->casting = -1;
      op->spell_state = 1;       op->spell_state = 1;
      if (op->type == PLAYER)  {       if (op->type == PLAYER)  {
  new_draw_info(NDI_UNIQUE, 0,op,"You were hit and lost your spell!");       new_draw_info(NDI_UNIQUE, 0,op,"You were hit and lost "
    "your spell!");
  new_draw_info_format(NDI_ALL|NDI_UNIQUE,5,NULL,   new_draw_info_format(NDI_ALL|NDI_UNIQUE,5,NULL,
      "%s was hit by %s and lost a spell.",op_name,hitter->name);   "%s was hit by %s and lost a spell.",
    op_name,hitter->name);
    }
      }       }
  }   }
 #endif  
  if ( ! simple_attack)   if ( ! simple_attack)
         {          {
             /* If you hit something, the victim should *always* wake up.              /* If you hit something, the victim should *always* wake up.


Legend:
line(s) removed in v.1.75 
line(s) changed
 line(s) added in v.1.76

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