правки
This commit is contained in:
@@ -72,8 +72,16 @@ public sealed class ERTRecruitmentRule : StationEventSystem<ERTRecruitmentRuleCo
|
|||||||
{
|
{
|
||||||
base.Started(uid, component, gameRule, args);
|
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);
|
ForceEndSelf(uid, gameRule);
|
||||||
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Event disabled");
|
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Event disabled");
|
||||||
return;
|
return;
|
||||||
@@ -82,6 +90,7 @@ public sealed class ERTRecruitmentRule : StationEventSystem<ERTRecruitmentRuleCo
|
|||||||
if (_recruitment.GetEventSpawners(ERTRecruitmentRuleComponent.EventName).Count() < component.MinPlayers)
|
if (_recruitment.GetEventSpawners(ERTRecruitmentRuleComponent.EventName).Count() < component.MinPlayers)
|
||||||
{
|
{
|
||||||
DeclineERT(component.TargetStation.Value);
|
DeclineERT(component.TargetStation.Value);
|
||||||
|
ForceEndSelf(uid, gameRule);
|
||||||
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Not enough spawners");
|
_adminLogger.Add(LogType.EventStarted, LogImpact.High, $"ERT Declined - Not enough spawners");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user