public override void Apply(Body Entity, WorldManager World) { var minions = Faction.FilterMinionsWithCapability(World.PlayerFaction.Minions, Task.TaskCategory.Chop); if (minions.Count > 0) { var task = ChopTool.ChopPlant(Entity, World.PlayerFaction); if (task != null) { var tasks = new List <Task>(); tasks.Add(task); World.Master.TaskManager.AddTasks(tasks); //TaskManager.AssignTasks(tasks, minions); } } }
public override void Apply(Body Entity, WorldManager World) { var minions = Faction.FilterMinionsWithCapability(World.PlayerFaction.Minions, GameMaster.ToolMode.Chop); if (minions.Count > 0) { var task = ChopTool.ChopTree(Entity, World.PlayerFaction); if (task != null) { var tasks = new List <Task>(); tasks.Add(task); TaskManager.AssignTasks(tasks, minions); } } }