diff --git a/code/modules/research/techweb/all_nodes.dm b/code/modules/research/techweb/all_nodes.dm index 4df9d17887e3..bd68bed5b46c 100644 --- a/code/modules/research/techweb/all_nodes.dm +++ b/code/modules/research/techweb/all_nodes.dm @@ -1492,6 +1492,7 @@ "seed_extractor", "adv_watering_can", "plantgenes", + "composters", // monkestation edit: build composters ) research_costs = list(TECHWEB_POINT_TYPE_GENERIC = 4000) discount_experiments = list(/datum/experiment/scanning/random/plants/traits = 2000, diff --git a/monkestation/code/game/objects/items/circuitboards/machine_circuitboards.dm b/monkestation/code/game/objects/items/circuitboards/machine_circuitboards.dm index 2c8e2dd55219..f92f715cb3f9 100644 --- a/monkestation/code/game/objects/items/circuitboards/machine_circuitboards.dm +++ b/monkestation/code/game/objects/items/circuitboards/machine_circuitboards.dm @@ -83,3 +83,13 @@ /obj/item/circuitboard/machine/public_nanite_chamber/examine(mob/user) . = ..() . += "Cloud ID is currently set to [cloud_id]." + +/obj/item/circuitboard/machine/composters + name = "NT-Brand Auto Composter (Machine Board)" + greyscale_colors = CIRCUIT_COLOR_ENGINEERING + desc = "Comes with a small amount solder of arranged in the corner: \"If you can read this, you're too close.\"" + build_path = /obj/machinery/composters + req_components = list( + /datum/stock_part/matter_bin = 1, + /datum/stock_part/manipulator = 1, + ) diff --git a/monkestation/code/modules/hydroponics/machines/composter.dm b/monkestation/code/modules/hydroponics/machines/composter.dm index c313e24f47dd..fa196f23c12c 100644 --- a/monkestation/code/modules/hydroponics/machines/composter.dm +++ b/monkestation/code/modules/hydroponics/machines/composter.dm @@ -4,9 +4,15 @@ icon = 'monkestation/icons/obj/machines/composter.dmi' icon_state = "composter" density = TRUE + circuit = /obj/item/circuitboard/machine/composters //current biomatter level - var/biomatter = 80 + var/biomatter = 0 + +/obj/machinery/composters/Initialize(mapload) + . = ..() + if(mapload) + biomatter = 80 /obj/machinery/composters/attacked_by(obj/item/attacking_item, mob/living/user) . = ..() @@ -81,6 +87,15 @@ else . += mutable_appearance('monkestation/icons/obj/machines/composter.dmi', "light_on", layer = OBJ_LAYER + 0.01) +/obj/machinery/composters/screwdriver_act(mob/living/user, obj/item/tool) + . = ..() + if(!.) + return default_deconstruction_screwdriver(user, "composter_open", "composter", tool) + +/obj/machinery/composters/crowbar_act(mob/living/user, obj/item/tool) + if(!default_deconstruction_crowbar(tool)) + return ..() + /obj/machinery/composters/proc/compost(list/composting, allow_carbons = FALSE) if(!islist(composting)) composting = list(composting) diff --git a/monkestation/code/modules/research/designs/machine_designs.dm b/monkestation/code/modules/research/designs/machine_designs.dm index 91f2b95fe4e5..9dd731010b29 100644 --- a/monkestation/code/modules/research/designs/machine_designs.dm +++ b/monkestation/code/modules/research/designs/machine_designs.dm @@ -80,3 +80,13 @@ RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_RESEARCH ) departmental_flags = DEPARTMENT_BITFLAG_SCIENCE + +/datum/design/board/composters + name = "Machine Design (NT-Brand Auto Composter Board)" + desc = "The circuit board for a NT-Brand Auto Composter." + id = "composters" + build_path = /obj/item/circuitboard/machine/composters + category = list( + RND_CATEGORY_MACHINE + RND_SUBCATEGORY_MACHINE_BOTANY + ) + departmental_flags = DEPARTMENT_BITFLAG_SERVICE diff --git a/monkestation/icons/obj/machines/composter.dmi b/monkestation/icons/obj/machines/composter.dmi index ba6ad5164342..1cf3be3edd20 100644 Binary files a/monkestation/icons/obj/machines/composter.dmi and b/monkestation/icons/obj/machines/composter.dmi differ