From 9ed31bf0d97aebcfa1822cff06e93930127e1d75 Mon Sep 17 00:00:00 2001 From: dumpdavidson Date: Tue, 4 Jun 2013 13:28:49 +0200 Subject: [PATCH] - If they are turned on, radios inform the person they are on if they overload due to an EMP. --- code/game/objects/items/devices/radio/radio.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 8d1b88c9f67..0855958b6e1 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -663,6 +663,8 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use else return /obj/item/device/radio/emp_act(severity) + if (listening && ismob(loc)) // if the radio is turned on and on someone's person they notice + loc << "\The [src] overloads." broadcasting = 0 listening = 0 frequency += pick(-1,1)*2*rand(1,5) // shift the frequency a bit