From 104ffcb0e3a57b441399052d41796d249e9c1df3 Mon Sep 17 00:00:00 2001 From: ThereDrD0 <88589686+ThereDrD0@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:55:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B=20=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=B5=D0=BE=D1=80=D0=BE=D0=B2=20(#410)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Missing meteor presets (#29044) * add meteors into missing game presets * changes for real * implement code * this too * Revert "Missing meteor presets (#29044)" This reverts commit d6554159b30d395b2ab0a1e47b67efcf895be903. * add: more meteors * add: less meteors --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> --- .../StationEvents/Components/MeteorSwarmComponent.cs | 4 ++-- Content.Shared/CCVar/CCVars.cs | 4 ++-- Resources/Prototypes/game_presets.yml | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Content.Server/StationEvents/Components/MeteorSwarmComponent.cs b/Content.Server/StationEvents/Components/MeteorSwarmComponent.cs index cca4465154..088bd03d43 100644 --- a/Content.Server/StationEvents/Components/MeteorSwarmComponent.cs +++ b/Content.Server/StationEvents/Components/MeteorSwarmComponent.cs @@ -48,11 +48,11 @@ public sealed partial class MeteorSwarmComponent : Component public Dictionary Meteors = new(); [DataField] - public MinMax Waves = new(3, 3); + public MinMax Waves = new(2, 4); [DataField] public MinMax MeteorsPerWave = new(3, 4); [DataField] - public MinMax WaveCooldown = new (10, 60); + public MinMax WaveCooldown = new (30, 60); } diff --git a/Content.Shared/CCVar/CCVars.cs b/Content.Shared/CCVar/CCVars.cs index c8660fa445..974b35dfd3 100644 --- a/Content.Shared/CCVar/CCVars.cs +++ b/Content.Shared/CCVar/CCVars.cs @@ -125,13 +125,13 @@ namespace Content.Shared.CCVar /// Minimum time between meteor swarms in minutes. /// public static readonly CVarDef - MeteorSwarmMinTime = CVarDef.Create("events.meteor_swarm_min_time", 12.5f, CVar.ARCHIVE | CVar.SERVERONLY); + MeteorSwarmMinTime = CVarDef.Create("events.meteor_swarm_min_time", 20f, CVar.ARCHIVE | CVar.SERVERONLY); /// /// Maximum time between meteor swarms in minutes. /// public static readonly CVarDef - MeteorSwarmMaxTime = CVarDef.Create("events.meteor_swarm_max_time", 17.5f, CVar.ARCHIVE | CVar.SERVERONLY); + MeteorSwarmMaxTime = CVarDef.Create("events.meteor_swarm_max_time", 30f, CVar.ARCHIVE | CVar.SERVERONLY); /* * Game diff --git a/Resources/Prototypes/game_presets.yml b/Resources/Prototypes/game_presets.yml index 3a41de0e53..0a48d7faae 100644 --- a/Resources/Prototypes/game_presets.yml +++ b/Resources/Prototypes/game_presets.yml @@ -8,6 +8,7 @@ rules: - RampingStationEventScheduler - BasicRoundstartVariation + - GameRuleMeteorScheduler - type: gamePreset id: AllAtOnce @@ -24,6 +25,7 @@ - Cult - Wizard - BasicRoundstartVariation + - GameRuleMeteorScheduler - type: gamePreset id: Extended @@ -175,6 +177,7 @@ - Pirates - BasicStationEventScheduler - BasicRoundstartVariation + - GameRuleMeteorScheduler #WD EDIT START - type: gamePreset @@ -190,6 +193,7 @@ - SubGamemodesRule - BasicStationEventScheduler - BasicRoundstartVariation + - GameRuleMeteorScheduler - type: gamePreset id: Changeling @@ -204,6 +208,7 @@ - SubGamemodesRule - BasicStationEventScheduler - BasicRoundstartVariation + - GameRuleMeteorScheduler - type: gamePreset id: Wizard @@ -219,4 +224,5 @@ - SubGamemodesRule - BasicStationEventScheduler - BasicRoundstartVariation + - GameRuleMeteorScheduler #WD EDIT END