Allow blind and/or deaf characters to see/hear emotes (#2495)

* Add deaf and blind message to emotes

* Add prefix to blind/deaf message
This commit is contained in:
Alex 'Avunia' Takiya
2021-01-05 04:59:37 +01:00
committed by GitHub
parent d181a46b1a
commit a7a0e7f403
+6 -2
View File
@@ -79,9 +79,13 @@
M.show_message("[FOLLOW_LINK(M, user)] [dchatmsg]")
if(emote_type == EMOTE_AUDIBLE)
user.audible_message(msg, audible_message_flags = EMOTE_MESSAGE)
//SKYRAT EDIT CHANGE BEGIN
//user.audible_message(msg, audible_message_flags = EMOTE_MESSAGE) - SKYRAT EDIT - ORIGINAL
user.audible_message(msg, deaf_message = "You see how <b>[user]</b> [msg]", audible_message_flags = EMOTE_MESSAGE)
else
user.visible_message(msg, visible_message_flags = EMOTE_MESSAGE)
//user.visible_message(msg, visible_message_flags = EMOTE_MESSAGE) - SKYRAT EDIT - ORIGINAL
user.visible_message(msg, blind_message = "You hear how <b>[user]</b> [msg]", visible_message_flags = EMOTE_MESSAGE)
//SKYRAT EDIT CHANGE END
/// For handling emote cooldown, return true to allow the emote to happen
/datum/emote/proc/check_cooldown(mob/user, intentional)