Upgrade rules for increasing HP and damage by 100x for the TD mod

This commit is contained in:
Arular101
2017-12-12 20:57:50 +01:00
committed by abcdefg30
parent 7ad989fc43
commit b71b2ad523

View File

@@ -1301,11 +1301,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
// Multiply all health and damage in the RA mod by 100 to avoid issues caused by rounding
// Multiply all health and damage in the TD and RA mod by 100 to avoid issues caused by rounding
if (engineVersion < 20171212)
{
var mod = modData.Manifest.Id;
if (mod == "ra")
if (mod == "cnc" || mod == "ra")
{
if (node.Key == "HP" && parent.Key == "Health")
{
@@ -1517,11 +1517,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
if (node.Key == "BurstDelay")
node.Key = "BurstDelays";
// Multiply all health and damage in the RA mod by 100 to avoid issues caused by rounding
// Multiply all health and damage in the TD and RA mod by 100 to avoid issues caused by rounding
if (engineVersion < 20171212)
{
var mod = modData.Manifest.Id;
if (mod == "ra")
if (mod == "cnc" || mod == "ra")
{
if (node.Key == "Damage" && (parent.Value.Value == "SpreadDamage" || parent.Value.Value == "TargetDamage"))
{