summaryrefslogtreecommitdiff
path: root/src/resources/db/statdb.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/statdb.cpp
parent1afa5bf3c437150dd18ad4e8d435072b103283c3 (diff)
downloadmv-3589bb9fa0800650accc124ea6820d5834c27e43.tar.gz
mv-3589bb9fa0800650accc124ea6820d5834c27e43.tar.bz2
mv-3589bb9fa0800650accc124ea6820d5834c27e43.tar.xz
mv-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/statdb.cpp')
-rw-r--r--src/resources/db/statdb.cpp28
1 files changed, 7 insertions, 21 deletions
diff --git a/src/resources/db/statdb.cpp b/src/resources/db/statdb.cpp
index 064ae0b84..e079d323a 100644
--- a/src/resources/db/statdb.cpp
+++ b/src/resources/db/statdb.cpp
@@ -44,39 +44,27 @@ void StatDb::addBasicStats()
mBasicStats.push_back(BasicStat(Attributes::STR,
"str",
// TRANSLATORS: player stat
- _("Strength"),
- // TRANSLATORS: player stat
- _("Strength %s")));
+ _("Strength")));
mBasicStats.push_back(BasicStat(Attributes::AGI,
"agi",
// TRANSLATORS: player stat
- _("Agility"),
- // TRANSLATORS: player stat
- _("Agility %s")));
+ _("Agility")));
mBasicStats.push_back(BasicStat(Attributes::VIT,
"vit",
// TRANSLATORS: player stat
- _("Vitality"),
- // TRANSLATORS: player stat
- _("Vitality %s")));
+ _("Vitality")));
mBasicStats.push_back(BasicStat(Attributes::INT,
"int",
// TRANSLATORS: player stat
- _("Intelligence"),
- // TRANSLATORS: player stat
- _("Intelligence %s")));
+ _("Intelligence")));
mBasicStats.push_back(BasicStat(Attributes::DEX,
"dex",
// TRANSLATORS: player stat
- _("Dexterity"),
- // TRANSLATORS: player stat
- _("Dexterity %s")));
+ _("Dexterity")));
mBasicStats.push_back(BasicStat(Attributes::LUK,
"luk",
// TRANSLATORS: player stat
- _("Luck"),
- // TRANSLATORS: player stat
- _("Luck %s")));
+ _("Luck")));
}
const std::vector<BasicStat> &StatDb::getExtraStats()
@@ -109,11 +97,9 @@ static void loadBasicStats(const XmlNodePtr rootNode)
continue;
const std::string tag = XML::getProperty(node, "tag", "");
const std::string name = XML::getProperty(node, "name", "");
- const std::string format = XML::getProperty(node, "format", "");
mBasicStats.push_back(BasicStat(static_cast<AttributesT>(id),
tag,
- name,
- format));
+ name));
}
}
}