From 5740a88208707510009d7d976394069d2a593d3e Mon Sep 17 00:00:00 2001 From: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> Date: Wed, 11 Sep 2024 13:24:24 +0200 Subject: [PATCH] Fix Station AI being affected by Bureaucratic Event (#32021) * init commit * I forgot components exist * delta told me to make it a list --- .../Components/BureaucraticErrorRuleComponent.cs | 10 ++++++++-- .../StationEvents/Events/BureaucraticErrorRule.cs | 5 ++++- Resources/Prototypes/GameRules/events.yml | 2 ++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs b/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs index 6dfbd9083e..346e75e2ee 100644 --- a/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs +++ b/Content.Server/StationEvents/Components/BureaucraticErrorRuleComponent.cs @@ -1,9 +1,15 @@ -using Content.Server.StationEvents.Events; +using Content.Server.StationEvents.Events; +using Content.Shared.Roles; +using Robust.Shared.Prototypes; namespace Content.Server.StationEvents.Components; [RegisterComponent, Access(typeof(BureaucraticErrorRule))] public sealed partial class BureaucraticErrorRuleComponent : Component { - + /// + /// The jobs that are ignored by this rule and won't have their slots changed. + /// + [DataField] + public List> IgnoredJobs = new(); } diff --git a/Content.Server/StationEvents/Events/BureaucraticErrorRule.cs b/Content.Server/StationEvents/Events/BureaucraticErrorRule.cs index b49049a10d..2ddc7245cf 100644 --- a/Content.Server/StationEvents/Events/BureaucraticErrorRule.cs +++ b/Content.Server/StationEvents/Events/BureaucraticErrorRule.cs @@ -1,9 +1,9 @@ using System.Linq; -using Content.Server.GameTicking.Rules.Components; using Content.Server.Station.Components; using Content.Server.Station.Systems; using Content.Server.StationEvents.Components; using Content.Shared.GameTicking.Components; +using Content.Shared.Roles; using JetBrains.Annotations; using Robust.Shared.Random; @@ -23,6 +23,9 @@ public sealed class BureaucraticErrorRule : StationEventSystem