Skip to content

Commit

Permalink
Upgrade rules for increasing HP and damage by 100x for the TD mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Arular101 authored and abcdefg30 committed Dec 12, 2017
1 parent 7ad989f commit b71b2ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs
Expand Up @@ -1301,11 +1301,11 @@ internal static void UpgradeActorRules(ModData modData, int engineVersion, ref L
}
}

// 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")
{
Expand Down Expand Up @@ -1517,11 +1517,11 @@ internal static void UpgradeWeaponRules(ModData modData, int engineVersion, ref
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"))
{
Expand Down

0 comments on commit b71b2ad

Please sign in to comment.