diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-27 20:49:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-27 20:49:31 +0300 |
commit | 4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8 (patch) | |
tree | 371dac23117eb986c841b424afe5870b18604a7b /src/net/eathena/homunculusrecv.cpp | |
parent | 19125da4c29f4475aafa4bf9bf2d9400bceff657 (diff) | |
download | plus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.tar.gz plus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.tar.bz2 plus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.tar.xz plus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.zip |
Impliment packet SMSG_HOMUNCULUS_EXP 0x0b22.
For now it show homunculus exp over player ovner.
But probably need show it over homunculus.
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 |