From cb6a724e48f8cd393892ec8fc8446bf5fe580e21 Mon Sep 17 00:00:00 2001 From: UberWaffe Date: Sun, 20 Jul 2014 21:40:10 +0200 Subject: [PATCH] Rename Race to ValidRaces. --- OpenRA.Mods.RA/Crates/GiveUnitCrateAction.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Crates/GiveUnitCrateAction.cs b/OpenRA.Mods.RA/Crates/GiveUnitCrateAction.cs index 6ae23ddbd4..2132d2e2f6 100644 --- a/OpenRA.Mods.RA/Crates/GiveUnitCrateAction.cs +++ b/OpenRA.Mods.RA/Crates/GiveUnitCrateAction.cs @@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA.Crates public readonly string[] Units = { }; [Desc("Races that are allowed to trigger this action")] - public readonly string[] Race = { }; + public readonly string[] ValidRaces = { }; [Desc("Override the owner of the newly spawned unit: e.g. Creeps or Neutral")] public readonly string Owner = null; @@ -42,7 +42,7 @@ namespace OpenRA.Mods.RA.Crates public bool CanGiveTo(Actor collector) { - if (Info.Race.Any() && !Info.Race.Contains(collector.Owner.Country.Race)) + if (Info.ValidRaces.Any() && !Info.ValidRaces.Contains(collector.Owner.Country.Race)) return false; foreach (string unit in Info.Units)