From 7e9f26d9346c2ee2ee68e8e75e2a0c9ff831ebe1 Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Thu, 27 Jun 2024 14:14:29 +0200
Subject: [PATCH] [MIRROR] Protolathe printing speed is affected by parts again
(#28411)
* Protolathe printing speed is affected by parts again
* Update _production.dm
---------
Co-authored-by: GPeckman <21979502+GPeckman@users.noreply.github.com>
Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
---
code/modules/research/machinery/_production.dm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/code/modules/research/machinery/_production.dm b/code/modules/research/machinery/_production.dm
index 44af814ec20..a9a949c821a 100644
--- a/code/modules/research/machinery/_production.dm
+++ b/code/modules/research/machinery/_production.dm
@@ -74,6 +74,7 @@
return
. += span_notice("Material usage cost at [efficiency_coeff * 100]%")
+ . += span_notice("Build time at [efficiency_coeff * 100]%")
if(drop_direction)
. += span_notice("Currently configured to drop printed objects [dir2text(drop_direction)].")
. += span_notice("[EXAMINE_HINT("Alt-click")] to reset.")
@@ -341,7 +342,7 @@
for(var/material in design.materials)
charge_per_item += design.materials[material]
charge_per_item = ROUND_UP((charge_per_item / (MAX_STACK_SIZE * SHEET_MATERIAL_AMOUNT)) * coefficient * active_power_usage)
- var/build_time_per_item = (design.construction_time * design.lathe_time_factor) ** 0.8
+ var/build_time_per_item = (design.construction_time * design.lathe_time_factor * efficiency_coeff) ** 0.8
// SKYRAT EDIT - Faster lathes
if(!speedup_disabled)
build_time_per_item *= 0.1