summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-25 13:45:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-25 13:45:37 +0300
commit0ef4d8b885bf98735dbf800fc7385f625f18a9e4 (patch)
tree69c6370ab94d675251aa99f4b2396c293c9c1498 /src/being/playerinfo.cpp
parent0416def34b70d89754006fa96a49c1180b5bbacf (diff)
downloadmanaverse-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.tar.gz
manaverse-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.tar.bz2
manaverse-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.tar.xz
manaverse-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.zip
eathena: add packet CMSG_HOMMERC_MOVE_TO_MASTER 0x0234.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp10
1 files changed, 10 insertions, 0 deletions
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