summaryrefslogtreecommitdiff
path: root/src/game-server/abilitymanager.cpp
AgeCommit message (Collapse)AuthorFilesLines
2022-08-19Apply C++11 fixitsThorbjørn Lindeijer1-3/+2
modernize-loop-convert modernize-deprecated-headers
2022-08-19Apply C++11 fixitsThorbjørn Lindeijer1-6/+6
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2013-09-08Added support for direction based ability targetsErik Schilling1-0/+2
I had to rearrange the protocol a bit in order to allow to keep the related things together.
2013-08-26Removed ability categoriesErik Schilling1-54/+3
2013-08-26Use '/' as seperator for ability categories rather than '_'Erik Schilling1-3/+3
I find this a lot more readable.
2013-08-26Made cooldowns of abilities scriptableErik Schilling1-22/+0
- Removed hardcoded using of attributes - Simply introduced lua functions to set global and ability cooldowns - Requires database update - Bumps the protocol
2013-08-26[Abilities] Added support for a global cooldownErik Schilling1-1/+21
Each ability can now define a cooldown that prevents the player from using other abilities for a while. The time of this cooldown can be set to any attribute. The modified value of the attribute is the value of the cooldown in game ticks. The cooldown will be automatically started if the ability has `autoconsume` set to true. Otherwise a script has to call entity:cooldown_ability(ability).
2013-08-26[Abilities] Added a autoconsume optionErik Schilling1-0/+2
You do not need to reset the mana in the scripts if you do not want to. We will need this for attacks later since those do not nessecary have a script.
2013-08-26[Abilities] Made the rechargespeed depending on attributesErik Schilling1-3/+3
This allows a lot more flexibility and makes stuff like magical items a lot easier to implement. We will also use this for the attack system in the future. So a attack (abilitiy) would simply depend on some value like Agility (or a derived attribute from it). Which sets the recharge speed. The recharge speed is the modified value of the attribute per game tick.
2013-08-26[Abilities] Renamed set to categoryErik Schilling1-18/+18
On the one hand setSetName and setName could sound misleading in the qt client patch i plan. On the otherhand i never really liked the name "set". I think category is more general and obvious.
2013-08-26[Abilities] Renamed specials to abilitiesErik Schilling1-0/+182