summaryrefslogtreecommitdiff
path: root/src/net/eathena/homunculusrecv.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/homunculusrecv.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/homunculusrecv.cpp')
-rw-r--r--src/net/eathena/homunculusrecv.cpp58
1 files changed, 39 insertions, 19 deletions
diff --git a/src/net/eathena/homunculusrecv.cpp b/src/net/eathena/homunculusrecv.cpp
index 204b618a7..eb7846419 100644
--- a/src/net/eathena/homunculusrecv.cpp
+++ b/src/net/eathena/homunculusrecv.cpp
@@ -114,53 +114,73 @@ void HomunculusRecv::processHomunculusInfo(Net::MessageIn &msg)
const std::string name = msg.readString(24, "name");
msg.readUInt8("flags"); // 0x01 - renamed, 0x02 - vaporize, 0x04 - alive
const int level = msg.readInt16("level");
- PlayerInfo::setStatBase(Attributes::HOMUN_LEVEL, level);
+ PlayerInfo::setStatBase(Attributes::HOMUN_LEVEL,
+ level,
+ Notify_true);
const int hungry = msg.readInt16("hungry");
const int intimacy = msg.readInt16("intimacy");
const int equip = msg.readInt16("equip");
PlayerInfo::setStatBase(Attributes::HOMUN_ATK,
- msg.readInt16("atk"));
+ msg.readInt16("atk"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_MATK,
- msg.readInt16("matk"));
+ msg.readInt16("matk"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_HIT,
- msg.readInt16("hit"));
+ msg.readInt16("hit"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_CRIT,
- msg.readInt16("luk/3 or crit/10"));
+ msg.readInt16("luk/3 or crit/10"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_DEF,
- msg.readInt16("def"));
+ msg.readInt16("def"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_MDEF,
- msg.readInt16("mdef"));
+ msg.readInt16("mdef"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_FLEE,
- msg.readInt16("flee"));
+ msg.readInt16("flee"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_ATTACK_DELAY,
- msg.readInt16("attack speed"));
+ msg.readInt16("attack speed"),
+ Notify_true);
if (msg.getVersion() >= 20150513)
{
PlayerInfo::setStatBase(Attributes::HOMUN_HP,
- msg.readInt32("hp"));
+ msg.readInt32("hp"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_MAX_HP,
- msg.readInt32("max hp"));
+ msg.readInt32("max hp"),
+ Notify_true);
}
else
{
PlayerInfo::setStatBase(Attributes::HOMUN_HP,
- msg.readInt16("hp"));
+ msg.readInt16("hp"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_MAX_HP,
- msg.readInt16("max hp"));
+ msg.readInt16("max hp"),
+ Notify_true);
}
PlayerInfo::setStatBase(Attributes::HOMUN_MP,
- msg.readInt16("sp"));
+ msg.readInt16("sp"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_MAX_MP,
- msg.readInt16("max sp"));
+ msg.readInt16("max sp"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_EXP,
- msg.readInt32("exp"));
+ msg.readInt32("exp"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_EXP_NEEDED,
- msg.readInt32("next exp"));
+ msg.readInt32("next exp"),
+ Notify_true);
PlayerInfo::setStatBase(Attributes::HOMUN_SKILL_POINTS,
- msg.readInt16("skill points"));
+ msg.readInt16("skill points"),
+ Notify_true);
const int range = msg.readInt16("attack range");
PlayerInfo::setStatBase(Attributes::HOMUN_ATTACK_RANGE,
- range);
+ range,
+ Notify_true);
PlayerInfo::updateAttrs();
HomunculusInfo *const info = PlayerInfo::getHomunculus();