summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-24 15:23:26 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-24 15:23:26 +0300
commit38c7345e781e9f6e645f703ffe178849a2140301 (patch)
treefc62b7fc5b346cf755e5b33d3cf52b3550050838 /src/resources/db/petdb.cpp
parenta1f5338e93e5f8b2bdac2c305824a925fd2e4141 (diff)
downloadmv-38c7345e781e9f6e645f703ffe178849a2140301.tar.gz
mv-38c7345e781e9f6e645f703ffe178849a2140301.tar.bz2
mv-38c7345e781e9f6e645f703ffe178849a2140301.tar.xz
mv-38c7345e781e9f6e645f703ffe178849a2140301.zip
add support for warp pets if distance very long.
New pet db option: warpDistance
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 0af2621ae..397af6220 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -86,10 +86,13 @@ void PETDB::load()
"startFollowDistance", 3));
currentInfo->setFollowDist(XML::getProperty(petNode,
"followDistance", 1));
+ currentInfo->setWarpDist(XML::getProperty(petNode,
+ "warpDistance", 11));
currentInfo->setWalkSpeed(XML::getProperty(petNode,
"walkSpeed", 0));
+
SpriteDisplay display;
for_each_xml_child_node(spriteNode, petNode)
{