694 fixed -- the same building can now do both repair and rearm for aircraft
This commit is contained in:
@@ -104,8 +104,11 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
self.QueueActivity(new HeliFly(order.TargetActor.Trait<IHasLocation>().PxPosition + offset));
|
self.QueueActivity(new HeliFly(order.TargetActor.Trait<IHasLocation>().PxPosition + offset));
|
||||||
self.QueueActivity(new Turn(Info.InitialFacing));
|
self.QueueActivity(new Turn(Info.InitialFacing));
|
||||||
self.QueueActivity(new HeliLand(false));
|
self.QueueActivity(new HeliLand(false));
|
||||||
self.QueueActivity(Info.RearmBuildings.Contains(order.TargetActor.Info.Name)
|
|
||||||
? (IActivity)new Rearm() : new Repair(order.TargetActor));
|
if (Info.RearmBuildings.Contains(order.TargetActor.Info.Name))
|
||||||
|
self.QueueActivity( new Rearm() );
|
||||||
|
if (Info.RepairBuildings.Contains(order.TargetActor.Info.Name))
|
||||||
|
self.QueueActivity( new Repair( order.TargetActor ));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (order.OrderString == "Stop")
|
if (order.OrderString == "Stop")
|
||||||
|
|||||||
@@ -103,9 +103,11 @@ namespace OpenRA.Mods.RA.Air
|
|||||||
|
|
||||||
self.CancelActivity();
|
self.CancelActivity();
|
||||||
self.QueueActivity(new ReturnToBase(self, order.TargetActor));
|
self.QueueActivity(new ReturnToBase(self, order.TargetActor));
|
||||||
self.QueueActivity(
|
|
||||||
info.RearmBuildings.Contains(order.TargetActor.Info.Name)
|
if (Info.RearmBuildings.Contains(order.TargetActor.Info.Name))
|
||||||
? (IActivity)new Rearm() : new Repair(order.TargetActor));
|
self.QueueActivity( new Rearm() );
|
||||||
|
if (Info.RepairBuildings.Contains(order.TargetActor.Info.Name))
|
||||||
|
self.QueueActivity( new Repair( order.TargetActor ));
|
||||||
}
|
}
|
||||||
else if (order.OrderString == "Stop")
|
else if (order.OrderString == "Stop")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user