Delta-v/Content.Server/_DV/Projectiles/PressureProjectileSystem.cs

15 lines
410 B
C#

using Content.Server.Atmos.EntitySystems;
using Content.Shared._DV.Projectiles;
namespace Content.Server._DV.Projectiles;
public sealed class PressureProjectileSystem : SharedPressureProjectileSystem
{
[Dependency] private readonly AtmosphereSystem _atmos = default!;
protected override float GetPressure(EntityUid uid)
{
return _atmos.GetContainingMixture(uid)?.Pressure ?? 0f;
}
}