using Content.Shared.Chat.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Mobs;
///
/// Mobs with this component will emote a deathgasp when they die.
///
///
[RegisterComponent]
public sealed partial class DeathgaspComponent : Component
{
///
/// The emote prototype to use.
///
[DataField(customTypeSerializer:typeof(PrototypeIdSerializer))]
public string Prototype = "DefaultDeathgasp";
///
/// Makes sure that the deathgasp is only displayed if the entity went critical before dying
///
[DataField]
public bool NeedsCritical = true;
}