diff --git a/Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs b/Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs new file mode 100644 index 00000000000..2ea88340962 --- /dev/null +++ b/Content.Server/ADT/EvilTwin/StationEvents /EvilTwinRule.cs @@ -0,0 +1,19 @@ +using Content.Server.GameTicking.Rules.Components; +using Content.Server.StationEvents.Events; +using Robust.Shared.Random; + +namespace Content.Server.Backmen.EvilTwin.StationEvents; +public sealed partial class EvilTwinRule : StationEventSystem +{ + protected override void Started(EntityUid uid, EvilTwinRuleComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args) + { + base.Started(uid, component, gameRule, args); + + if(!_evilTwinSystem.MakeTwin(out _)) + { + Sawmill.Warning("Map not have latejoin spawnpoints for creating evil twin spawner"); + } + } + + [Dependency] private readonly EvilTwinSystem _evilTwinSystem = default!; +}