diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-10-10 22:49:08 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2019-09-23 01:34:01 +0200 |
commit | de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1 (patch) | |
tree | b82dd24027ccc36e39caeac88549af8302f7137d /src/map/itemdb.h | |
parent | b5744687d20ccac87b92b59a4814fcc68c5baa64 (diff) | |
download | hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.tar.gz hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.tar.bz2 hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.tar.xz hercules-de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1.zip |
Implementation of LapineDdukDdak System
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 17fff2cf5..a2876c2a9 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -482,6 +482,14 @@ struct itemdb_option { struct script_code *script; }; +struct item_lapineddukddak { + int16 NeedCount; + int8 NeedRefineMin; + int8 NeedRefineMax; + VECTOR_DECL(struct itemlist_entry) SourceItems; + struct script_code *script; +}; + struct item_data { int nameid; char name[ITEM_NAME_LENGTH],jname[ITEM_NAME_LENGTH]; @@ -551,6 +559,7 @@ struct item_data { /* TODO add a pointer to some sort of (struct extra) and gather all the not-common vals into it to save memory */ struct item_group *group; struct item_package *package; + struct item_lapineddukddak *lapineddukddak; struct hplugin_data_store *hdata; ///< HPM Plugin Data Store }; @@ -688,6 +697,9 @@ struct itemdb_interface { bool (*lookup_const) (const struct config_setting_t *it, const char *name, int *value); bool (*lookup_const_mask) (const struct config_setting_t *it, const char *name, int *value); int (*addname_sub) (union DBKey key, struct DBData *data, va_list ap); + bool (*read_libconfig_lapineddukddak) (void); + bool (*read_libconfig_lapineddukddak_sub) (struct config_setting_t *it, const char *source); + bool (*read_libconfig_lapineddukddak_sub_sources) (struct config_setting_t *sources, struct item_data *data); }; #ifdef HERCULES_CORE |