mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fastler's changes: adding ID requirements to mining consoles.
This commit is contained in:
@@ -6,16 +6,28 @@
|
|||||||
icon_state = "console"
|
icon_state = "console"
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 1
|
anchored = 1
|
||||||
|
var/id = ""
|
||||||
var/obj/machinery/mineral/processing_unit/machine = null
|
var/obj/machinery/mineral/processing_unit/machine = null
|
||||||
|
|
||||||
/obj/machinery/mineral/processing_unit_console/New()
|
/obj/machinery/mineral/processing_unit_console/New()
|
||||||
..()
|
..()
|
||||||
spawn(7)
|
spawn(7)
|
||||||
|
/**
|
||||||
src.machine = locate(/obj/machinery/mineral/processing_unit, get_step(src, EAST))
|
src.machine = locate(/obj/machinery/mineral/processing_unit, get_step(src, EAST))
|
||||||
if (machine)
|
if (machine)
|
||||||
machine.CONSOLE = src
|
machine.CONSOLE = src
|
||||||
else
|
else
|
||||||
del(src)
|
del(src)
|
||||||
|
*/
|
||||||
|
//Commented out for being horrible for mappers. -Fastler
|
||||||
|
for(var/obj/machinery/mineral/processing_unit/M in world)
|
||||||
|
if(M.id == src.id)
|
||||||
|
src.machine = M
|
||||||
|
if (machine)
|
||||||
|
machine.CONSOLE = src
|
||||||
|
else
|
||||||
|
del(src)
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/mineral/processing_unit_console/attack_hand(user as mob)
|
/obj/machinery/mineral/processing_unit_console/attack_hand(user as mob)
|
||||||
|
|
||||||
@@ -193,6 +205,7 @@
|
|||||||
icon_state = "furnace"
|
icon_state = "furnace"
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 1.0
|
anchored = 1.0
|
||||||
|
var/id = ""
|
||||||
var/obj/machinery/mineral/input = null
|
var/obj/machinery/mineral/input = null
|
||||||
var/obj/machinery/mineral/output = null
|
var/obj/machinery/mineral/output = null
|
||||||
var/obj/machinery/mineral/CONSOLE = null
|
var/obj/machinery/mineral/CONSOLE = null
|
||||||
|
|||||||
@@ -6,16 +6,27 @@
|
|||||||
icon_state = "console"
|
icon_state = "console"
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 1
|
anchored = 1
|
||||||
|
var/id = ""
|
||||||
var/obj/machinery/mineral/stacking_machine/machine = null
|
var/obj/machinery/mineral/stacking_machine/machine = null
|
||||||
|
|
||||||
/obj/machinery/mineral/stacking_unit_console/New()
|
/obj/machinery/mineral/stacking_unit_console/New()
|
||||||
..()
|
..()
|
||||||
spawn(7)
|
spawn(7)
|
||||||
|
/**
|
||||||
src.machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, SOUTHEAST))
|
src.machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, SOUTHEAST))
|
||||||
if (machine)
|
if (machine)
|
||||||
machine.CONSOLE = src
|
machine.CONSOLE = src
|
||||||
else
|
else
|
||||||
del(src)
|
del(src)
|
||||||
|
*/
|
||||||
|
//Commented out for being horrible for mappers. -Fastler
|
||||||
|
for(var/obj/machinery/mineral/stacking_machine/M in world)
|
||||||
|
if(M.id == src.id)
|
||||||
|
src.machine = M
|
||||||
|
if (machine)
|
||||||
|
machine.CONSOLE = src
|
||||||
|
else
|
||||||
|
del(src)
|
||||||
|
|
||||||
/obj/machinery/mineral/stacking_unit_console/attack_hand(user as mob)
|
/obj/machinery/mineral/stacking_unit_console/attack_hand(user as mob)
|
||||||
|
|
||||||
@@ -136,6 +147,7 @@
|
|||||||
icon_state = "stacker"
|
icon_state = "stacker"
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 1.0
|
anchored = 1.0
|
||||||
|
var/id = ""
|
||||||
var/obj/machinery/mineral/stacking_unit_console/CONSOLE
|
var/obj/machinery/mineral/stacking_unit_console/CONSOLE
|
||||||
var/stk_types = list()
|
var/stk_types = list()
|
||||||
var/stk_amt = list()
|
var/stk_amt = list()
|
||||||
|
|||||||
Reference in New Issue
Block a user