mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-28 02:52:01 +00:00
changes: Machinery now uses machinery_process() instead of process(), allowing machines to be put into SSprocessing-style lists in addition to the machinery list. Automatic power calculations now involve less proc-calls.
35 lines
628 B
Plaintext
35 lines
628 B
Plaintext
/obj/machinery/bluespacerelay
|
|
name = "Emergency Bluespace Relay"
|
|
desc = "This sends messages through bluespace! Wow!"
|
|
icon = 'icons/obj/stationobjs.dmi'
|
|
icon_state = "bspacerelay"
|
|
|
|
anchored = 1
|
|
density = 1
|
|
use_power = 1
|
|
var/on = 1
|
|
|
|
idle_power_usage = 15000
|
|
active_power_usage = 15000
|
|
|
|
/obj/machinery/bluespacerelay/machinery_process()
|
|
|
|
update_power()
|
|
|
|
update_icon()
|
|
|
|
|
|
/obj/machinery/bluespacerelay/update_icon()
|
|
if(on)
|
|
icon_state = initial(icon_state)
|
|
else
|
|
icon_state = "[initial(icon_state)]_off"
|
|
|
|
/obj/machinery/bluespacerelay/proc/update_power()
|
|
|
|
if(stat & (BROKEN|NOPOWER|EMPED))
|
|
on = 0
|
|
else
|
|
on = 1
|
|
|