Fix hybridization seedless probability (#25084)

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
This commit is contained in:
Kevin Zheng
2024-02-09 17:21:48 -08:00
committed by GitHub
parent de0d5e4af6
commit 28755f5405

View File

@@ -131,7 +131,7 @@ public sealed class MutationSystem : EntitySystem
// 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;
}