Files
Polaris/code/game/machinery/computer/shutoff_monitor.dm
MistakeNot4892 2f0a618d45 /atom New() => Initialize() [MDB IGNORE] (#8298)
* Find and replace argless atom New() to Initialize().

* Manual replacement of no-arg New() to Initialize().

* Manually replacing remaining New() overrides.

* Fixing linter issues with now-removed New() args.

* Tidying area init overrides.

* Porting Neb's atom subsystem.

* Trying to isolate init problems.

* Adjusting Init code post-test.

* Merging duplicate Initialize() procs.

* Merge resolution.
2021-11-14 00:09:14 -08:00

27 lines
777 B
Plaintext

/obj/machinery/computer/shutoff_monitor
name = "automated shutoff valve monitor"
desc = "Console used to remotely monitor shutoff valves on the station."
icon_keyboard = "power_key"
icon_screen = "power_monitor"
light_color = "#a97faa"
circuit = /obj/item/weapon/circuitboard/shutoff_monitor
var/datum/tgui_module/shutoff_monitor/monitor
/obj/machinery/computer/shutoff_monitor/Initialize()
. = ..()
monitor = new(src)
/obj/machinery/computer/shutoff_monitor/Destroy()
QDEL_NULL(monitor)
..()
/obj/machinery/computer/shutoff_monitor/attack_hand(var/mob/user as mob)
..()
monitor.tgui_interact(user)
/obj/machinery/computer/shutoff_monitor/update_icon()
..()
if(!(stat & (NOPOWER|BROKEN)))
add_overlay("ai-fixer-empty")
else
cut_overlay("ai-fixer-empty")