From fe1d3b3821c6516149618c4433eba4f8afb0ad6d Mon Sep 17 00:00:00 2001 From: reaperrr Date: Mon, 25 Nov 2019 22:22:41 +0100 Subject: [PATCH] Move ProductionAirdrop to Mods.Common --- .../Traits/Buildings/ProductionAirdrop.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename {OpenRA.Mods.Cnc => OpenRA.Mods.Common}/Traits/Buildings/ProductionAirdrop.cs (97%) diff --git a/OpenRA.Mods.Cnc/Traits/Buildings/ProductionAirdrop.cs b/OpenRA.Mods.Common/Traits/Buildings/ProductionAirdrop.cs similarity index 97% rename from OpenRA.Mods.Cnc/Traits/Buildings/ProductionAirdrop.cs rename to OpenRA.Mods.Common/Traits/Buildings/ProductionAirdrop.cs index 4cd5bb203b..bfeb41c860 100644 --- a/OpenRA.Mods.Cnc/Traits/Buildings/ProductionAirdrop.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/ProductionAirdrop.cs @@ -14,11 +14,10 @@ using System.Linq; using OpenRA.Activities; using OpenRA.Mods.Common; using OpenRA.Mods.Common.Activities; -using OpenRA.Mods.Common.Traits; using OpenRA.Primitives; using OpenRA.Traits; -namespace OpenRA.Mods.Cnc.Traits +namespace OpenRA.Mods.Common.Traits { [Desc("Deliver the unit in production via skylift.")] public class ProductionAirdropInfo : ProductionInfo @@ -26,9 +25,10 @@ namespace OpenRA.Mods.Cnc.Traits [NotificationReference("Speech")] public readonly string ReadyAudio = "Reinforce"; + [FieldLoader.Require] [ActorReference(typeof(AircraftInfo))] [Desc("Cargo aircraft used for delivery. Must have the `Aircraft` trait.")] - public readonly string ActorType = "c17"; + public readonly string ActorType = null; [Desc("The cargo aircraft will spawn at the player baseline (map edge closest to the player spawn)")] public readonly bool BaselineSpawn = false;