Merge remote-tracking branch 'space-station-14/master' into ed-25-05-2024-upstream
# Conflicts: # Content.Server/Atmos/Components/FlammableComponent.cs # Content.Shared/Lock/LockSystem.cs # Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Content.Shared.Alert;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Atmos.Components
|
||||
{
|
||||
@@ -46,5 +48,13 @@ namespace Content.Server.Atmos.Components
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool HasImmunity = false;
|
||||
|
||||
[DataField]
|
||||
public ProtoId<AlertPrototype> HighPressureAlert = "HighPressure";
|
||||
|
||||
[DataField]
|
||||
public ProtoId<AlertPrototype> LowPressureAlert = "LowPressure";
|
||||
|
||||
[DataField]
|
||||
public ProtoId<AlertCategoryPrototype> PressureAlertCategory = "Pressure";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using Content.Shared.Alert;
|
||||
using Content.Shared.Damage;
|
||||
using Robust.Shared.Physics.Collision.Shapes;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Server.Atmos.Components
|
||||
{
|
||||
@@ -78,6 +80,9 @@ namespace Content.Server.Atmos.Components
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public float FirestackFade = -0.1f;
|
||||
|
||||
[DataField]
|
||||
public ProtoId<AlertPrototype> FireAlert = "Fire";
|
||||
|
||||
/// <summary>
|
||||
/// CrystallPunk fireplace fuel
|
||||
/// </summary>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -427,11 +427,11 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
if (!flammable.OnFire)
|
||||
{
|
||||
_alertsSystem.ClearAlert(uid, AlertType.Fire);
|
||||
_alertsSystem.ClearAlert(uid, flammable.FireAlert);
|
||||
continue;
|
||||
}
|
||||
|
||||
_alertsSystem.ShowAlert(uid, AlertType.Fire);
|
||||
_alertsSystem.ShowAlert(uid, flammable.FireAlert);
|
||||
|
||||
if (flammable.FireStacks > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user