From e2a97fe7991d05a721be8070f70cbfbd7c169698 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Jul 2013 14:15:43 +0300 Subject: Add settings for monster hp bar offset. New attributes: hpBarOffsetX, hpBarOffsetY Example: --- src/resources/beingcommon.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/beingcommon.cpp') diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp index fc58dbbc7..66c5586ee 100644 --- a/src/resources/beingcommon.cpp +++ b/src/resources/beingcommon.cpp @@ -41,4 +41,7 @@ void BeingCommon::readBasicAttributes(BeingInfo *const info, XmlNodePtr node, info->setNameOffsetX(XML::getProperty(node, "nameOffsetX", 0)); info->setNameOffsetY(XML::getProperty(node, "nameOffsetY", 0)); info->setSortOffsetY(XML::getProperty(node, "sortOffsetY", 0)); + + info->setHpBarOffsetX(XML::getProperty(node, "hpBarOffsetX", 0)); + info->setHpBarOffsetY(XML::getProperty(node, "hpBarOffsetY", 0)); } -- cgit v1.2.3-70-g09d2