version 1.59 | | version 1.60 |
---|
| | |
| | |
/* | | /* |
* static char *rcs_treasure_c = | | * static char *rcs_treasure_c = |
* "$Id: treasure.c,v 1.59 2005/09/04 16:58:12 akirschbaum Exp $"; | | * "$Id: treasure.c,v 1.60 2005/10/05 01:01:05 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
create_one_treasure(tl, op, flag, difficulty, tries); | | create_one_treasure(tl, op, flag, difficulty, tries); |
return; | | return; |
} | | } |
if(t->item->clone.invisible != 0 || flag != GT_INVISIBLE) { | | if((t->item && t->item->clone.invisible != 0) || flag != GT_INVISIBLE) { |
object *tmp=arch_to_object(t->item); | | object *tmp=arch_to_object(t->item); |
| | if (!tmp) return; |
if(t->nrof && tmp->nrof<=1) | | if(t->nrof && tmp->nrof<=1) |
tmp->nrof = RANDOM()%((int) t->nrof) + 1; | | tmp->nrof = RANDOM()%((int) t->nrof) + 1; |
fix_generated_item (tmp, op, difficulty, t->magic, flag); | | fix_generated_item (tmp, op, difficulty, t->magic, flag); |