diff options
Diffstat (limited to 'src/net/eathena/homunculusrecv.cpp')
-rw-r--r-- | src/net/eathena/homunculusrecv.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/homunculusrecv.cpp b/src/net/eathena/homunculusrecv.cpp index 2366b639b..4511d89b1 100644 --- a/src/net/eathena/homunculusrecv.cpp +++ b/src/net/eathena/homunculusrecv.cpp @@ -25,6 +25,7 @@ #include "being/homunculusinfo.h" #include "being/playerinfo.h" +#include "being/localplayer.h" #include "enums/resources/notifytypes.h" @@ -205,4 +206,12 @@ void HomunculusRecv::processHomunculusFood(Net::MessageIn &msg) } } +void HomunculusRecv::processHomunculusExp(Net::MessageIn &msg) +{ + const int exp = msg.readInt32("exp"); + msg.readInt32("unused"); + if (localPlayer) + localPlayer->addHomunXpMessage(exp); +} + } // namespace EAthena |