summaryrefslogtreecommitdiff
path: root/src/map/data/itemd.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-08 01:31:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-08 11:54:49 +0300
commit48f6d35d2c293a17a863bb540e686b1c780b9005 (patch)
tree46780b62e99e408247d7e844309505c5e3e11857 /src/map/data/itemd.c
parent6916a2defdf884cceb67e6699bd9b4cfaeba0279 (diff)
downloadplugin-48f6d35d2c293a17a863bb540e686b1c780b9005.tar.gz
plugin-48f6d35d2c293a17a863bb540e686b1c780b9005.tar.bz2
plugin-48f6d35d2c293a17a863bb540e686b1c780b9005.tar.xz
plugin-48f6d35d2c293a17a863bb540e686b1c780b9005.zip
Add to item_db.conf item attributes for equip/unequip effects.
New attributes: UnequipEffect - send this effect to client if unequip item was success UnequipFailEffect - send this effect to client if unequip item was fail For equip events used same attributes like for use.
Diffstat (limited to 'src/map/data/itemd.c')
-rw-r--r--src/map/data/itemd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/data/itemd.c b/src/map/data/itemd.c
index 6ec2db2..55351a1 100644
--- a/src/map/data/itemd.c
+++ b/src/map/data/itemd.c
@@ -62,5 +62,7 @@ struct ItemdExt *itemd_create(void)
data->requiredMDef = 0;
data->useEffect = -1;
data->useFailEffect = -1;
+ data->unequipEffect = -1;
+ data->unequipFailEffect = -1;
return data;
}