mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Mining Fixes (#9330)
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
else if(istype(get_turf(src), /turf/simulated/floor))
|
||||
var/turf/simulated/floor/T = get_turf(src)
|
||||
var/turf/below_turf = GetBelow(T)
|
||||
if(!istype(below_turf.loc, /area/mine))
|
||||
if(!istype(below_turf.loc, /area/mine) && !istype(below_turf.loc, /area/template_noop))
|
||||
system_error("Potential station breach below.")
|
||||
return
|
||||
T.ex_act(2.0)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
icon = 'icons/mob/screen/generic.dmi'
|
||||
icon_state = "x2"
|
||||
name = "Input Area"
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
density = FALSE
|
||||
anchored = TRUE
|
||||
|
||||
@@ -15,9 +16,10 @@
|
||||
icon = 'icons/mob/screen/generic.dmi'
|
||||
icon_state = "x"
|
||||
name = "Output Area"
|
||||
invisibility = INVISIBILITY_ABSTRACT
|
||||
density = FALSE
|
||||
anchored = TRUE
|
||||
|
||||
/obj/machinery/mineral/output/Initialize()
|
||||
. = ..()
|
||||
icon_state = "blank"
|
||||
icon_state = "blank"
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
/obj/machinery/mineral/processing_unit_console
|
||||
name = "ore redemption console"
|
||||
desc = "A handy console which can be use to retrieve mining points for use in the mining vendor, or to set processing values for various ore types."
|
||||
desc_info = "Up to date settings for the refinery can be found in the Aurorastation Guide to Mining wikipage."
|
||||
icon = 'icons/obj/terminals.dmi'
|
||||
icon_state = "production_console"
|
||||
density = FALSE
|
||||
@@ -279,6 +281,7 @@
|
||||
|
||||
/obj/machinery/mineral/processing_unit
|
||||
name = "industrial smelter" //This isn't actually a goddamn furnace, we're in space and it's processing platinum and flammable phoron... //lol fuk u bay it is //i'm gay // based and redpilled
|
||||
desc = "A large smelter and compression machine which heats up ore, then applies the process specified within the ore redemption console, outputting the result to the other side."
|
||||
icon = 'icons/obj/machines/mining_machines.dmi'
|
||||
icon_state = "furnace-off"
|
||||
density = TRUE
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console
|
||||
name = "stacking machine console"
|
||||
desc = "This console allows you to set the max stack size for the stacking machine, as well as letting you eject stacks manually."
|
||||
icon = 'icons/obj/terminals.dmi'
|
||||
icon_state = "production_console"
|
||||
density = FALSE
|
||||
@@ -11,11 +12,15 @@
|
||||
idle_power_usage = 15
|
||||
active_power_usage = 50
|
||||
|
||||
/obj/machinery/mineral/processing_unit_console/Initialize(mapload, d, populate_components)
|
||||
. = ..()
|
||||
/obj/machinery/mineral/stacking_unit_console/Initialize(mapload, d, populate_components)
|
||||
..()
|
||||
var/mutable_appearance/screen_overlay = mutable_appearance(icon, "production_console-screen", EFFECTS_ABOVE_LIGHTING_LAYER)
|
||||
add_overlay(screen_overlay)
|
||||
set_light(1.4, 1, COLOR_CYAN)
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console/LateInitialize()
|
||||
setup_machine(null)
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console/proc/setup_machine(mob/user)
|
||||
if(!machine)
|
||||
@@ -27,7 +32,7 @@
|
||||
best_distance = get_dist_euclidian(checked_machine,src)
|
||||
if(machine)
|
||||
machine.console = src
|
||||
else
|
||||
else if(user)
|
||||
to_chat(user, SPAN_WARNING("ERROR: Linked machine not found!"))
|
||||
|
||||
return machine
|
||||
@@ -88,6 +93,7 @@
|
||||
|
||||
/obj/machinery/mineral/stacking_machine
|
||||
name = "stacking machine"
|
||||
desc = "A machine which takes loose stacks of finished sheets and packs them together into one easily transportable sheet."
|
||||
icon = 'icons/obj/machines/mining_machines.dmi'
|
||||
icon_state = "stacker"
|
||||
density = TRUE
|
||||
@@ -121,9 +127,12 @@
|
||||
break
|
||||
|
||||
/obj/machinery/mineral/stacking_machine/machinery_process()
|
||||
..()
|
||||
if(!console)
|
||||
return
|
||||
if(stat & BROKEN)
|
||||
return
|
||||
if(stat & NOPOWER)
|
||||
return
|
||||
|
||||
if(output && input)
|
||||
var/turf/T = get_turf(input)
|
||||
@@ -141,4 +150,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
|
||||
@@ -1,8 +1,8 @@
|
||||
/**********************Unloading unit**************************/
|
||||
|
||||
|
||||
/obj/machinery/mineral/unloading_machine
|
||||
name = "unloading machine"
|
||||
desc = "A machine capable of unloading an ore box or ore scattered on the floor within its input zone, to its output zone."
|
||||
icon = 'icons/obj/machines/mining_machines.dmi'
|
||||
icon_state = "unloader"
|
||||
density = TRUE
|
||||
|
||||
Reference in New Issue
Block a user