version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_treasure_c = | | * static char *rcsid_treasure_c = |
* "$Id: treasure.c,v 1.23 2005/11/16 08:16:08 mwedel Exp $"; | | * "$Id: treasure.c,v 1.24 2006/01/08 23:12:26 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* put the treasures in the chest. */ | | /* put the treasures in the chest. */ |
/* if(style_map) { */ | | /* if(style_map) { */ |
if(0) { /* don't use treasure style maps for now! */ | | #if 0 /* don't use treasure style maps for now! */ |
int ti; | | int ti; |
/* if treasurestyle lists a treasure list, use it. */ | | /* if treasurestyle lists a treasure list, use it. */ |
treasurelist *tlist=find_treasurelist(RP->treasurestyle); | | treasurelist *tlist=find_treasurelist(RP->treasurestyle); |
| | |
the_chest->randomitems=tlist; | | the_chest->randomitems=tlist; |
the_chest->stats.hp = n_treasures; | | the_chest->stats.hp = n_treasures; |
} | | } |
} | | #endif |
else { /* neither style_map no treasure list given */ | | else { /* neither style_map no treasure list given */ |
treasurelist *tlist=find_treasurelist("chest"); | | treasurelist *tlist=find_treasurelist("chest"); |
the_chest->randomitems=tlist; | | the_chest->randomitems=tlist; |