diff --git a/Content.Server/Silicons/StationAi/StationAiSystem.cs b/Content.Server/Silicons/StationAi/StationAiSystem.cs index 9c15112b30..054712059e 100644 --- a/Content.Server/Silicons/StationAi/StationAiSystem.cs +++ b/Content.Server/Silicons/StationAi/StationAiSystem.cs @@ -43,10 +43,10 @@ public sealed class StationAiSystem : SharedStationAiSystem var stationAiCore = new Entity(ent, entStationAiCore); if (!TryGetInsertedAI(stationAiCore, out var insertedAi) || !TryComp(insertedAi, out ActorComponent? actor)) - return; + continue; if (stationAiCore.Comp.RemoteEntity == null || stationAiCore.Comp.Remote) - return; + continue; var xform = Transform(stationAiCore.Comp.RemoteEntity.Value); diff --git a/Resources/Prototypes/Atmospherics/thresholds.yml b/Resources/Prototypes/Atmospherics/thresholds.yml index 260fadbe71..29904e6f24 100644 --- a/Resources/Prototypes/Atmospherics/thresholds.yml +++ b/Resources/Prototypes/Atmospherics/thresholds.yml @@ -33,6 +33,17 @@ # For gas concentrations, threshold=0.1 means 10% - type: alarmThreshold id: stationOxygen + lowerBound: !type:AlarmThresholdSetting + threshold: 0.10 + upperBound: !type:AlarmThresholdSetting + threshold: 0.3 + lowerWarnAround: !type:AlarmThresholdSetting + threshold: 1.5 + upperWarnAround: !type:AlarmThresholdSetting + threshold: 0.8 + +- type: alarmThreshold + id: stationNitrogen lowerBound: !type:AlarmThresholdSetting threshold: 0.10 lowerWarnAround: !type:AlarmThresholdSetting diff --git a/Resources/Prototypes/Entities/Structures/Specific/Atmospherics/sensor.yml b/Resources/Prototypes/Entities/Structures/Specific/Atmospherics/sensor.yml index b118b85c4d..57ba3432ba 100644 --- a/Resources/Prototypes/Entities/Structures/Specific/Atmospherics/sensor.yml +++ b/Resources/Prototypes/Entities/Structures/Specific/Atmospherics/sensor.yml @@ -17,7 +17,7 @@ pressureThresholdId: stationPressure gasThresholdPrototypes: Oxygen: stationOxygen - Nitrogen: ignore + Nitrogen: stationNitrogen CarbonDioxide: stationCO2 Plasma: stationPlasma Tritium: stationTritium