Fix the round end trigger for xenoborgs (#41467)

math
This commit is contained in:
Samuka 2025-11-19 05:56:43 -03:00 committed by BarryNorfolk
parent 53116a1f57
commit e426c4e523
1 changed files with 1 additions and 1 deletions

View 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())
{