using Content.Shared.Botany.Events; using Content.Shared.Botany.Traits.Components; using Content.Shared.Popups; namespace Content.Shared.Botany.Traits.Systems; /// public sealed partial class PlantTraitSampledSystem : EntitySystem { [Dependency] private SharedPopupSystem _popup = default!; [SubscribeLocalEvent] private void OnPlantSampleAttempt(Entity ent, ref PlantSampleAttemptEvent args) { _popup.PopupCursor(Loc.GetString("plant-sample-component-already-sampled-popup"), args.User); args.Cancel(); } }