mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Adds cooldown feedback to emotes (#57114)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user