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

Gas Miner refactor #29657

Merged
merged 7 commits into from
Jul 2, 2024
Merged

Conversation

Mervill
Copy link
Contributor

@Mervill Mervill commented Jul 2, 2024

About the PR

Lightly refactors GasMinerSystem to prepare for a content PR making them examinable.

Why / Balance

  • To support making Gas Miners examinable.

Technical details

  • Separates the environment check from CapSpawnAmount into GetValidEnvironment to make the code a little cleaner, and also makes these two checks independent.
  • CapSpawnAmount and GetValidEnvironment now both have zero side-effects
  • Broken renamed Idle to reflect its use. Broken in my mind implies that there's some method for fixing.
  • Make enabled read-write though VV
  • Make Idle read-only though VV

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

GasMinerComponent.Broken renamed GasMinerComponent.Idle to reflect its use.

Changelog

@Mervill Mervill requested a review from Partmedia as a code owner July 2, 2024 00:35
@github-actions github-actions bot added the Status: Needs Review This PR requires new reviews before it can be merged. label Jul 2, 2024
@Mervill
Copy link
Contributor Author

Mervill commented Jul 2, 2024

Let me know if I should add the part about Broken being renamed to the breaking changes. Strictly speaking it is a breaking change but I'd bet money that downstreams aren't too concerned about it.

Comment on lines -69 to -70
placement:
mode: SnapgridCenter
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all unneeded because it's the default behavior for GasMinerBase

Copy link
Contributor

@Partmedia Partmedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for separating this into a separate PR. I've left a few review comments. I concur that Broken -> Idle is a breaking change, and ideally you would point that out in the breaking changes section. I plan to test locally tomorrow and merge so if you wouldn't mind addressing the nitpicks that would be great.

@Partmedia Partmedia added Atmos and removed Status: Needs Review This PR requires new reviews before it can be merged. labels Jul 2, 2024
Co-authored-by: Partmedia <[email protected]>
Copy link
Contributor

@Partmedia Partmedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Partmedia Partmedia merged commit 4ec15c8 into space-wizards:master Jul 2, 2024
11 checks passed
@Mervill Mervill deleted the gas-miners-refactor branch July 2, 2024 21:29
aspiringLich pushed a commit to aspiringLich/space-station-14 that referenced this pull request Jul 21, 2024
Separate the environment check from CapSpawnAmount into GetValidEnvironment to make the code a little cleaner, and also makes these two checks independent.

CapSpawnAmount and GetValidEnvironment now both have zero side-effects

Broken renamed Idle to reflect its use. Broken in my mind implies that there's some method for fixing.

---------

Co-authored-by: Partmedia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants