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

Only auto-enable internals when necessary #28248

Merged
merged 4 commits into from
May 31, 2024

Conversation

ElectroJr
Copy link
Member

This PR changes the internals StartingGearEquippedEvent logic so that it only enables internals when required, and only if the linked tank actually allows the entity to survive. Should hopefully stop the random test failures.

The most dubious code is in RespiratorSystem.GetSaturation(), as that bodges some of the reagent effect condition checks, which generally require a full ReagentEffectArgs struct.

@github-actions github-actions bot added the S: Needs Review Status: Requires additional reviews before being fully accepted label May 24, 2024
@Flareguy
Copy link
Contributor

Does this account for toxic gasses in the air? I haven't read the code but I could imagine this causing issues if, say, a Vox spawned but didn't turn on internals due to the fact that there's Nitrogen in the airmix, ignoring the oxygen.

@ElectroJr
Copy link
Member Author

Does this account for toxic gasses in the air?

Not yet, but I can add that

@ElectroJr
Copy link
Member Author

Should now check for toxic gasses as well, though GetSaturation is still pretty janky

Copy link
Member

@EmoGarbage404 EmoGarbage404 left a comment

Choose a reason for hiding this comment

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

merge at will lgtm

Content.Server/Body/Systems/RespiratorSystem.cs Outdated Show resolved Hide resolved
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the S: Merge Conflict Status: Needs to resolve merge conflicts before it can be accepted label May 29, 2024
@ElectroJr ElectroJr requested a review from DrSmugleaf as a code owner May 31, 2024 02:16
@github-actions github-actions bot removed the S: Merge Conflict Status: Needs to resolve merge conflicts before it can be accepted label May 31, 2024
@ElectroJr ElectroJr merged commit 5433791 into space-wizards:master May 31, 2024
12 checks passed
@ElectroJr ElectroJr mentioned this pull request Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Needs Review Status: Requires additional reviews before being fully accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants