diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs b/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs index 3aae012c30..cfbc9e3585 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackBase.cs @@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Traits throw new YamlException("Facing tolerance must be in range of [0, 512], 512 covers 360 degrees."); } - public override abstract object Create(ActorInitializer init); + public abstract override object Create(ActorInitializer init); } public abstract class AttackBase : PausableConditionalTrait, ITick, IIssueOrder, IResolveOrder, IOrderVoice, ISync diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs b/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs index 9041239a95..95569250c4 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs @@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Traits public class AttackFrontalInfo : AttackBaseInfo, Requires { [Desc("Tolerance for attack angle. Range [0, 512], 512 covers 360 degrees.")] - public readonly new WAngle FacingTolerance = WAngle.Zero; + public new readonly WAngle FacingTolerance = WAngle.Zero; public override object Create(ActorInitializer init) { return new AttackFrontal(init.Self, this); } } diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackGarrisoned.cs b/OpenRA.Mods.Common/Traits/Attack/AttackGarrisoned.cs index 995115d648..03a6c4f379 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackGarrisoned.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackGarrisoned.cs @@ -77,7 +77,7 @@ namespace OpenRA.Mods.Common.Traits public class AttackGarrisoned : AttackFollow, INotifyPassengerEntered, INotifyPassengerExited, IRender { - public readonly new AttackGarrisonedInfo Info; + public new readonly AttackGarrisonedInfo Info; Lazy coords; List armaments; List muzzles; diff --git a/OpenRA.Mods.D2k/Traits/AttackSwallow.cs b/OpenRA.Mods.D2k/Traits/AttackSwallow.cs index 3075fea006..7c343cd5fa 100644 --- a/OpenRA.Mods.D2k/Traits/AttackSwallow.cs +++ b/OpenRA.Mods.D2k/Traits/AttackSwallow.cs @@ -43,7 +43,7 @@ namespace OpenRA.Mods.D2k.Traits class AttackSwallow : AttackFrontal { - public readonly new AttackSwallowInfo Info; + public new readonly AttackSwallowInfo Info; public AttackSwallow(Actor self, AttackSwallowInfo info) : base(self, info)