diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-15 17:52:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-18 16:21:43 +0300 |
commit | e05956bcbefba4f846f90e7f5c9c05c4931b3a26 (patch) | |
tree | 8b917a476035db2b248c071baac87c521098a195 /src/net | |
parent | f77c15f0dc1f441ebda122bc39c8e67b7452b968 (diff) | |
download | manaplus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.tar.gz manaplus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.tar.bz2 manaplus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.tar.xz manaplus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.zip |
Add packet SMSG_PLAYER_STAT_UPDATE_7 0x0acb.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/packetsin.inc | 3 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/playerrecv.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/playerrecv.h | 1 | ||||
-rw-r--r-- | src/net/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.h | 2 |
8 files changed, 21 insertions, 5 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index af497c07c..69a09b082 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -966,6 +966,9 @@ if (packetVersion >= 20170502) packet(SMSG_PARTY_MEMBER_JOB_LEVEL, 0x0abd, 10, &PartyRecv::processPartyMemberJobLevel, 20170502); } +// 20170830 +packet(SMSG_PLAYER_STAT_UPDATE_7, 0x0acb, 12, &PlayerRecv::processPlayerStatUpdate7, 20170830); + // 0 // evol always packets packet(SMSG_SERVER_VERSION_RESPONSE, 0x7531, -1, &LoginRecv::processServerVersion, 0); diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index a16984cfa..1091fd454 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -517,7 +517,7 @@ void PlayerHandler::setViewEquipment(const bool allow) const void PlayerHandler::setStat(Net::MessageIn &msg, const int type, - const int base, + const int64_t base, const int mod, const Notify notify) const { diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 1b000025c..b51ad2e92 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -72,7 +72,7 @@ class PlayerHandler final : public Ea::PlayerHandler void setStat(Net::MessageIn &msg, const int type, - const int base, + const int64_t base, const int mod, const Notify notify) const override final; }; diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp index a630bf9b7..03290d48d 100644 --- a/src/net/eathena/playerrecv.cpp +++ b/src/net/eathena/playerrecv.cpp @@ -31,6 +31,8 @@ #include "being/localplayer.h" #include "being/playerinfo.h" +#include "const/net/nostat.h" + #include "enums/resources/notifytypes.h" #include "gui/onlineplayer.h" @@ -42,6 +44,7 @@ #include "net/eathena/sp.h" #include "net/messagein.h" +#include "net/playerhandler.h" #include "utils/gettext.h" @@ -495,4 +498,13 @@ void PlayerRecv::processPlayerAttrs(Net::MessageIn &msg) localPlayer->setGM(false); } +void PlayerRecv::processPlayerStatUpdate7(Net::MessageIn &msg) +{ + BLOCK_START("PlayerRecv::processPlayerStatUpdate7") + const int type = msg.readInt16("type"); + const int64_t value = msg.readInt64("value"); + playerHandler->setStat(msg, type, value, NoStat, Notify_true); + BLOCK_END("PlayerRecv::processPlayerStatUpdate7") +} + } // namespace EAthena diff --git a/src/net/eathena/playerrecv.h b/src/net/eathena/playerrecv.h index eb38684b8..df3de2715 100644 --- a/src/net/eathena/playerrecv.h +++ b/src/net/eathena/playerrecv.h @@ -54,6 +54,7 @@ namespace EAthena void processDressRoomOpen(Net::MessageIn &msg); void processKilledBy(Net::MessageIn &msg); void processPlayerAttrs(Net::MessageIn &msg); + void processPlayerStatUpdate7(Net::MessageIn &msg); } // namespace PlayerRecv } // namespace EAthena diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index 72cf8c9de..2e8d2bc90 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -108,7 +108,7 @@ class PlayerHandler notfinal virtual void setStat(Net::MessageIn &msg, const int type, - const int base, + const int64_t base, const int mod, const Notify notify) const = 0; }; diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 4d2e5cc33..ef1b704a8 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -218,7 +218,7 @@ void PlayerHandler::setViewEquipment(const bool allow A_UNUSED) const void PlayerHandler::setStat(Net::MessageIn &msg, const int type, - const int base, + const int64_t base, const int mod, const Notify notify) const { diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index 898a03057..e0b5be486 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -82,7 +82,7 @@ class PlayerHandler final : public Ea::PlayerHandler void setStat(Net::MessageIn &msg, const int type, - const int base, + const int64_t base, const int mod, const Notify notify) const override final; }; |