From 30b19abee7c618fbfb6849d0226121058dd0b17b Mon Sep 17 00:00:00 2001 From: Hatterhat Date: Tue, 8 Jun 2021 13:28:54 -0500 Subject: [PATCH 1/2] i haven't slept --- code/modules/research/destructive_analyzer.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 005c0f07d1f..9578f5e2903 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -25,7 +25,8 @@ Note: Must be placed within 3 tiles of the R&D Console var/T = 0 for(var/obj/item/weapon/stock_parts/S in component_parts) T += S.rating - decon_mod = T * 0.1 + T *= 0.1 + clamp(T, 0, 1) /obj/machinery/r_n_d/destructive_analyzer/update_icon() if(panel_open) From 9c3dde9570d354ad73471baaf9f87c852a147e8b Mon Sep 17 00:00:00 2001 From: Hatterhat Date: Tue, 8 Jun 2021 13:33:50 -0500 Subject: [PATCH 2/2] this is why we don't code without sleep, kids --- code/modules/research/destructive_analyzer.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 9578f5e2903..a69a57015e1 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -26,7 +26,7 @@ Note: Must be placed within 3 tiles of the R&D Console for(var/obj/item/weapon/stock_parts/S in component_parts) T += S.rating T *= 0.1 - clamp(T, 0, 1) + decon_mod = clamp(T, 0, 1) /obj/machinery/r_n_d/destructive_analyzer/update_icon() if(panel_open)