automatic rule upgrade

This commit is contained in:
Matthias Mailänder
2014-05-18 08:12:22 +02:00
parent 2c38f3ede9
commit 09fb435d45
2 changed files with 6 additions and 1 deletions

View File

@@ -249,6 +249,12 @@ namespace OpenRA.Utility
node.Value.Nodes.Add(new MiniYamlNode("ScriptTriggers", "")); node.Value.Nodes.Add(new MiniYamlNode("ScriptTriggers", ""));
} }
if (engineVersion < 20140517)
{
if (depth == 0)
node.Value.Nodes.RemoveAll(n => n.Key == "TeslaInstantKills");
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1); UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
} }
} }

View File

@@ -140,7 +140,6 @@
Passenger: Passenger:
CargoType: Infantry CargoType: Infantry
HiddenUnderFog: HiddenUnderFog:
TeslaInstantKills:
GainsExperience: GainsExperience:
GivesExperience: GivesExperience:
DrawLineToTarget: DrawLineToTarget: