Implement Bay's SSmachinery and power usage updates, further unclogging the toilet (#13910)

This commit is contained in:
Wildkins
2022-05-16 18:50:16 +02:00
committed by GitHub
parent a18d6598e3
commit a4461a17af
296 changed files with 1662 additions and 1778 deletions
+3 -5
View File
@@ -8,7 +8,6 @@
density = FALSE
anchored = TRUE
var/obj/machinery/mineral/stacking_machine/machine
use_power = 1
idle_power_usage = 15
active_power_usage = 50
@@ -37,7 +36,7 @@
if(!machine)
var/area/A = get_area(src)
var/best_distance = INFINITY
for(var/obj/machinery/mineral/stacking_machine/checked_machine in SSmachinery.all_machines)
for(var/obj/machinery/mineral/stacking_machine/checked_machine in SSmachinery.machinery)
if(id)
if(checked_machine.id == id)
machine = checked_machine
@@ -127,7 +126,6 @@
var/list/stack_storage = list()
var/list/stack_paths = list()
var/stack_amt = 50 // Amount to stack before releasing
use_power = 1
idle_power_usage = 15
active_power_usage = 50
@@ -175,7 +173,7 @@
return
return ..()
/obj/machinery/mineral/stacking_machine/machinery_process()
/obj/machinery/mineral/stacking_machine/process()
if(!console)
return
if(stat & BROKEN)
@@ -199,4 +197,4 @@
if(stack_storage[sheet] >= stack_amt)
new sheet(output, stack_amt)
stack_storage[sheet] -= stack_amt
intent_message(MACHINE_SOUND)
intent_message(MACHINE_SOUND)