Skip to content
Browse files

Adds UpgradeRule for AttackTesla -> AttackCharge.

  • Loading branch information...
1 parent c1954f4 commit 2293453b8f1ebc054550b9cdc2ce604c93586cdd @reaperrr reaperrr committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 OpenRA.Utility/UpgradeRules.cs
View
13 OpenRA.Utility/UpgradeRules.cs
@@ -106,6 +106,19 @@ static void UpgradeActorRules(int engineVersion, ref List<MiniYamlNode> nodes, M
}
}
+ // 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)
{

0 comments on commit 2293453

Please sign in to comment.
Something went wrong with that request. Please try again.