Allow WithBuildingExplosion to randomly select from multiple sequences
Necessary for TS/RA2-style building explosions.
This commit is contained in:
@@ -1680,6 +1680,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
}
|
||||
}
|
||||
|
||||
// WithBuildingExplosion received support for sequence randomization
|
||||
if (engineVersion < 20150803)
|
||||
{
|
||||
if (depth == 2 && parentKey == "WithBuildingExplosion" && node.Key == "Sequence")
|
||||
node.Key = "Sequences";
|
||||
}
|
||||
|
||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user