Difference for server/attack.c from version 1.24 to 1.25


version 1.24 version 1.25
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_attack_c =   * static char *rcsid_attack_c =
  *   "$Id: attack.c,v 1.24 2000/12/14 03:52:33 avogl Exp $";   *   "$Id: attack.c,v 1.25 2000/12/15 15:42:36 avogl Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 846
 
Line 846
  object *tmp;   object *tmp;
  int flag=0;   int flag=0;
   
  /* Items only get corroded if your not on a battleground and your not immune. */   /* Items only get corroded if you're not on a battleground and if
  if (!op_on_battleground(op, NULL, NULL) && (op->resist[ATNR_ACID]<100)) {           * your acid resistance is below 50%. */
    if (!op_on_battleground(op, NULL, NULL) && (op->resist[ATNR_ACID]<50)) {
      for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) {       for(tmp=op->inv;tmp!=NULL;tmp=tmp->below) {
   
  if(!QUERY_FLAG(tmp,FLAG_APPLIED)||tmp->resist[ATNR_ACID]>=50)    if(!QUERY_FLAG(tmp,FLAG_APPLIED)||tmp->resist[ATNR_ACID]>=10)
      continue;     continue;  /* >= 10% acid res. on itmes will protect these */
   
  if(!(tmp->material&M_IRON))   if(!(tmp->material&M_IRON))
      continue;       continue;
Line 1496
 
Line 1497
         def_lev = 1;          def_lev = 1;
     }      }
     atk_lev = SK_level (hitter) / 2;      atk_lev = SK_level (hitter) / 2;
     LOG(llevDebug,"Deathstrike - attack level %d, defender level %d\n",      /* LOG(llevDebug,"Deathstrike - attack level %d, defender level %d\n",
  atk_lev, def_lev);         atk_lev, def_lev); */
   
     if(atk_lev >= def_lev ){      if(atk_lev >= def_lev ){
  kill_lev = RANDOM() % atk_lev;   kill_lev = RANDOM() % atk_lev;


Legend:
line(s) removed in v.1.24 
line(s) changed
 line(s) added in v.1.25

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