Skip to content

Add Pressure valves - #10433

Merged
Bod9001 merged 2 commits into
unitystation:developfrom
AutumnNova:pressurevalves
Jul 10, 2024
Merged

Add Pressure valves#10433
Bod9001 merged 2 commits into
unitystation:developfrom
AutumnNova:pressurevalves

Conversation

@AutumnNova

Copy link
Copy Markdown
Contributor

Adds pressure valves, which are essentially just valves that only pass gas if the input pipenet is above the set pressure (default of 101.325kpa, can be changed to whatever using the nettab), also requires a pressure difference between the input and output of 10kpa
Also fixes the volume pump overclock sprites, the manual valve sprites and speeds up the overclock animation a little bit
And also fixes an issue with the air injector fittings sprite being rotated incorrectly occasionally

Changelog:

CL: [New] Adds pressure valves.

Comment thread UnityProject/Assets/Scripts/Objects/Pipes/Devices/PressureValve.cs Outdated

Vector2 pressureDensity = pipeData.mixAndVolume.Density();

if (inputDensity.x - pressureDensity.x > ThresholdPressure || inputDensity.y - pressureDensity.y > ThresholdPressure)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

technically the pressure between reagent and gas is different, in terms of common values, it's fine for now , we probably need to think of what is a better way of displaying the pressure for reagents

@Bod9001
Bod9001 merged commit e58b4e4 into unitystation:develop Jul 10, 2024
@AutumnNova
AutumnNova deleted the pressurevalves branch July 15, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants