summaryrefslogtreecommitdiff
path: root/src/net/ea/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 15:54:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 15:54:29 +0300
commitb462762ae88e52ba18a0610c62a9dda6ac89d32d (patch)
treedc5d865703fd06b7c9bdc218f74301eec4cf77e0 /src/net/ea/skillhandler.cpp
parent5190fe2cdac7c259d96619e4686f8543bdc96af4 (diff)
downloadmv-b462762ae88e52ba18a0610c62a9dda6ac89d32d.tar.gz
mv-b462762ae88e52ba18a0610c62a9dda6ac89d32d.tar.bz2
mv-b462762ae88e52ba18a0610c62a9dda6ac89d32d.tar.xz
mv-b462762ae88e52ba18a0610c62a9dda6ac89d32d.zip
Split skills and stats.
Diffstat (limited to 'src/net/ea/skillhandler.cpp')
-rw-r--r--src/net/ea/skillhandler.cpp8
1 files changed, 4 insertions, 4 deletions
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))