Convert SelfHealing to upgrades.

This commit is contained in:
Paul Chote
2014-09-26 22:20:41 +12:00
parent 56332251f5
commit 372d03c320
8 changed files with 59 additions and 44 deletions

View File

@@ -563,6 +563,18 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20140927)
{
if (depth == 0)
node.Value.Nodes.RemoveAll(n => n.Key == "SelfHealingTech");
if (depth == 2 && node.Key == "RequiresTech" && parentKey.StartsWith("SelfHealing"))
{
node.Key = "RequiresUpgrade";
node.Value.Value = "selfhealing-needs-reconfiguration";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}