using Content.Shared.Atmos;
using Content.Shared.Clothing.Components;
using Content.Shared.Inventory;
namespace Content.Shared.Clothing.EntitySystems;
///
/// Handles reducing fire damage when wearing clothing with .
///
public sealed class FireProtectionSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent>(OnGetProtection);
}
private void OnGetProtection(Entity ent, ref InventoryRelayedEvent args)
{
args.Args.Reduce(ent.Comp.Reduction);
}
}