Gas tank internals alerts (#9567)
This commit is contained in:
@@ -5,7 +5,9 @@ using Content.Shared.Inventory.Events;
|
||||
using Content.Shared.Item;
|
||||
using Content.Server.Actions;
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Atmos.EntitySystems;
|
||||
using Content.Server.Body.Components;
|
||||
using Content.Server.Body.Systems;
|
||||
using Content.Server.Clothing.Components;
|
||||
using Content.Server.Disease.Components;
|
||||
using Content.Server.IdentityManagement;
|
||||
@@ -18,9 +20,11 @@ namespace Content.Server.Clothing
|
||||
{
|
||||
public sealed class MaskSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly InventorySystem _inventorySystem = default!;
|
||||
[Dependency] private readonly ActionsSystem _actionSystem = default!;
|
||||
[Dependency] private readonly AtmosphereSystem _atmos = default!;
|
||||
[Dependency] private readonly InternalsSystem _internals = default!;
|
||||
[Dependency] private readonly InventorySystem _inventorySystem = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly IdentitySystem _identity = default!;
|
||||
|
||||
public override void Initialize()
|
||||
@@ -100,7 +104,7 @@ namespace Content.Server.Clothing
|
||||
|
||||
if (mask.IsToggled)
|
||||
{
|
||||
breathTool.DisconnectInternals();
|
||||
_atmos.DisconnectInternals(breathTool);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -109,7 +113,7 @@ namespace Content.Server.Clothing
|
||||
if (TryComp(wearer, out InternalsComponent? internals))
|
||||
{
|
||||
breathTool.ConnectedInternalsEntity = wearer;
|
||||
internals.ConnectBreathTool(uid);
|
||||
_internals.ConnectBreathTool(internals, uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user