46 #define setMercStat(sp, stat) \
48 PlayerInfo::setStatBase(stat, \
55 const int sp =
msg.readInt16(
"type");
56 const int val =
msg.readInt32(
"value");
86 msg.readBeingId(
"being id"));
91 msg.readInt16(
"matk"),
97 msg.readInt16(
"crit/10"),
100 msg.readInt16(
"def"),
103 msg.readInt16(
"mdef"),
106 msg.readInt16(
"flee"),
109 msg.readInt16(
"attack speed"),
111 const std::string name =
msg.readString(24,
"name");
112 const int level =
msg.readInt16(
"level");
120 msg.readInt32(
"max hp"),
126 msg.readInt32(
"max sp"),
129 msg.readInt32(
"expire time"),
132 msg.readInt16(
"faith"),
135 msg.readInt32(
"calls"),
138 msg.readInt32(
"kills"),
140 const int range =
msg.readInt16(
"attack range");
146 if ((dstBeing !=
nullptr) && (
localPlayer !=
nullptr))
149 mercenary->
id = dstBeing->
getId();
150 mercenary->
name = name;
151 mercenary->
level = level;
152 mercenary->
range = range;
162 const int count = (
msg.readInt16(
"len") - 4) / 37;
163 for (
int f = 0; f < count; f ++)
165 const int skillId =
msg.readInt16(
"skill id");
167 msg.readInt32(
"inf"));
168 const int level =
msg.readInt16(
"skill level");
169 const int sp =
msg.readInt16(
"sp");
170 const int range =
msg.readInt16(
"range");
171 const std::string name =
msg.readString(24,
"skill name");
179 skillId, name, level, range, up, inf, sp);
ActorManager * actorManager
#define fromBool(val, name)
#define reportAlways(...)
Being * findBeing(const BeingId id) const
bool updateSkill(const int id, const int range, const Modifiable modifiable, const SkillType::SkillType type, const int sp)
void addSkill(const SkillOwner::Type owner, const int id, const std::string &name, const int level, const int range, const Modifiable modifiable, const SkillType::SkillType type, const int sp)
void hideSkills(const SkillOwner::Type owner)
LocalPlayer * localPlayer
#define setMercStat(sp, stat)
bool msg(InputEvent &event)
void processMercenaryInfo(Net::MessageIn &msg)
void processMercenarySkills(Net::MessageIn &msg)
void processMercenaryUpdate(Net::MessageIn &msg)
void handleMercenaryMessage(const int cmd)
void notify(const unsigned int message)
void setMercenaryBeing(Being *const being)
void setSkillLevel(const int id, const int value)
void setStatBase(const AttributesT id, const int value, const Notify notify)
void setMercenary(MercenaryInfo *const info)
SkillDialog * skillDialog