From aff1e5afe7a7698238ce207ed1f66e18c38ce6a3 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 9 Aug 2015 14:56:44 +0200 Subject: [PATCH] Upgrade notice --- OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 7a410b164a..64bfe0df02 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -2143,6 +2143,17 @@ namespace OpenRA.Mods.Common.UtilityCommands } } + if (engineVersion < 20150809) + { + // Removed 0% versus armor type = cannot target actor assumptions from warheads + if (depth == 3 && parentKey == "Versus" && node.Value.Value == "0") + { + Console.WriteLine("The '0% versus armor type = cannot target this actor' assumption has been removed."); + Console.WriteLine("If you want to reproduce its behavior, use ValidTargets/InvalidTargets in"); + Console.WriteLine("conjunction with one of the Targetable* actor traits."); + } + } + UpgradeWeaponRules(engineVersion, ref node.Value.Nodes, node, depth + 1); } }