summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-24 15:06:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-24 15:06:37 +0300
commita1f5338e93e5f8b2bdac2c305824a925fd2e4141 (patch)
treeca2b0d85f2e026d45ee8b0f66d282333a96f0d83 /src/resources/db/petdb.cpp
parent1821dfad294c0d850be326639946b12cdbdcecaf (diff)
downloadplus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.tar.gz
plus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.tar.bz2
plus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.tar.xz
plus-a1f5338e93e5f8b2bdac2c305824a925fd2e4141.zip
add speed parameter for pets.
New pet db option: walkSpeed
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 829da3ef6..0af2621ae 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -87,6 +87,9 @@ void PETDB::load()
currentInfo->setFollowDist(XML::getProperty(petNode,
"followDistance", 1));
+ currentInfo->setWalkSpeed(XML::getProperty(petNode,
+ "walkSpeed", 0));
+
SpriteDisplay display;
for_each_xml_child_node(spriteNode, petNode)
{