mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
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:
@@ -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()
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user