summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-21 00:14:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-29 19:46:06 +0300
commit6475f9aaef5e6affe3565c80e416e4b4e9cde043 (patch)
tree88cfc6cc1b27f7c4736927f3d2941439b1707901 /src/map/itemdb.h
parent887d53cac4391b438f07dccf7e148ff0769f6a55 (diff)
downloadhercules-6475f9aaef5e6affe3565c80e416e4b4e9cde043.tar.gz
hercules-6475f9aaef5e6affe3565c80e416e4b4e9cde043.tar.bz2
hercules-6475f9aaef5e6affe3565c80e416e4b4e9cde043.tar.xz
hercules-6475f9aaef5e6affe3565c80e416e4b4e9cde043.zip
Fix packet 836 (search in stores).
Added item options fields into this packet. Updated other things for support for report item options in vending. Buying store not supported for now.
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index ad237f7ce..efe3d0a3a 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -448,7 +448,7 @@ struct item_package {
unsigned short must_qty;
};
-struct item_option {
+struct itemdb_option {
int16 index;
struct script_code *script;
};
@@ -590,7 +590,7 @@ struct itemdb_interface {
/* */
struct item_data *array[MAX_ITEMDB];
struct DBMap *other;// int nameid -> struct item_data*
- struct DBMap *options; // int opt_id -> struct item_option*
+ struct DBMap *options; // int opt_id -> struct itemdb_option*
struct item_data dummy; //This is the default dummy item used for non-existant items. [Skotlex]
/* */
void (*read_groups) (void);
@@ -607,7 +607,7 @@ struct itemdb_interface {
struct item_data* (*load)(int nameid);
struct item_data* (*search)(int nameid);
struct item_data* (*exists) (int nameid);
- struct item_option* (*option_exists) (int idx);
+ struct itemdb_option* (*option_exists) (int idx);
bool (*in_group) (struct item_group *group, int nameid);
int (*group_item) (struct item_group *group);
int (*chain_item) (unsigned short chain_id, int *rate);
@@ -640,7 +640,7 @@ struct itemdb_interface {
void (*read_combos) (void);
int (*gendercheck) (struct item_data *id);
int (*validate_entry) (struct item_data *entry, int n, const char *source);
- void (*readdb_options_additional_fields) (struct item_option *ito, struct config_setting_t *t, const char *source);
+ void (*readdb_options_additional_fields) (struct itemdb_option *ito, struct config_setting_t *t, const char *source);
void (*readdb_additional_fields) (int itemid, struct config_setting_t *it, int n, const char *source);
void (*readdb_job_sub) (struct item_data *id, struct config_setting_t *t);
int (*readdb_libconfig_sub) (struct config_setting_t *it, int n, const char *source);