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