From dbda861cade19c83f64be5ef405efb03d93934b4 Mon Sep 17 00:00:00 2001 From: ahandleman Date: Tue, 23 Dec 2025 16:15:51 -0600 Subject: [PATCH] Change Botany Minimum Quantity For Random Chems (#41955) * Initial change to fix minimums * Switch to clamp for setting min --- .../Effects/Botany/PlantMutateChemicalsEntityEffectSystem.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/EntityEffects/Effects/Botany/PlantMutateChemicalsEntityEffectSystem.cs b/Content.Server/EntityEffects/Effects/Botany/PlantMutateChemicalsEntityEffectSystem.cs index d5589966b1..1f8f3fc946 100644 --- a/Content.Server/EntityEffects/Effects/Botany/PlantMutateChemicalsEntityEffectSystem.cs +++ b/Content.Server/EntityEffects/Effects/Botany/PlantMutateChemicalsEntityEffectSystem.cs @@ -33,8 +33,9 @@ public sealed partial class PlantMutateChemicalsEntityEffectSystem : EntityEffec } else { - seedChemQuantity.Min = FixedPoint2.Epsilon; - seedChemQuantity.Max = FixedPoint2.Zero + amount; + //Set the minimum to a fifth of the quantity to give some level of bad luck protection + seedChemQuantity.Min = FixedPoint2.Clamp(pick.Quantity / 5f, FixedPoint2.Epsilon, 1f); + seedChemQuantity.Max = seedChemQuantity.Min + amount; seedChemQuantity.Inherent = false; } var potencyDivisor = 100f / seedChemQuantity.Max; -- 2.52.0