version 1.69 | | version 1.70 |
---|
| | |
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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; |
| | |
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) |