summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 01:47:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 01:47:44 +0300
commitddf3a130e1db0417d2dad77f69d6aa95028024d6 (patch)
treecf40b5a2d124612572507855b154fde4305646c9 /src/net/eathena/playerhandler.cpp
parent3a360e0ae954df7cc467ea76ed9022fd520497d7 (diff)
downloadplus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.tar.gz
plus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.tar.bz2
plus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.tar.xz
plus-ddf3a130e1db0417d2dad77f69d6aa95028024d6.zip
Remove default parameter from PlayerInfo::setAttribute.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp60
1 files changed, 45 insertions, 15 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 1091fd454..e98331a28 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -529,10 +529,14 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::setStatMod(Attributes::PLAYER_WALK_SPEED, 0);
break;
case Sp::BASEEXP:
- PlayerInfo::setAttribute(Attributes::PLAYER_EXP, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_EXP,
+ base,
+ Notify_true);
break;
case Sp::JOBEXP:
- PlayerInfo::setAttribute(Attributes::PLAYER_JOB_EXP, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_JOB_EXP,
+ base,
+ Notify_true);
break;
case Sp::KARMA:
PlayerInfo::setStatBase(Attributes::PLAYER_KARMA, base);
@@ -543,7 +547,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::setStatMod(Attributes::PLAYER_MANNER, 0);
break;
case Sp::HP:
- PlayerInfo::setAttribute(Attributes::PLAYER_HP, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_HP,
+ base,
+ Notify_true);
if (localPlayer->isInParty() && (Party::getParty(1) != nullptr))
{
PartyMember *const m = Party::getParty(1)
@@ -557,7 +563,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
}
break;
case Sp::MAXHP:
- PlayerInfo::setAttribute(Attributes::PLAYER_MAX_HP, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_MAX_HP,
+ base,
+ Notify_true);
if (localPlayer->isInParty() && (Party::getParty(1) != nullptr))
{
@@ -571,16 +579,24 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
}
break;
case Sp::SP:
- PlayerInfo::setAttribute(Attributes::PLAYER_MP, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_MP,
+ base,
+ Notify_true);
break;
case Sp::MAXSP:
- PlayerInfo::setAttribute(Attributes::PLAYER_MAX_MP, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_MAX_MP,
+ base,
+ Notify_true);
break;
case Sp::STATUSPOINT:
- PlayerInfo::setAttribute(Attributes::PLAYER_CHAR_POINTS, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_CHAR_POINTS,
+ base,
+ Notify_true);
break;
case Sp::BASELEVEL:
- PlayerInfo::setAttribute(Attributes::PLAYER_BASE_LEVEL, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_BASE_LEVEL,
+ base,
+ Notify_true);
if (localPlayer != nullptr)
{
localPlayer->setLevel(base);
@@ -588,7 +604,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
}
break;
case Sp::SKILLPOINT:
- PlayerInfo::setAttribute(Attributes::PLAYER_SKILL_POINTS, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_SKILL_POINTS,
+ base,
+ Notify_true);
if (skillDialog != nullptr)
skillDialog->update();
break;
@@ -625,20 +643,30 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
UnitsDb::formatCurrency(oldMoney - newMoney).c_str());
}
- PlayerInfo::setAttribute(Attributes::MONEY, newMoney);
+ PlayerInfo::setAttribute(Attributes::MONEY,
+ newMoney,
+ Notify_true);
break;
}
case Sp::NEXTBASEEXP:
- PlayerInfo::setAttribute(Attributes::PLAYER_EXP_NEEDED, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_EXP_NEEDED,
+ base,
+ Notify_true);
break;
case Sp::NEXTJOBEXP:
- PlayerInfo::setAttribute(Attributes::PLAYER_JOB_EXP_NEEDED, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_JOB_EXP_NEEDED,
+ base,
+ Notify_true);
break;
case Sp::WEIGHT:
- PlayerInfo::setAttribute(Attributes::TOTAL_WEIGHT, base);
+ PlayerInfo::setAttribute(Attributes::TOTAL_WEIGHT,
+ base,
+ Notify_true);
break;
case Sp::MAXWEIGHT:
- PlayerInfo::setAttribute(Attributes::MAX_WEIGHT, base);
+ PlayerInfo::setAttribute(Attributes::MAX_WEIGHT,
+ base,
+ Notify_true);
break;
case Sp::USTR:
statusWindow->setPointsNeeded(Attributes::PLAYER_STR, base);
@@ -704,7 +732,9 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
PlayerInfo::updateAttrs();
break;
case Sp::JOBLEVEL:
- PlayerInfo::setAttribute(Attributes::PLAYER_JOB_LEVEL, base);
+ PlayerInfo::setAttribute(Attributes::PLAYER_JOB_LEVEL,
+ base,
+ Notify_true);
break;
default: