mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Constructible drills
Mining head circuit available in R&D Mining brace circuit added Mining braces can be built and disassembled
This commit is contained in:
@@ -11,4 +11,11 @@
|
|||||||
"/obj/item/weapon/stock_parts/capacitor" = 1,
|
"/obj/item/weapon/stock_parts/capacitor" = 1,
|
||||||
"/obj/item/weapon/cell" = 1,
|
"/obj/item/weapon/cell" = 1,
|
||||||
"/obj/item/weapon/stock_parts/matter_bin" = 1,
|
"/obj/item/weapon/stock_parts/matter_bin" = 1,
|
||||||
"/obj/item/weapon/stock_parts/micro_laser" = 1)
|
"/obj/item/weapon/stock_parts/micro_laser" = 1)
|
||||||
|
|
||||||
|
/obj/item/weapon/circuitboard/miningdrillbrace
|
||||||
|
name = T_BOARD("mining drill brace")
|
||||||
|
build_path = "/obj/machinery/mining/brace"
|
||||||
|
board_type = "machine"
|
||||||
|
origin_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1)
|
||||||
|
req_components = list()
|
||||||
|
|||||||
@@ -288,17 +288,28 @@
|
|||||||
icon_state = "mining_brace"
|
icon_state = "mining_brace"
|
||||||
var/obj/machinery/mining/drill/connected
|
var/obj/machinery/mining/drill/connected
|
||||||
|
|
||||||
|
/obj/machinery/mining/brace/New()
|
||||||
|
..()
|
||||||
|
|
||||||
|
component_parts = list()
|
||||||
|
component_parts += new /obj/item/weapon/circuitboard/miningdrillbrace(src)
|
||||||
|
|
||||||
/obj/machinery/mining/brace/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
/obj/machinery/mining/brace/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
|
if(connected && connected.active)
|
||||||
|
user << "<span class='notice'>You can't work with the brace of a running drill!</span>"
|
||||||
|
return
|
||||||
|
|
||||||
|
if(default_deconstruction_screwdriver(user, W))
|
||||||
|
return
|
||||||
|
if(default_deconstruction_crowbar(user, W))
|
||||||
|
return
|
||||||
|
|
||||||
if(istype(W,/obj/item/weapon/wrench))
|
if(istype(W,/obj/item/weapon/wrench))
|
||||||
|
|
||||||
if(istype(get_turf(src), /turf/space))
|
if(istype(get_turf(src), /turf/space))
|
||||||
user << "<span class='notice'>You can't anchor something to empty space. Idiot.</span>"
|
user << "<span class='notice'>You can't anchor something to empty space. Idiot.</span>"
|
||||||
return
|
return
|
||||||
|
|
||||||
if(connected && connected.active)
|
|
||||||
user << "<span class='notice'>You can't unanchor the brace of a running drill!</span>"
|
|
||||||
return
|
|
||||||
|
|
||||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
playsound(src.loc, 'sound/items/Ratchet.ogg', 100, 1)
|
||||||
user << "<span class='notice'>You [anchored ? "un" : ""]anchor the brace.</span>"
|
user << "<span class='notice'>You [anchored ? "un" : ""]anchor the brace.</span>"
|
||||||
|
|
||||||
|
|||||||
@@ -1069,6 +1069,20 @@ CIRCUITS BELOW
|
|||||||
build_path = /obj/item/weapon/circuitboard/biogenerator
|
build_path = /obj/item/weapon/circuitboard/biogenerator
|
||||||
sort_string = "KBAAA"
|
sort_string = "KBAAA"
|
||||||
|
|
||||||
|
/datum/design/circuit/miningdrill
|
||||||
|
name = "mining drill head"
|
||||||
|
id = "mining drill head"
|
||||||
|
req_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1)
|
||||||
|
build_path = /obj/item/weapon/circuitboard/miningdrill
|
||||||
|
sort_string = "KCAAA"
|
||||||
|
|
||||||
|
/datum/design/circuit/miningdrillbrace
|
||||||
|
name = "mining drill brace"
|
||||||
|
id = "mining drill brace"
|
||||||
|
req_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1)
|
||||||
|
build_path = /obj/item/weapon/circuitboard/miningdrillbrace
|
||||||
|
sort_string = "KCAAB"
|
||||||
|
|
||||||
/datum/design/circuit/comconsole
|
/datum/design/circuit/comconsole
|
||||||
name = "communications console"
|
name = "communications console"
|
||||||
id = "comconsole"
|
id = "comconsole"
|
||||||
|
|||||||
Reference in New Issue
Block a user