Air alarm fixes (again, oops) (#7715)
* fixes critical issue * alright, this might be the actual fix * removes useless null checks * couple more * removes default functions from unary device data
This commit is contained in:
@@ -11,10 +11,10 @@ namespace Content.Shared.Atmos.Piping.Unary.Components
|
||||
public bool Enabled { get; set; }
|
||||
public bool Dirty { get; set; }
|
||||
public bool IgnoreAlarms { get; set; } = false;
|
||||
public HashSet<Gas>? FilterGases { get; set; }
|
||||
public ScrubberPumpDirection? PumpDirection { get; set; }
|
||||
public float? VolumeRate { get; set; }
|
||||
public bool WideNet { get; set; }
|
||||
public HashSet<Gas> FilterGases { get; set; } = new(DefaultFilterGases);
|
||||
public ScrubberPumpDirection PumpDirection { get; set; } = ScrubberPumpDirection.Scrubbing;
|
||||
public float VolumeRate { get; set; } = 200f;
|
||||
public bool WideNet { get; set; } = false;
|
||||
|
||||
public static HashSet<Gas> DefaultFilterGases = new()
|
||||
{
|
||||
@@ -54,18 +54,6 @@ namespace Content.Shared.Atmos.Piping.Unary.Components
|
||||
VolumeRate = 200f,
|
||||
WideNet = false
|
||||
};
|
||||
|
||||
public static GasVentScrubberData Default()
|
||||
{
|
||||
return new GasVentScrubberData
|
||||
{
|
||||
Enabled = true,
|
||||
FilterGases = GasVentScrubberData.DefaultFilterGases,
|
||||
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
||||
VolumeRate = 200f,
|
||||
WideNet = false
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user