mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
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:
co-authored by
LemonInTheDark
Azarak
parent
42116e5e36
commit
439207100a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user