Suffocation alerts for nitrogen breathers (#24373)

* Respiratorsystem namespace

* WIP gas alert update, does not work

* Finally
This commit is contained in:
Errant
2024-01-23 21:17:40 +01:00
committed by GitHub
parent 88deadead5
commit 2737c80169
12 changed files with 203 additions and 167 deletions

View File

@@ -1,5 +1,6 @@
using Content.Server.Atmos;
using Content.Server.Body.Systems;
using Content.Shared.Alert;
using Content.Shared.Atmos;
using Content.Shared.Chemistry.Components;
@@ -27,4 +28,10 @@ public sealed partial class LungComponent : Component
/// </summary>
[DataField]
public Entity<SolutionComponent>? Solution = null;
/// <summary>
/// The type of gas this lung needs. Used only for the breathing alerts, not actual metabolism.
/// </summary>
[DataField]
public AlertType Alert = AlertType.LowOxygen;
}