mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Cargo/Mining Map Tweaks (#4542)
Mining Map Changes There is an easier way for paramedics/miners to traverse down zlevels, without the using of a mobile ladder. A new area is built for that purpose. Main level has a ladder going up and down to two different areas. Both areas are guaranteed to be connected to another airlock. Top level is connected to science, bottom level is connected to a cargo elevator. Atmospherics system in mining is more saner. The mining processor was made shorter, and 4 grates are guaranteed to spawn now for each miner slot, and contains it's own maintenance hatch for easy upgrades. Mining also now has its own requests console and disposals delivery destination. The industrial smelter is now twice as fast, however uses three times as much power.
This commit is contained in:
@@ -4,27 +4,36 @@
|
||||
name = "stacking machine console"
|
||||
icon = 'icons/obj/machines/mining_machines.dmi'
|
||||
icon_state = "console"
|
||||
density = 1
|
||||
density = 0
|
||||
anchored = 1
|
||||
var/obj/machinery/mineral/stacking_machine/machine = null
|
||||
var/machinedir = NORTHEAST
|
||||
use_power = 1
|
||||
idle_power_usage = 15
|
||||
active_power_usage = 50
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console/Initialize()
|
||||
. = ..()
|
||||
src.machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir))
|
||||
if (machine)
|
||||
machine.console = src
|
||||
else
|
||||
return INITIALIZE_HINT_QDEL
|
||||
/obj/machinery/mineral/stacking_unit_console/proc/setup_machine(mob/user)
|
||||
if(!machine)
|
||||
var/area/A = get_area(src)
|
||||
for(var/obj/machinery/mineral/stacking_machine/checked_machine in SSmachinery.all_machines)
|
||||
if(A == get_area(checked_machine))
|
||||
machine = checked_machine
|
||||
break
|
||||
if (machine)
|
||||
machine.console = src
|
||||
else
|
||||
user << "<span class='warning'>ERROR: Linked machine not found!</span>"
|
||||
|
||||
return machine
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console/attack_hand(mob/user)
|
||||
add_fingerprint(user)
|
||||
ui_interact(user)
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null, force_open = 1, datum/topic_state/state = default_state)
|
||||
|
||||
if(!setup_machine(user))
|
||||
return
|
||||
|
||||
var/list/data = list(
|
||||
"stack_amt" = machine.stack_amt,
|
||||
"contents" = list()
|
||||
@@ -108,8 +117,6 @@
|
||||
/obj/machinery/mineral/stacking_machine/machinery_process()
|
||||
..()
|
||||
if(!console)
|
||||
log_debug("Stacking machine tried to process, but no console has linked itself to it.")
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
if (output && input)
|
||||
@@ -126,4 +133,4 @@
|
||||
for(var/sheet in stack_storage)
|
||||
if(stack_storage[sheet] >= stack_amt)
|
||||
new sheet(get_turf(output), stack_amt)
|
||||
stack_storage[sheet] -= stack_amt
|
||||
stack_storage[sheet] -= stack_amt
|
||||
Reference in New Issue
Block a user