mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user