summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp3
-rw-r--r--src/being/being.h9
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;