From 38a861c3e5d14ad3c1db04be8c65e84966758d88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Dec 2013 23:00:48 +0300 Subject: add pet name loading from pet db. New pet db attribute: name --- src/resources/db/petdb.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index 631dceb60..f975c25f9 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -22,13 +22,14 @@ #include "resources/db/petdb.h" +#include "configuration.h" #include "logger.h" #include "resources/beingcommon.h" #include "resources/beinginfo.h" +#include "utils/gettext.h" #include "utils/dtor.h" -#include "configuration.h" #include "debug.h" @@ -74,8 +75,12 @@ void PETDB::load() BeingInfo *const currentInfo = new BeingInfo; + currentInfo->setName(XML::langProperty(petNode, + // TRANSLATORS: unknown info name + "name", _("pet"))); + currentInfo->setTargetSelection(XML::getBoolProperty(petNode, - "targetSelection", false)); + "targetSelection", true)); BeingCommon::readBasicAttributes(currentInfo, petNode, "talk"); -- cgit v1.2.3-70-g09d2