Add under-pressure lockout to air vents (#9824)

* Add under-pressure lockout to vent pumps

* Add examine text showing UPLO
This commit is contained in:
Kevin Zheng
2022-07-19 21:23:23 -07:00
committed by GitHub
parent e3dafa509b
commit 546d708c40
3 changed files with 34 additions and 0 deletions

View File

@@ -33,6 +33,17 @@ namespace Content.Server.Atmos.Piping.Unary.Components
[DataField("pressureChecks")]
public VentPressureBound PressureChecks { get; set; } = VentPressureBound.ExternalBound;
[ViewVariables(VVAccess.ReadOnly)]
[DataField("underPressureLockout")]
public bool UnderPressureLockout { get; set; } = false;
/// <summary>
/// In releasing mode, do not pump when environment pressure is below this limit.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("underPressureLockoutThreshold")]
public float UnderPressureLockoutThreshold = 1;
[ViewVariables(VVAccess.ReadWrite)]
[DataField("externalPressureBound")]
public float ExternalPressureBound