From b462762ae88e52ba18a0610c62a9dda6ac89d32d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 15:54:29 +0300 Subject: Split skills and stats. --- src/net/ea/skillhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp index 35a809ac9..51dc85461 100644 --- a/src/net/ea/skillhandler.cpp +++ b/src/net/ea/skillhandler.cpp @@ -93,10 +93,10 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) const int range = msg.readInt16(); msg.skip(24); // 0 unused const int up = msg.readInt8(); - const int oldLevel = PlayerInfo::getStatBase(skillId); + const int oldLevel = PlayerInfo::getSkillLevel(skillId); if (oldLevel && oldLevel != level) updateSkill = skillId; - PlayerInfo::setStatBase(skillId, level); + PlayerInfo::setSkillLevel(skillId, level); if (skillDialog) { if (!skillDialog->updateSkill(skillId, range, up)) @@ -115,9 +115,9 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg) const int range = msg.readInt16(); const int up = msg.readInt8(); - if (skillDialog && PlayerInfo::getStatBase(skillId) != level) + if (skillDialog && PlayerInfo::getSkillLevel(skillId) != level) skillDialog->playUpdateEffect(skillId); - PlayerInfo::setStatBase(skillId, level); + PlayerInfo::setSkillLevel(skillId, level); if (skillDialog) { if (!skillDialog->updateSkill(skillId, range, up)) -- cgit v1.2.3-70-g09d2