Intercom buttons are red when off (but still powered) (#9209)

also replaces listening and broadcast vars that used 1 and 0 to TRUE and FALSE cause it was bugging me
This commit is contained in:
Wowzewow (Wezzy)
2020-06-29 09:40:19 +03:00
committed by GitHub
parent b7bf8a8748
commit f3a83cf97d
16 changed files with 112 additions and 71 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
pickup_sound = 'sound/items/pickup/component.ogg'
origin_tech = list(TECH_MAGNET = 1)
matter = list(DEFAULT_WALL_MATERIAL = 500, MATERIAL_GLASS = 50)
var/listening = 0
var/listening = FALSE
var/recorded //the activation message
/obj/item/device/assembly/voice/New()
@@ -20,7 +20,7 @@
/obj/item/device/assembly/voice/hear_talk(mob/living/M as mob, msg)
if(listening)
recorded = msg
listening = 0
listening = FALSE
var/turf/T = get_turf(src) //otherwise it won't work in hand
T.visible_message("\icon[src] beeps, \"Activation message is '[recorded]'.\"")
else
@@ -43,4 +43,4 @@
/obj/item/device/assembly/voice/toggle_secure()
. = ..()
listening = 0
listening = FALSE