From 2293453b8f1ebc054550b9cdc2ce604c93586cdd Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 7 Mar 2014 14:28:49 +0100 Subject: [PATCH] Adds UpgradeRule for AttackTesla -> AttackCharge. --- OpenRA.Utility/UpgradeRules.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/OpenRA.Utility/UpgradeRules.cs b/OpenRA.Utility/UpgradeRules.cs index 4dbc29fae2..0c8930ddd4 100644 --- a/OpenRA.Utility/UpgradeRules.cs +++ b/OpenRA.Utility/UpgradeRules.cs @@ -106,6 +106,19 @@ namespace OpenRA.Utility } } + // AttackTesla was replaced with AttackCharge + if (engineVersion < 20140307) + { + if (depth == 1 && parentKey == "World") + { + if (node.Key == "AttackTesla") + node.Key = "AttackCharge"; + + if (node.Key == "-AttackTesla") + node.Key = "-AttackCharge"; + } + } + // AttackMove was generalized to support all moveable actor types if (engineVersion < 20140116) {