32 if (existing->
items) {
virtual void replace(treasurelist *existing, treasurelist *update) override
Replace an asset by an updated version.
sstring add_string(const char *str)
Share a string.
void free_string(sstring str)
This will reduce the refcount, and if it has reached 0, str will be freed.
treasurelist * asset_create(const std::string &name)
int16_t total_chance
If non-zero, only 1 item on this list should be generated.
treasurelist represents one logical group of items to be generated together.
void asset_destroy(treasurelist *item)
sstring name
Usually monster-name/combination.
treasure * items
Items in this list, linked.
void treasure_free(treasure *t)
Frees a treasure, including its yes, no and next items.