правки

This commit is contained in:
BIGZi0348
2025-01-09 23:50:59 +03:00
parent df84f7b2e5
commit 2ee8747bb0

View File

@@ -72,8 +72,16 @@ public sealed class ERTRecruitmentRule : StationEventSystem<ERTRecruitmentRuleCo
{
base.Started(uid, component, gameRule, args);
if (component.TargetStation == null || component.IsBlocked || IsDisabled)
if (component.TargetStation == null)
{
ForceEndSelf(uid, gameRule);
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Target Station is missing");
return;
}
if (component.IsBlocked || IsDisabled)
{
DeclineERT(component.TargetStation.Value);
ForceEndSelf(uid, gameRule);
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Event disabled");
return;
@@ -82,6 +90,7 @@ public sealed class ERTRecruitmentRule : StationEventSystem<ERTRecruitmentRuleCo
if (_recruitment.GetEventSpawners(ERTRecruitmentRuleComponent.EventName).Count() < component.MinPlayers)
{
DeclineERT(component.TargetStation.Value);
ForceEndSelf(uid, gameRule);
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Not enough spawners");
return;
}