diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-25 17:13:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-25 17:13:24 +0300 |
commit | 8357e89fc0923f4b97cf8b990a4ffba2716bfabf (patch) | |
tree | 9253ddf8d30e97a947683e12dc195f3ec69ee7bc /src/resources/db/petdb.cpp | |
parent | 63446aa820db2a6ad83cb25c64a013e9e1418bd5 (diff) | |
download | mv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.gz mv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.bz2 mv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.xz mv-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.cpp | 3 |
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) |