Files
wwdpublic/Content.Server/Mobs/DeathgaspComponent.cs
sleepyyapril 3330acd9f2 Revert ""Proper" "Softcrit" "Support" (#1545)" (#1741)
traits need to be updated with new "params"

@RedFoxIV

(cherry picked from commit d62392b2fe2c3e651ad1f8492bbceef6dad5138e)
2025-02-15 00:15:22 +03:00

25 lines
776 B
C#

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