summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.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/playerhandler.cpp
parentddf3a130e1db0417d2dad77f69d6aa95028024d6 (diff)
downloadplus-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.gz
plus-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.bz2
plus-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.xz
plus-e91a8c39e38cddb085320ae390cf985a73eaee5c.zip
Remove default parameter from PlayerInfo::setStatBase.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp52
1 files changed, 39 insertions, 13 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index e98331a28..ee94038fd 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -525,7 +525,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
{
case Sp::SPEED:
localPlayer->setWalkSpeed(base);
- PlayerInfo::setStatBase(Attributes::PLAYER_WALK_SPEED, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_WALK_SPEED,
+ base,
+ Notify_true);
PlayerInfo::setStatMod(Attributes::PLAYER_WALK_SPEED, 0);
break;
case Sp::BASEEXP:
@@ -539,11 +541,15 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
Notify_true);
break;
case Sp::KARMA:
- PlayerInfo::setStatBase(Attributes::PLAYER_KARMA, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_KARMA,
+ base,
+ Notify_true);
PlayerInfo::setStatMod(Attributes::PLAYER_KARMA, 0);
break;
case Sp::MANNER:
- PlayerInfo::setStatBase(Attributes::PLAYER_MANNER, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_MANNER,
+ base,
+ Notify_true);
PlayerInfo::setStatMod(Attributes::PLAYER_MANNER, 0);
break;
case Sp::HP:
@@ -688,7 +694,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
break;
case Sp::ATK1:
- PlayerInfo::setStatBase(Attributes::PLAYER_ATK, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_ATK,
+ base,
+ Notify_true);
PlayerInfo::updateAttrs();
break;
case Sp::ATK2:
@@ -696,38 +704,56 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::updateAttrs();
break;
case Sp::MATK1:
- PlayerInfo::setStatBase(Attributes::PLAYER_MATK, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_MATK,
+ base,
+ Notify_true);
break;
case Sp::MATK2:
- PlayerInfo::setStatMod(Attributes::PLAYER_MATK, base);
+ PlayerInfo::setStatMod(Attributes::PLAYER_MATK,
+ base,
+ Notify_true);
break;
case Sp::DEF1:
- PlayerInfo::setStatBase(Attributes::PLAYER_DEF, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_DEF,
+ base,
+ Notify_true);
break;
case Sp::DEF2:
PlayerInfo::setStatMod(Attributes::PLAYER_DEF, base);
break;
case Sp::MDEF1:
- PlayerInfo::setStatBase(Attributes::PLAYER_MDEF, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_MDEF,
+ base,
+ Notify_true);
break;
case Sp::MDEF2:
- PlayerInfo::setStatMod(Attributes::PLAYER_MDEF, base);
+ PlayerInfo::setStatMod(Attributes::PLAYER_MDEF,
+ base,
+ Notify_true);
break;
case Sp::HIT:
- PlayerInfo::setStatBase(Attributes::PLAYER_HIT, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_HIT,
+ base,
+ Notify_true);
break;
case Sp::FLEE1:
- PlayerInfo::setStatBase(Attributes::PLAYER_FLEE, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_FLEE,
+ base,
+ Notify_true);
break;
case Sp::FLEE2:
PlayerInfo::setStatMod(Attributes::PLAYER_FLEE, base);
break;
case Sp::CRITICAL:
- PlayerInfo::setStatBase(Attributes::PLAYER_CRIT, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_CRIT,
+ base,
+ Notify_true);
break;
case Sp::ASPD:
localPlayer->setAttackSpeed(base);
- PlayerInfo::setStatBase(Attributes::PLAYER_ATTACK_DELAY, base);
+ PlayerInfo::setStatBase(Attributes::PLAYER_ATTACK_DELAY,
+ base,
+ Notify_true);
PlayerInfo::setStatMod(Attributes::PLAYER_ATTACK_DELAY, 0);
PlayerInfo::updateAttrs();
break;