diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-25 15:55:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-25 16:02:01 +0300 |
commit | 63446aa820db2a6ad83cb25c64a013e9e1418bd5 (patch) | |
tree | d5560ce9dfacd56a3609abef097abef68b7debca /src/resources/db/petdb.cpp | |
parent | 2f9fa7415d501337a32111ef123f361cd6d01cab (diff) | |
download | manaplus-63446aa820db2a6ad83cb25c64a013e9e1418bd5.tar.gz manaplus-63446aa820db2a6ad83cb25c64a013e9e1418bd5.tar.bz2 manaplus-63446aa820db2a6ad83cb25c64a013e9e1418bd5.tar.xz manaplus-63446aa820db2a6ad83cb25c64a013e9e1418bd5.zip |
add direction logic to pets.
New pet db attribute: directionType
Possible values: 0 - not change direction.
1 - use same direction as owner.
2 - always look to owner.
3 - always look outside from owner.
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r-- | src/resources/db/petdb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index 5f52602fa..072dad7c0 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -103,6 +103,8 @@ void PETDB::load() currentInfo->setThinkTime(XML::getProperty(petNode, "thinkTime", 500) / 10); + currentInfo->setDirectionType(XML::getProperty(petNode, + "directionType", 1)); SpriteDisplay display; for_each_xml_child_node(spriteNode, petNode) |