From b94bcfb8f3b50aa3c3a40792225da324154dd4b4 Mon Sep 17 00:00:00 2001 From: thgvr Date: Wed, 15 Nov 2023 12:17:50 -0800 Subject: [PATCH] whatever --- code/game/machinery/autolathe.dm | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 9574b704b1ab..5f8412ff25a3 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -48,21 +48,8 @@ "Dinnerware" ) -/obj/machinery/autolathe/Initialize( - AddComponent( - /datum/component/material_container, - list( - /datum/material/iron, /datum/material/glass, - /datum/material/plastic, /datum/material/silver, - /datum/material/gold, /datum/material/plasma, - /datum/material/uranium, /datum/material/titanium - ), - 0, - TRUE, - null, - null, - CALLBACK(src, PROC_REF(AfterMaterialInsert)) - )) +/obj/machinery/autolathe/Initialize() + AddComponent(/datum/component/material_container,list(/datum/material/iron, /datum/material/glass, /datum/material/plastic, /datum/material/silver, /datum/material/gold, /datum/material/plasma, /datum/material/uranium, /datum/material/titanium), 0, TRUE, null, null, CALLBACK(src, PROC_REF(AfterMaterialInsert))) . = ..() wires = new /datum/wires/autolathe(src) @@ -279,7 +266,7 @@ materials.retrieve_all() /obj/machinery/autolathe/attackby(obj/item/O, mob/living/user, params) - if(busy) + if (busy) to_chat(user, "The autolathe is busy. Please wait for completion of previous operation.") return TRUE @@ -329,6 +316,7 @@ eject(user) return + /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)