summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-10 02:16:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-10 02:25:10 +0300
commit9b80af87b10412a9732001979b76575b49ad4552 (patch)
tree8025958dad51a20c9b2ea371085df59cf3e6d21d /src/net/ea
parentefad6f00faf25eb0ec84bb8539c5fbe9698e09e0 (diff)
downloadplus-9b80af87b10412a9732001979b76575b49ad4552.tar.gz
plus-9b80af87b10412a9732001979b76575b49ad4552.tar.bz2
plus-9b80af87b10412a9732001979b76575b49ad4552.tar.xz
plus-9b80af87b10412a9732001979b76575b49ad4552.zip
Add skill range parameter to skills.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/specialhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ea/specialhandler.cpp b/src/net/ea/specialhandler.cpp
index 7b2ef601a..dd0284ae8 100644
--- a/src/net/ea/specialhandler.cpp
+++ b/src/net/ea/specialhandler.cpp
@@ -90,15 +90,15 @@ void SpecialHandler::processPlayerSkills(Net::MessageIn &msg)
msg.skip(2); // skill pool flags
int level = msg.readInt16();
msg.readInt16(); // sp
- msg.readInt16(); // range
+ int range = msg.readInt16();
msg.skip(24); // 0 unused
int up = msg.readInt8();
PlayerInfo::setStatBase(skillId, level);
if (skillDialog)
{
- if (!skillDialog->setModifiable(skillId, up))
- skillDialog->addSkill(skillId, level, up);
+ if (!skillDialog->updateSkill(skillId, range, up))
+ skillDialog->addSkill(skillId, level, range, up);
}
}
}
@@ -108,14 +108,14 @@ void SpecialHandler::processPlayerSkillUp(Net::MessageIn &msg)
const int skillId = msg.readInt16();
const int level = msg.readInt16();
msg.readInt16(); // sp
- msg.readInt16(); // range
+ int range = msg.readInt16();
int up = msg.readInt8();
PlayerInfo::setStatBase(skillId, level);
if (skillDialog)
{
- if (!skillDialog->setModifiable(skillId, up))
- skillDialog->addSkill(skillId, level, up);
+ if (!skillDialog->updateSkill(skillId, range, up))
+ skillDialog->addSkill(skillId, level, range, up);
}
}