Skip to content

Commit

Permalink
Biomass Analyzer is faster (#8156)
Browse files Browse the repository at this point in the history
# About the pull request
Reduces the time taken to process an acidic heart from 3 seconds to 2
Reduces the time taken to print an item from 3 seconds to 1

<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game

printing QoL... Spamming the print button for 30 seconds to print 10
ceramic plates isn't very fun, at least this cuts it down to 10 seconds.
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
qol: Biomass printer is now significantly quicker at processing acidic
hearts and printing items.
/:cl:
  • Loading branch information
private-tristan authored Jan 23, 2025
1 parent 8380282 commit b6ead20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
if("process_organ")
if(!busy)
busy = TRUE
addtimer(CALLBACK(src, PROC_REF(process_organ), organ.research_value), 3 SECONDS)
addtimer(CALLBACK(src, PROC_REF(process_organ), organ.research_value), 2 SECONDS)
flick("xeno_analyzer_on_moving", src)
playsound(loc, 'sound/machines/blender.ogg', 25, TRUE)
QDEL_NULL(organ)
Expand Down Expand Up @@ -173,7 +173,7 @@
busy = TRUE
biomass_points -= clamp(upgrade.value_upgrade + upgrade.change_purchase * technology_purchased[datum_upgrades], upgrade.minimum_price, upgrade.maximum_price)
technology_purchased[datum_upgrades] += 1
addtimer(CALLBACK(src, PROC_REF(print_upgrade), produce_path), 3 SECONDS)
addtimer(CALLBACK(src, PROC_REF(print_upgrade), produce_path), 1 SECONDS)

/obj/structure/machinery/xenoanalyzer/proc/print_upgrade(produce_path)
busy = FALSE
Expand Down

0 comments on commit b6ead20

Please sign in to comment.