From b72a58b9171e6ac0d8652eab3bd7c87db7c695a7 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 28 Aug 2020 21:38:54 +0100 Subject: [PATCH] Add missing ActorReferences to yaml dictionaries. --- OpenRA.Mods.Cnc/Traits/Disguise.cs | 1 + OpenRA.Mods.Common/Traits/Cargo.cs | 1 + OpenRA.Mods.Common/Traits/Passenger.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/OpenRA.Mods.Cnc/Traits/Disguise.cs b/OpenRA.Mods.Cnc/Traits/Disguise.cs index 4f6ef469d4..08def412a1 100644 --- a/OpenRA.Mods.Cnc/Traits/Disguise.cs +++ b/OpenRA.Mods.Cnc/Traits/Disguise.cs @@ -89,6 +89,7 @@ namespace OpenRA.Mods.Cnc.Traits "Unload, Infiltrate, Demolish, Move.")] public readonly RevealDisguiseType RevealDisguiseOn = RevealDisguiseType.Attack; + [ActorReference(dictionaryReference: LintDictionaryReference.Keys)] [Desc("Conditions to grant when disguised as specified actor.", "A dictionary of [actor id]: [condition].")] public readonly Dictionary DisguisedAsConditions = new Dictionary(); diff --git a/OpenRA.Mods.Common/Traits/Cargo.cs b/OpenRA.Mods.Common/Traits/Cargo.cs index 11c5869502..494dd8186c 100644 --- a/OpenRA.Mods.Common/Traits/Cargo.cs +++ b/OpenRA.Mods.Common/Traits/Cargo.cs @@ -75,6 +75,7 @@ namespace OpenRA.Mods.Common.Traits "Condition can stack with multiple passengers.")] public readonly string LoadedCondition = null; + [ActorReference(dictionaryReference: LintDictionaryReference.Keys)] [Desc("Conditions to grant when specified actors are loaded inside the transport.", "A dictionary of [actor id]: [condition].")] public readonly Dictionary PassengerConditions = new Dictionary(); diff --git a/OpenRA.Mods.Common/Traits/Passenger.cs b/OpenRA.Mods.Common/Traits/Passenger.cs index 316a2c6010..1bdb88f343 100644 --- a/OpenRA.Mods.Common/Traits/Passenger.cs +++ b/OpenRA.Mods.Common/Traits/Passenger.cs @@ -31,6 +31,7 @@ namespace OpenRA.Mods.Common.Traits [Desc("The condition to grant to when this actor is loaded inside any transport.")] public readonly string CargoCondition = null; + [ActorReference(dictionaryReference: LintDictionaryReference.Keys)] [Desc("Conditions to grant when this actor is loaded inside specified transport.", "A dictionary of [actor id]: [condition].")] public readonly Dictionary CargoConditions = new Dictionary();