mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixes power monitor computer screens
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user