[MIRROR] Plumbing machinery power & processing tweaks #2985
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mirrored on Nova: NovaSector/NovaSector#2089
Original PR: tgstation/tgstation#82702
About The Pull Request
Plumbing machinery begins processing only when wrenched & ends processing when unwrenched. The machines plumbing component
/datum/component/plumbing/process()
already does this but the underlying machines processing proc for e.g./obj/machinery/plumbing/synthesizer/process()
is always processing regardless of its wrenched state or not. We can optimize this & save power when unwrenchedFixes #82621. This adds plumbing machines
idle_power_usage
on top of itsactive_power_usage
ensuring it only uses power when actively doing work, So if your factory is say full of reagents & cannot do any more work it will use less energy i.e almost enter an stand by mode, efficiencyPlumbing grinder chemical will grinds & juice stuff correctly i.e. prefer grinding over juicing most of the time
Changelog
🆑 SyncIt21
fix: plumbing machinery begins processing only when wrenched & ends when unwrenched
fix: plumbing machinery uses energy only when wrenched & doing work, will stop/use less energy when idle
fix: plumbing grinder chemical will grinds & juice stuff correctly i.e. prefer grinding over juicing for most stuff
/:cl: