mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Prevents 'unable to speak' spam on empty message by moving .silent check (chem mute) to can_speak_vocal
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
return message
|
||||
|
||||
/mob/living/carbon/can_speak_basic(message)
|
||||
/mob/living/carbon/can_speak_vocal(message)
|
||||
if(silent)
|
||||
return 0
|
||||
return ..()
|
||||
|
||||
@@ -70,7 +70,6 @@ var/list/department_radio_keys = list(
|
||||
return
|
||||
|
||||
if(!can_speak_basic(message)) //Stat is seperate so I can handle whispers properly.
|
||||
src << "<span class='warning'>You find yourself unable to speak!</span>"
|
||||
return
|
||||
|
||||
var/message_mode = get_message_mode(message)
|
||||
@@ -86,7 +85,7 @@ var/list/department_radio_keys = list(
|
||||
return
|
||||
|
||||
if(!can_speak_vocal(message))
|
||||
src << "<span class='warning'>You find yourself unable to speak!</span>" //repetition intended
|
||||
src << "<span class='warning'>You find yourself unable to speak!</span>"
|
||||
return
|
||||
|
||||
message = treat_message(message)
|
||||
|
||||
Reference in New Issue
Block a user