-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to UnrevivableComponent instead of husked
- Move UnrevivableComponent to shared - add Analyzable and ReasonMessage to UnrevivableComponent to give granular control of the message and whether or not it shows up in the analyzer - remove the check for HuskedComponent in DefibrillatorSystem
- Loading branch information
Showing
5 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Content.Shared.Traits.Assorted; | ||
|
||
/// <summary> | ||
/// This is used for the unrevivable trait. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class UnrevivableComponent : Component | ||
{ | ||
/// <summary> | ||
/// A field to define if we should display the "Genetic incompatibility" warning on health analysers | ||
/// </summary> | ||
[DataField] | ||
public bool Analyzable { get; set; } = true; | ||
|
||
/// <summary> | ||
/// The loc string used to provide a reason for being unrevivable | ||
/// </summary> | ||
public string ReasonMessage = "changeling-defibrillator-failure"; | ||
} |