From abe76d6f07883fb862d79c1378cee6336504f5d8 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sat, 9 Jan 2016 20:25:32 +0100 Subject: [PATCH] Fix dates for upgrade rules The dates for the following two upgrade rules have not been touched since they were backported to release-20151224: 1. 20151107: PaticleSize -> ParticleSize 2. 20151122: DeployToUpgrade, Upgrades -> DeployedUpgrades --- OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 25c14a3530..41a8fd8377 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -2414,7 +2414,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } } - if (engineVersion < 20151102 && depth == 2) + if (engineVersion < 20151225 && depth == 2) { if (node.Key == "Color") { @@ -2436,7 +2436,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } // DeathType on Explodes was renamed to DeathTypes - if (engineVersion < 20151110) + if (engineVersion < 20151225) { if (node.Key == "Explodes") { @@ -2457,7 +2457,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } } - if (engineVersion < 20151127) + if (engineVersion < 20151225) { // Rename WithTurret to WithSpriteTurret if (depth == 1 && node.Key.StartsWith("WithTurret")) @@ -2512,7 +2512,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } // Mobile actors immobilized by Carryable, Cargo, DeployToUpgrade, and/or others using upgrade(s) - if (engineVersion < 20151204 && depth == 0) + if (engineVersion < 20151225 && depth == 0) { var notMobile = "notmobile"; @@ -2685,7 +2685,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } // 'CloseEnough' on 'RepairableNear' uses WDist now - if (engineVersion < 20151214) + if (engineVersion < 20151225) { if (node.Key == "RepairableNear") { @@ -2696,7 +2696,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } // Added width support for line particles - if (engineVersion < 20151220 && node.Key == "WeatherOverlay") + if (engineVersion < 20151225 && node.Key == "WeatherOverlay") { var useSquares = node.Value.Nodes.FirstOrDefault(n => n.Key == "UseSquares"); if (useSquares != null && !FieldLoader.GetValue("UseSquares", useSquares.Value.Value)) @@ -2830,7 +2830,7 @@ namespace OpenRA.Mods.Common.UtilityCommands } } - if (engineVersion < 20160701 && depth == 1 && node.Key.StartsWith("Cloak")) + if (engineVersion < 20160107 && depth == 1 && node.Key.StartsWith("Cloak")) { var defaultCloakType = Traits.UncloakType.Attack | Traits.UncloakType.Unload | Traits.UncloakType.Infiltrate | Traits.UncloakType.Demolish;