Merge branch 'master' into 3/4th-closet

This commit is contained in:
S34NW
2021-11-01 10:14:41 +00:00
283 changed files with 11555 additions and 16997 deletions
@@ -31,7 +31,6 @@
"Science",
"Robotics",
"Research Director's Desk",
"Mechanic",
"Engineering" = list(MAT_METAL, MAT_GLASS, MAT_PLASMA),
"Chief Engineer's Desk" = list(MAT_METAL, MAT_GLASS, MAT_PLASMA),
"Atmospherics" = list(MAT_METAL, MAT_GLASS, MAT_PLASMA),
+24 -11
View File
@@ -7,22 +7,30 @@
desc = "Controls a stacking machine... in theory."
density = FALSE
anchored = TRUE
var/obj/machinery/mineral/stacking_machine/machine = null
var/obj/machinery/mineral/stacking_machine/machine
var/machinedir = SOUTHEAST
/obj/machinery/mineral/stacking_unit_console/New()
..()
/obj/machinery/mineral/stacking_unit_console/Initialize(mapload)
. = ..()
machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir))
if(machine)
machine.CONSOLE = src
machine.console = src
else
qdel(src)
return INITIALIZE_HINT_QDEL
/obj/machinery/mineral/stacking_unit_console/Destroy()
if(machine)
machine.console = null
machine = null
return ..()
/obj/machinery/mineral/stacking_unit_console/attack_hand(mob/user)
var/obj/item/stack/sheet/s
var/dat
if(!machine)
return
dat += text("<b>Stacking unit console</b><br><br>")
for(var/O in machine.stack_list)
@@ -60,15 +68,20 @@
desc = "A machine that automatically stacks acquired materials. Controlled by a nearby console."
density = TRUE
anchored = TRUE
var/obj/machinery/mineral/stacking_unit_console/CONSOLE
var/stk_types = list()
var/stk_amt = list()
var/stack_list[0] //Key: Type. Value: Instance of type.
var/stack_amt = 50; //ammount to stack before releassing
var/obj/machinery/mineral/stacking_unit_console/console
var/list/stack_list = list() //Key: Type. Value: Instance of type.
var/stack_amt = 50 //ammount to stack before releassing
input_dir = EAST
output_dir = WEST
speed_process = TRUE
/obj/machinery/mineral/stacking_machine/Destroy()
QDEL_LIST(stack_list)
if(console)
console.machine = null
console = null
return ..()
/obj/machinery/mineral/stacking_machine/process()
var/turf/T = get_step(src, input_dir)
if(T)