From 464c6e905d0b5f2cd91a37eabbbebe34869c003c Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 4 Jul 2024 22:02:53 +0300 Subject: [PATCH] Portable atmos machines` circuitboards (#84201) ## About The Pull Request Made portable atmospheric machines buildable as any other machines. ![image](https://github.com/tgstation/tgstation/assets/3625094/57c09495-85f7-4417-a109-aedebc723048) ## Why It's Good For The Game These are simple machines that are limited by the map spawn amounts and cargo orders for no good reason. While much more complex machinery can be built. Also allows for the construction of pipe scrubber introduced in #84187 ## Changelog :cl: qol: portable scubber, pump and pipe scrubber are buildable as any other machines /:cl: --- .../machines/machine_circuitboards.dm | 27 +++++++++++++++++ .../research/designs/machine_designs.dm | 30 +++++++++++++++++++ .../research/techweb/nodes/atmos_nodes.dm | 3 ++ 3 files changed, 60 insertions(+) diff --git a/code/game/objects/items/circuitboards/machines/machine_circuitboards.dm b/code/game/objects/items/circuitboards/machines/machine_circuitboards.dm index a36fa9d2c37..7c8839561b2 100644 --- a/code/game/objects/items/circuitboards/machines/machine_circuitboards.dm +++ b/code/game/objects/items/circuitboards/machines/machine_circuitboards.dm @@ -1637,3 +1637,30 @@ /datum/stock_part/servo = 1, /obj/item/stack/sheet/plasteel = 5, ) + +/obj/item/circuitboard/machine/scrubber + name = "Portable Air Scrubber" + greyscale_colors = CIRCUIT_COLOR_ENGINEERING + build_path = /obj/machinery/portable_atmospherics/scrubber + needs_anchored = FALSE + req_components = list( + /obj/item/pipe/directional/scrubber = 1, + ) + +/obj/item/circuitboard/machine/pump + name = "Portable Air Pump" + greyscale_colors = CIRCUIT_COLOR_ENGINEERING + build_path = /obj/machinery/portable_atmospherics/pump + needs_anchored = FALSE + req_components = list( + /obj/item/pipe/directional/vent = 1, + ) + +/obj/item/circuitboard/machine/pipe_scrubber + name = "Portable Pipe Scrubber" + greyscale_colors = CIRCUIT_COLOR_ENGINEERING + build_path = /obj/machinery/portable_atmospherics/pipe_scrubber + needs_anchored = FALSE + req_components = list( + /obj/item/pipe/trinary/flippable/filter = 1, + ) diff --git a/code/modules/research/designs/machine_designs.dm b/code/modules/research/designs/machine_designs.dm index 8f857f77e82..6436d518c92 100644 --- a/code/modules/research/designs/machine_designs.dm +++ b/code/modules/research/designs/machine_designs.dm @@ -1178,6 +1178,36 @@ ) departmental_flags = DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_ENGINEERING +/datum/design/board/scrubber + name = "Portable Air Scrubber Board" + desc = "The circuit board for a portable air scrubber." + id = "scrubber" + build_path = /obj/item/circuitboard/machine/scrubber + category = list( + RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_ATMOS + ) + departmental_flags = DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_ENGINEERING + +/datum/design/board/pump + name = "Portable Air Pump Board" + desc = "The circuit board for a portable air pump." + id = "pump" + build_path = /obj/item/circuitboard/machine/pump + category = list( + RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_ATMOS + ) + departmental_flags = DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_ENGINEERING + +/datum/design/board/pipe_scrubber + name = "Portable Pipe Scrubber Board" + desc = "The circuit board for a portable pipe scrubber." + id = "pipe_scrubber" + build_path = /obj/item/circuitboard/machine/pipe_scrubber + category = list( + RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_ATMOS + ) + departmental_flags = DEPARTMENT_BITFLAG_SCIENCE | DEPARTMENT_BITFLAG_ENGINEERING + /datum/design/board/bookbinder name = "Book Binder" desc = "The circuit board for a book binder" diff --git a/code/modules/research/techweb/nodes/atmos_nodes.dm b/code/modules/research/techweb/nodes/atmos_nodes.dm index a35c5f4c185..11baabc8aed 100644 --- a/code/modules/research/techweb/nodes/atmos_nodes.dm +++ b/code/modules/research/techweb/nodes/atmos_nodes.dm @@ -8,6 +8,7 @@ "atmosalerts", "thermomachine", "space_heater", + "scrubber", "generic_tank", "oxygen_tank", "plasma_tank", @@ -27,6 +28,7 @@ prereq_ids = list(TECHWEB_NODE_ATMOS) design_ids = list( "tank_compressor", + "pump", "emergency_oxygen", "emergency_oxygen_engi", "power_turbine_console", @@ -49,6 +51,7 @@ design_ids = list( "crystallizer", "electrolyzer", + "pipe_scrubber", "pacman", "mech_generator", "plasmacutter",