From c04affe83c48821aebe88c6747c85462e2865bd2 Mon Sep 17 00:00:00 2001 From: Capsandi <38051413+Capsandi@users.noreply.github.com> Date: Mon, 23 Mar 2020 08:07:49 -0400 Subject: [PATCH] Adds deconstruction and unanchoring to sheetifier (#50014) * notsosheetynowareya * notsorequiringanchorageonbeingbuiltnowareya * howdidiforgetthat * Update code/game/machinery/sheetifier.dm Co-Authored-By: Rohesie Co-authored-by: Rohesie --- code/game/machinery/sheetifier.dm | 10 ++++++++++ .../items/circuitboards/machine_circuitboards.dm | 1 + 2 files changed, 11 insertions(+) diff --git a/code/game/machinery/sheetifier.dm b/code/game/machinery/sheetifier.dm index 9c728d89adf..4728050b6bb 100644 --- a/code/game/machinery/sheetifier.dm +++ b/code/game/machinery/sheetifier.dm @@ -42,3 +42,13 @@ update_icon() var/datum/component/material_container/materials = GetComponent(/datum/component/material_container) materials.retrieve_all() //Returns all as sheets + +/obj/machinery/sheetifier/attackby(obj/item/I, mob/user, params) + if(default_unfasten_wrench(user, I)) + return + if(default_deconstruction_screwdriver(user, I)) + update_icon() + return + if(default_deconstruction_crowbar(I)) + return + return ..() diff --git a/code/game/objects/items/circuitboards/machine_circuitboards.dm b/code/game/objects/items/circuitboards/machine_circuitboards.dm index 71d335f249b..c3fa0e523c2 100644 --- a/code/game/objects/items/circuitboards/machine_circuitboards.dm +++ b/code/game/objects/items/circuitboards/machine_circuitboards.dm @@ -1180,6 +1180,7 @@ req_components = list( /obj/item/stock_parts/manipulator = 2, /obj/item/stock_parts/matter_bin = 2) + needs_anchored = FALSE /obj/item/circuitboard/machine/abductor name = "alien board (Report This)"