mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +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:
@@ -23,7 +23,7 @@
|
||||
|
||||
user.visible_message("[user] adds \a [O] to \the [src]!", "You add \a [O] to \the [src]!")
|
||||
|
||||
/obj/machinery/disease2/diseaseanalyser/process()
|
||||
/obj/machinery/disease2/diseaseanalyser/machinery_process()
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
ui.set_initial_data(data)
|
||||
ui.open()
|
||||
|
||||
/obj/machinery/computer/centrifuge/process()
|
||||
/obj/machinery/computer/centrifuge/machinery_process()
|
||||
if (inoperable()) return
|
||||
|
||||
if (curing)
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
onclose(user, "computer")
|
||||
return
|
||||
|
||||
/obj/machinery/computer/curer/process()
|
||||
/obj/machinery/computer/curer/machinery_process()
|
||||
if (inoperable())
|
||||
return
|
||||
use_power(500)
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
ui.set_initial_data(data)
|
||||
ui.open()
|
||||
|
||||
/obj/machinery/computer/diseasesplicer/process()
|
||||
/obj/machinery/computer/diseasesplicer/machinery_process()
|
||||
if (inoperable())
|
||||
return
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
ui.set_initial_data(data)
|
||||
ui.open()
|
||||
|
||||
/obj/machinery/disease2/incubator/process()
|
||||
/obj/machinery/disease2/incubator/machinery_process()
|
||||
if(dish && on && dish.virus2)
|
||||
use_power(50,EQUIP)
|
||||
if(!powered(EQUIP))
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
ui.set_initial_data(data)
|
||||
ui.open()
|
||||
|
||||
/obj/machinery/disease2/isolator/process()
|
||||
/obj/machinery/disease2/isolator/machinery_process()
|
||||
if (isolating > 0)
|
||||
isolating -= 1
|
||||
if (isolating == 0)
|
||||
|
||||
Reference in New Issue
Block a user