mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Check power on machine build
This commit is contained in:
@@ -121,7 +121,7 @@ Class Procs:
|
|||||||
if(ispath(circuit))
|
if(ispath(circuit))
|
||||||
circuit = new circuit(src)
|
circuit = new circuit(src)
|
||||||
|
|
||||||
/obj/machinery/Initialize()
|
/obj/machinery/Initialize(var/mapload)
|
||||||
. = ..()
|
. = ..()
|
||||||
global.machines += src
|
global.machines += src
|
||||||
if(ispath(circuit))
|
if(ispath(circuit))
|
||||||
@@ -130,6 +130,8 @@ Class Procs:
|
|||||||
START_MACHINE_PROCESSING(src)
|
START_MACHINE_PROCESSING(src)
|
||||||
else
|
else
|
||||||
START_PROCESSING(SSfastprocess, src)
|
START_PROCESSING(SSfastprocess, src)
|
||||||
|
if(!mapload)
|
||||||
|
power_change()
|
||||||
|
|
||||||
/obj/machinery/Destroy()
|
/obj/machinery/Destroy()
|
||||||
if(!speed_process)
|
if(!speed_process)
|
||||||
|
|||||||
Reference in New Issue
Block a user