From 73ca3b0656a8603b3df7a89ee50f0d6cef5194d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Baldomir?= Date: Thu, 5 Mar 2015 23:30:06 +0100 Subject: [PATCH] Fixed holosign not being registered as machine. The master controller does not find you worthy of the machines list if you don't process. --- code/game/machinery/holosign.dm | 35 +++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/code/game/machinery/holosign.dm b/code/game/machinery/holosign.dm index b00ab9d75b1..2b585437fcc 100644 --- a/code/game/machinery/holosign.dm +++ b/code/game/machinery/holosign.dm @@ -5,26 +5,31 @@ icon = 'icons/obj/holosign.dmi' icon_state = "sign_off" layer = 4 + idle_power_usage = 2 var/lit = 0 var/id = null var/on_icon = "sign_on" - proc/toggle() - if (stat & (BROKEN|NOPOWER)) - return - lit = !lit - update_icon() - +/obj/machinery/holosign/proc/toggle() + if (stat & (BROKEN|NOPOWER)) + return + lit = !lit update_icon() - if (!lit) - icon_state = "sign_off" - else - icon_state = on_icon - power_change() - if (stat & NOPOWER) - lit = 0 - update_icon() +/obj/machinery/holosign/process() + if(lit) + auto_use_power() + +/obj/machinery/holosign/update_icon() + if (!lit) + icon_state = "sign_off" + else + icon_state = on_icon + +/obj/machinery/holosign/power_change() + if (stat & NOPOWER) + lit = 0 + update_icon() /obj/machinery/holosign/surgery name = "surgery holosign" @@ -48,7 +53,7 @@ active = !active icon_state = "light[active]" - for(var/obj/machinery/holosign/M in world) + for(var/obj/machinery/holosign/M in machines) if (M.id == src.id) spawn( 0 ) M.toggle()