… | |
… | |
366 | if (tlist != NULL) |
366 | if (tlist != NULL) |
367 | for (ti = 0; ti < n_treasures; ti++) |
367 | for (ti = 0; ti < n_treasures; ti++) |
368 | { /* use the treasure list */ |
368 | { /* use the treasure list */ |
369 | object *new_treasure = style_map->pick_random_object (rmg_rndm); |
369 | object *new_treasure = style_map->pick_random_object (rmg_rndm); |
370 | |
370 | |
371 | insert_ob_in_ob (arch_to_object (new_treasure->arch), the_chest); |
371 | insert_ob_in_ob (new_treasure->arch->instance (), the_chest); |
372 | } |
372 | } |
373 | else |
373 | else |
374 | { /* use the style map */ |
374 | { /* use the style map */ |
375 | the_chest->randomitems = tlist; |
375 | the_chest->randomitems = tlist; |
376 | the_chest->stats.hp = n_treasures; |
376 | the_chest->stats.hp = n_treasures; |