using Content.Shared.Botany.Events;
using Content.Shared.Botany.Traits.Components;
using Robust.Shared.Audio.Systems;
namespace Content.Shared.Botany.Traits.Systems;
///
public sealed partial class PlantTraitScreamSystem : EntitySystem
{
[Dependency] private SharedAudioSystem _audio = default!;
[SubscribeLocalEvent]
private void OnPlantHarvested(Entity ent, ref PlantHarvestedEvent args)
{
_audio.PlayPredicted(ent.Comp.ScreamSound, ent, args.User);
}
}