ПТ | фикс распределения слотов ролей при присоединении (#3649)

This commit is contained in:
KAVALDi 2026-01-07 18:41:30 +07:00 committed by GitHub
parent 8dbad24dbf
commit e850f8afa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,6 +116,10 @@ public sealed class RelativeJobsCountSystem : EntitySystem
return;
}
// Если TotalMaxCount равен -1 (без ограничений), не вычитаем из него
if (station.Comp.TotalMaxCount[settings.TargetJob] == -1)
return;
station.Comp.TotalMaxCount[settings.TargetJob] -= value;
}