Removes machinedir on in machine_processing.dm and machine_stacking.dm

This commit is contained in:
Neerti
2015-07-07 18:43:59 -04:00
parent c3589638e6
commit 91da4afcac
3 changed files with 10 additions and 4 deletions
+4 -2
View File
@@ -8,16 +8,18 @@
anchored = 1
var/obj/machinery/mineral/processing_unit/machine = null
var/machinedir = EAST
//var/machinedir = EAST //Dumb
var/show_all_ores = 0
/obj/machinery/mineral/processing_unit_console/New()
..()
spawn(7)
src.machine = locate(/obj/machinery/mineral/processing_unit, get_step(src, machinedir))
//src.machine = locate(/obj/machinery/mineral/processing_unit, get_step(src, machinedir))
src.machine = locate(/obj/machinery/mineral/processing_unit) in range(5,src)
if (machine)
machine.console = src
else
world << "<span class='danger'>Warning: Ore processing machine console at [src.x], [src.y], [src.z] could not find its machine!</span>"
qdel(src)
/obj/machinery/mineral/processing_unit_console/attack_hand(mob/user)
+5 -2
View File
@@ -7,17 +7,20 @@
density = 1
anchored = 1
var/obj/machinery/mineral/stacking_machine/machine = null
var/machinedir = SOUTHEAST
//var/machinedir = SOUTHEAST //This is really dumb, so lets burn it with fire.
/obj/machinery/mineral/stacking_unit_console/New()
..()
spawn(7)
src.machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir))
//src.machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir)) //No.
src.machine = locate(/obj/machinery/mineral/stacking_machine) in range(5,src)
if (machine)
machine.console = src
else
//Silently failing and causing mappers to scratch their heads while runtiming isn't ideal.
world << "<span class='danger'>Warning: Stacking machine console at [src.x], [src.y], [src.z] could not find its machine!</span>"
qdel(src)
/obj/machinery/mineral/stacking_unit_console/attack_hand(mob/user)