From: ahandleman Date: Tue, 23 Dec 2025 22:15:51 +0000 (-0600) Subject: Change Botany Minimum Quantity For Random Chems (#41955) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=dbda861cade19c83f64be5ef405efb03d93934b4;p=space-station-14.git Change Botany Minimum Quantity For Random Chems (#41955) * Initial change to fix minimums * Switch to clamp for setting min --- 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;