Gamerule Entities (#15513)

This commit is contained in:
Nemanja
2023-04-24 01:20:51 -04:00
committed by GitHub
parent 8943c2a10e
commit 39cc02b8f9
124 changed files with 3097 additions and 4342 deletions

View File

@@ -13,7 +13,9 @@ 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();
@@ -23,7 +25,7 @@ namespace Content.Server.Objectives.Conditions
{
foreach (var condition in objective.Conditions)
{
if (condition.GetType() == typeof(RandomTraitorProgressCondition))
if (condition is RandomTraitorProgressCondition)
{
removeList.Add(traitor);
}