mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user