Skip to content

Commit

Permalink
[MIRROR] fixed masks blocking speech problems
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckerMayhem authored and SuhEugene committed Sep 14, 2023
1 parent 9492d0a commit afe2f06
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions code/modules/mob/living/carbon/human/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,18 @@
return verb

/mob/living/carbon/human/handle_speech_problems(list/message_data)
if(silent || (sdisabilities & MUTED))
if (silent || (sdisabilities & MUTED))
message_data[1] = ""
. = 1
return TRUE

else if(istype(wear_mask, /obj/item/clothing/mask))
if (istype(wear_mask, /obj/item/clothing/mask))
var/obj/item/clothing/mask/M = wear_mask
if(M.voicechange)
message_data[1] = pick(M.say_messages)
message_data[2] = pick(M.say_verbs)
. = 1
return TRUE

else
. = ..(message_data)
return ..(message_data)

/mob/living/carbon/human/handle_message_mode(message_mode, message, verb, speaking, used_radios, alt_name)
switch(message_mode)
Expand Down

0 comments on commit afe2f06

Please sign in to comment.