Rename Race to ValidRaces.

This commit is contained in:
UberWaffe
2014-07-20 21:40:10 +02:00
parent 94b1f53ebf
commit cb6a724e48

View File

@@ -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)