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] Plumbing machinery power & processing tweaks #2985

Merged
merged 2 commits into from
Apr 20, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

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 unwrenched

  • Fixes #82621. This adds plumbing machines idle_power_usage on top of its active_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, efficiency

  • Plumbing 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:

Plumbing machinery power & processing tweaks

Co-authored-by: SyncIt21 <[email protected]>
Co-authored-by: Bloop <[email protected]>
@Steals-The-PRs Steals-The-PRs added Mirroring conflict git cherry-pick во что-то уткнулся. Не ставить вручную, только для бота TG Mirror labels Apr 20, 2024
@Iajret Iajret merged commit 6908f5b into master Apr 20, 2024
25 checks passed
AnywayFarus added a commit that referenced this pull request Apr 20, 2024
@Iajret Iajret deleted the upstream-mirror-2089 branch April 22, 2024 10:45
Iajret pushed a commit that referenced this pull request Jun 12, 2024
…anup better [MDB IGNORE] (#2985)

* Warns for genturf failures more clearly, makes planetary cleanup better (#83809)

## About The Pull Request

Ok so like, we recently had an issue where a genturf was not being
replaced, which fucked ALL of icemoon's atmosphere.

The fix was to not use a genturf with a conditionally generating area,
but that aside. (why is it CONDITIONAL TIME GREEEEEN)

Planetary turfs should act like immutable ones when roundstart
equalizing.

In addition, we should test to ensure none leaves genturfs floating
around post roundstart to avoid this sorta issue.

---------

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

* Warns for genturf failures more clearly, makes planetary cleanup better

---------

Co-authored-by: LemonInTheDark <[email protected]>
Co-authored-by: Afevis <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mirroring conflict git cherry-pick во что-то уткнулся. Не ставить вручную, только для бота TG Mirror
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants