Merge pull request #7210 from VOREStation/vplk-static-power

[PORT] Static Machinery Power
This commit is contained in:
Atermonera
2020-05-30 21:18:27 -07:00
committed by GitHub
16 changed files with 301 additions and 145 deletions

View File

@@ -121,10 +121,8 @@ SUBSYSTEM_DEF(machines)
while(current_run.len)
var/obj/machinery/M = current_run[current_run.len]
current_run.len--
if(istype(M) && !QDELETED(M) && !(M.process(wait) == PROCESS_KILL))
if(M.use_power)
M.auto_use_power()
else
if(!istype(M) || QDELETED(M) || (M.process(wait) == PROCESS_KILL))
global.processing_machines.Remove(M)
if(!QDELETED(M))
DISABLE_BITFIELD(M.datum_flags, DF_ISPROCESSING)