|
@@ -67,7 +67,9 @@ uint64 ItemDatabase::parseBodyNode(const YAML::Node &node) {
|
|
|
if (!this->asString(node, "AegisName", name))
|
|
|
return 0;
|
|
|
|
|
|
- if (itemdb_search_aegisname(name.c_str())) {
|
|
|
+ item_data* id = itemdb_search_aegisname(name.c_str());
|
|
|
+
|
|
|
+ if (id != nullptr && id->nameid != nameid) {
|
|
|
this->invalidWarning(node["AegisName"], "Found duplicate item Aegis name for %s, skipping.\n", name.c_str());
|
|
|
return 0;
|
|
|
}
|
|
@@ -180,7 +182,7 @@ uint64 ItemDatabase::parseBodyNode(const YAML::Node &node) {
|
|
|
}
|
|
|
|
|
|
if (item->value_buy / 124. < item->value_sell / 75.) {
|
|
|
- this->invalidWarning(node["Sell"], "Buying/Selling [%d/%d] price of %s (%hu) allows Zeny making exploit through buying/selling at discounted/overcharged prices! Defaulting Sell to 1 Zeny.\n", item->value_buy, item->value_sell, item->name.c_str(), nameid);
|
|
|
+ this->invalidWarning(node, "Buying/Selling [%d/%d] price of %s (%hu) allows Zeny making exploit through buying/selling at discounted/overcharged prices! Defaulting Sell to 1 Zeny.\n", item->value_buy, item->value_sell, item->name.c_str(), nameid);
|
|
|
item->value_sell = 1;
|
|
|
}
|
|
|
|