From beb3db14f0dbad99e806bf2bc47632f4d02c8817 Mon Sep 17 00:00:00 2001 From: B_Kirill <153602297+B-Kirill@users.noreply.github.com> Date: Sun, 12 Oct 2025 20:42:57 +1000 Subject: [PATCH] Flash immunity examine visibility toggle (#40848) --- Content.Shared/Flash/Components/FlashImmunityComponent.cs | 6 ++++++ Content.Shared/Flash/SharedFlashSystem.cs | 3 ++- Resources/Prototypes/Entities/Mobs/Species/skeleton.yml | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Flash/Components/FlashImmunityComponent.cs b/Content.Shared/Flash/Components/FlashImmunityComponent.cs index 149c27c517..8015f31e70 100644 --- a/Content.Shared/Flash/Components/FlashImmunityComponent.cs +++ b/Content.Shared/Flash/Components/FlashImmunityComponent.cs @@ -15,4 +15,10 @@ public sealed partial class FlashImmunityComponent : Component /// [DataField, AutoNetworkedField] public bool Enabled = true; + + /// + /// Should the flash protection be shown when examining the entity? + /// + [DataField, AutoNetworkedField] + public bool ShowInExamine = true; } diff --git a/Content.Shared/Flash/SharedFlashSystem.cs b/Content.Shared/Flash/SharedFlashSystem.cs index 02513aa91b..a762a94e58 100644 --- a/Content.Shared/Flash/SharedFlashSystem.cs +++ b/Content.Shared/Flash/SharedFlashSystem.cs @@ -268,6 +268,7 @@ public abstract class SharedFlashSystem : EntitySystem private void OnExamine(Entity ent, ref ExaminedEvent args) { - args.PushMarkup(Loc.GetString("flash-protection")); + if (ent.Comp.ShowInExamine) + args.PushMarkup(Loc.GetString("flash-protection")); } } diff --git a/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml b/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml index 5dc127878f..d223293862 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml @@ -102,6 +102,7 @@ - type: FireVisuals alternateState: Standing - type: FlashImmunity + showInExamine: false - type: Inventory femaleDisplacements: jumpsuit: -- 2.51.2