]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make unknown shuttle events trigger an announcement (#33450)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Fri, 6 Dec 2024 21:39:35 +0000 (00:39 +0300)
committerGitHub <noreply@github.com>
Fri, 6 Dec 2024 21:39:35 +0000 (22:39 +0100)
* Make unknown shuttle events trigger an announcement

* Call base at the end

---------

Co-authored-by: Winkarst <74284083+Winkarst-cpu@users.noreply.github.co>
Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs

index d2686ecdcdd40d374dc00175b005603b2191fb55..f18115d3cf6b3e42d88ac46e7259b9da81e255d3 100644 (file)
@@ -1,14 +1,14 @@
 using Content.Server.GameTicking.Rules.Components;
 using Content.Server.GridPreloader;
+using Content.Server.StationEvents.Events;
 using Content.Shared.GameTicking.Components;
 using Robust.Server.GameObjects;
 using Robust.Server.Maps;
-using Robust.Shared.Map;
 using Robust.Shared.Prototypes;
 
 namespace Content.Server.GameTicking.Rules;
 
-public sealed class LoadMapRuleSystem : GameRuleSystem<LoadMapRuleComponent>
+public sealed class LoadMapRuleSystem : StationEventSystem<LoadMapRuleComponent>
 {
     [Dependency] private readonly IPrototypeManager _prototypeManager = default!;
     [Dependency] private readonly MapSystem _map = default!;
@@ -75,5 +75,7 @@ public sealed class LoadMapRuleSystem : GameRuleSystem<LoadMapRuleComponent>
 
         var ev = new RuleLoadedGridsEvent(mapId, grids);
         RaiseLocalEvent(uid, ref ev);
+
+        base.Added(uid, comp, rule, args);
     }
 }