merge ParachuteAttachment and Parachutable

This commit is contained in:
Matthias Mailänder
2014-06-22 14:49:00 +02:00
parent e04ff18060
commit ff1be8daea
6 changed files with 22 additions and 29 deletions

View File

@@ -252,6 +252,19 @@ namespace OpenRA.Utility
node.Key = "StoresResources";
}
// ParachuteAttachment was merged into Parachutable
if (engineVersion < 20140701)
{
if (depth == 1 && node.Key == "ParachuteAttachment")
{
node.Key = "Parachutable";
foreach (var subnode in node.Value.Nodes)
if (subnode.Key == "Offset")
subnode.Key = "ParachuteOffset";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}