Adds cooldown feedback to emotes (#57114)

This commit is contained in:
Ryll Ryll
2021-02-26 01:25:32 -08:00
committed by GitHub
parent 6c1b575ee3
commit c3e71c8e6a
+3
View File
@@ -82,6 +82,9 @@
if(!intentional)
return TRUE
if(user.emotes_used && user.emotes_used[src] + cooldown > world.time)
var/datum/emote/default_emote = /datum/emote
if(cooldown > initial(default_emote.cooldown)) // only worry about longer-than-normal emotes
to_chat(user, "<span class='danger'>You must wait another [DisplayTimeText(user.emotes_used[src] - world.time + cooldown)] before using that emote.</span>")
return FALSE
if(!user.emotes_used)
user.emotes_used = list()