changed AttackSequence to DefaultAttackSequence

This commit is contained in:
abc013
2016-10-14 14:53:02 +02:00
parent 78305ca7d6
commit 268dcd7d41
12 changed files with 56 additions and 45 deletions

View File

@@ -386,6 +386,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Renamed AttackSequence to DefaultAttackSequence in WithInfantryBody.
if (engineVersion < 20161014)
{
if (node.Key == "WithInfantryBody")
{
var attackSequence = node.Value.Nodes.FirstOrDefault(n => n.Key == "AttackSequence");
if (attackSequence != null)
attackSequence.Key = "DefaultAttackSequence";
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}