mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
traits need to be updated with new "params" @RedFoxIV (cherry picked from commit d62392b2fe2c3e651ad1f8492bbceef6dad5138e)
25 lines
776 B
C#
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;
|
|
}
|