Mimes can use the darkspawn mindlink without needing to break their oath (#21915)

* Update say.dm

* mental speak
This commit is contained in:
Molti
2024-04-26 21:59:35 -05:00
committed by GitHub
parent 2839dcf2d2
commit adf4d036e9
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
/datum/saymode /datum/saymode
var/key var/key
var/mode var/mode
var/bypass_mute = FALSE
//Return FALSE if you have handled the message. Otherwise, return TRUE and saycode will continue doing saycode things. //Return FALSE if you have handled the message. Otherwise, return TRUE and saycode will continue doing saycode things.
//user = whoever said the message //user = whoever said the message
@@ -143,6 +144,7 @@
/datum/saymode/darkspawn //yogs: darkspawn /datum/saymode/darkspawn //yogs: darkspawn
key = MODE_KEY_DARKSPAWN key = MODE_KEY_DARKSPAWN
mode = MODE_DARKSPAWN mode = MODE_DARKSPAWN
bypass_mute = TRUE //it's mentally talking, not physically
/datum/saymode/darkspawn/handle_message(mob/living/user, message, datum/language/language) /datum/saymode/darkspawn/handle_message(mob/living/user, message, datum/language/language)
var/datum/mind = user.mind var/datum/mind = user.mind

View File

@@ -147,7 +147,7 @@ GLOBAL_LIST_INIT(special_radio_keys, list(
if(!language) if(!language)
language = get_selected_language() language = get_selected_language()
if(!can_speak_vocal(message)) if(!(can_speak_vocal(message) || (saymode && saymode.bypass_mute))) //yogs change - mindlink is mental, not vocal
to_chat(src, span_warning("You find yourself unable to speak!")) to_chat(src, span_warning("You find yourself unable to speak!"))
return return