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