summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-02 00:22:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-02 00:22:17 +0300
commitefc1cf15dcb1acde3582f1df38c52fb94bf17272 (patch)
tree2dd928601943007abd2fb246884665259d078c3e /src
parentd37ddaddbfb7e936fbe1994273d4d4ac58358a26 (diff)
downloadmv-efc1cf15dcb1acde3582f1df38c52fb94bf17272.tar.gz
mv-efc1cf15dcb1acde3582f1df38c52fb94bf17272.tar.bz2
mv-efc1cf15dcb1acde3582f1df38c52fb94bf17272.tar.xz
mv-efc1cf15dcb1acde3582f1df38c52fb94bf17272.zip
Add support for status effect name translation.
Diffstat (limited to 'src')
-rw-r--r--src/resources/db/statuseffectdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/db/statuseffectdb.cpp b/src/resources/db/statuseffectdb.cpp
index a89915103..dbcf9226b 100644
--- a/src/resources/db/statuseffectdb.cpp
+++ b/src/resources/db/statuseffectdb.cpp
@@ -150,12 +150,13 @@ void StatusEffectDB::loadXmlFile(const std::string &fileName,
StatusEffect *startEffect = statusEffects[1][id];
StatusEffect *endEffect = statusEffects[0][id];
const std::string name = XML::getProperty(node, "name", "");
+ const std::string name2 = XML::langProperty(node, "name", "");
if (!startEffect)
startEffect = new StatusEffect;
if (!endEffect)
endEffect = new StatusEffect;
- startEffect->mName = name;
+ startEffect->mName = name2;
startEffect->mIsPoison =
(name == paths.getStringValue("poisonEffectName"));
startEffect->mIsCart =