From a65ebfceea7e708adef3dd62a01c25b52800e572 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Sep 2014 23:12:05 +0300 Subject: Move processPlayerSkills from ea namespace into tmwa and eathena. --- src/net/ea/skillhandler.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/net/ea/skillhandler.cpp') diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp index 59e8f75e8..ecf98952a 100644 --- a/src/net/ea/skillhandler.cpp +++ b/src/net/ea/skillhandler.cpp @@ -75,36 +75,6 @@ SkillHandler::SkillHandler() { } -void SkillHandler::processPlayerSkills(Net::MessageIn &msg) -{ - msg.readInt16(); // length - const int skillCount = (msg.getLength() - 4) / 37; - int updateSkill = 0; - - for (int k = 0; k < skillCount; k++) - { - const int skillId = msg.readInt16(); - msg.readInt16(); // target type - msg.skip(2); // skill pool flags - const int level = msg.readInt16(); - msg.readInt16(); // sp - const int range = msg.readInt16(); - msg.skip(24); // 0 unused - const int up = msg.readUInt8(); - const int oldLevel = PlayerInfo::getSkillLevel(skillId); - if (oldLevel && oldLevel != level) - updateSkill = skillId; - PlayerInfo::setSkillLevel(skillId, level); - if (skillDialog) - { - if (!skillDialog->updateSkill(skillId, range, up)) - skillDialog->addSkill(skillId, level, range, up); - } - } - if (updateSkill && skillDialog) - skillDialog->playUpdateEffect(updateSkill); -} - void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg) { const int skillId = msg.readInt16(); -- cgit v1.2.3-70-g09d2