Split Harvest activity into saner chunks; fix pathfinding.

This commit is contained in:
Paul Chote
2011-04-18 10:47:10 +12:00
parent eff37461d8
commit 24908b7269
3 changed files with 45 additions and 34 deletions

View File

@@ -65,7 +65,7 @@ namespace OpenRA.Mods.RA
self.QueueActivity( mobile.MoveTo(LastHarvestedCell.Value, 5) );
self.SetTargetLine(Target.FromCell(LastHarvestedCell.Value), Color.Red, false);
}
self.QueueActivity( new Harvest() );
self.QueueActivity( new FindResources() );
}
Actor ClosestProc(Actor self, Actor ignore)
@@ -156,7 +156,7 @@ namespace OpenRA.Mods.RA
var mobile = self.Trait<Mobile>();
self.CancelActivity();
self.QueueActivity(mobile.MoveTo(order.TargetLocation, 0));
self.QueueActivity(new Harvest());
self.QueueActivity(new FindResources());
}
else if (order.OrderString == "Deliver")
{