ResetAll no longer clears the alarm state for an atmos monitor
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user