diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-26 23:10:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-26 23:10:24 +0300 |
commit | 122da0d138f7edf27308a62f6dee8658d13c2c75 (patch) | |
tree | b0a5252494ba1a9a608b7f6d2e1e51a2bafc1689 | |
parent | 182fe0545897aae420dddf92efc17784be622ebf (diff) | |
download | manaverse-122da0d138f7edf27308a62f6dee8658d13c2c75.tar.gz manaverse-122da0d138f7edf27308a62f6dee8658d13c2c75.tar.bz2 manaverse-122da0d138f7edf27308a62f6dee8658d13c2c75.tar.xz manaverse-122da0d138f7edf27308a62f6dee8658d13c2c75.zip |
For homunculus set stats and not attributes.
-rw-r--r-- | src/net/eathena/homunculusrecv.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/net/eathena/homunculusrecv.cpp b/src/net/eathena/homunculusrecv.cpp index c836e07bb..4f6551488 100644 --- a/src/net/eathena/homunculusrecv.cpp +++ b/src/net/eathena/homunculusrecv.cpp @@ -113,42 +113,42 @@ 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::setAttribute(Attributes::HOMUN_LEVEL, level); + PlayerInfo::setStatBase(Attributes::HOMUN_LEVEL, level); const int hungry = msg.readInt16("hungry"); const int intimacy = msg.readInt16("intimacy"); const int equip = msg.readInt16("equip"); - PlayerInfo::setAttribute(Attributes::HOMUN_ATK, + PlayerInfo::setStatBase(Attributes::HOMUN_ATK, msg.readInt16("atk")); - PlayerInfo::setAttribute(Attributes::HOMUN_MATK, + PlayerInfo::setStatBase(Attributes::HOMUN_MATK, msg.readInt16("matk")); - PlayerInfo::setAttribute(Attributes::HOMUN_HIT, + PlayerInfo::setStatBase(Attributes::HOMUN_HIT, msg.readInt16("hit")); - PlayerInfo::setAttribute(Attributes::HOMUN_CRIT, + PlayerInfo::setStatBase(Attributes::HOMUN_CRIT, msg.readInt16("luk/3 or crit/10")); - PlayerInfo::setAttribute(Attributes::HOMUN_DEF, + PlayerInfo::setStatBase(Attributes::HOMUN_DEF, msg.readInt16("def")); - PlayerInfo::setAttribute(Attributes::HOMUN_MDEF, + PlayerInfo::setStatBase(Attributes::HOMUN_MDEF, msg.readInt16("mdef")); - PlayerInfo::setAttribute(Attributes::HOMUN_FLEE, + PlayerInfo::setStatBase(Attributes::HOMUN_FLEE, msg.readInt16("flee")); - PlayerInfo::setAttribute(Attributes::HOMUN_ATTACK_DELAY, + PlayerInfo::setStatBase(Attributes::HOMUN_ATTACK_DELAY, msg.readInt16("attack speed")); - PlayerInfo::setAttribute(Attributes::HOMUN_HP, + PlayerInfo::setStatBase(Attributes::HOMUN_HP, msg.readInt16("hp")); - PlayerInfo::setAttribute(Attributes::HOMUN_MAX_HP, + PlayerInfo::setStatBase(Attributes::HOMUN_MAX_HP, msg.readInt16("max hp")); - PlayerInfo::setAttribute(Attributes::HOMUN_MP, + PlayerInfo::setStatBase(Attributes::HOMUN_MP, msg.readInt16("sp")); - PlayerInfo::setAttribute(Attributes::HOMUN_MAX_MP, + PlayerInfo::setStatBase(Attributes::HOMUN_MAX_MP, msg.readInt16("max sp")); - PlayerInfo::setAttribute(Attributes::HOMUN_EXP, + PlayerInfo::setStatBase(Attributes::HOMUN_EXP, msg.readInt32("exp")); - PlayerInfo::setAttribute(Attributes::HOMUN_EXP_NEEDED, + PlayerInfo::setStatBase(Attributes::HOMUN_EXP_NEEDED, msg.readInt32("next exp")); - PlayerInfo::setAttribute(Attributes::HOMUN_SKILL_POINTS, + PlayerInfo::setStatBase(Attributes::HOMUN_SKILL_POINTS, msg.readInt16("skill points")); const int range = msg.readInt16("attack range"); - PlayerInfo::setAttribute(Attributes::HOMUN_ATTACK_RANGE, + PlayerInfo::setStatBase(Attributes::HOMUN_ATTACK_RANGE, range); HomunculusInfo *const info = PlayerInfo::getHomunculus(); |