summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-24 14:33:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-24 14:33:13 +0300
commite707170f6b4f163e31ebf9624aacb43fb2bfb718 (patch)
tree9a52ca352668b90b1255f3394a62880d5667b95e /src/being/being.cpp
parentf812b1f3f1b508504170de4e2d3574775e89c4d1 (diff)
downloadmanaplus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.gz
manaplus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.bz2
manaplus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.xz
manaplus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.zip
dehardcode pet logic parameters.
New pet db parameters: startFollowDistance - distance from pet start follow owner. followDistance - distance on what pet preffer follow owner.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 0b7010789..72d362eea 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1617,8 +1617,8 @@ void Being::petLogic()
return;
int dstX = mOwner->getTileX();
int dstY = mOwner->getTileY();
- const int followDist = 3;
- const int dist = 1;
+ const int followDist = mInfo->getStartFollowDist();
+ const int dist = mInfo->getFollowDist();
const int divX = abs(dstX - mX);
const int divY = abs(dstY - mY);
if (divX > followDist || divY > followDist)