version 1.19 | | version 1.20 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.19 2001/10/14 07:57:14 gros Exp $"; | | * "$Id: treasure.c,v 1.20 2001/10/30 00:49:02 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
case 4: | | case 4: |
case 5: | | case 5: |
case 6: | | case 6: |
set_attr_value(&op->stats, r, bonus + get_attr_value(&op->stats,r)); | | set_attr_value(&op->stats, r, (signed char) (bonus + get_attr_value(&op->stats,r))); |
break; | | break; |
| | |
case 7: | | case 7: |
| | |
free_string(item->name); | | free_string(item->name); |
item->name=add_string(tmpbuf); | | item->name=add_string(tmpbuf); |
/* weight is FLESH weight/100 * donor */ | | /* weight is FLESH weight/100 * donor */ |
if((item->weight = (float) (item->weight/100.0) * donor->weight)==0) | | if((item->weight = (signed long) (((float)item->weight/100.0) * (float)donor->weight))==0) |
item->weight=1; | | item->weight=1; |
| | |
/* value is multiplied by level of donor */ | | /* value is multiplied by level of donor */ |