Difference for common/treasure.c from version 1.4 to 1.5


version 1.4 version 1.5
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.4 2000/12/04 00:40:03 cvs Exp $";   *   "$Id: treasure.c,v 1.5 2000/12/05 04:56:36 cvs Exp $";
  */   */
   
 /*  /*
Line 1177
 
Line 1177
      
   for (i=0; i<NROFATTACKS; i++) {    for (i=0; i<NROFATTACKS; i++) {
     if (change->resist[i]) {      if (change->resist[i]) {
  if (change->resist[i] < 0)  
      op->resist[i] = change->resist[i];  
  else if (change->resist[i] > 0) {  
      if ((op->type==ARMOUR || op->type==HELMET || op->type==SHIELD) && i==ATNR_PHYSICAL) {  
  op->resist[i] = (op->resist[i] * change->resist[i])/10;  
      }  
      else {  
  op->resist[i] += change->resist[i];   op->resist[i] += change->resist[i];
      }       }
  }   }
     }  
   }  
   if (change->stats.dam) {    if (change->stats.dam) {
     if (change->stats.dam < 0)      if (change->stats.dam < 0)
       op->stats.dam = (-change->stats.dam);        op->stats.dam = (-change->stats.dam);


Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5

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