From: B_Kirill <153602297+B-Kirill@users.noreply.github.com>
Date: Sun, 12 Oct 2025 10:42:57 +0000 (+1000)
Subject: Flash immunity examine visibility toggle (#40848)
X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=beb3db14f0dbad99e806bf2bc47632f4d02c8817;p=space-station-14.git
Flash immunity examine visibility toggle (#40848)
---
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: