summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 02:33:41 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 02:33:41 +0300
commit1be5a1cd679a5476e1ad3339c01a8b7237b84aec (patch)
tree8fcbe25cd0444185f66e3d22ae31000aaa28173a /src/net/tmwa/playerhandler.cpp
parente91a8c39e38cddb085320ae390cf985a73eaee5c (diff)
downloadmanaverse-1be5a1cd679a5476e1ad3339c01a8b7237b84aec.tar.gz
manaverse-1be5a1cd679a5476e1ad3339c01a8b7237b84aec.tar.bz2
manaverse-1be5a1cd679a5476e1ad3339c01a8b7237b84aec.tar.xz
manaverse-1be5a1cd679a5476e1ad3339c01a8b7237b84aec.zip
Remove default parameter from PlayerInfo::setStatMod.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r--src/net/tmwa/playerhandler.cpp30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 21311a2d1..a069457ba 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -214,7 +214,7 @@ void PlayerHandler::setViewEquipment(const bool allow A_UNUSED) const
#define setStatComplex(stat) \
PlayerInfo::setStatBase(stat, base, notify); \
if (mod != NoStat) \
- PlayerInfo::setStatMod(stat, mod)
+ PlayerInfo::setStatMod(stat, mod, Notify_true)
void PlayerHandler::setStat(Net::MessageIn &msg,
const int type,
@@ -229,7 +229,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::setStatBase(Attributes::PLAYER_WALK_SPEED,
base,
Notify_true);
- PlayerInfo::setStatMod(Attributes::PLAYER_WALK_SPEED, 0);
+ PlayerInfo::setStatMod(Attributes::PLAYER_WALK_SPEED,
+ 0,
+ Notify_true);
break;
case Sp::BASEEXP:
PlayerInfo::setAttribute(Attributes::PLAYER_EXP,
@@ -404,7 +406,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::updateAttrs();
break;
case Sp::ATK2:
- PlayerInfo::setStatMod(Attributes::PLAYER_ATK, base);
+ PlayerInfo::setStatMod(Attributes::PLAYER_ATK,
+ base,
+ Notify_true);
PlayerInfo::updateAttrs();
break;
case Sp::MATK1:
@@ -413,7 +417,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
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,
@@ -421,7 +427,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
Notify_true);
break;
case Sp::DEF2:
- PlayerInfo::setStatMod(Attributes::PLAYER_DEF, base);
+ PlayerInfo::setStatMod(Attributes::PLAYER_DEF,
+ base,
+ Notify_true);
break;
case Sp::MDEF1:
PlayerInfo::setStatBase(Attributes::PLAYER_MDEF,
@@ -429,7 +437,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
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,
@@ -442,7 +452,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
Notify_true);
break;
case Sp::FLEE2:
- PlayerInfo::setStatMod(Attributes::PLAYER_FLEE, base);
+ PlayerInfo::setStatMod(Attributes::PLAYER_FLEE,
+ base,
+ Notify_true);
break;
case Sp::CRITICAL:
PlayerInfo::setStatBase(Attributes::PLAYER_CRIT,
@@ -454,7 +466,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::setStatBase(Attributes::PLAYER_ATTACK_DELAY,
base,
Notify_true);
- PlayerInfo::setStatMod(Attributes::PLAYER_ATTACK_DELAY, 0);
+ PlayerInfo::setStatMod(Attributes::PLAYER_ATTACK_DELAY,
+ 0,
+ Notify_true);
PlayerInfo::updateAttrs();
break;
case Sp::JOBLEVEL: