summaryrefslogtreecommitdiffstats
path: root/src/common
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 /src/common
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 'src/common')
-rw-r--r--src/common/manaserv_protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/manaserv_protocol.h b/src/common/manaserv_protocol.h
index 05e5fd5..498e35f 100644
--- a/src/common/manaserv_protocol.h
+++ b/src/common/manaserv_protocol.h
@@ -149,6 +149,7 @@ enum {
GPMSG_ABILITY_STATUS = 0x0293, // { B abilityID, D current, D max, D recharge }
PGMSG_USE_ABILITY_ON_POINT = 0x0294, // B abilityID, W*2 position
GPMSG_ABILITY_REMOVED = 0x0295, // B abilityID
+ GPMSG_ABILITY_COOLDOWN = 0x0296, // W ticks to wait
PGMSG_SAY = 0x02A0, // S text
GPMSG_SAY = 0x02A1, // W being id, S text
GPMSG_NPC_CHOICE = 0x02B0, // W being id, { S text }*