summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 15:28:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 15:30:08 +0300
commit2f9fa7415d501337a32111ef123f361cd6d01cab (patch)
treebff64eaa4f5db487187f6b604db9ce0317746a16 /src/resources/db/petdb.cpp
parent3e43345f804886a3a6ed7c0e378612612de4f4a5 (diff)
downloadmanaverse-2f9fa7415d501337a32111ef123f361cd6d01cab.tar.gz
manaverse-2f9fa7415d501337a32111ef123f361cd6d01cab.tar.bz2
manaverse-2f9fa7415d501337a32111ef123f361cd6d01cab.tar.xz
manaverse-2f9fa7415d501337a32111ef123f361cd6d01cab.zip
add pet think time.
New pet db attribute: thinkTime time in milliseconds. also remove extra pet logic calls.
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r--src/resources/db/petdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp
index 7c84b006b..5f52602fa 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -101,6 +101,8 @@ void PETDB::load()
currentInfo->setSitOffsetY(XML::getProperty(petNode,
"sitOffsetY", 1));
+ currentInfo->setThinkTime(XML::getProperty(petNode,
+ "thinkTime", 500) / 10);
SpriteDisplay display;
for_each_xml_child_node(spriteNode, petNode)