diff options
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 3cc51ef9d..7d054fc97 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -200,6 +200,7 @@ Being::Being(const int id, mPvpRank(0), mNumber(100), mUsageCounter(1), + mKarma(0), mLook(0U), mHairColor(0), mErased(false), diff --git a/src/being/being.h b/src/being/being.h index a65fb1af0..5f95fbfed 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -899,6 +899,12 @@ class Being notfinal : public ActorSprite, const ChatObject *getChat() const { return mChat; } + void setKarma(const int karma) + { mKarma = karma; } + + int getKarma() const + { return mKarma; } + protected: /** * Updates name's location. @@ -1065,6 +1071,7 @@ class Being notfinal : public ActorSprite, unsigned int mPvpRank; unsigned int mNumber; int mUsageCounter; + int mKarma; uint8_t mLook; unsigned char mHairColor; bool mErased; |