]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix the round end trigger for xenoborgs (#41467)
authorSamuka <47865393+Samuka-C@users.noreply.github.com>
Wed, 19 Nov 2025 08:56:43 +0000 (05:56 -0300)
committerGitHub <noreply@github.com>
Wed, 19 Nov 2025 08:56:43 +0000 (08:56 +0000)
math

Content.Server/GameTicking/Rules/XenoborgsRuleSystem.cs

index 21b987eb0e2ff27b83d3bfe0f7d62bea9d9e5306..94b6315a6ba2709c7307a37431e008e4e06d4d97 100644 (file)
@@ -93,7 +93,7 @@ public sealed class XenoborgsRuleSystem : GameRuleSystem<XenoborgsRuleComponent>
         var numXenoborgs = GetNumberXenoborgs();
         var numHumans = _mindSystem.GetAliveHumans().Count;
 
-        if ((float)numXenoborgs / numHumans > xenoborgsRuleComponent.XenoborgShuttleCallPercentage)
+        if ((float)numXenoborgs / (numHumans + numXenoborgs) > xenoborgsRuleComponent.XenoborgShuttleCallPercentage)
         {
             foreach (var station in _station.GetStations())
             {