Skip to content

Commit

Permalink
whatever
Browse files Browse the repository at this point in the history
  • Loading branch information
thgvr committed Nov 15, 2023
1 parent 8a23a8b commit b94bcfb
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions code/game/machinery/autolathe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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, "<span class=\"alert\">The autolathe is busy. Please wait for completion of previous operation.</span>")
return TRUE

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b94bcfb

Please sign in to comment.