From 7d7ffb8d32fa70972fc8b1d1ced5495a2270242a Mon Sep 17 00:00:00 2001 From: Henri215 <77684085+Henri215@users.noreply.github.com> Date: Tue, 4 Oct 2022 23:39:11 -0300 Subject: [PATCH] Status/AI display now can be deconstructed with a wrench (#19197) * status and ai display * adjustments --- code/game/machinery/ai_display.dm | 10 ++++++++++ code/game/machinery/status_display.dm | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/code/game/machinery/ai_display.dm b/code/game/machinery/ai_display.dm index 599c171e960..56b79e0907a 100644 --- a/code/game/machinery/ai_display.dm +++ b/code/game/machinery/ai_display.dm @@ -110,3 +110,13 @@ GLOBAL_LIST_EMPTY(ai_displays) . += new_display underlays += emissive_appearance(icon, "lightmask") + +/obj/machinery/ai_status_display/wrench_act(mob/living/user, obj/item/I) + . = TRUE + if(!I.use_tool(src, user, 0)) + return + TOOL_ATTEMPT_DISMANTLE_MESSAGE + if(I.use_tool(src, user, 20, volume = I.tool_volume)) + TOOL_DISMANTLE_SUCCESS_MESSAGE + new /obj/item/stack/sheet/metal(drop_location(), 1) + deconstruct() diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index 1f70e9f6fab..c19c50c8e99 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -214,3 +214,13 @@ GLOBAL_LIST_EMPTY(status_displays) SD.set_picture(data1) SD.update() + +/obj/machinery/status_display/wrench_act(mob/living/user, obj/item/I) + . = TRUE + if(!I.use_tool(src, user, 0)) + return + TOOL_ATTEMPT_DISMANTLE_MESSAGE + if(I.use_tool(src, user, 20, volume = I.tool_volume)) + TOOL_DISMANTLE_SUCCESS_MESSAGE + new /obj/item/stack/sheet/metal(drop_location(), 1) + deconstruct()