diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-27 01:54:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-27 01:54:55 +0300 |
commit | 0bf480113790977c33713b328b1754426af55fdc (patch) | |
tree | b2222965ef752a310045de3831b428b6f0ea74cf /src/resources/db/homunculusdb.cpp | |
parent | 56c7637441038c646084a7d0d07be8e93008d37a (diff) | |
download | plus-0bf480113790977c33713b328b1754426af55fdc.tar.gz plus-0bf480113790977c33713b328b1754426af55fdc.tar.bz2 plus-0bf480113790977c33713b328b1754426af55fdc.tar.xz plus-0bf480113790977c33713b328b1754426af55fdc.zip |
Add support for links to homunculuses.
Format is: @@hID|@@
Example: [@@h6001|@@]
Diffstat (limited to 'src/resources/db/homunculusdb.cpp')
-rw-r--r-- | src/resources/db/homunculusdb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/db/homunculusdb.cpp b/src/resources/db/homunculusdb.cpp index 38ce44efe..42c3c2304 100644 --- a/src/resources/db/homunculusdb.cpp +++ b/src/resources/db/homunculusdb.cpp @@ -27,6 +27,7 @@ #include "utils/checkutils.h" #include "utils/dtor.h" +#include "utils/gettext.h" #include "configuration.h" @@ -93,6 +94,10 @@ void HomunculusDB::loadXmlFile(const std::string &fileName, currentInfo = new BeingInfo; currentInfo->setBlockType(BlockType::NONE); + currentInfo->setName(XML::langProperty( + // TRANSLATORS: unknown info name + homunculusNode, "name", _("unnamed"))); + BeingCommon::readBasicAttributes(currentInfo, homunculusNode, "attack"); BeingCommon::readWalkingAttributes(currentInfo, |