diff --git a/Content.Server/_White/ERTRecruitment/ERTRecruitmentRule.cs b/Content.Server/_White/ERTRecruitment/ERTRecruitmentRule.cs index 03fa050b42..83ab47e691 100644 --- a/Content.Server/_White/ERTRecruitment/ERTRecruitmentRule.cs +++ b/Content.Server/_White/ERTRecruitment/ERTRecruitmentRule.cs @@ -137,7 +137,7 @@ public sealed class ERTRecruitmentRule : StationEventSystem /// name of recruitment. + /// Minimal playtime to be eligible for recruitment. /// is success? - public bool EndRecruitment(string recruitmentName) + public bool EndRecruitment(string recruitmentName, TimeSpan? overallPlaytime) { var spawners = GetEventSpawners(recruitmentName).ToList(); @@ -88,6 +89,9 @@ public sealed class GhostRecruitmentSystem : EntitySystem if (!TryComp(uid, out var actorComponent)) continue; + if (overallPlaytime != null && _playTimeTracking.GetOverallPlaytime(actorComponent.PlayerSession) < overallPlaytime) + continue; + // if there are too many recruited, then just skip if (count >= spawners.Count || count >= maxCount) continue;