machinery_process() & auto_use_power efficiency tweaks (#2657)

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.
This commit is contained in:
Lohikar
2017-06-12 19:09:36 +03:00
committed by skull132
parent 585a6c59dd
commit 0db557ac29
138 changed files with 204 additions and 179 deletions
@@ -133,7 +133,7 @@
user << "<span class='notice'>You take all filled honeycombs out.</span>"
return
/obj/machinery/beehive/process()
/obj/machinery/beehive/machinery_process()
if(closed && !smoked && bee_count)
pollinate_flowers()
update_icon()
+1 -1
View File
@@ -50,7 +50,7 @@
var/failed_task = 0
var/disk_needs_genes = 0
/obj/machinery/botany/process()
/obj/machinery/botany/machinery_process()
..()
if(!active) return
@@ -108,7 +108,7 @@
else
return 0
/obj/machinery/apiary/process()
/obj/machinery/apiary/machinery_process()
if(swarming > 0)
swarming -= 1
@@ -1,4 +1,4 @@
/obj/machinery/portable_atmospherics/hydroponics/process()
/obj/machinery/portable_atmospherics/hydroponics/machinery_process()
// Handle nearby smoke if any.
for(var/obj/effect/effect/smoke/chem/smoke in view(1, src))
+1 -1
View File
@@ -64,7 +64,7 @@
/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/die()
qdel(src)
/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/process()
/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/machinery_process()
if(!seed)
qdel(src)
return