mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Implement Bay's SSmachinery and power usage updates, further unclogging the toilet (#13910)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user