diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-31 15:07:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-31 15:07:43 +0300 |
commit | 94342625a7e97c1f4adda6f0788c85c8d112b3a5 (patch) | |
tree | 2f90c467e7fc598054a3ebc5b727a8ac21041e02 /src/resources/db | |
parent | 332334a876da21687911c6d22cf4a5dcb2cb586a (diff) | |
download | plus-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.gz plus-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.bz2 plus-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.xz plus-94342625a7e97c1f4adda6f0788c85c8d112b3a5.zip |
add pet offset if owner is dead.
New pet db attributes: deadOffsetX, deadOffsetY
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/petdb.cpp | 4 |
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); |