From 0ef4d8b885bf98735dbf800fc7385f625f18a9e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Sep 2014 13:45:37 +0300 Subject: eathena: add packet CMSG_HOMMERC_MOVE_TO_MASTER 0x0234. --- src/being/playerinfo.cpp | 10 ++++++++++ src/being/playerinfo.h | 4 ++++ 2 files changed, 14 insertions(+) (limited to 'src/being') diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index d4654c7be..428878af9 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -533,4 +533,14 @@ HomunculusInfo *getHomunculus() return mHomunculus; } +int getHomunculusId() +{ + return mHomunculus ? mHomunculus->id : 0; +} + +int getMercenaryId() +{ + return mMercenary ? mMercenary->id : 0; +} + } // namespace PlayerInfo diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index aa2251bbe..6082aa740 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -256,6 +256,10 @@ namespace PlayerInfo void setHomunculus(HomunculusInfo *const info); void setHomunculusBeing(Being *const being); + + int getHomunculusId(); + + int getMercenaryId(); } // namespace PlayerInfo #endif // BEING_PLAYERINFO_H -- cgit v1.2.3-70-g09d2