summaryrefslogtreecommitdiff
path: root/src/account-server/character.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-08-07 22:08:29 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:47 +0200
commitba573fcc38580a01985172b9bc864c97ce855af3 (patch)
treeebcdbcf9a86cd35d5a8ab3bb004faa5c490c16d4 /src/account-server/character.cpp
parent7dc001eb32ae5345905e108741984258ee2f1813 (diff)
downloadmanaserv-ba573fcc38580a01985172b9bc864c97ce855af3.tar.gz
manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.tar.bz2
manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.tar.xz
manaserv-ba573fcc38580a01985172b9bc864c97ce855af3.zip
Made cooldowns of abilities scriptable
- Removed hardcoded using of attributes - Simply introduced lua functions to set global and ability cooldowns - Requires database update - Bumps the protocol
Diffstat (limited to 'src/account-server/character.cpp')
-rw-r--r--src/account-server/character.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/account-server/character.cpp b/src/account-server/character.cpp
index 9c371f54..98fe9bd2 100644
--- a/src/account-server/character.cpp
+++ b/src/account-server/character.cpp
@@ -45,10 +45,7 @@ void CharacterData::setAccount(Account *acc)
mAccountLevel = acc->getLevel();
}
-void CharacterData::giveAbility(int id, int currentMana)
+void CharacterData::giveAbility(int id)
{
- if (mAbilities.find(id) == mAbilities.end())
- {
- mAbilities[id] = AbilityValue(currentMana);
- }
+ mAbilities.insert(id);
}