using Content.Server.Chat.Systems;
using Content.Shared.EntityEffects;
using Content.Shared.EntityEffects.Effects;
namespace Content.Server.EntityEffects.Effects;
///
/// Makes this entity emote.
///
///
public sealed partial class EmoteEntityEffectSystem : EntityEffectSystem
{
[Dependency] private readonly ChatSystem _chat = default!;
protected override void Effect(Entity entity, ref EntityEffectEvent args)
{
if (args.Effect.ShowInChat)
_chat.TryEmoteWithChat(entity, args.Effect.EmoteId, ChatTransmitRange.GhostRangeLimit, forceEmote: args.Effect.Force);
else
_chat.TryEmoteWithoutChat(entity, args.Effect.EmoteId);
}
}