Flash immunity examine visibility toggle (#40848)

This commit is contained in:
B_Kirill
2025-10-12 20:42:57 +10:00
committed by GitHub
parent 20175bffb2
commit beb3db14f0
3 changed files with 9 additions and 1 deletions

View File

@@ -15,4 +15,10 @@ public sealed partial class FlashImmunityComponent : Component
/// </summary>
[DataField, AutoNetworkedField]
public bool Enabled = true;
/// <summary>
/// Should the flash protection be shown when examining the entity?
/// </summary>
[DataField, AutoNetworkedField]
public bool ShowInExamine = true;
}

View File

@@ -268,6 +268,7 @@ public abstract class SharedFlashSystem : EntitySystem
private void OnExamine(Entity<FlashImmunityComponent> ent, ref ExaminedEvent args)
{
args.PushMarkup(Loc.GetString("flash-protection"));
if (ent.Comp.ShowInExamine)
args.PushMarkup(Loc.GetString("flash-protection"));
}
}

View File

@@ -102,6 +102,7 @@
- type: FireVisuals
alternateState: Standing
- type: FlashImmunity
showInExamine: false
- type: Inventory
femaleDisplacements:
jumpsuit: