From 28755f5405cb4415da1256ac75e1d5496c497231 Mon Sep 17 00:00:00 2001 From: Kevin Zheng Date: Fri, 9 Feb 2024 17:21:48 -0800 Subject: [PATCH] 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 --- Content.Server/Botany/Systems/MutationSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Botany/Systems/MutationSystem.cs b/Content.Server/Botany/Systems/MutationSystem.cs index cfa944a221..c7ce5d47ef 100644 --- a/Content.Server/Botany/Systems/MutationSystem.cs +++ b/Content.Server/Botany/Systems/MutationSystem.cs @@ -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; } -- 2.52.0