summaryrefslogtreecommitdiff
path: root/src/resources/db/petdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-31 15:07:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-31 15:07:43 +0300
commit94342625a7e97c1f4adda6f0788c85c8d112b3a5 (patch)
tree2f90c467e7fc598054a3ebc5b727a8ac21041e02 /src/resources/db/petdb.cpp
parent332334a876da21687911c6d22cf4a5dcb2cb586a (diff)
downloadmanaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.gz
manaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.bz2
manaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.xz
manaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.zip
add pet offset if owner is dead.
New pet db attributes: deadOffsetX, deadOffsetY
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r--src/resources/db/petdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp
index 046146cce..cb8208179 100644
--- a/src/resources/db/petdb.cpp
+++ b/src/resources/db/petdb.cpp
@@ -109,6 +109,10 @@ void PETDB::load()
"moveOffsetX", 0));
currentInfo->setMoveOffsetY(XML::getProperty(petNode,
"moveOffsetY", 1));
+ currentInfo->setDeadOffsetX(XML::getProperty(petNode,
+ "deadOffsetX", 0));
+ currentInfo->setDeadOffsetY(XML::getProperty(petNode,
+ "deadOffsetY", 1));
currentInfo->setThinkTime(XML::getProperty(petNode,
"thinkTime", 500) / 10);