Difference for common/treasure.c from version 1.69 to 1.70


version 1.69 version 1.70
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.69 2006/08/26 17:56:21 ryo_saeba Exp $";   *   "$Id: treasure.c,v 1.70 2006/09/09 16:07:49 lalo Exp $";
  */   */
   
 /*  /*
Line 1630
 
Line 1630
  sprintf(tmpbuf,"%s's %s",donor->name,item->name_pl);   sprintf(tmpbuf,"%s's %s",donor->name,item->name_pl);
  FREE_AND_COPY(item->name_pl, tmpbuf);   FREE_AND_COPY(item->name_pl, tmpbuf);
   
           /* store original arch in other_arch */
           if(!item->other_arch)
               item->other_arch = donor->arch;
   
  /* weight is FLESH weight/100 * donor */   /* weight is FLESH weight/100 * donor */
  if((item->weight = (signed long) (((double)item->weight/(double)100.0) * (double)donor->weight))==0)   if((item->weight = (signed long) (((double)item->weight/(double)100.0) * (double)donor->weight))==0)
  item->weight=1;   item->weight=1;
Line 1646
 
Line 1650
  for (i=0; i<NROFATTACKS; i++)   for (i=0; i<NROFATTACKS; i++)
      item->resist[i] = donor->resist[i]/2;       item->resist[i] = donor->resist[i]/2;
    
  /* item inherits donor's level (important for quezals) */   /* item inherits donor's level and exp (important for dragons) */
  item->level = donor->level;   item->level = donor->level;
           item->stats.exp = donor->stats.exp;
    
  /* if donor has some attacktypes, the flesh is poisonous */   /* if donor has some attacktypes, the flesh is poisonous */
  if(donor->attacktype&AT_POISON)   if(donor->attacktype&AT_POISON)


Legend:
line(s) removed in v.1.69 
line(s) changed
 line(s) added in v.1.70

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