Revert "Expose Plane turn-to-attack delay to yaml."

This reverts commit 02da41e5c5.
This commit is contained in:
Oliver Brakmann
2015-04-03 23:42:35 +02:00
parent a8d7140c1a
commit 32ed63727d
13 changed files with 45 additions and 60 deletions

View File

@@ -24,11 +24,11 @@ namespace OpenRA.Mods.Common.Activities
Actor dest;
WPos w1, w2, w3;
public ReturnToBase(Actor self, Actor dest, Plane plane)
public ReturnToBase(Actor self, Actor dest)
{
this.dest = dest;
this.plane = plane;
planeInfo = plane.Info;
plane = self.Trait<Plane>();
planeInfo = self.Info.Traits.Get<PlaneInfo>();
}
public static Actor ChooseAirfield(Actor self, bool unreservedOnly)
@@ -113,15 +113,15 @@ namespace OpenRA.Mods.Common.Activities
self.CancelActivity();
if (nearestAfld != null)
return Util.SequenceActivities(new Fly(self, Target.FromActor(nearestAfld), plane), new FlyCircle(self));
return Util.SequenceActivities(new Fly(self, Target.FromActor(nearestAfld)), new FlyCircle(self));
else
return new FlyCircle(self);
}
return Util.SequenceActivities(
new Fly(self, Target.FromPos(w1), plane),
new Fly(self, Target.FromPos(w2), plane),
new Fly(self, Target.FromPos(w3), plane),
new Fly(self, Target.FromPos(w1)),
new Fly(self, Target.FromPos(w2)),
new Fly(self, Target.FromPos(w3)),
new Land(self, Target.FromActor(dest)),
NextActivity);
}