Modular Cmp Updates
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
requires_ntnet = 0
|
||||
size = 9
|
||||
tgui_id = "NtosPowerMonitor"
|
||||
program_icon = "plug"
|
||||
|
||||
var/has_alert = 0
|
||||
var/obj/structure/cable/attached_wire
|
||||
@@ -49,7 +50,7 @@
|
||||
local_apc = null
|
||||
|
||||
/datum/computer_file/program/power_monitor/proc/get_powernet() //keep in sync with /obj/machinery/computer/monitor's version
|
||||
if(attached_wire || (local_apc && local_apc.terminal))
|
||||
if(attached_wire || (local_apc?.terminal))
|
||||
return attached_wire ? attached_wire.powernet : local_apc.terminal.powernet
|
||||
return FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user