… | |
… | |
203 | { |
203 | { |
204 | for (treasure *t = tl->items; t; t = t->next) |
204 | for (treasure *t = tl->items; t; t = t->next) |
205 | { |
205 | { |
206 | if (t->next_yes || t->next_no) |
206 | if (t->next_yes || t->next_no) |
207 | { |
207 | { |
208 | LOG (llevError, "Treasure %s is one item, but on treasure %s\n", &tl->name, t->item ? &t->item->name : &t->name); |
208 | LOG (llevError, "Treasure %s is one item, but on treasure %s\n", &tl->name, t->item ? &t->item->archname : &t->name); |
209 | LOG (llevError, " the next_yes or next_no field is set\n"); |
209 | LOG (llevError, " the next_yes or next_no field is set\n"); |
210 | } |
210 | } |
211 | |
211 | |
212 | tl->total_chance += t->chance; |
212 | tl->total_chance += t->chance; |
213 | } |
213 | } |
… | |
… | |
1268 | fprintf (logfile, "\n"); |
1268 | fprintf (logfile, "\n"); |
1269 | |
1269 | |
1270 | for (at = first_archetype; at != NULL; at = at->next) |
1270 | for (at = first_archetype; at != NULL; at = at->next) |
1271 | if (!strcasecmp (at->clone.name, name) && at->clone.title == NULL) |
1271 | if (!strcasecmp (at->clone.name, name) && at->clone.title == NULL) |
1272 | { |
1272 | { |
1273 | fprintf (logfile, "treasures for %s (arch: %s)\n", &at->clone.name, &at->name); |
1273 | fprintf (logfile, "treasures for %s (arch: %s)\n", &at->clone.name, &at->archname); |
1274 | if (at->clone.randomitems != NULL) |
1274 | if (at->clone.randomitems != NULL) |
1275 | dump_monster_treasure_rec (at->clone.name, at->clone.randomitems->items, 1); |
1275 | dump_monster_treasure_rec (at->clone.name, at->clone.randomitems->items, 1); |
1276 | else |
1276 | else |
1277 | fprintf (logfile, "(nothing)\n"); |
1277 | fprintf (logfile, "(nothing)\n"); |
1278 | |
1278 | |
… | |
… | |
1612 | name = tmp->name + 1, neg = 1; |
1612 | name = tmp->name + 1, neg = 1; |
1613 | else |
1613 | else |
1614 | name = tmp->name, neg = 0; |
1614 | name = tmp->name, neg = 0; |
1615 | |
1615 | |
1616 | /* If we match name, then return the opposite of 'neg' */ |
1616 | /* If we match name, then return the opposite of 'neg' */ |
1617 | if (!strcmp (name, op->name) || (op->arch && !strcmp (name, op->arch->name))) |
1617 | if (!strcmp (name, op->name) || (op->arch && !strcmp (name, op->arch->archname))) |
1618 | return !neg; |
1618 | return !neg; |
1619 | |
1619 | |
1620 | /* Set success as true, since if the match was an inverse, it means |
1620 | /* Set success as true, since if the match was an inverse, it means |
1621 | * everything is allowed except what we match |
1621 | * everything is allowed except what we match |
1622 | */ |
1622 | */ |