Rename LaserZap.TracksTarget to TrackTarget

And fix engineVersion of older Duration upgrade rule.
This commit is contained in:
reaperrr
2016-11-02 22:37:46 +01:00
parent 4d738d8fb9
commit 9abfce97fa
2 changed files with 11 additions and 4 deletions

View File

@@ -751,14 +751,14 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
// Rename LaserZap BeamDuration to just Duration
if (engineVersion < 20161009)
if (engineVersion < 20161020)
{
if (node.Key == "BeamDuration")
node.Key = "Duration";
}
// Rename Bullet Angle to LaunchAngle
if (engineVersion < 20161016)
if (engineVersion < 20161020)
{
if (node.Key == "Angle")
node.Key = "LaunchAngle";
@@ -774,6 +774,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Rename LaserZap TracksTarget to TrackTarget
if (engineVersion < 20161217)
{
if (node.Key == "TracksTarget")
node.Key = "TrackTarget";
}
UpgradeWeaponRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}