mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 12:13:38 +01:00
bb3778d69d
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
//////////////////////////
|
|
// Circuits and Research
|
|
//////////////////////////
|
|
|
|
// Tesla coils are built as machines using a circuit researchable in RnD
|
|
/obj/item/circuitboard/tesla_coil
|
|
name = T_BOARD("tesla coil")
|
|
build_path = /obj/machinery/power/tesla_coil
|
|
board_type = new /datum/frame/frame_types/machine
|
|
req_components = list(/obj/item/stock_parts/capacitor = 1)
|
|
|
|
// Grounding rods can be built as machines using a circuit made in an autolathe.
|
|
/obj/item/circuitboard/grounding_rod
|
|
name = T_BOARD("grounding rod")
|
|
build_path = /obj/machinery/power/grounding_rod
|
|
board_type = new /datum/frame/frame_types/machine
|
|
req_components = list()
|
|
|
|
// SPECIAL BOARDS BELOW
|
|
|
|
/obj/item/circuitboard/tesla_coil/attackby(obj/item/I as obj, mob/user as mob)
|
|
if(I.has_tool_quality(TOOL_MULTITOOL))
|
|
var/result = tgui_input_list(user, "What do you want to reconfigure the board to?", "Multitool-Circuitboard interface", list("Standard", "Relay", "Prism", "Amplifier", "Recaster", "Collector"))
|
|
switch(result)
|
|
if("Standard")
|
|
name = T_BOARD("tesla coil")
|
|
build_path = /obj/machinery/power/tesla_coil
|
|
if("Relay")
|
|
name = T_BOARD("tesla relay coil")
|
|
build_path = /obj/machinery/power/tesla_coil/relay
|
|
if("Prism")
|
|
name = T_BOARD("tesla prism coil")
|
|
build_path = /obj/machinery/power/tesla_coil/splitter
|
|
if("Amplifier")
|
|
name = T_BOARD("tesla amplifier coil")
|
|
build_path = /obj/machinery/power/tesla_coil/amplifier
|
|
if("Recaster")
|
|
name = T_BOARD("tesla recaster coil")
|
|
build_path = /obj/machinery/power/tesla_coil/recaster
|
|
if("Collector")
|
|
name = T_BOARD("tesla collector coil")
|
|
build_path = /obj/machinery/power/tesla_coil/collector
|
|
return
|