Add an upgrade rule

This commit is contained in:
abcdefg30
2016-06-23 17:32:01 +02:00
parent e8084daad7
commit ddfd4c7873

View File

@@ -291,6 +291,20 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// DisplayTimer was replaced by DisplayTimerStances
if (engineVersion < 20160710)
{
if (node.Key == "DisplayTimer")
{
node.Key = "DisplayTimerStances";
if (node.Value.Value.ToLower() == "false")
node.Value.Value = "None";
else
node.Value.Value = "Ally, Neutral, Enemy";
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}