diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-07 23:22:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-08 11:54:23 +0300 |
commit | 6916a2defdf884cceb67e6699bd9b4cfaeba0279 (patch) | |
tree | ba28b30664670182a96fea73f95a8b184144c062 /src/map/itemdb.c | |
parent | fd83c8bda2a4508ddf734e00c57b5699d4ea9cb7 (diff) | |
download | plugin-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.c | 4 |
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(); } |