diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-02 00:13:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:55 +0300 |
commit | 65d1d4810e79d15e436208dccd865d93c237e5a9 (patch) | |
tree | 96396300e4fe69dac17a9a2eba808f5289958554 /src/net/ea | |
parent | c8bc9c87d58ba40581da09aa30c79b43f47e0cb0 (diff) | |
download | plus-65d1d4810e79d15e436208dccd865d93c237e5a9.tar.gz plus-65d1d4810e79d15e436208dccd865d93c237e5a9.tar.bz2 plus-65d1d4810e79d15e436208dccd865d93c237e5a9.tar.xz plus-65d1d4810e79d15e436208dccd865d93c237e5a9.zip |
Move processPlayerStatUpdate5 from ea namespace into tmwa and eathena.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 74 | ||||
-rw-r--r-- | src/net/ea/playerhandler.h | 2 |
2 files changed, 0 insertions, 76 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index b44b793cb..437f1fe27 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -469,80 +469,6 @@ void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg) BLOCK_END("PlayerHandler::processPlayerStatUpdate4") } -void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg) -{ - BLOCK_START("PlayerHandler::processPlayerStatUpdate5") - PlayerInfo::setAttribute(Attributes::CHAR_POINTS, msg.readInt16()); - - unsigned int val = msg.readUInt8(); - PlayerInfo::setStatBase(EA_STR, val); - if (statusWindow) - statusWindow->setPointsNeeded(EA_STR, msg.readUInt8()); - else - msg.readUInt8(); - - val = msg.readUInt8(); - PlayerInfo::setStatBase(EA_AGI, val); - if (statusWindow) - statusWindow->setPointsNeeded(EA_AGI, msg.readUInt8()); - else - msg.readUInt8(); - - val = msg.readUInt8(); - PlayerInfo::setStatBase(EA_VIT, val); - if (statusWindow) - statusWindow->setPointsNeeded(EA_VIT, msg.readUInt8()); - else - msg.readUInt8(); - - val = msg.readUInt8(); - PlayerInfo::setStatBase(EA_INT, val); - if (statusWindow) - statusWindow->setPointsNeeded(EA_INT, msg.readUInt8()); - else - msg.readUInt8(); - - val = msg.readUInt8(); - PlayerInfo::setStatBase(EA_DEX, val); - if (statusWindow) - statusWindow->setPointsNeeded(EA_DEX, msg.readUInt8()); - else - msg.readUInt8(); - - val = msg.readUInt8(); - PlayerInfo::setStatBase(EA_LUK, val); - if (statusWindow) - statusWindow->setPointsNeeded(EA_LUK, msg.readUInt8()); - else - msg.readUInt8(); - - PlayerInfo::setStatBase(EA_ATK, msg.readInt16(), false); - PlayerInfo::setStatMod(EA_ATK, msg.readInt16()); - PlayerInfo::updateAttrs(); - - val = msg.readInt16(); - PlayerInfo::setStatBase(EA_MATK, val, false); - - val = msg.readInt16(); - PlayerInfo::setStatMod(EA_MATK, val); - - PlayerInfo::setStatBase(EA_DEF, msg.readInt16(), false); - PlayerInfo::setStatMod(EA_DEF, msg.readInt16()); - - PlayerInfo::setStatBase(EA_MDEF, msg.readInt16(), false); - PlayerInfo::setStatMod(EA_MDEF, msg.readInt16()); - - PlayerInfo::setStatBase(EA_HIT, msg.readInt16()); - - PlayerInfo::setStatBase(EA_FLEE, msg.readInt16(), false); - PlayerInfo::setStatMod(EA_FLEE, msg.readInt16()); - - PlayerInfo::setStatBase(EA_CRIT, msg.readInt16()); - - msg.readInt16(); // manner - BLOCK_END("PlayerHandler::processPlayerStatUpdate5") -} - void PlayerHandler::processPlayerStatUpdate6(Net::MessageIn &msg) { BLOCK_START("PlayerHandler::processPlayerStatUpdate6") diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h index 0c8afd72e..d58930237 100644 --- a/src/net/ea/playerhandler.h +++ b/src/net/ea/playerhandler.h @@ -69,8 +69,6 @@ class PlayerHandler notfinal : public Net::PlayerHandler static void processPlayerStatUpdate4(Net::MessageIn &msg); - static void processPlayerStatUpdate5(Net::MessageIn &msg); - static void processPlayerStatUpdate6(Net::MessageIn &msg); static void processPlayerArrowMessage(Net::MessageIn &msg); |