summaryrefslogtreecommitdiff
path: root/src/resources/beingcommon.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-21 14:15:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-21 14:15:43 +0300
commite2a97fe7991d05a721be8070f70cbfbd7c169698 (patch)
tree763ddca35111acc2caccb3578645e91374df8631 /src/resources/beingcommon.cpp
parentb5a9c89e9d4d8b21bceda9cf2507dc7f6b726c91 (diff)
downloadmv-e2a97fe7991d05a721be8070f70cbfbd7c169698.tar.gz
mv-e2a97fe7991d05a721be8070f70cbfbd7c169698.tar.bz2
mv-e2a97fe7991d05a721be8070f70cbfbd7c169698.tar.xz
mv-e2a97fe7991d05a721be8070f70cbfbd7c169698.zip
Add settings for monster hp bar offset.
New attributes: hpBarOffsetX, hpBarOffsetY Example: <monster id="0" name="Piou" targetCursor="small" walkType="fly" hpBarOffsetX="30">
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r--src/resources/beingcommon.cpp3
1 files changed, 3 insertions, 0 deletions
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));
}