summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-07 23:22:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-08 11:54:23 +0300
commit6916a2defdf884cceb67e6699bd9b4cfaeba0279 (patch)
treeba28b30664670182a96fea73f95a8b184144c062 /src/map/itemdb.c
parentfd83c8bda2a4508ddf734e00c57b5699d4ea9cb7 (diff)
downloadplugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.tar.gz
plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.tar.bz2
plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.tar.xz
plugin-6916a2defdf884cceb67e6699bd9b4cfaeba0279.zip
Add to item_db.conf item attributes for use effects.
New attributes: useEffect - send this effect to client if use item was success useFailEffect - send this effect to client if use item was fail
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 50c2728..182c38b 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -79,5 +79,9 @@ void eitemdb_readdb_additional_fields(int *itemid,
if (libconfig->setting_lookup_int(it, "requiredMDef", &i32) && i32 >= 0)
data->requiredMDef = i32;
+ if (itemdb->lookup_const(it, "useEffect", &i32))
+ data->useEffect = i32;
+ if (itemdb->lookup_const(it, "useFailEffect", &i32))
+ data->useFailEffect = i32;
hookStop();
}