diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-23 14:53:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-23 14:53:21 +0300 |
commit | 88df3eb6e82e1a23f379416652ac4f12f22a063c (patch) | |
tree | 130c1abe6ae6c4461910b244f6c322ede5f41466 /src/resources/npcdb.cpp | |
parent | 48f2996ccc789d740edc4b425a3e00f378a9095a (diff) | |
download | plus-88df3eb6e82e1a23f379416652ac4f12f22a063c.tar.gz plus-88df3eb6e82e1a23f379416652ac4f12f22a063c.tar.bz2 plus-88df3eb6e82e1a23f379416652ac4f12f22a063c.tar.xz plus-88df3eb6e82e1a23f379416652ac4f12f22a063c.zip |
Add to monsters.xml and npcs.xml sort offset parameters.
sortOffsetY - this value will be substracted from y position while sorting
deadSortOffsetY - this value will be substracted from dead bein y position
while sorting
By default sortOffsetY = 0 and deadSortOffsetY = 31
Diffstat (limited to 'src/resources/npcdb.cpp')
-rw-r--r-- | src/resources/npcdb.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp index 3ce300138..81a89b611 100644 --- a/src/resources/npcdb.cpp +++ b/src/resources/npcdb.cpp @@ -85,6 +85,13 @@ void NPCDB::load() currentInfo->setTargetOffsetY(XML::getProperty(npcNode, "targetOffsetY", 0)); + + currentInfo->setSortOffsetY(XML::getProperty(npcNode, + "sortOffsetY", 0)); + + currentInfo->setDeadSortOffsetY(XML::getProperty(npcNode, + "deadSortOffsetY", 31)); + SpriteDisplay display; for_each_xml_child_node(spriteNode, npcNode) { |