From e8cdf35d5764379c614c8bcb962f74d3f4f39a76 Mon Sep 17 00:00:00 2001 From: Cognition Date: Fri, 22 Jul 2022 18:26:03 -0600 Subject: [PATCH] Using wirecutters on an autolathe will now have appropriate behavior --- code/game/machinery/autolathe.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 35f45818b6..6511e2723d 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -298,6 +298,16 @@ wires.interact(user) return STOP_ATTACK_PROC_CHAIN +/obj/machinery/autolathe/wirecutter_act(mob/living/user, obj/item/I) + . = ..() + if(busy) + balloon_alert(user, "it's busy!") + return STOP_ATTACK_PROC_CHAIN + + if(panel_open) + wires.interact(user) + return STOP_ATTACK_PROC_CHAIN + /obj/machinery/autolathe/proc/AfterMaterialInsert(obj/item/item_inserted, id_inserted, amount_inserted) if(istype(item_inserted, /obj/item/stack/ore/bluespace_crystal)) use_power(MINERAL_MATERIAL_AMOUNT / 10)