Clean up Harvester and FindResources unblocking

This commit is contained in:
reaperrr
2016-01-29 02:26:45 +01:00
parent 7b315aa9cc
commit 75736cb127
2 changed files with 4 additions and 22 deletions

View File

@@ -215,17 +215,6 @@ namespace OpenRA.Mods.Common.Traits
var moveTo = mobile.NearestMoveableCell(unblockCell, 1, 5);
self.QueueActivity(mobile.MoveTo(moveTo, 1));
self.SetTargetLine(Target.FromCell(self.World, moveTo), Color.Gray, false);
var territory = self.World.WorldActor.TraitOrDefault<ResourceClaimLayer>();
if (territory != null)
territory.ClaimResource(self, moveTo);
var notify = self.TraitsImplementing<INotifyHarvesterAction>();
var next = new FindResources(self);
foreach (var n in notify)
n.MovingToResources(self, moveTo, next);
self.QueueActivity(next);
}
}
}