From eff46cf40dcbdf5fee0511741a476d59e672bbdc Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 30 May 2013 20:11:26 +1200 Subject: [PATCH] Add a Name field to Armament for other traits to reference. --- OpenRA.Mods.RA/Armament.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Armament.cs b/OpenRA.Mods.RA/Armament.cs index 95482d0bf9..3039dcb224 100755 --- a/OpenRA.Mods.RA/Armament.cs +++ b/OpenRA.Mods.RA/Armament.cs @@ -27,12 +27,12 @@ namespace OpenRA.Mods.RA [Desc("Allows you to attach weapons to the unit (use @IdentifierSuffix for > 1)")] public class ArmamentInfo : ITraitInfo, Requires { + public readonly string Name = "primary"; + [WeaponReference] [Desc("Has to be defined here and in weapons.yaml.")] public readonly string Weapon = null; public readonly string Turret = "primary"; - [Desc("Move the turret backwards when firing.")] - public readonly int LegacyRecoil = 0; [Desc("Time (in frames) until the weapon can fire again.")] public readonly int FireDelay = 0;