Remove AlertType and AlertCategory (#27933)
This commit is contained in:
@@ -245,7 +245,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
_adminLogger.Add(LogType.Barotrauma, $"{ToPrettyString(uid):entity} started taking low pressure damage");
|
||||
}
|
||||
|
||||
_alertsSystem.ShowAlert(uid, AlertType.LowPressure, 2);
|
||||
_alertsSystem.ShowAlert(uid, barotrauma.LowPressureAlert, 2);
|
||||
}
|
||||
else if (pressure >= Atmospherics.HazardHighPressure)
|
||||
{
|
||||
@@ -260,7 +260,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
_adminLogger.Add(LogType.Barotrauma, $"{ToPrettyString(uid):entity} started taking high pressure damage");
|
||||
}
|
||||
|
||||
_alertsSystem.ShowAlert(uid, AlertType.HighPressure, 2);
|
||||
_alertsSystem.ShowAlert(uid, barotrauma.HighPressureAlert, 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -275,13 +275,13 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
switch (pressure)
|
||||
{
|
||||
case <= Atmospherics.WarningLowPressure:
|
||||
_alertsSystem.ShowAlert(uid, AlertType.LowPressure, 1);
|
||||
_alertsSystem.ShowAlert(uid, barotrauma.LowPressureAlert, 1);
|
||||
break;
|
||||
case >= Atmospherics.WarningHighPressure:
|
||||
_alertsSystem.ShowAlert(uid, AlertType.HighPressure, 1);
|
||||
_alertsSystem.ShowAlert(uid, barotrauma.HighPressureAlert, 1);
|
||||
break;
|
||||
default:
|
||||
_alertsSystem.ClearAlertCategory(uid, AlertCategory.Pressure);
|
||||
_alertsSystem.ClearAlertCategory(uid, barotrauma.PressureAlertCategory);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user