mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
15 lines
550 B
C#
15 lines
550 B
C#
using Content.Shared.EntityEffects;
|
|
using Content.Shared.Trigger.Components.Effects;
|
|
|
|
namespace Content.Shared.Trigger.Systems;
|
|
|
|
public sealed partial class EntityEffectOnTriggerSystem : XOnTriggerSystem<EntityEffectOnTriggerComponent>
|
|
{
|
|
[Dependency] private SharedEntityEffectsSystem _effects = default!;
|
|
|
|
protected override void OnTrigger(Entity<EntityEffectOnTriggerComponent> ent, EntityUid target, ref TriggerEvent args)
|
|
{
|
|
_effects.ApplyEffects(target, ent.Comp.Effects, ent.Comp.Scale);
|
|
args.Handled = true;
|
|
}
|
|
}
|