Allow WithBuildingExplosion to randomly select from multiple sequences

Necessary for TS/RA2-style building explosions.
This commit is contained in:
reaperrr
2015-08-03 15:39:22 +02:00
parent d1375a224f
commit 94f6dd5e56
3 changed files with 12 additions and 4 deletions

View File

@@ -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);
}
}