From d0634d9bb75ec20fb9fac0d87595f09a0c7049a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 15 Aug 2015 09:57:27 +0200 Subject: [PATCH 1/2] add missing weapon reference --- OpenRA.Mods.Cnc/Traits/SupportPowers/IonCannonPower.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/Traits/SupportPowers/IonCannonPower.cs b/OpenRA.Mods.Cnc/Traits/SupportPowers/IonCannonPower.cs index 0eedfc3af1..b85aaf83f8 100644 --- a/OpenRA.Mods.Cnc/Traits/SupportPowers/IonCannonPower.cs +++ b/OpenRA.Mods.Cnc/Traits/SupportPowers/IonCannonPower.cs @@ -29,7 +29,7 @@ namespace OpenRA.Mods.Cnc.Traits public readonly string Effect = "ionsfx"; public readonly string EffectPalette = "effect"; - [Desc("Which weapon to fire")] + [Desc("Which weapon to fire"), WeaponReference] public readonly string Weapon = "IonCannon"; [Desc("Apply the weapon impact this many ticks into the effect")] From dc477c3cedb4ed89a7faa16b201f73b4b1ac4819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 15 Aug 2015 09:58:43 +0200 Subject: [PATCH 2/2] add missing sequence reference --- OpenRA.Game/Traits/World/ResourceType.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Traits/World/ResourceType.cs b/OpenRA.Game/Traits/World/ResourceType.cs index 865f3fbee2..bd175eae9a 100644 --- a/OpenRA.Game/Traits/World/ResourceType.cs +++ b/OpenRA.Game/Traits/World/ResourceType.cs @@ -15,9 +15,9 @@ namespace OpenRA.Traits { public class ResourceTypeInfo : ITraitInfo { - public readonly string[] Variants = { }; - public readonly string Palette = "terrain"; public readonly string Sequence = "resources"; + [SequenceReference("Sequence")] public readonly string[] Variants = { }; + public readonly string Palette = "terrain"; public readonly int ResourceType = 1; public readonly int ValuePerUnit = 0;