From b9ed065328dc28de3b119f2f35fd87a44e6f3ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 13 Sep 2015 14:15:15 +0200 Subject: [PATCH] add captureable, infantry emitting on sell and transformation --- .../UtilityCommands/LegacyRulesImporter.cs | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.TS/UtilityCommands/LegacyRulesImporter.cs b/OpenRA.Mods.TS/UtilityCommands/LegacyRulesImporter.cs index 20ef0468ae..9d99d84432 100644 --- a/OpenRA.Mods.TS/UtilityCommands/LegacyRulesImporter.cs +++ b/OpenRA.Mods.TS/UtilityCommands/LegacyRulesImporter.cs @@ -109,6 +109,28 @@ namespace OpenRA.Mods.TS.UtilityCommands Console.WriteLine("\t\tAmount: " + power); } + var captureable = rulesSection.GetValue("Capturable", string.Empty); + if (!string.IsNullOrEmpty(captureable) && captureable == "true") + Console.WriteLine("\tCapturable:"); + + var crewed = rulesSection.GetValue("Crewed", string.Empty); + if (!string.IsNullOrEmpty(crewed) && crewed == "yes") + Console.WriteLine("\tEmitInfantryOnSell:"); + + var deploysInto = rulesSection.GetValue("DeploysInto", string.Empty); + if (!string.IsNullOrEmpty(deploysInto)) + { + Console.WriteLine("\tTransforms:"); + Console.WriteLine("\t\tIntoActor: " + deploysInto); + } + + var undeploysInto = rulesSection.GetValue("UndeploysInto", string.Empty); + if (!string.IsNullOrEmpty(undeploysInto)) + { + Console.WriteLine("\tTransforms:"); + Console.WriteLine("\t\tIntoActor: " + undeploysInto); + } + if (artIni.Sections.Any(s => s.Name == building.ToLowerInvariant())) { var artSection = artIni.GetSection(building); @@ -149,7 +171,6 @@ namespace OpenRA.Mods.TS.UtilityCommands if (!string.IsNullOrEmpty(buildup) && buildup != "none") Console.WriteLine("\tWithMakeAnimation:"); - var terrainPalette = artSection.GetValue("TerrainPalette", string.Empty); if (!string.IsNullOrEmpty(terrainPalette)) bool.TryParse(terrainPalette, out useTerrainPalette);