Fixes power monitor computer screens

This commit is contained in:
SinTwo
2016-06-03 22:10:52 -04:00
parent fc8af33bec
commit dc29227895
3 changed files with 8 additions and 12 deletions

View File

@@ -8,7 +8,7 @@
desc = "Computer designed to remotely monitor power levels around the station"
icon = 'icons/obj/computer.dmi'
icon_keyboard = "power_key"
icon_screen = "power"
icon_screen = "power:0"
light_color = "#ffcc33"
//computer stuff
@@ -30,16 +30,12 @@
// Updates icon of this computer according to current status.
/obj/machinery/computer/power_monitor/update_icon()
if(stat & BROKEN)
icon_state = "powerb"
return
if(stat & NOPOWER)
icon_state = "power0"
return
if(alerting)
icon_state = "power_alert"
return
icon_state = "power"
if(!(stat & (NOPOWER|BROKEN)))
if(alerting)
icon_screen = "power:1"
else
icon_screen = "power:0"
..()
// On creation automatically connects to active sensors. This is delayed to ensure sensors already exist.
/obj/machinery/computer/power_monitor/New()