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:
corentt
2022-09-06 02:54:26 +02:00
committed by GitHub
parent eaa5df4ad3
commit 6301ac5147
6 changed files with 24 additions and 14 deletions

View File

@@ -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);