From 94f504c5c82e815b19f7f706880d25e23d4423d4 Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Wed, 25 Dec 2024 09:26:35 +0000 Subject: [PATCH] adjust it to be less extreme --- .../StationEvents/Events/VentCrittersRule.cs | 4 ++-- .../Prototypes/DeltaV/GameRules/events.yml | 4 +++- Resources/Prototypes/GameRules/pests.yml | 20 +++++++++++-------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Content.Server/StationEvents/Events/VentCrittersRule.cs b/Content.Server/StationEvents/Events/VentCrittersRule.cs index 90c0cc262dc..8f508fdb749 100644 --- a/Content.Server/StationEvents/Events/VentCrittersRule.cs +++ b/Content.Server/StationEvents/Events/VentCrittersRule.cs @@ -61,8 +61,8 @@ protected override void Ended(EntityUid uid, VentCrittersRuleComponent comp, Gam return; var players = _antag.GetTotalPlayerCount(_player.Sessions); - var min = comp.Min * players / comp.PlayerRatio; - var max = comp.Max * players / comp.PlayerRatio; + var min = Math.Max(comp.Min, comp.Min * players / comp.PlayerRatio); + var max = Math.Max(comp.Max, comp.Max * players / comp.PlayerRatio); var count = Math.Max(RobustRandom.Next(min, max), 1); Log.Info($"Spawning {count} critters for {ToPrettyString(uid):rule}"); for (int i = 0; i < count; i++) diff --git a/Resources/Prototypes/DeltaV/GameRules/events.yml b/Resources/Prototypes/DeltaV/GameRules/events.yml index 02e5ae089ed..849360fc21a 100644 --- a/Resources/Prototypes/DeltaV/GameRules/events.yml +++ b/Resources/Prototypes/DeltaV/GameRules/events.yml @@ -80,7 +80,9 @@ - type: PrecognitionResult message: psionic-power-precognition-mothroach-spawn-result-message - type: VentCrittersRule - playerRatio: 15 # mothroaches aren't dangerous, but don't need as many as mice + min: 5 + max: 10 + playerRatio: 65 # mothroaches aren't dangerous, but don't need as many as mice table: id: MobMothroach diff --git a/Resources/Prototypes/GameRules/pests.yml b/Resources/Prototypes/GameRules/pests.yml index 829b6028d02..b7e0a5abab8 100644 --- a/Resources/Prototypes/GameRules/pests.yml +++ b/Resources/Prototypes/GameRules/pests.yml @@ -31,9 +31,9 @@ - type: PrecognitionResult # DeltaV - Precogniton message: psionic-power-precognition-mouse-migration-result-message - type: VentCrittersRule - min: 3 # DeltaV - max: 4 # DeltaV - playerRatio: 8 # DeltaV: Mice aren't dangerous + min: 10 # DeltaV + max: 15 # DeltaV + playerRatio: 55 # DeltaV: Higher base values, less player scaling table: !type:GroupSelector # DeltaV: EntityTable instead of spawn entries children: - id: MobMouse @@ -57,9 +57,9 @@ - type: PrecognitionResult # DeltaV - Precogniton message: psionic-power-precognition-king-rat-migration-result-message - type: VentCrittersRule - min: 3 # DeltaV - max: 4 # DeltaV - playerRatio: 8 # DeltaV: Mice aren't dangerous + min: 10 # DeltaV + max: 20 # DeltaV + playerRatio: 70 # DeltaV: Mostly ignore player scaling table: !type:GroupSelector # DeltaV: EntityTable instead of spawn entries children: - id: MobMouse @@ -83,7 +83,9 @@ - type: PrecognitionResult # DeltaV - Precogniton message: psionic-power-precognition-cockroach-migration-result-message - type: VentCrittersRule - playerRatio: 8 # DeltaV: Cockroaches aren't dangerous + min: 8 # DeltaV + max: 20 # DeltaV + playerRatio: 80 # DeltaV: Mostly ignore player scaling table: !type:GroupSelector # DeltaV: EntityTable instead of spawn entries children: - id: MobCockroach @@ -104,7 +106,9 @@ - type: PrecognitionResult # DeltaV - Precogniton message: psionic-power-precognition-snail-migration-result-message - type: VentCrittersRule - playerRatio: 20 # DeltaV: Snails aren't dangerous, but they should be more special + min: 4 # DeltaV + max: 8 # DeltaV + playerRatio: 60 # DeltaV: Somewhat ignore player scaling table: !type:GroupSelector # DeltaV: EntityTable instead of spawn entries children: - id: MobSnail