[NON-MODULAR] Can't use direct radio implements if you can't use items (cant radio while cuffed, stunned) (#1054)

* raydoo

* Update living_say.dm

* Update living_say.dm
This commit is contained in:
Azarak
2020-09-30 00:46:19 +01:00
committed by GitHub
parent d30c31c007
commit dcd8d0b0b3
+5
View File
@@ -384,6 +384,11 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
return message
/mob/living/proc/radio(message, list/message_mods = list(), list/spans, language)
//SKYRAT EDIT ADDITION BEGIN
if((message_mods[MODE_HEADSET] || message_mods[RADIO_EXTENSION]) && !(mobility_flags & MOBILITY_USE)) // If can't use items, you can't press the button
to_chat(src, "<span class='warning'>You can't use the radio right now!</span>")
return ITALICS | REDUCE_RANGE
//SKYRAT EDIT END
var/obj/item/implant/radio/imp = locate() in src
if(imp && imp.radio.on)
if(message_mods[MODE_HEADSET])