Skip to content

Commit 2c636ec

Browse files
authored
Lets handheld translator work if owner can't hear, even if they understand the language (#7100)
1 parent 264b26e commit 2c636ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/game/objects/items/devices/translator.dm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,16 @@
141141
if (visual && L.has_status_effect(/datum/status_effect/sight/blindness))
142142
return //Can't see the screen, don't get the message
143143

144-
if (audio && ((L.sdisabilities & SDISABILITY_DEAF) || L.ear_deaf))
144+
var/is_deaf = (L.sdisabilities & SDISABILITY_DEAF) || L.ear_deaf
145+
146+
if (audio && is_deaf)
145147
return //Can't hear the translation, don't get the message
146148

147149
//Only translate if they can't understand, otherwise pointlessly spammy
148150
//I'll just assume they don't look at the screen in that case
149151

150152
//They don't understand the spoken language we're translating FROM
151-
if(!L.say_understands(speaker, language))
153+
if(!L.say_understands(speaker, language) || (visual && is_deaf))
152154
//They understand the output language
153155
if(L.say_understands(null,langset))
154156
to_chat(L, "<i><b>[src]</b> translates, </i>\"<span class='[langset.colour]'>[context.attempt_translation(language, speaker, message)]</span>\"")

0 commit comments

Comments
 (0)