]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Flash immunity examine visibility toggle (#40848)
authorB_Kirill <153602297+B-Kirill@users.noreply.github.com>
Sun, 12 Oct 2025 10:42:57 +0000 (20:42 +1000)
committerGitHub <noreply@github.com>
Sun, 12 Oct 2025 10:42:57 +0000 (10:42 +0000)
Content.Shared/Flash/Components/FlashImmunityComponent.cs
Content.Shared/Flash/SharedFlashSystem.cs
Resources/Prototypes/Entities/Mobs/Species/skeleton.yml

index 149c27c517a1179c716b786507a9940dcaa82ad1..8015f31e70745237dba6c5fef6d51423979da1db 100644 (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;
 }
index 02513aa91b9b6c0d9ec7bf3b97d78fe73b19db24..a762a94e58dbebaeb98099098705f5321fbc5cb9 100644 (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"));
     }
 }
index 5dc127878f87349c1e72c61d97f4faff65ff8c16..d2232938628a9c9e02990363c95765f7e6b23eb8 100644 (file)
   - type: FireVisuals
     alternateState: Standing
   - type: FlashImmunity
+    showInExamine: false
   - type: Inventory
     femaleDisplacements:
       jumpsuit: