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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user