Revert "epic Respiration Rework" (#6524)

This commit is contained in:
Leon Friedrich
2022-02-07 20:13:14 +13:00
committed by GitHub
parent 35eb6f8576
commit 6e8c92d13e
32 changed files with 585 additions and 595 deletions

View File

@@ -1,25 +0,0 @@
using Content.Server.Atmos.Components;
using Content.Server.Body.Components;
using Content.Shared.Atmos;
using Robust.Shared.GameObjects;
namespace Content.Server.Body.Systems;
public class InternalsSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<InternalsComponent, InhaleLocationEvent>(OnInhaleLocation);
}
private void OnInhaleLocation(EntityUid uid, InternalsComponent component, InhaleLocationEvent args)
{
if (component.AreInternalsWorking())
{
var gasTank = Comp<GasTankComponent>(component.GasTankEntity!.Value);
args.Gas = gasTank.RemoveAirVolume(Atmospherics.BreathVolume);
}
}
}