summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-05 19:19:40 -0300
committershennetsind <ind@henn.et>2013-07-05 19:19:40 -0300
commit0118a097c9626b3f8342dd29897392f3da4c1187 (patch)
tree3839e506a5ad38719e3772da0d03cf12240e3c4c /src/map/itemdb.h
parenta3711050a219e887b6637969bac66fb7d261d9cf (diff)
downloadhercules-0118a097c9626b3f8342dd29897392f3da4c1187.tar.gz
hercules-0118a097c9626b3f8342dd29897392f3da4c1187.tar.bz2
hercules-0118a097c9626b3f8342dd29897392f3da4c1187.tar.xz
hercules-0118a097c9626b3f8342dd29897392f3da4c1187.zip
HCache | Item Packages Update
http://hercules.ws/board/topic/1389-hcache-item-packages-update/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h10
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);