diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-17 02:07:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-17 02:07:28 +0300 |
commit | e91a8c39e38cddb085320ae390cf985a73eaee5c (patch) | |
tree | b407ed97d8feda93743ab1347a11692dfd979353 /src/net/eathena/mercenaryrecv.cpp | |
parent | ddf3a130e1db0417d2dad77f69d6aa95028024d6 (diff) | |
download | manaverse-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.gz manaverse-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.bz2 manaverse-e91a8c39e38cddb085320ae390cf985a73eaee5c.tar.xz manaverse-e91a8c39e38cddb085320ae390cf985a73eaee5c.zip |
Remove default parameter from PlayerInfo::setStatBase.
Diffstat (limited to 'src/net/eathena/mercenaryrecv.cpp')
-rw-r--r-- | src/net/eathena/mercenaryrecv.cpp | 57 |
1 files changed, 38 insertions, 19 deletions
diff --git a/src/net/eathena/mercenaryrecv.cpp b/src/net/eathena/mercenaryrecv.cpp index 457045e5b..d995164a9 100644 --- a/src/net/eathena/mercenaryrecv.cpp +++ b/src/net/eathena/mercenaryrecv.cpp @@ -45,7 +45,8 @@ namespace EAthena #define setMercStat(sp, stat) \ case sp: \ PlayerInfo::setStatBase(stat, \ - val); \ + val, \ + Notify_true); \ break; void MercenaryRecv::processMercenaryUpdate(Net::MessageIn &msg) @@ -81,44 +82,62 @@ void MercenaryRecv::processMercenaryInfo(Net::MessageIn &msg) Being *const dstBeing = actorManager->findBeing( msg.readBeingId("being id")); PlayerInfo::setStatBase(Attributes::MERC_ATK, - msg.readInt16("atk")); + msg.readInt16("atk"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_MATK, - msg.readInt16("matk")); + msg.readInt16("matk"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_HIT, - msg.readInt16("hit")); + msg.readInt16("hit"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_CRIT, - msg.readInt16("crit/10")); + msg.readInt16("crit/10"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_DEF, - msg.readInt16("def")); + msg.readInt16("def"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_MDEF, - msg.readInt16("mdef")); + msg.readInt16("mdef"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_FLEE, - msg.readInt16("flee")); + msg.readInt16("flee"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_ATTACK_DELAY, - msg.readInt16("attack speed")); + msg.readInt16("attack speed"), + Notify_true); const std::string name = msg.readString(24, "name"); const int level = msg.readInt16("level"); PlayerInfo::setStatBase(Attributes::MERC_LEVEL, - level); + level, + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_HP, - msg.readInt32("hp")); + msg.readInt32("hp"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_MAX_HP, - msg.readInt32("max hp")); + msg.readInt32("max hp"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_MP, - msg.readInt32("sp")); + msg.readInt32("sp"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_MAX_MP, - msg.readInt32("max sp")); + msg.readInt32("max sp"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_EXPIRE, - msg.readInt32("expire time")); + msg.readInt32("expire time"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_FAITH, - msg.readInt16("faith")); + msg.readInt16("faith"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_CALLS, - msg.readInt32("calls")); + msg.readInt32("calls"), + Notify_true); PlayerInfo::setStatBase(Attributes::MERC_KILLS, - msg.readInt32("kills")); + msg.readInt32("kills"), + Notify_true); const int range = msg.readInt16("attack range"); PlayerInfo::setStatBase(Attributes::MERC_ATTACK_RANGE, - range); + range, + Notify_true); PlayerInfo::updateAttrs(); if ((dstBeing != nullptr) && (localPlayer != nullptr)) |