Skip to content

Commit

Permalink
Fix hybridization seedless probability (space-wizards#25084)
Browse files Browse the repository at this point in the history
Fix comparison

Hybrids (different plants being crossed) are supposed to have a high
chance of becoming seedless to balance overpowered plants.

However, a logic error in the comparison gave seedless to plants when
they were from the same seed (not hybrids) rather than the other way
around.

Reported by:    @genderGeometries
  • Loading branch information
Partmedia authored and joshepvodka committed Feb 18, 2024
1 parent 954ad28 commit 457c3a5
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 @@ -131,7 +131,7 @@ public SeedData Cross(SeedData a, SeedData b)

// Hybrids have a high chance of being seedless. Balances very
// effective hybrid crossings.
if (a.Name == result.Name && Random(0.7f))
if (a.Name != result.Name && Random(0.7f))
{
result.Seedless = true;
}
Expand Down

0 comments on commit 457c3a5

Please sign in to comment.