summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-02 22:52:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-02 22:52:38 +0300
commit179e2a097cdf9190c46a3e4c93eee5535e707530 (patch)
treeb8ab32b29f4c053e42ed28b0519f2b9125482cc5 /src/map/itemdb.c
parent9bc41f3285ebd0c83243b2f207ff6d6b08ddf5f6 (diff)
downloadplugin-179e2a097cdf9190c46a3e4c93eee5535e707530.tar.gz
plugin-179e2a097cdf9190c46a3e4c93eee5535e707530.tar.bz2
plugin-179e2a097cdf9190c46a3e4c93eee5535e707530.tar.xz
plugin-179e2a097cdf9190c46a3e4c93eee5535e707530.zip
map: add some more attributes into item_db.
Added RequiredMaxHp, RequiredMaxSp, RequiredAtk, RequiredMAtkMin, RequiredMAtkMax
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index fcce487..c777a44 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -64,6 +64,16 @@ void eitemdb_readdb_additional_fields(int *itemid,
data->requiredDex = i32;
if (libconfig->setting_lookup_int(it, "RequiredLuk", &i32) && i32 >= 0)
data->requiredLuk = i32;
+ if (libconfig->setting_lookup_int(it, "RequiredMaxHp", &i32) && i32 >= 0)
+ data->requiredMaxHp = i32;
+ if (libconfig->setting_lookup_int(it, "RequiredMaxSp", &i32) && i32 >= 0)
+ data->requiredMaxSp = i32;
+ if (libconfig->setting_lookup_int(it, "RequiredAtk", &i32) && i32 >= 0)
+ data->requiredAtk = i32;
+ if (libconfig->setting_lookup_int(it, "RequiredMAtkMin", &i32) && i32 >= 0)
+ data->requiredMAtkMin = i32;
+ if (libconfig->setting_lookup_int(it, "RequiredMAtkMax", &i32) && i32 >= 0)
+ data->requiredMAtkMax = i32;
hookStop();
}