summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
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/resources/beinginfo.h
parentf812b1f3f1b508504170de4e2d3574775e89c4d1 (diff)
downloadplus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.gz
plus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.bz2
plus-e707170f6b4f163e31ebf9624aacb43fb2bfb718.tar.xz
plus-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/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 008af8590..a752898f8 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -224,6 +224,18 @@ class BeingInfo final
void setHeight(const int n)
{ mHeight = n; }
+ void setStartFollowDist(const int n)
+ { mStartFollowDist = n; }
+
+ int getStartFollowDist()
+ { return mStartFollowDist; }
+
+ void setFollowDist(const int n)
+ { mFollowDist = n; }
+
+ int getFollowDist()
+ { return mFollowDist; }
+
void setColorsList(const std::string &name);
std::string getColor(const int idx) const;
@@ -254,6 +266,8 @@ class BeingInfo final
uint16_t mAvatarId;
int mWidth;
int mHeight;
+ int mStartFollowDist;
+ int mFollowDist;
bool mStaticMaxHP;
bool mTargetSelection;
};