mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 07:20:09 +01:00
Printable Trolleys (#10358)
This commit is contained in:
@@ -167,26 +167,27 @@
|
||||
if(component_check)
|
||||
playsound(get_turf(src), P.usesound, 50, TRUE)
|
||||
var/obj/machinery/new_machine = new circuit.build_path(loc, dir, FALSE)
|
||||
if(new_machine.component_parts)
|
||||
new_machine.component_parts.Cut()
|
||||
else
|
||||
new_machine.component_parts = list()
|
||||
circuit.construct(new_machine)
|
||||
|
||||
for(var/obj/O in src)
|
||||
if(circuit.contain_parts) // things like disposal don't want their parts in them
|
||||
O.forceMove(new_machine)
|
||||
if(istype(new_machine))
|
||||
if(new_machine.component_parts)
|
||||
new_machine.component_parts.Cut()
|
||||
else
|
||||
O.forceMove(null)
|
||||
new_machine.component_parts += O
|
||||
new_machine.component_parts = list()
|
||||
circuit.construct(new_machine)
|
||||
|
||||
if(circuit.contain_parts)
|
||||
circuit.forceMove(new_machine)
|
||||
else
|
||||
circuit.forceMove(null)
|
||||
for(var/obj/O in src)
|
||||
if(circuit.contain_parts) // things like disposal don't want their parts in them
|
||||
O.forceMove(new_machine)
|
||||
else
|
||||
O.forceMove(null)
|
||||
new_machine.component_parts += O
|
||||
|
||||
new_machine.RefreshParts()
|
||||
new_machine.anchored = TRUE
|
||||
if(circuit.contain_parts)
|
||||
circuit.forceMove(new_machine)
|
||||
else
|
||||
circuit.forceMove(null)
|
||||
|
||||
new_machine.RefreshParts()
|
||||
new_machine.anchored = TRUE
|
||||
qdel(src)
|
||||
else
|
||||
if(istype(P, /obj/item))
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef T_BOARD
|
||||
#error T_BOARD macro is not defined but we need it!
|
||||
#endif
|
||||
|
||||
/obj/item/circuitboard/cargo_trolley
|
||||
name = T_BOARD("cargo trolley")
|
||||
build_path = /obj/vehicle/train/cargo/trolley
|
||||
board_type = BOARD_MACHINE
|
||||
origin_tech = list(TECH_ENGINEERING = 2)
|
||||
req_components = list(
|
||||
"/obj/item/stack/cable_coil" = 15,
|
||||
"/obj/item/stock_parts/capacitor" = 1
|
||||
)
|
||||
@@ -217,6 +217,11 @@
|
||||
req_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1)
|
||||
build_path = /obj/item/circuitboard/miningdrillbrace
|
||||
|
||||
/datum/design/circuit/machine/cargo_trolley
|
||||
name = "Cargo Trolley"
|
||||
req_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1)
|
||||
build_path = /obj/item/circuitboard/cargo_trolley
|
||||
|
||||
/datum/design/circuit/machine/weapons_analyzer
|
||||
name = "Weapons Analyzer"
|
||||
req_tech = list(TECH_DATA = 2, TECH_ENGINEERING = 3, TECH_COMBAT = 2)
|
||||
|
||||
Reference in New Issue
Block a user