Skip to content

Commit

Permalink
autolathes printing times are now significantly faster (#5735)
Browse files Browse the repository at this point in the history
# About the pull request
autolathes printing speed is now based on the item's w_class.
minimum printing time of 2 seconds and max of 5 seconds.

# Explain why it's good for the game
its QOL. printing a ton of small items and they all taking 5 seconds to
print is a huge pain.

# Testing Photographs and Procedure
it works, couldn't find any issues. 
the sounds are fine too, no overlaping.

# Changelog

:cl:
qol: Autolathes are now significantly faster.
/:cl:
  • Loading branch information
iloveloopers authored Feb 21, 2024
1 parent f19daa0 commit e99b22a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/game/machinery/autolathe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,16 @@
)
SStgui.update_uis(src)

//Print speed based on w_class.
var/obj/item/item = making.path
var/size = initial(item.w_class)
var/print_speed = clamp(size, 2, 5) SECONDS

//Fancy autolathe animation.
icon_state = "[base_state]_n"

playsound(src, 'sound/machines/print.ogg', 25)
sleep(5 SECONDS)
sleep(print_speed)
playsound(src, 'sound/machines/print_off.ogg', 25)
icon_state = "[base_state]"

Expand Down

0 comments on commit e99b22a

Please sign in to comment.