Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Makes lathes ten times faster at printing items #2153

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/modules/research/machinery/_production.dm
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@
charge_per_item += design.materials[material]
charge_per_item = ROUND_UP((charge_per_item / (MAX_STACK_SIZE * SHEET_MATERIAL_AMOUNT)) * coefficient * 0.05 * active_power_usage)
var/build_time_per_item = (design.construction_time * design.lathe_time_factor) ** 0.8
// NOVA EDIT ADDITION START - Faster lathes
if(!speedup_disabled)
build_time_per_item *= 0.1
// NOVA EDIT ADDITION END

//start production
busy = TRUE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/obj/machinery/rnd/production
/// Will this machine be able to print items 10 times faster?
/// Useful for certain machines where we don't want that to be the case. Set TRUE to disable the speed boost.
var/speedup_disabled
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
light_color = LIGHT_COLOR_BRIGHT_YELLOW
light_power = 5
allowed_buildtypes = COLONY_FABRICATOR
speedup_disabled = TRUE
/// The item we turn into when repacked
var/repacked_type = /obj/item/flatpacked_machine
/// The sound loop played while the fabricator is making something
Expand Down
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6550,6 +6550,7 @@
#include "modular_nova\master_files\code\modules\research\designs\medical_designs.dm"
#include "modular_nova\master_files\code\modules\research\designs\misc_designs.dm"
#include "modular_nova\master_files\code\modules\research\designs\tool_designs.dm"
#include "modular_nova\master_files\code\modules\research\machinery\_production.dm"
#include "modular_nova\master_files\code\modules\research\techweb\all_nodes.dm"
#include "modular_nova\master_files\code\modules\shuttle\shuttle.dm"
#include "modular_nova\master_files\code\modules\shuttle\shuttle_events\meteors.dm"
Expand Down
Loading