Rename LeavesHusk to SpawnActorOnDeath

This commit is contained in:
abcdefg30
2015-08-09 19:24:14 +02:00
parent abf5047072
commit e8477b1b5a
20 changed files with 107 additions and 103 deletions

View File

@@ -1687,12 +1687,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
node.Key = "Sequences";
}
// SpawnViceroid was replaced by LeavesHusk
// SpawnViceroid was replaced by SpawnActorOnDeath
// And LeavesHusk was renamed to SpawnActorOnDeath
if (engineVersion < 20150809)
{
if (node.Key == "SpawnViceroid")
{
node.Key = "LeavesHusk";
node.Key = "SpawnActorOnDeath";
// The default value of ViceroidActor was vice
var actor = node.Value.Nodes.FirstOrDefault(n => n.Key == "ViceroidActor");
@@ -1724,6 +1725,9 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (deathType == null)
node.Value.Nodes.Add(new MiniYamlNode("DeathType", "TiberiumDeath"));
}
if (node.Key == "LeavesHusk")
node.Key = "SpawnActorOnDeath";
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);