Overhaul ParatroopersPower:
- Adds support for multiple drop planes. - Adds support a beacon and camera. - Prevents the plane from circling if it can’t unload.
This commit is contained in:
@@ -282,9 +282,9 @@ namespace OpenRA.Utility
|
||||
node.Key = "ParachuteSequence";
|
||||
}
|
||||
|
||||
// SpyPlanePower was removed (use AirstrikePower instead)
|
||||
if (engineVersion < 20140707)
|
||||
{
|
||||
// SpyPlanePower was removed (use AirstrikePower instead)
|
||||
if (depth == 1 && node.Key == "SpyPlanePower")
|
||||
{
|
||||
node.Key = "AirstrikePower";
|
||||
@@ -301,6 +301,12 @@ namespace OpenRA.Utility
|
||||
node.Value.Nodes.Add(new MiniYamlNode("CameraRemoveDelay", new MiniYaml(revealTime.ToString())));
|
||||
node.Value.Nodes.Add(new MiniYamlNode("UnitType", new MiniYaml("u2")));
|
||||
}
|
||||
|
||||
if (depth == 2 && node.Key == "LZRange" && parentKey == "ParaDrop")
|
||||
{
|
||||
node.Key = "DropRange";
|
||||
ConvertFloatToRange(ref node.Value.Value);
|
||||
}
|
||||
}
|
||||
|
||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||
|
||||
Reference in New Issue
Block a user