summaryrefslogtreecommitdiff
path: root/src/net/ea/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-30 17:08:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-30 17:08:12 +0300
commit42a9e7b1eeced8503f909b0276ee251a2bfe75c6 (patch)
tree103859bbe12e8781466ee84b3ea464af5a5e470f /src/net/ea/skillhandler.cpp
parent4e343cd6e657f2b747b67fb688af53087199b097 (diff)
downloadmanaplus-42a9e7b1eeced8503f909b0276ee251a2bfe75c6.tar.gz
manaplus-42a9e7b1eeced8503f909b0276ee251a2bfe75c6.tar.bz2
manaplus-42a9e7b1eeced8503f909b0276ee251a2bfe75c6.tar.xz
manaplus-42a9e7b1eeced8503f909b0276ee251a2bfe75c6.zip
Move receive code from skillhandler into separate file.
Diffstat (limited to 'src/net/ea/skillhandler.cpp')
-rw-r--r--src/net/ea/skillhandler.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp
index f05d1f18a..c5ce14cdf 100644
--- a/src/net/ea/skillhandler.cpp
+++ b/src/net/ea/skillhandler.cpp
@@ -37,27 +37,4 @@ SkillHandler::SkillHandler()
{
}
-void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
-{
- const int skillId = msg.readInt16("skill id");
- const int level = msg.readInt16("skill level");
- const int sp = msg.readInt16("sp");
- const int range = msg.readInt16("range");
- const Modifiable up = fromBool(msg.readUInt8("up flag"), Modifiable);
-
- if (skillDialog && PlayerInfo::getSkillLevel(skillId) != level)
- skillDialog->playUpdateEffect(skillId);
- PlayerInfo::setSkillLevel(skillId, level);
- if (skillDialog)
- {
- if (!skillDialog->updateSkill(skillId, range,
- up, SkillType::Unknown, sp))
- {
- skillDialog->addSkill(SkillOwner::Player,
- skillId, "", level,
- range, up, SkillType::Unknown, sp);
- }
- }
-}
-
} // namespace Ea