summaryrefslogtreecommitdiff
path: root/src/map/data/itemd.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-02 22:20:20 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-02 22:20:20 +0300
commit402cbb4310059bc37ffc2825b83a1659200bf12c (patch)
tree56faf21a6f91041fe25b9e6da31b66060e7c4f9c /src/map/data/itemd.c
parent3a0767592d15288849ad16b6dcd9171af821af33 (diff)
downloadplugin-402cbb4310059bc37ffc2825b83a1659200bf12c.tar.gz
plugin-402cbb4310059bc37ffc2825b83a1659200bf12c.tar.bz2
plugin-402cbb4310059bc37ffc2825b83a1659200bf12c.tar.xz
plugin-402cbb4310059bc37ffc2825b83a1659200bf12c.zip
Add item_db attributes for limit item usage.
Added attributesRequiredStr, RequiredAgi, RequiredVit, RequiredInt, RequiredDex, RequiredLuk. Check this attributes before equip item.
Diffstat (limited to 'src/map/data/itemd.c')
-rw-r--r--src/map/data/itemd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/data/itemd.c b/src/map/data/itemd.c
index 759bd63..671c8e5 100644
--- a/src/map/data/itemd.c
+++ b/src/map/data/itemd.c
@@ -47,5 +47,11 @@ struct ItemdExt *itemd_create(void)
return NULL;
data->floorLifeTime = battle->bc->flooritem_lifetime;
data->allowPickup = true;
+ data->requiredStr = 0;
+ data->requiredAgi = 0;
+ data->requiredVit = 0;
+ data->requiredInt = 0;
+ data->requiredDex = 0;
+ data->requiredLuk = 0;
return data;
}