Using wirecutters on an autolathe will now have appropriate behavior

This commit is contained in:
Cognition
2022-07-22 18:26:03 -06:00
parent 1b199dadbd
commit e8cdf35d57

View File

@@ -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)