diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-24 00:13:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-24 00:13:24 +0300 |
commit | a6c1e29279d28b18012e1a87d23ff114302bd610 (patch) | |
tree | 5d2767a184b26017b43f55de9144a77e9f26edab /src/being | |
parent | 59607172a197cbe622dabc4619100f69067403dd (diff) | |
download | plus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.gz plus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.bz2 plus-a6c1e29279d28b18012e1a87d23ff114302bd610.tar.xz plus-a6c1e29279d28b18012e1a87d23ff114302bd610.zip |
Impliment packet SMSG_SPIRIT_BALLS.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 1 | ||||
-rw-r--r-- | src/being/being.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index bca500fe8..58fb9b2b7 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -224,6 +224,7 @@ Being::Being(const BeingId id, mCriticalHit(0), mPvpRank(0), mNumber(100), + mSpiritBalls(0U), mUsageCounter(1), mKarma(0), mManner(0), diff --git a/src/being/being.h b/src/being/being.h index 461a8626f..10e1b8482 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -920,6 +920,12 @@ class Being notfinal : public ActorSprite, std::string getBuyBoard() const A_WARN_UNUSED { return mBuyBoard; } + + void setSpiritBalls(const unsigned int balls) + { mSpiritBalls = balls; } + + unsigned int getSpiritBalls() const A_WARN_UNUSED + { return mSpiritBalls; } #endif void setKarma(const int karma) @@ -1154,6 +1160,7 @@ class Being notfinal : public ActorSprite, int mCriticalHit; unsigned int mPvpRank; unsigned int mNumber; + unsigned int mSpiritBalls; int mUsageCounter; int mKarma; int mManner; |