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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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: