Revert "Gamerule Entities" (#15724)
This commit is contained in:
@@ -14,10 +14,9 @@ namespace Content.Server.Objectives.Conditions
|
||||
public IObjectiveCondition GetAssigned(Mind.Mind mind)
|
||||
{
|
||||
var entityMgr = IoCManager.Resolve<IEntityManager>();
|
||||
|
||||
var traitors = entityMgr.EntitySysManager.GetEntitySystem<TraitorRuleSystem>().GetOtherTraitorsAliveAndConnected(mind).ToList();
|
||||
if (traitors.Count == 0)
|
||||
return new EscapeShuttleCondition(); //You were made a traitor by admins, and are the first/only.
|
||||
|
||||
if (traitors.Count == 0) return new EscapeShuttleCondition{}; //You were made a traitor by admins, and are the first/only.
|
||||
return new RandomTraitorAliveCondition { _target = IoCManager.Resolve<IRobustRandom>().Pick(traitors).Mind };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user