summaryrefslogtreecommitdiffstats
path: root/example/attributes.xml
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-23 23:36:09 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-05-08 14:02:51 +0200
commit1758acc8e845524071db8996f3dd5d1935a059e1 (patch)
tree713fef27549712cdb979b096bd82da66a904c672 /example/attributes.xml
parent62f1e23dff18a00066ce9a9df67e058d5e5d7bbd (diff)
downloadmanaserv-1758acc8e845524071db8996f3dd5d1935a059e1.tar.gz
manaserv-1758acc8e845524071db8996f3dd5d1935a059e1.tar.xz
manaserv-1758acc8e845524071db8996f3dd5d1935a059e1.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 'example/attributes.xml')
-rw-r--r--example/attributes.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/example/attributes.xml b/example/attributes.xml
index e0e8829..425dd96 100644
--- a/example/attributes.xml
+++ b/example/attributes.xml
@@ -172,5 +172,11 @@
player-info="max-weight" >
<modifier stacktype="stackable" modtype="additive" tag="cap1" effect="Capacity %+.2f" />
</attribute>
+ <attribute id="20" name="Global ability cooldown"
+ desc="The time in ticks until any ability can be used again after one was used"
+ modifiable="false"
+ scope="being"
+ minimum="0"
+ maximum="100" />
<!-- End of core-attributes definition -->
</attributes>