summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-03 13:34:01 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-03 13:34:01 -0300
commit4a6c4e17275bc82c20bb768861ce8918d35b9965 (patch)
tree4ed1ae7b885343737b278c1513d959dd39520797
parente4e4bb493ee54b1ce87d3ef0ea02abd22aa99f94 (diff)
downloadevol-hercules-4a6c4e17275bc82c20bb768861ce8918d35b9965.tar.gz
evol-hercules-4a6c4e17275bc82c20bb768861ce8918d35b9965.tar.bz2
evol-hercules-4a6c4e17275bc82c20bb768861ce8918d35b9965.tar.xz
evol-hercules-4a6c4e17275bc82c20bb768861ce8918d35b9965.zip
Drop support for Required<> params in ItemDB
-rw-r--r--src/emap/data/itemd.c2
-rw-r--r--src/emap/itemdb.c2
-rw-r--r--src/emap/pc.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/emap/data/itemd.c b/src/emap/data/itemd.c
index 15b143b..bb655ae 100644
--- a/src/emap/data/itemd.c
+++ b/src/emap/data/itemd.c
@@ -50,6 +50,7 @@ struct ItemdExt *itemd_create(void)
data->floorLifeTime = battle->bc->flooritem_lifetime;
data->allowPickup = true;
data->identified = true;
+ /*
data->requiredStr = 0;
data->requiredAgi = 0;
data->requiredVit = 0;
@@ -64,6 +65,7 @@ struct ItemdExt *itemd_create(void)
data->requiredDef = 0;
data->requiredMDef = 0;
data->requiredSkill = 0;
+ */
data->useEffect = -1;
data->useFailEffect = -1;
data->unequipEffect = -1;
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c
index d9ff7d8..9a47725 100644
--- a/src/emap/itemdb.c
+++ b/src/emap/itemdb.c
@@ -64,6 +64,7 @@ void eitemdb_readdb_additional_fields_pre(int *itemid,
data->floorLifeTime = i32;
if ((t = libconfig->setting_get_member(it, "AllowPickup")))
data->allowPickup = libconfig->setting_get_bool(t) ? 1 : 0;
+ /*
if (libconfig->setting_lookup_int(it, "RequiredStr", &i32) && i32 >= 0)
data->requiredStr = i32;
if (libconfig->setting_lookup_int(it, "RequiredAgi", &i32) && i32 >= 0)
@@ -92,6 +93,7 @@ void eitemdb_readdb_additional_fields_pre(int *itemid,
data->requiredMDef = i32;
if (itemdb->lookup_const(it, "RequiredSkill", &i32))
data->requiredSkill = i32;
+ */
if (libconfig->setting_lookup_bool(it, "Charm", &i32) && i32 >= 0)
data->charmItem = i32 ? true : false;
if (libconfig->setting_lookup_bool(it, "Identified", &i32) && i32 >= 0)
diff --git a/src/emap/pc.c b/src/emap/pc.c
index ec45cdc..22fb7c8 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -293,6 +293,7 @@ int epc_isequip_post(int retVal,
if (!data)
return retVal;
+ /*
if (sd->battle_status.str < data->requiredStr ||
sd->battle_status.agi < data->requiredAgi ||
sd->battle_status.vit < data->requiredVit ||
@@ -311,6 +312,7 @@ int epc_isequip_post(int retVal,
{
return 0;
}
+ */
}
return retVal;
}