Rename HeliReturn
Rename HeliReturn to HeliReturnToBase to keep somewhat with the convention established for Plane- against Heli- oriented traits.
This commit is contained in:
@@ -67,7 +67,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
// If all ammo pools are depleted and none reload automatically, return to helipad to reload and then move to next activity
|
||||
// TODO: This should check whether there is ammo left that is actually suitable for the target
|
||||
if (ammoPools.All(x => !x.Info.SelfReloads && !x.HasAmmo()))
|
||||
return Util.SequenceActivities(new HeliReturn(self), NextActivity);
|
||||
return Util.SequenceActivities(new HeliReturnToBase(self), NextActivity);
|
||||
|
||||
var dist = target.CenterPosition - self.CenterPosition;
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Activities
|
||||
{
|
||||
public class HeliReturn : Activity
|
||||
public class HeliReturnToBase : Activity
|
||||
{
|
||||
readonly Aircraft heli;
|
||||
|
||||
public HeliReturn(Actor self)
|
||||
public HeliReturnToBase(Actor self)
|
||||
{
|
||||
heli = self.Trait<Aircraft>();
|
||||
}
|
||||
@@ -101,7 +101,7 @@
|
||||
<Compile Include="Activities\Air\HeliFly.cs" />
|
||||
<Compile Include="Activities\Air\HeliFlyCircle.cs" />
|
||||
<Compile Include="Activities\Air\HeliLand.cs" />
|
||||
<Compile Include="Activities\Air\HeliReturn.cs" />
|
||||
<Compile Include="Activities\Air\HeliReturnToBase.cs" />
|
||||
<Compile Include="Activities\Air\Land.cs" />
|
||||
<Compile Include="Activities\Air\ResupplyAircraft.cs" />
|
||||
<Compile Include="Activities\Air\ReturnToBase.cs" />
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
if (isPlane)
|
||||
Self.QueueActivity(new ReturnToBase(Self, airfield));
|
||||
else
|
||||
Self.QueueActivity(new HeliReturn(Self));
|
||||
Self.QueueActivity(new HeliReturnToBase(Self));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -527,7 +527,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (IsPlane)
|
||||
self.QueueActivity(new ReturnToBase(self));
|
||||
else
|
||||
self.QueueActivity(new HeliReturn(self));
|
||||
self.QueueActivity(new HeliReturnToBase(self));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -588,7 +588,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (IsPlane)
|
||||
self.QueueActivity(new ReturnToBase(self));
|
||||
else
|
||||
self.QueueActivity(new HeliReturn(self));
|
||||
self.QueueActivity(new HeliReturnToBase(self));
|
||||
|
||||
self.QueueActivity(new ResupplyAircraft(self));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user