summaryrefslogtreecommitdiff
path: root/src/game-server/abilitycomponent.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-09-08Added support for direction based ability targetsErik Schilling1-0/+29
I had to rearrange the protocol a bit in order to allow to keep the related things together.
2013-08-26Fixed warning which used an invalid iteratorErik Schilling1-2/+1
2013-08-26Removed ability categoriesErik Schilling1-2/+1
2013-08-26Only call ability recharge callback if it is validErik Schilling1-5/+8
2013-08-26Made cooldowns of abilities scriptableErik Schilling1-59/+29
- 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 abilities to monstersErik Schilling1-14/+21
Monsters can now either receive abilities at lifetime via scripts, or via the <ability> node in the monsters node.
2013-08-26[Abilities] Inform other players about ability usesErik Schilling1-2/+20
2013-08-26[Abilities] Added support for a global cooldownErik Schilling1-0/+14
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/+10
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] Moved the ability code into a own componentErik Schilling1-0/+203
This later allows monsters and characters to use this component.