summaryrefslogtreecommitdiff
path: root/src/resources/db/itemdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-30 02:16:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-30 02:16:34 +0300
commit3589bb9fa0800650accc124ea6820d5834c27e43 (patch)
tree1d3dd3db4dd02ef90ae0fdb2a212afac01aa15a6 /src/resources/db/itemdb.cpp
parent1afa5bf3c437150dd18ad4e8d435072b103283c3 (diff)
downloadplus-3589bb9fa0800650accc124ea6820d5834c27e43.tar.gz
plus-3589bb9fa0800650accc124ea6820d5834c27e43.tar.bz2
plus-3589bb9fa0800650accc124ea6820d5834c27e43.tar.xz
plus-3589bb9fa0800650accc124ea6820d5834c27e43.zip
Dont add basic stats into item attributes.
From now need add all stats to item attributes in xml file.
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(" / ");