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/playerhandler.cpp | |
parent | c8bc9c87d58ba40581da09aa30c79b43f47e0cb0 (diff) | |
download | manaplus-65d1d4810e79d15e436208dccd865d93c237e5a9.tar.gz manaplus-65d1d4810e79d15e436208dccd865d93c237e5a9.tar.bz2 manaplus-65d1d4810e79d15e436208dccd865d93c237e5a9.tar.xz manaplus-65d1d4810e79d15e436208dccd865d93c237e5a9.zip |
Move processPlayerStatUpdate5 from ea namespace into tmwa and eathena.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 74 |
1 files changed, 0 insertions, 74 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") |