merge ParachuteAttachment and Parachutable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user