version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_pets_c = | | * static char *rcsid_pets_c = |
* "$Id: pets.c,v 1.22 2004/04/05 07:01:11 mwedel Exp $"; | | * "$Id: pets.c,v 1.23 2004/05/04 07:14:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
for (tr=spell_ob->randomitems->items; tr; tr=tr->next) { | | for (tr=spell_ob->randomitems->items; tr; tr=tr->next) { |
if (level < tr->magic) break; | | if (level < tr->magic) break; |
if (tr->next == NULL || tr->next->item == NULL) break; | | |
lasttr = tr; | | lasttr = tr; |
| | if (tr->next == NULL || tr->next->item == NULL) break; |
} | | } |
if (!lasttr) { | | if (!lasttr) { |
LOG(llevError,"Treasurelist %s did not generate a valid entry in summon_object\n", | | LOG(llevError,"Treasurelist %s did not generate a valid entry in summon_object\n", |
| | |
head = insert_ob_in_map(head, head->map, op, 0); | | head = insert_ob_in_map(head, head->map, op, 0); |
if (head && head->randomitems) { | | if (head && head->randomitems) { |
object *tmp; | | object *tmp; |
create_treasure(head->randomitems, head, GT_APPLY, 6, 0); | | create_treasure(head->randomitems, head, GT_APPLY | GT_STARTEQUIP, 6, 0); |
for (tmp=head->inv; tmp; tmp=tmp->below) | | for (tmp=head->inv; tmp; tmp=tmp->below) |
if (!tmp->nrof) SET_FLAG(tmp, FLAG_NO_DROP); | | if (!tmp->nrof) SET_FLAG(tmp, FLAG_NO_DROP); |
} | | } |