diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-23 23:36:09 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:46 +0200 |
commit | c2f00b2f3ba920cb25333d19a1d37d251342caf8 (patch) | |
tree | 5d782446b6679c9f74661d64a3c6d9f778136717 /scripts | |
parent | 10c33df8e5a13e7e7b4a3ea203516536582b2f4b (diff) | |
download | manaserv-c2f00b2f3ba920cb25333d19a1d37d251342caf8.tar.gz manaserv-c2f00b2f3ba920cb25333d19a1d37d251342caf8.tar.bz2 manaserv-c2f00b2f3ba920cb25333d19a1d37d251342caf8.tar.xz manaserv-c2f00b2f3ba920cb25333d19a1d37d251342caf8.zip |
[Abilities] Added support for a global cooldown
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).
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lua/libmana-constants.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lua/libmana-constants.lua b/scripts/lua/libmana-constants.lua index bb1f221a..c187797c 100644 --- a/scripts/lua/libmana-constants.lua +++ b/scripts/lua/libmana-constants.lua @@ -84,6 +84,8 @@ ATTR_MOVE_SPEED_RAW = 17; ATTR_GP = 18; ATTR_INV_CAPACITY = 19; +ATTR_ABILITY_COOLDOWN = 20; + -- Emotes - TODO: should be obtainable in a smarter way EMOTE_DISGUST = 10000; |