summaryrefslogtreecommitdiff
path: root/src/resources/db/itemdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/itemdb.cpp')
-rw-r--r--src/resources/db/itemdb.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 4218771d6..aa6f66d6d 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -32,13 +32,12 @@
#include "resources/iteminfo.h"
#include "resources/itemtypemapdata.h"
+#include "resources/db/itemfielddb.h"
+
#include "resources/item/itemfieldtype.h"
#include "resources/sprite/spritereference.h"
-#include "resources/db/itemfielddb.h"
-#include "resources/db/statdb.h"
-
#include "net/serverfeatures.h"
#include "utils/checkutils.h"
@@ -513,19 +512,6 @@ void ItemDB::loadXmlFile(const std::string &fileName,
std::string effect;
readFields(effect, node, requiredFields);
readFields(effect, node, addFields);
- const std::vector<BasicStat> &extraStats = StatDb::getExtraStats();
- FOR_EACH (std::vector<BasicStat>::const_iterator, it, extraStats)
- {
- std::string value = XML::getProperty(
- node, it->tag.c_str(), "");
- if (value.empty())
- continue;
- if (!effect.empty())
- effect.append(" / ");
- if (isDigit(value))
- value = "+" + value;
- effect.append(strprintf(it->format.c_str(), value.c_str()));
- }
std::string temp = XML::langProperty(node, "effect", "");
if (!effect.empty() && !temp.empty())
effect.append(" / ");