Files
tbd-station-14/Content.Shared/Traits/Assorted/UnrevivableComponent.cs
Zachary Higgs 6cb30b3092 Make UnrevivableComponent shared, give the component reason messages and if it shows up on the analyzer (#35013)
* Make UnrevivableComponent shared

- Move UnrevivableComponent to shared

- add reason messages and if the status shows up in a health analyzer

* Update Content.Shared/Traits/Assorted/UnrevivableComponent.cs

Co-authored-by: Tayrtahn <tayrtahn@gmail.com>

* Make UnrevivableComponent networked

* Update Content.Shared/Traits/Assorted/UnrevivableComponent.cs

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>

---------

Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-02-10 00:16:21 +01:00

23 lines
741 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>
/// The loc string used to provide a reason for being unrevivable
/// </summary>
[DataField, AutoNetworkedField]
public LocId ReasonMessage = "defibrillator-unrevivable";
}