renames AtmosMonitorAlarmEvent to AtmosAlarmEvent

This commit is contained in:
vulppine
2022-08-23 10:42:03 -07:00
parent 0e43f73ba1
commit df25715ed3
7 changed files with 28 additions and 30 deletions

View File

@@ -26,7 +26,7 @@ namespace Content.Server.Doors.Systems
SubscribeLocalEvent<FirelockComponent, DoorStateChangedEvent>(OnUpdateState);
SubscribeLocalEvent<FirelockComponent, BeforeDoorAutoCloseEvent>(OnBeforeDoorAutoclose);
SubscribeLocalEvent<FirelockComponent, AtmosMonitorAlarmEvent>(OnAtmosAlarm);
SubscribeLocalEvent<FirelockComponent, AtmosAlarmEvent>(OnAtmosAlarm);
}
private void OnBeforeDoorOpened(EntityUid uid, FirelockComponent component, BeforeDoorOpenedEvent args)
@@ -87,16 +87,16 @@ namespace Content.Server.Doors.Systems
args.Cancel();
}
private void OnAtmosAlarm(EntityUid uid, FirelockComponent component, AtmosMonitorAlarmEvent args)
private void OnAtmosAlarm(EntityUid uid, FirelockComponent component, AtmosAlarmEvent args)
{
if (!TryComp<DoorComponent>(uid, out var doorComponent)) return;
if (args.HighestNetworkType == AtmosMonitorAlarmType.Normal)
if (args.AlarmType == AtmosMonitorAlarmType.Normal)
{
if (doorComponent.State == DoorState.Closed)
_doorSystem.TryOpen(uid);
}
else if (args.HighestNetworkType == AtmosMonitorAlarmType.Danger)
else if (args.AlarmType == AtmosMonitorAlarmType.Danger)
{
component.EmergencyPressureStop();
}