Change Botany Minimum Quantity For Random Chems (#41955)
* Initial change to fix minimums * Switch to clamp for setting min
This commit is contained in:
parent
163b104b61
commit
29c3e03bfc
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue