Skip to content

Commit

Permalink
Fix mutation system debug assert (space-wizards#32530)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarticodefast authored Sep 29, 2024
1 parent f6ceaa7 commit 1632500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Botany/Systems/MutationSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void CheckRandomMutations(EntityUid plantHolder, ref SeedData seed, float
{
foreach (var mutation in _randomMutations.mutations)
{
if (Random(mutation.BaseOdds * severity))
if (Random(Math.Min(mutation.BaseOdds * severity, 1.0f)))
{
if (mutation.AppliesToPlant)
{
Expand Down

0 comments on commit 1632500

Please sign in to comment.