]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[HOTFIX] Borg emag notification and sound fix (#35394)
authorScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Sun, 23 Feb 2025 00:49:58 +0000 (01:49 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Feb 2025 00:49:58 +0000 (01:49 +0100)
epic stuff

Content.Server/Silicons/Laws/SiliconLawSystem.cs
Content.Shared/Silicons/Laws/SharedSiliconLawSystem.cs

index f5ead80bddbf72b0afd69088bdb1c320b905da38..33eef8bc56dff856505657418596b3f8fc96cd1d 100644 (file)
@@ -172,14 +172,18 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem
         });
     }
 
-    private void EnsureSubvertedSiliconRole(EntityUid mindId)
+    protected override void EnsureSubvertedSiliconRole(EntityUid mindId)
     {
+        base.EnsureSubvertedSiliconRole(mindId);
+
         if (!_roles.MindHasRole<SubvertedSiliconRoleComponent>(mindId))
             _roles.MindAddRole(mindId, "MindRoleSubvertedSilicon", silent: true);
     }
 
-    private void RemoveSubvertedSiliconRole(EntityUid mindId)
+    protected override void RemoveSubvertedSiliconRole(EntityUid mindId)
     {
+        base.RemoveSubvertedSiliconRole(mindId);
+
         if (_roles.MindHasRole<SubvertedSiliconRoleComponent>(mindId))
             _roles.MindTryRemoveRole<SubvertedSiliconRoleComponent>(mindId);
     }
@@ -239,8 +243,10 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem
         return ev.Laws;
     }
 
-    public void NotifyLawsChanged(EntityUid uid, SoundSpecifier? cue = null)
+    public override void NotifyLawsChanged(EntityUid uid, SoundSpecifier? cue = null)
     {
+        base.NotifyLawsChanged(uid, cue);
+
         if (!TryComp<ActorComponent>(uid, out var actor))
             return;
 
index c3a8c228084a8d1f61946a4dd2f850bf1a9a10bb..e7433de60417a39d83aa5fbcfa22f07359063361 100644 (file)
@@ -62,7 +62,7 @@ public abstract partial class SharedSiliconLawSystem : EntitySystem
         args.Handled = true;
     }
 
-    protected virtual void NotifyLawsChanged(EntityUid uid, SoundSpecifier? cue = null)
+    public virtual void NotifyLawsChanged(EntityUid uid, SoundSpecifier? cue = null)
     {
 
     }
@@ -71,6 +71,11 @@ public abstract partial class SharedSiliconLawSystem : EntitySystem
     {
 
     }
+
+    protected virtual void RemoveSubvertedSiliconRole(EntityUid mindId)
+    {
+
+    }
 }
 
 [ByRefEvent]