Expose Plane turn-to-attack delay to yaml
This commit is contained in:
@@ -16,13 +16,21 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
public class AttackPlaneInfo : AttackFrontalInfo
|
||||
{
|
||||
[Desc("Delay, in game ticks, before turning to attack.")]
|
||||
public readonly int AttackTurnDelay = 50;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new AttackPlane(init.Self, this); }
|
||||
}
|
||||
|
||||
public class AttackPlane : AttackFrontal
|
||||
{
|
||||
public readonly AttackPlaneInfo AttackPlaneInfo;
|
||||
|
||||
public AttackPlane(Actor self, AttackPlaneInfo info)
|
||||
: base(self, info) { }
|
||||
: base(self, info)
|
||||
{
|
||||
AttackPlaneInfo = info;
|
||||
}
|
||||
|
||||
public override Activity GetAttackActivity(Actor self, Target newTarget, bool allowMove)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user