summaryrefslogtreecommitdiff
path: root/src/emap/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-20 17:53:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-20 17:53:46 +0300
commit0ee555e83376310a07f086df46a277c21f6aa37d (patch)
treedbddc2b3f2cc2de42a58c3023ac4ad461160c898 /src/emap/itemdb.c
parent9c4e88cfd0687a2e01522c58f932d3f40d468d6b (diff)
downloadevol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.tar.gz
evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.tar.bz2
evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.tar.xz
evol-hercules-0ee555e83376310a07f086df46a277c21f6aa37d.zip
Add support for item attribute RequiredSkill.
Diffstat (limited to 'src/emap/itemdb.c')
-rw-r--r--src/emap/itemdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c
index f79cc7e..63434bf 100644
--- a/src/emap/itemdb.c
+++ b/src/emap/itemdb.c
@@ -82,6 +82,8 @@ void eitemdb_readdb_additional_fields(int *itemid,
data->requiredDef = i32;
if (libconfig->setting_lookup_int(it, "RequiredMDef", &i32) && i32 >= 0)
data->requiredMDef = i32;
+ if (itemdb->lookup_const(it, "RequiredSkill", &i32))
+ data->requiredSkill = i32;
if (libconfig->setting_lookup_bool(it, "Charm", &i32) && i32 >= 0)
data->charmItem = i32 ? true : false;