diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-04 18:26:02 +0530 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-21 20:57:56 +0100 |
commit | 2d4c6eb05e19c31e7b4f69496ce55b6e611a7d35 (patch) | |
tree | 453b4a6dd0681559611a6181e4495a5d01d436f1 /src/map/itemdb.h | |
parent | 56ee74bba28555867ff6db218a8ee1249d2e6a90 (diff) | |
download | hercules-2d4c6eb05e19c31e7b4f69496ce55b6e611a7d35.tar.gz hercules-2d4c6eb05e19c31e7b4f69496ce55b6e611a7d35.tar.bz2 hercules-2d4c6eb05e19c31e7b4f69496ce55b6e611a7d35.tar.xz hercules-2d4c6eb05e19c31e7b4f69496ce55b6e611a7d35.zip |
New format for Job field in job_db.conf
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index b83c27ed2..30a816521 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -2,7 +2,7 @@ * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * - * Copyright (C) 2012-2015 Hercules Dev Team + * Copyright (C) 2012-2016 Hercules Dev Team * Copyright (C) Athena Dev Teams * * Hercules is free software: you can redistribute it and/or modify @@ -608,7 +608,8 @@ struct itemdb_interface { int (*searchname_array_sub) (DBKey key, DBData data, va_list ap); int (*searchrandomid) (struct item_group *group); const char* (*typename) (int type); - void (*jobid2mapid) (unsigned int *bclass, unsigned int jobmask); + void (*jobmask2mapid) (unsigned int *bclass, unsigned int jobmask); + void (*jobid2mapid) (unsigned int *bclass, int job_id, bool enable); void (*create_dummy_data) (void); struct item_data* (*create_item_data) (int nameid); int (*isequip) (int nameid); @@ -632,6 +633,7 @@ struct itemdb_interface { int (*gendercheck) (struct item_data *id); int (*validate_entry) (struct item_data *entry, int n, 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); int (*readdb_libconfig) (const char *filename); uint64 (*unique_id) (struct map_session_data *sd); |