From 65d1d4810e79d15e436208dccd865d93c237e5a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Sep 2014 00:13:31 +0300 Subject: Move processPlayerStatUpdate5 from ea namespace into tmwa and eathena. --- src/net/ea/playerhandler.cpp | 74 -------------------------------------------- 1 file changed, 74 deletions(-) (limited to 'src/net/ea/playerhandler.cpp') 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") -- cgit v1.2.3-70-g09d2