From 6afbd218f72684241e34e3561c900f41a5542010 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jul 2016 19:55:16 +0300 Subject: Fix too big lines. --- src/net/eathena/playerhandler.cpp | 6 ++++-- src/net/eathena/playerrecv.cpp | 18 ++++++++++++------ src/net/tmwa/playerhandler.cpp | 6 ++++-- 3 files changed, 20 insertions(+), 10 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 5b7b8baf5..b0edf5c1c 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -547,7 +547,8 @@ void PlayerHandler::setStat(Net::MessageIn &msg, if (m) { m->setHp(base); - m->setMaxHp(PlayerInfo::getAttribute(Attributes::PLAYER_MAX_HP)); + m->setMaxHp(PlayerInfo::getAttribute( + Attributes::PLAYER_MAX_HP)); } } break; @@ -629,7 +630,8 @@ void PlayerHandler::setStat(Net::MessageIn &msg, // ++ here used in wrong way. Need like Sp::NEXTBASEEXP? case Sp::NEXTJOBEXP: PlayerInfo::setStatExperience(Attributes::PLAYER_JOB, - PlayerInfo::getStatExperience(Attributes::PLAYER_JOB).first, base); + PlayerInfo::getStatExperience(Attributes::PLAYER_JOB).first, + base); break; case Sp::WEIGHT: PlayerInfo::setAttribute(Attributes::TOTAL_WEIGHT, base); diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp index 3c32be745..8f223363c 100644 --- a/src/net/eathena/playerrecv.cpp +++ b/src/net/eathena/playerrecv.cpp @@ -151,7 +151,8 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg) PlayerInfo::setStatBase(Attributes::PLAYER_ATK, msg.readInt16("left atk"), Notify_false); - PlayerInfo::setStatMod(Attributes::PLAYER_ATK, msg.readInt16("right atk")); + PlayerInfo::setStatMod(Attributes::PLAYER_ATK, + msg.readInt16("right atk")); PlayerInfo::updateAttrs(); val = msg.readInt16("right matk"); @@ -162,19 +163,24 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg) PlayerInfo::setStatBase(Attributes::PLAYER_DEF, msg.readInt16("left def"), Notify_false); - PlayerInfo::setStatMod(Attributes::PLAYER_DEF, msg.readInt16("right def")); + PlayerInfo::setStatMod(Attributes::PLAYER_DEF, + msg.readInt16("right def")); PlayerInfo::setStatBase(Attributes::PLAYER_MDEF, msg.readInt16("left mdef"), Notify_false); - PlayerInfo::setStatMod(Attributes::PLAYER_MDEF, msg.readInt16("right mdef")); + PlayerInfo::setStatMod(Attributes::PLAYER_MDEF, + msg.readInt16("right mdef")); - PlayerInfo::setStatBase(Attributes::PLAYER_HIT, msg.readInt16("hit")); + PlayerInfo::setStatBase(Attributes::PLAYER_HIT, + msg.readInt16("hit")); PlayerInfo::setStatBase(Attributes::PLAYER_FLEE, msg.readInt16("flee"), Notify_false); - PlayerInfo::setStatMod(Attributes::PLAYER_FLEE, msg.readInt16("flee2/10")); + PlayerInfo::setStatMod(Attributes::PLAYER_FLEE, + msg.readInt16("flee2/10")); - PlayerInfo::setStatBase(Attributes::PLAYER_CRIT, msg.readInt16("crit/10")); + PlayerInfo::setStatBase(Attributes::PLAYER_CRIT, + msg.readInt16("crit/10")); PlayerInfo::setAttribute(Attributes::PLAYER_ATTACK_DELAY, msg.readInt16("attack speed")); diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 5058e1d39..dba6f5162 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -251,7 +251,8 @@ void PlayerHandler::setStat(Net::MessageIn &msg, if (m) { m->setHp(base); - m->setMaxHp(PlayerInfo::getAttribute(Attributes::PLAYER_MAX_HP)); + m->setMaxHp(PlayerInfo::getAttribute( + Attributes::PLAYER_MAX_HP)); } } break; @@ -332,7 +333,8 @@ void PlayerHandler::setStat(Net::MessageIn &msg, break; case Sp::JOB_MOD: PlayerInfo::setStatExperience(Attributes::PLAYER_JOB, - PlayerInfo::getStatExperience(Attributes::PLAYER_JOB).first, base); + PlayerInfo::getStatExperience(Attributes::PLAYER_JOB).first, + base); break; case Sp::WEIGHT: PlayerInfo::setAttribute(Attributes::TOTAL_WEIGHT, base); -- cgit v1.2.3-70-g09d2