using Content.Server.Damage.Components; using Content.Shared.Damage; using Content.Shared.Throwing; namespace Content.Server.Damage.Systems { /// /// Damages the thrown item when it lands. /// public sealed class DamageOnLandSystem : EntitySystem { [Dependency] private readonly Shared.Damage.Systems.DamageableSystem _damageableSystem = default!; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(DamageOnLand); } private void DamageOnLand(EntityUid uid, DamageOnLandComponent component, ref LandEvent args) { _damageableSystem.TryChangeDamage(uid, component.Damage, component.IgnoreResistances); } } }