diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-13 21:39:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-13 21:39:23 -0600 |
commit | 6d3e53146ba15e4d90670db3067fa7f1a67034e1 (patch) | |
tree | 20c2fd4db10392997ba712ca7e75ed68da044230 /src/net/ea/playerhandler.cpp | |
parent | feb73c9a8dcaf9ebd30ad8b00ce08cf41ca65849 (diff) | |
download | mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.tar.gz mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.tar.bz2 mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.tar.xz mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.zip |
Rename Net::SkillHandler to Net::SpecialHandler
SkillHandler::up moved to PlayerHandler::increaseSkill
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 07b738ee..9eecc445 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -469,6 +469,15 @@ void PlayerHandler::decreaseStat(LocalPlayer::Attribute attr) // Supported by eA? } +void PlayerHandler::increaseSkill(int skillId) +{ + if (player_node->getSkillPoints() <= 0) + return; + + MessageOut outMsg(CMSG_SKILL_LEVELUP_REQUEST); + outMsg.writeInt16(skillId); +} + void PlayerHandler::pickUp(FloorItem *floorItem) { MessageOut outMsg(CMSG_ITEM_PICKUP); |