Add AutoTargetPriority trait for smarter AutoTarget logic.

This commit is contained in:
Paul Chote
2017-06-10 10:05:31 +00:00
committed by atlimit8
parent ab8bc53ed8
commit 716343732f
4 changed files with 101 additions and 45 deletions

View File

@@ -710,6 +710,18 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// AutoTargetIgnore replaced with AutoTargetPriority and target types
if (engineVersion < 20170610)
{
if (node.Key.StartsWith("AutoTarget", StringComparison.Ordinal) || node.Key.StartsWith("-AutoTarget", StringComparison.Ordinal))
{
Console.WriteLine("The AutoTarget traits have been reworked to use target types:");
Console.WriteLine(" * Actors with AutoTarget must specify one or more AutoTargetPriority traits.");
Console.WriteLine(" * The AutoTargetIgnore trait has been removed.");
Console.WriteLine(" Append NoAutoTarget to the target types instead.");
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}