mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-15 18:23:33 +01:00
[MIRROR] Mime care package (#12773)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
fef241645b
commit
1128c0cd18
@@ -209,6 +209,9 @@ GLOBAL_LIST_EMPTY(channel_to_radio_key)
|
||||
var/list/message_pieces = parse_languages(message)
|
||||
if(istype(message_pieces, /datum/multilingual_say_piece)) // Little quark for dealing with hivemind/signlang languages.
|
||||
var/datum/multilingual_say_piece/S = message_pieces // Yay for BYOND's hilariously broken typecasting for allowing us to do this.
|
||||
if(HAS_MIND_TRAIT(src, TRAIT_MIMING))
|
||||
to_chat(src, span_green("You stop yourself from signing in favor of the art of mimery!"))
|
||||
return FALSE
|
||||
S.speaking.broadcast(src, S.message)
|
||||
return 1
|
||||
|
||||
@@ -216,6 +219,10 @@ GLOBAL_LIST_EMPTY(channel_to_radio_key)
|
||||
log_runtime(EXCEPTION("Message failed to generate pieces. [message] - [json_encode(message_pieces)]"))
|
||||
return 0
|
||||
|
||||
if(HAS_MIND_TRAIT(src, TRAIT_MIMING))
|
||||
to_chat(src, span_green("Your vow of silence prevents you from speaking!"))
|
||||
return
|
||||
|
||||
// If you're muzzled, you can only speak sign language
|
||||
// However, sign language is handled above.
|
||||
if(is_muzzled())
|
||||
|
||||
Reference in New Issue
Block a user