From e17ae8d5be9174833b6ddb45e52757213a746d21 Mon Sep 17 00:00:00 2001 From: WilliamNelson37 Date: Mon, 19 Jun 2023 13:49:49 -0500 Subject: [PATCH] Deconstructive Analyzer Tweak - Allows the Deconstructive Analyzer to destroy items with no tech origin - Prevents ammo from being deconstructed - Modifies UI to clue in players that the Analyzer Recycles parts to the protolathe --- code/modules/research/destructive_analyzer.dm | 7 ++----- code/modules/research/rdconsole.dm | 20 ++++++++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 04bf0d9377..592b09082b 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -61,11 +61,8 @@ Note: Must be placed within 3 tiles of the R&D Console if(!loaded_item) if(isrobot(user)) //Don't put your module items in there! return - if(!O.origin_tech) - to_chat(user, "This doesn't seem to have a tech origin.") - return - if(O.origin_tech.len == 0) - to_chat(user, "You cannot deconstruct this item.") + if(istype(O,/obj/item/ammo_magazine/clip) || istype(O,/obj/item/ammo_magazine/s357) || istype(O,/obj/item/ammo_magazine/s38)) // Prevents ammo recycling exploit with speedloaders. + to_chat(user, "\The [O] is too hazardous to recycle with the autolathe!") return busy = 1 loaded_item = O diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index 09363d53ff..75744fdf89 100755 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -493,7 +493,10 @@ won't update every console in existence) but it's more of a hassle to do. Also, dat += "Updating Database..." if(0.1) - dat += "Processing and Updating Database..." + if(linked_lathe) + dat += "Processing; Updating Database and Recycling Materials to Protolathe..." + else + dat += "Processing; Updating Database..." if(0.2) dat += "SYSTEM LOCKED

" @@ -645,12 +648,15 @@ won't update every console in existence) but it's more of a hassle to do. Also, dat += "Name: [linked_destroy.loaded_item.name]
" dat += "Origin Tech:" dat += "" dat += "
Deconstruct Item || " dat += "Eject Item || "