Files
tbd-station-14/Content.Shared/Traits/Assorted/UnrevivableComponent.cs
slarticodefast ceff2bea00 Cloning Refactor and bugfixes (#35555)
* cloning refactor

* cleanup and fixes

* don't pick from 0

* give dwarves the correct species

* fix dna and bloodstream reagent data cloning

* don't copy helmets

* be less redundant
2025-03-02 16:50:12 +01:00

29 lines
905 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Traits.Assorted;
/// <summary>
/// This is used for the unrevivable trait as well as generally preventing revival.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class UnrevivableComponent : Component
{
/// <summary>
/// A field to define if we should display the "Genetic incompatibility" warning on health analysers
/// </summary>
[DataField, AutoNetworkedField]
public bool Analyzable = true;
/// <summary>
/// Can this player be cloned using a cloning pod?
/// </summary>
[DataField, AutoNetworkedField]
public bool Cloneable = false;
/// <summary>
/// The loc string used to provide a reason for being unrevivable
/// </summary>
[DataField, AutoNetworkedField]
public LocId ReasonMessage = "defibrillator-unrevivable";
}