summaryrefslogtreecommitdiff
path: root/src/emap/data
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-14 17:58:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-14 17:58:29 +0300
commit2ed4142dfcde097648857f41f8064b0a19c350c7 (patch)
tree5777014a74b30081ac39cda28ea9c64280cbebb5 /src/emap/data
parentf8b3342f690816022d26038389431002e9cf3648 (diff)
downloadplugin-2ed4142dfcde097648857f41f8064b0a19c350c7.tar.gz
plugin-2ed4142dfcde097648857f41f8064b0a19c350c7.tar.bz2
plugin-2ed4142dfcde097648857f41f8064b0a19c350c7.tar.xz
plugin-2ed4142dfcde097648857f41f8064b0a19c350c7.zip
Add basic support for charm items (If item present in inventory it give own bonuses)
For char item in items.conf need add attribute "Charm: true"
Diffstat (limited to 'src/emap/data')
-rw-r--r--src/emap/data/itemd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/data/itemd.c b/src/emap/data/itemd.c
index 4b171b2..e7af7f2 100644
--- a/src/emap/data/itemd.c
+++ b/src/emap/data/itemd.c
@@ -64,5 +64,6 @@ struct ItemdExt *itemd_create(void)
data->useFailEffect = -1;
data->unequipEffect = -1;
data->unequipFailEffect = -1;
+ data->charmItem = false;
return data;
}