diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-02 00:22:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-02 00:22:17 +0300 |
commit | efc1cf15dcb1acde3582f1df38c52fb94bf17272 (patch) | |
tree | 2dd928601943007abd2fb246884665259d078c3e /src | |
parent | d37ddaddbfb7e936fbe1994273d4d4ac58358a26 (diff) | |
download | plus-efc1cf15dcb1acde3582f1df38c52fb94bf17272.tar.gz plus-efc1cf15dcb1acde3582f1df38c52fb94bf17272.tar.bz2 plus-efc1cf15dcb1acde3582f1df38c52fb94bf17272.tar.xz plus-efc1cf15dcb1acde3582f1df38c52fb94bf17272.zip |
Add support for status effect name translation.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/db/statuseffectdb.cpp | 3 |
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 = |