Add an upgrade rule for the DeathType -> DeathTypes change

This commit is contained in:
abcdefg30
2015-11-09 15:32:57 +01:00
parent 4a4608e1f3
commit 8c2c946254

View File

@@ -2377,6 +2377,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
node.Key = "ParticleSize"; node.Key = "ParticleSize";
} }
// DeathType on Explodes was renamed to DeathTypes
if (engineVersion < 20151110)
{
if (node.Key == "Explodes")
{
var dt = node.Value.Nodes.FirstOrDefault(n => n.Key == "DeathType");
if (dt != null)
dt.Key = "DeathTypes";
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1); UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
} }
} }