From 6d6d1f17f14dc4123f11df6f64aaba1294f82341 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Sun, 1 Jan 2023 01:16:09 -0500 Subject: [PATCH] artifact griefing on round-end (#13205) --- .../XenoArtifacts/ArtifactSystem.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 + } + } }