Skip to content

Commit

Permalink
Makes lathes ten times faster at printing items (#1116)
Browse files Browse the repository at this point in the history
* Makes lathes ten times faster at printing items

* Makes the faster printing depend on a variable, for more control

* sped_up -> speed_up_disabled

Co-authored-by: Bloop <[email protected]>

* Update _production.dm

---------

Co-authored-by: Bloop <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Feb 26, 2024
1 parent 747f07b commit b3a0ded
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
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

0 comments on commit b3a0ded

Please sign in to comment.