diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-13 16:22:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-13 16:22:46 +0300 |
commit | f40b3cd12dd2e2c65d02816c450e5645fba84109 (patch) | |
tree | 280e582f4a188cacc97973be3994a24b38218ed2 /src/being | |
parent | 767e9a19a27ecf4b7f5ea88e958c818fc56db9fd (diff) | |
download | manaverse-f40b3cd12dd2e2c65d02816c450e5645fba84109.tar.gz manaverse-f40b3cd12dd2e2c65d02816c450e5645fba84109.tar.bz2 manaverse-f40b3cd12dd2e2c65d02816c450e5645fba84109.tar.xz manaverse-f40b3cd12dd2e2c65d02816c450e5645fba84109.zip |
For skill units in context menu show creator name or id.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 3 | ||||
-rw-r--r-- | src/being/being.h | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index f1617e64e..9b8be8ec8 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -236,6 +236,9 @@ Being::Being(const BeingId id, mKarma(0), mManner(0), mAreaSize(11), +#ifdef EATHENA_SUPPORT + mCreatorId(BeingId_zero), +#endif mTeamId(0U), mLook(0U), mBadgesCount(0U), diff --git a/src/being/being.h b/src/being/being.h index 585b59a43..31c28d28f 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -925,6 +925,12 @@ class Being notfinal : public ActorSprite, { return mSpiritBalls; } void stopCast(const bool b) override final; + + void setCreatorId(const BeingId id) + { mCreatorId = id; } + + BeingId getCreatorId() const noexcept A_WARN_UNUSED + { return mCreatorId; } #endif void setKarma(const int karma) restrict2 noexcept @@ -1170,6 +1176,9 @@ class Being notfinal : public ActorSprite, int mKarma; int mManner; int mAreaSize; +#ifdef EATHENA_SUPPORT + BeingId mCreatorId; +#endif uint16_t mTeamId; uint16_t mLook; uint16_t mBadgesCount; |