From 4fd1fb3701088b62b78e7c90bf4f7e825ff8259a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Oct 2014 15:16:07 +0300 Subject: Move actual update stats into one function. --- src/net/eathena/playerhandler.cpp | 8 ++++++++ src/net/eathena/playerhandler.h | 5 +++++ 2 files changed, 13 insertions(+) (limited to 'src/net/eathena') 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); -- cgit v1.2.3-70-g09d2