Revert "Gamerule Entities" (#15724)

This commit is contained in:
metalgearsloth
2023-04-24 16:21:05 +10:00
committed by GitHub
parent 39cc02b8f9
commit d3552dae00
124 changed files with 4328 additions and 3083 deletions

View File

@@ -13,9 +13,7 @@ namespace Content.Server.Objectives.Conditions
public IObjectiveCondition GetAssigned(Mind.Mind mind)
{
//todo shit of a fuck
var entityMgr = IoCManager.Resolve<IEntityManager>();
var traitors = entityMgr.EntitySysManager.GetEntitySystem<TraitorRuleSystem>().GetOtherTraitorsAliveAndConnected(mind).ToList();
List<Traitor.TraitorRole> removeList = new();
@@ -25,7 +23,7 @@ namespace Content.Server.Objectives.Conditions
{
foreach (var condition in objective.Conditions)
{
if (condition is RandomTraitorProgressCondition)
if (condition.GetType() == typeof(RandomTraitorProgressCondition))
{
removeList.Add(traitor);
}