Status/AI display now can be deconstructed with a wrench (#19197)

* status and ai display

* adjustments
This commit is contained in:
Henri215
2022-10-04 21:39:11 -05:00
committed by GitHub
parent b16f763261
commit 7d7ffb8d32
2 changed files with 20 additions and 0 deletions
+10
View File
@@ -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()
+10
View File
@@ -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()