ResetAll no longer clears the alarm state for an atmos monitor

This commit is contained in:
vulppine
2022-08-22 11:55:08 -07:00
parent 84027b4e67
commit d774741121

View File

@@ -99,10 +99,6 @@ namespace Content.Server.Atmos.Monitor.Systems
case AtmosDeviceNetworkSystem.RegisterDevice: case AtmosDeviceNetworkSystem.RegisterDevice:
component.RegisteredDevices.Add(args.SenderAddress); component.RegisteredDevices.Add(args.SenderAddress);
break; break;
case AtmosAlarmableSystem.ResetAll:
Reset(uid);
// Don't clear alarm states here.
break;
case AtmosMonitorSetThresholdCmd: case AtmosMonitorSetThresholdCmd:
if (args.Data.TryGetValue(AtmosMonitorThresholdData, out AtmosAlarmThreshold? thresholdData) if (args.Data.TryGetValue(AtmosMonitorThresholdData, out AtmosAlarmThreshold? thresholdData)
&& args.Data.TryGetValue(AtmosMonitorThresholdDataType, out AtmosMonitorThresholdType? thresholdType)) && args.Data.TryGetValue(AtmosMonitorThresholdDataType, out AtmosMonitorThresholdType? thresholdType))