diff options
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index db1330344..93bb8e0b9 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -203,9 +203,14 @@ struct item_package_must_entry { unsigned int named : 1; }; +struct item_package_rand_group { + struct item_package_rand_entry *random_list; + unsigned short random_qty; +}; + struct item_package { unsigned short id; - struct item_package_rand_entry *random_list; + struct item_package_rand_group *random_groups; struct item_package_must_entry *must_items; unsigned short random_qty; unsigned short must_qty; @@ -292,6 +297,9 @@ struct itemdb_interface { void (*read_chains) (void); void (*read_packages) (void); /* */ + void (*write_cached_packages) (const char *config_filename); + bool (*read_cached_packages) (const char *config_filename); + /* */ struct item_data* (*name2id) (const char *str); struct item_data* (*search_name) (const char *name); int (*search_name_array) (struct item_data** data, int size, const char *str); |