From 15638ca18bf7fbdf48857b3a486fcd1a7f49c5f3 Mon Sep 17 00:00:00 2001 From: FeudeyTF <72273449+FeudeyTF@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:18:38 +0300 Subject: [PATCH] Fix "Getting an upgrade" achievement (#93612) ## About The Pull Request Closes https://github.com/tgstation/tgstation/issues/93609 ## Why It's Good For The Game It's fix ## Changelog :cl: FeudeyTF fix: Now you can get "Getting an upgrade" achievement. Craft your own unique item! /:cl: --- code/game/machinery/autolathe.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 2f5d5a49073..5fa595c1de1 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -302,6 +302,13 @@ target_location = get_turf(src) else target_location = get_turf(src) + + //give achievement for using unique material + if(design.materials[MAT_CATEGORY_ITEM_MATERIAL]) + for(var/datum/material/material in materials_needed) + if(!istype(material, /datum/material/glass) && !istype(material, /datum/material/iron)) + ui.user.client.give_award(/datum/award/achievement/misc/getting_an_upgrade, ui.user) + break addtimer(CALLBACK(src, PROC_REF(do_make_item), design, build_count, build_time_per_item, material_cost_coefficient, charge_per_item, materials_needed, target_location), build_time_per_item) return TRUE