Adds Sign Language Quirk (#711)

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Azarak <azarak10@gmail.com>
This commit is contained in:
SkyratBot
2020-09-09 08:43:01 +02:00
committed by GitHub
co-authored by LemonInTheDark Azarak
parent 42116e5e36
commit 439207100a
14 changed files with 168 additions and 6 deletions
@@ -186,6 +186,19 @@
. = TRUE
/obj/item/radio/talk_into(atom/movable/M, message, channel, list/spans, datum/language/language, list/message_mods)
if(HAS_TRAIT(M, TRAIT_SIGN_LANG)) //Forces Sign Language users to wear the translation gloves to speak over radios
var/mob/living/carbon/mute = M
if(istype(mute))
var/empty_indexes = mute.get_empty_held_indexes() //How many hands the player has empty
var/obj/item/clothing/gloves/radio/G = mute.get_item_by_slot(ITEM_SLOT_GLOVES)
if(!istype(G))
return FALSE
if(length(empty_indexes) == 1)
message = stars(message)
if(length(empty_indexes) == 0) //Due to the requirement of gloves, the arm check for normal speech would be redundant here.
return FALSE
if(mute.handcuffed)//Would be weird if they couldn't sign but their words still went over the radio
return FALSE
if(!spans)
spans = list(M.speech_span)
if(!language)