From 1758acc8e845524071db8996f3dd5d1935a059e1 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Tue, 23 Apr 2013 23:36:09 +0200 Subject: [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). --- example/abilities.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'example/abilities.xml') diff --git a/example/abilities.xml b/example/abilities.xml index 6d1c323..50a9ba0 100644 --- a/example/abilities.xml +++ b/example/abilities.xml @@ -7,6 +7,7 @@ rechargeable="true" needed="100" rechargeattribute="6" + cooldownattribute="20" target="point" /> -- cgit