AirAlarms fixes (#11062)
* modify airalarm thresholds * display percentage, not ratio * reopen doors on normal/warning state * panic mode on danger state
This commit is contained in:
@@ -298,9 +298,9 @@ public sealed class AirAlarmSystem : EntitySystem
|
||||
|
||||
if (args.AlarmType == AtmosAlarmType.Danger)
|
||||
{
|
||||
SetMode(uid, addr, AirAlarmMode.None, true, false);
|
||||
SetMode(uid, addr, AirAlarmMode.Panic, true, false);
|
||||
}
|
||||
else if (args.AlarmType == AtmosAlarmType.Normal)
|
||||
else if (args.AlarmType == AtmosAlarmType.Normal || args.AlarmType == AtmosAlarmType.Warning)
|
||||
{
|
||||
SetMode(uid, addr, AirAlarmMode.Filtering, true, false);
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace Content.Server.Doors.Systems
|
||||
{
|
||||
if (!TryComp<DoorComponent>(uid, out var doorComponent)) return;
|
||||
|
||||
if (args.AlarmType == AtmosAlarmType.Normal)
|
||||
if (args.AlarmType == AtmosAlarmType.Normal || args.AlarmType == AtmosAlarmType.Warning)
|
||||
{
|
||||
if (doorComponent.State == DoorState.Closed)
|
||||
_doorSystem.TryOpen(uid);
|
||||
|
||||
Reference in New Issue
Block a user