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
This commit is contained in:
Oliver Brakmann
2016-01-09 20:25:32 +01:00
parent bef6f40759
commit abe76d6f07

View File

@@ -2414,7 +2414,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
} }
} }
if (engineVersion < 20151102 && depth == 2) if (engineVersion < 20151225 && depth == 2)
{ {
if (node.Key == "Color") if (node.Key == "Color")
{ {
@@ -2436,7 +2436,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
} }
// DeathType on Explodes was renamed to DeathTypes // DeathType on Explodes was renamed to DeathTypes
if (engineVersion < 20151110) if (engineVersion < 20151225)
{ {
if (node.Key == "Explodes") if (node.Key == "Explodes")
{ {
@@ -2457,7 +2457,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
} }
} }
if (engineVersion < 20151127) if (engineVersion < 20151225)
{ {
// Rename WithTurret to WithSpriteTurret // Rename WithTurret to WithSpriteTurret
if (depth == 1 && node.Key.StartsWith("WithTurret")) 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) // 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"; var notMobile = "notmobile";
@@ -2685,7 +2685,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
} }
// 'CloseEnough' on 'RepairableNear' uses WDist now // 'CloseEnough' on 'RepairableNear' uses WDist now
if (engineVersion < 20151214) if (engineVersion < 20151225)
{ {
if (node.Key == "RepairableNear") if (node.Key == "RepairableNear")
{ {
@@ -2696,7 +2696,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
} }
// Added width support for line particles // 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"); var useSquares = node.Value.Nodes.FirstOrDefault(n => n.Key == "UseSquares");
if (useSquares != null && !FieldLoader.GetValue<bool>("UseSquares", useSquares.Value.Value)) if (useSquares != null && !FieldLoader.GetValue<bool>("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 var defaultCloakType = Traits.UncloakType.Attack
| Traits.UncloakType.Unload | Traits.UncloakType.Infiltrate | Traits.UncloakType.Demolish; | Traits.UncloakType.Unload | Traits.UncloakType.Infiltrate | Traits.UncloakType.Demolish;