diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-01 15:16:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-01 19:28:08 +0300 |
commit | 4fd1fb3701088b62b78e7c90bf4f7e825ff8259a (patch) | |
tree | 6c583df75d024708d033c955f13978b7f0fddf01 /src/net/eathena | |
parent | 4d892bd515041fbabfccc36cd1ea55141cf82c24 (diff) | |
download | manaplus-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.gz manaplus-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.bz2 manaplus-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.xz manaplus-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.zip |
Move actual update stats into one function.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 3a4f46a2c..089a06d26 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -436,4 +436,12 @@ void PlayerHandler::processPlayerHeal(Net::MessageIn &msg) msg.readInt16("value"); } +void PlayerHandler::setStat(const int type, + const int base, + const int mod, + const bool notify) const +{ + Ea::PlayerHandler::setStat(type, base, mod, notify); +} + } // namespace EAthena diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index f94fd0652..3a0ba20fa 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -73,6 +73,11 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void setViewEquipment(const bool allow) const override final; protected: + void setStat(const int type, + const int base, + const int mod, + const bool notify) const override final; + void processPlayerStatUpdate5(Net::MessageIn &msg); void processPlayerGetExp(Net::MessageIn &msg); |