diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs index a84ad96deb..340d65a66f 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs @@ -1,9 +1,11 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using Content.Server.Cargo.Systems; +using Content.Server.GameTicking; using Content.Server.Power.EntitySystems; using Content.Server.Xenoarchaeology.Equipment.Components; using Content.Server.Xenoarchaeology.XenoArtifacts.Events; +using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; using JetBrains.Annotations; using Robust.Shared.Random; using Robust.Shared.Timing; @@ -24,6 +26,7 @@ public sealed partial class ArtifactSystem : EntitySystem SubscribeLocalEvent(OnInit); SubscribeLocalEvent(GetPrice); + SubscribeLocalEvent(OnRoundEnd); InitializeCommands(); } @@ -251,4 +254,17 @@ public sealed partial class ArtifactSystem : EntitySystem component.CurrentNode.NodeData[key] = value; } + + /// + /// Make shit go ape on round-end + /// + private void OnRoundEnd(RoundEndTextAppendEvent ev) + { + foreach (var artifactComp in EntityQuery()) + { + artifactComp.CooldownTime = TimeSpan.Zero; + var timerTrigger = EnsureComp(artifactComp.Owner); + timerTrigger.ActivationRate = TimeSpan.FromSeconds(0.5); //HAHAHAHAHAHAHAHAHAH -emo + } + } }