From 8abde233c293a4cfbbe5dbc938cda79bdb910d0b Mon Sep 17 00:00:00 2001 From: nicetoolbox <41554512+nicetoolbox@users.noreply.github.com> Date: Sun, 11 Oct 2020 11:57:47 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> --- code/modules/research/circuitprinter.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/research/circuitprinter.dm b/code/modules/research/circuitprinter.dm index 6e8ec2c2f35..d919aee97ca 100644 --- a/code/modules/research/circuitprinter.dm +++ b/code/modules/research/circuitprinter.dm @@ -60,7 +60,7 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis). var/T = 0 for(var/obj/item/stock_parts/manipulator/M in component_parts) T += M.rating - T = min(4, max(1, T)) + T = clamp(T, 1, 4) efficiency_coeff = 1 / (2 ** (T - 1)) /obj/machinery/r_n_d/circuit_imprinter/check_mat(datum/design/being_built, var/M)