summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 17:13:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 17:13:24 +0300
commit8357e89fc0923f4b97cf8b990a4ffba2716bfabf (patch)
tree9253ddf8d30e97a947683e12dc195f3ec69ee7bc /src/resources/db/petdb.cpp
parent63446aa820db2a6ad83cb25c64a013e9e1418bd5 (diff)
downloadManaVerse-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.gz
ManaVerse-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.bz2
ManaVerse-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.xz
ManaVerse-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.zip
add support for pet sit direction logic.
New pet db attribute: sitDirectionType It can be set same values like in directionType.
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r--src/resources/db/petdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp
index 072dad7c0..631dceb60 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -103,8 +103,11 @@ void PETDB::load()
currentInfo->setThinkTime(XML::getProperty(petNode,
"thinkTime", 500) / 10);
+
currentInfo->setDirectionType(XML::getProperty(petNode,
"directionType", 1));
+ currentInfo->setSitDirectionType(XML::getProperty(petNode,
+ "sitDirectionType", 1));
SpriteDisplay display;
for_each_xml_child_node(spriteNode, petNode)