]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Players can no longer see that emagged cyborgs' internals have been tampered with...
authorJajsha <101492056+Zap527@users.noreply.github.com>
Fri, 10 May 2024 02:57:34 +0000 (22:57 -0400)
committerGitHub <noreply@github.com>
Fri, 10 May 2024 02:57:34 +0000 (19:57 -0700)
* Add emag-detection funtionality to diag huds

* Add component to the omniHUD

* Fix namespace

* Adress discord review, just axe the message.

Content.Server/Silicons/Laws/SiliconLawSystem.cs
Resources/Locale/en-US/station-laws/laws.ftl

index cc1532899dc3d488219313f41e00d3a900f5b8dd..bc7a7b35c27cd8dc14da38f764b54460d9503fba 100644 (file)
@@ -55,7 +55,6 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem
         SubscribeLocalEvent<SiliconLawProviderComponent, GotEmaggedEvent>(OnEmagLawsAdded);
         SubscribeLocalEvent<EmagSiliconLawComponent, MindAddedMessage>(OnEmagMindAdded);
         SubscribeLocalEvent<EmagSiliconLawComponent, MindRemovedMessage>(OnEmagMindRemoved);
-        SubscribeLocalEvent<EmagSiliconLawComponent, ExaminedEvent>(OnExamined);
     }
 
     private void OnComponentShutdown(EntityUid uid, SiliconLawBoundComponent component, ComponentShutdown args)
@@ -155,17 +154,6 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem
         });
     }
 
-    private void OnExamined(EntityUid uid, EmagSiliconLawComponent component, ExaminedEvent args)
-    {
-        if (!args.IsInDetailsRange || !HasComp<EmaggedComponent>(uid))
-            return;
-
-        if (component.RequireOpenPanel && TryComp<WiresPanelComponent>(uid, out var panel) && !panel.Open)
-            return;
-
-        args.PushMarkup(Loc.GetString("laws-compromised-examine"));
-    }
-
     protected override void OnGotEmagged(EntityUid uid, EmagSiliconLawComponent component, ref GotEmaggedEvent args)
     {
         if (component.RequireOpenPanel && TryComp<WiresPanelComponent>(uid, out var panel) && !panel.Open)
index f73755a359c42149a0ad0a2c88c75b818f2e34b2..6b5ca5787285ae253cf4b26675b6cb059ff6aa07 100644 (file)
@@ -42,5 +42,3 @@ laws-ui-state-law = State law:
 
 laws-notify = You are bound to silicon laws, which you can view via the sidebar action. You are required to always follow your laws.
 laws-update-notify = Your laws have been updated. You can view the changes via the sidebar action.
-
-laws-compromised-examine = The [color=red]law-governing[/color] internals seem damaged...