mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +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:
@@ -59,7 +59,7 @@
|
||||
QDEL_NULL(spark_system)
|
||||
return ..()
|
||||
|
||||
/obj/machinery/mining/drill/process()
|
||||
/obj/machinery/mining/drill/machinery_process()
|
||||
|
||||
if(need_player_check)
|
||||
return
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
src.output = locate(/obj/machinery/mineral/output, get_step(src, dir))
|
||||
if(src.output) break
|
||||
|
||||
/obj/machinery/mineral/processing_unit/process()
|
||||
/obj/machinery/mineral/processing_unit/machinery_process()
|
||||
..()
|
||||
|
||||
if (!src.output || !src.input) return
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
src.output = locate(/obj/machinery/mineral/output, get_step(src, dir))
|
||||
if(src.output) break
|
||||
|
||||
/obj/machinery/mineral/stacking_machine/process()
|
||||
/obj/machinery/mineral/stacking_machine/machinery_process()
|
||||
..()
|
||||
if(!console)
|
||||
log_debug("Stacking machine tried to process, but no console has linked itself to it.")
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
src.output = locate(/obj/machinery/mineral/output, get_step(src, dir))
|
||||
if(src.output) break
|
||||
|
||||
/obj/machinery/mineral/unloading_machine/process()
|
||||
/obj/machinery/mineral/unloading_machine/machinery_process()
|
||||
..()
|
||||
if (src.output && src.input)
|
||||
if (locate(/obj/structure/ore_box, input.loc))
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
if(src.output) break
|
||||
processing_objects.Add(src)
|
||||
|
||||
/obj/machinery/mineral/mint/process()
|
||||
/obj/machinery/mineral/mint/machinery_process()
|
||||
if ( src.input)
|
||||
var/obj/item/stack/O
|
||||
O = locate(/obj/item/stack, input.loc)
|
||||
|
||||
Reference in New Issue
Block a user