From ebd21ed95b475d7a411bc6d341fb287b0c125509 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Sep 2014 19:12:19 +0300 Subject: Remove mercenary skills if mercenary was removed. --- src/being/localplayer.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/being/localplayer.h') diff --git a/src/being/localplayer.h b/src/being/localplayer.h index ed2b42b53..d90e94dc1 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -403,6 +403,12 @@ class LocalPlayer final : public Being, AwayListener *getAwayListener() const A_WARN_UNUSED { return mAwayListener; } + void setMercenary(const int id) + { mMercenaryId = id; } + + int getMercenary() const + { return mMercenaryId; } + protected: void updateCoords() override final; @@ -484,6 +490,7 @@ class LocalPlayer final : public Being, std::string mTestParticleName; int mTestParticleTime; unsigned long mTestParticleHash; + int mMercenaryId; unsigned char mWalkingDir; // The direction the player is walking in. /** Whether or not the name settings have changed */ bool mUpdateName; -- cgit v1.2.3-70-g09d2