diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-24 14:33:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-24 14:33:13 +0300 |
commit | e707170f6b4f163e31ebf9624aacb43fb2bfb718 (patch) | |
tree | 9a52ca352668b90b1255f3394a62880d5667b95e /src/resources/db | |
parent | f812b1f3f1b508504170de4e2d3574775e89c4d1 (diff) | |
download | manaverse-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.gz manaverse-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.bz2 manaverse-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.xz manaverse-e707170f6b4f163e31ebf9624aacb43fb2bfb718.zip |
dehardcode pet logic parameters.
New pet db parameters: startFollowDistance - distance from pet start follow owner.
followDistance - distance on what pet preffer follow owner.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/petdb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index 169c8ee39..829da3ef6 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -82,6 +82,11 @@ void PETDB::load() currentInfo->setDeadSortOffsetY(XML::getProperty(petNode, "deadSortOffsetY", 31)); + currentInfo->setStartFollowDist(XML::getProperty(petNode, + "startFollowDistance", 3)); + currentInfo->setFollowDist(XML::getProperty(petNode, + "followDistance", 1)); + SpriteDisplay display; for_each_xml_child_node(spriteNode, petNode) { |