diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-07 22:08:29 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:47 +0200 |
commit | ba573fcc38580a01985172b9bc864c97ce855af3 (patch) | |
tree | ebcdbcf9a86cd35d5a8ab3bb004faa5c490c16d4 /src/account-server/character.cpp | |
parent | 7dc001eb32ae5345905e108741984258ee2f1813 (diff) | |
download | manaserv-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.cpp | 7 |
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); } |