Merge pull request #9708 from r34ch/chronotank-extra-bar

Charge now using ticks and fixed extra bar time formula.
This commit is contained in:
abcdefg30
2015-10-23 23:29:20 +02:00
2 changed files with 17 additions and 4 deletions

View File

@@ -2253,6 +2253,19 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// ChargeTime is now replaced by ChargeDelay.
// ChargeDelay uses 500 as a default now.
if (engineVersion < 20151022)
{
if (depth == 2 && parentKey == "PortableChrono" && node.Key == "ChargeTime")
{
node.Key = "ChargeDelay";
if (node.Value.Value != null)
node.Value.Value = (Exts.ParseIntegerInvariant(node.Value.Value) * 25).ToString();
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}