Clean up DuplicateUnitCrateAction.

This commit is contained in:
Paul Chote
2014-09-12 19:42:20 +12:00
parent e95974153d
commit b009913e64
4 changed files with 44 additions and 51 deletions

View File

@@ -517,6 +517,16 @@ namespace OpenRA.Utility
}
}
// DuplicateUnitCrateAction was tidied up
if (engineVersion < 20140912)
{
if (depth == 2 && node.Key == "MaxDuplicatesWorth" && parentKey == "DuplicateUnitCrateAction")
node.Key = "MaxDuplicateValue";
if (depth == 2 && node.Key == "ValidDuplicateTypes" && parentKey == "DuplicateUnitCrateAction")
node.Key = "ValidTargets";
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}