summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 02:07:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 02:07:28 +0300
commite91a8c39e38cddb085320ae390cf985a73eaee5c (patch)
treeb407ed97d8feda93743ab1347a11692dfd979353 /src/net/eathena/playerrecv.cpp
parentddf3a130e1db0417d2dad77f69d6aa95028024d6 (diff)
downloadmanaplus-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.gz
manaplus-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.bz2
manaplus-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.xz
manaplus-e91a8c39e38cddb085320ae390cf985a73eaee5c.zip
Remove default parameter from PlayerInfo::setStatBase.
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r--src/net/eathena/playerrecv.cpp32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index 7aad0440a..802563b97 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -81,7 +81,9 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
Notify_true);
unsigned int val = msg.readUInt8("str");
- PlayerInfo::setStatBase(Attributes::PLAYER_STR, val);
+ PlayerInfo::setStatBase(Attributes::PLAYER_STR,
+ val,
+ Notify_true);
if (statusWindow != nullptr)
{
statusWindow->setPointsNeeded(Attributes::PLAYER_STR,
@@ -93,7 +95,7 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
}
val = msg.readUInt8("agi");
- PlayerInfo::setStatBase(Attributes::PLAYER_AGI, val);
+ PlayerInfo::setStatBase(Attributes::PLAYER_AGI, val, Notify_true);
if (statusWindow != nullptr)
{
statusWindow->setPointsNeeded(Attributes::PLAYER_AGI,
@@ -105,7 +107,7 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
}
val = msg.readUInt8("vit");
- PlayerInfo::setStatBase(Attributes::PLAYER_VIT, val);
+ PlayerInfo::setStatBase(Attributes::PLAYER_VIT, val, Notify_true);
if (statusWindow != nullptr)
{
statusWindow->setPointsNeeded(Attributes::PLAYER_VIT,
@@ -117,7 +119,7 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
}
val = msg.readUInt8("int");
- PlayerInfo::setStatBase(Attributes::PLAYER_INT, val);
+ PlayerInfo::setStatBase(Attributes::PLAYER_INT, val, Notify_true);
if (statusWindow != nullptr)
{
statusWindow->setPointsNeeded(Attributes::PLAYER_INT,
@@ -129,7 +131,7 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
}
val = msg.readUInt8("dex");
- PlayerInfo::setStatBase(Attributes::PLAYER_DEX, val);
+ PlayerInfo::setStatBase(Attributes::PLAYER_DEX, val, Notify_true);
if (statusWindow != nullptr)
{
statusWindow->setPointsNeeded(Attributes::PLAYER_DEX,
@@ -141,7 +143,7 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
}
val = msg.readUInt8("luk");
- PlayerInfo::setStatBase(Attributes::PLAYER_LUK, val);
+ PlayerInfo::setStatBase(Attributes::PLAYER_LUK, val, Notify_true);
if (statusWindow != nullptr)
{
statusWindow->setPointsNeeded(Attributes::PLAYER_LUK,
@@ -153,7 +155,8 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
}
PlayerInfo::setStatBase(Attributes::PLAYER_ATK,
- msg.readInt16("left atk"), Notify_false);
+ msg.readInt16("left atk"),
+ Notify_false);
PlayerInfo::setStatMod(Attributes::PLAYER_ATK,
msg.readInt16("right atk"));
PlayerInfo::updateAttrs();
@@ -165,25 +168,30 @@ void PlayerRecv::processPlayerStatUpdate5(Net::MessageIn &msg)
PlayerInfo::setStatMod(Attributes::PLAYER_MATK, val);
PlayerInfo::setStatBase(Attributes::PLAYER_DEF,
- msg.readInt16("left def"), Notify_false);
+ msg.readInt16("left def"),
+ Notify_false);
PlayerInfo::setStatMod(Attributes::PLAYER_DEF,
msg.readInt16("right def"));
PlayerInfo::setStatBase(Attributes::PLAYER_MDEF,
- msg.readInt16("left mdef"), Notify_false);
+ msg.readInt16("left mdef"),
+ Notify_false);
PlayerInfo::setStatMod(Attributes::PLAYER_MDEF,
msg.readInt16("right mdef"));
PlayerInfo::setStatBase(Attributes::PLAYER_HIT,
- msg.readInt16("hit"));
+ msg.readInt16("hit"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::PLAYER_FLEE,
- msg.readInt16("flee"), Notify_false);
+ msg.readInt16("flee"),
+ Notify_false);
PlayerInfo::setStatMod(Attributes::PLAYER_FLEE,
msg.readInt16("flee2/10"));
PlayerInfo::setStatBase(Attributes::PLAYER_CRIT,
- msg.readInt16("crit/10"));
+ msg.readInt16("crit/10"),
+ Notify_true);
PlayerInfo::setAttribute(Attributes::PLAYER_ATTACK_DELAY,
msg.readInt16("attack speed"),