From: Kevin Zheng Date: Sat, 10 Feb 2024 01:21:48 +0000 (-0800) Subject: Fix hybridization seedless probability (#25084) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=28755f5405cb4415da1256ac75e1d5496c497231;p=space-station-14.git 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 --- 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; }