Rename LaserZap.BeamDuration to Duration

This commit is contained in:
reaperrr
2016-09-09 01:42:37 +02:00
parent 5463176fa3
commit a98818ef47
3 changed files with 12 additions and 5 deletions

View File

@@ -422,6 +422,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
node.Key = "Speed";
}
// Rename LaserZap BeamDuration to just Duration
if (engineVersion < 20161009)
{
if (node.Key == "BeamDuration")
node.Key = "Duration";
}
UpgradeWeaponRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}