add captureable, infantry emitting on sell and transformation
This commit is contained in:
@@ -109,6 +109,28 @@ namespace OpenRA.Mods.TS.UtilityCommands
|
|||||||
Console.WriteLine("\t\tAmount: " + power);
|
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()))
|
if (artIni.Sections.Any(s => s.Name == building.ToLowerInvariant()))
|
||||||
{
|
{
|
||||||
var artSection = artIni.GetSection(building);
|
var artSection = artIni.GetSection(building);
|
||||||
@@ -149,7 +171,6 @@ namespace OpenRA.Mods.TS.UtilityCommands
|
|||||||
if (!string.IsNullOrEmpty(buildup) && buildup != "none")
|
if (!string.IsNullOrEmpty(buildup) && buildup != "none")
|
||||||
Console.WriteLine("\tWithMakeAnimation:");
|
Console.WriteLine("\tWithMakeAnimation:");
|
||||||
|
|
||||||
|
|
||||||
var terrainPalette = artSection.GetValue("TerrainPalette", string.Empty);
|
var terrainPalette = artSection.GetValue("TerrainPalette", string.Empty);
|
||||||
if (!string.IsNullOrEmpty(terrainPalette))
|
if (!string.IsNullOrEmpty(terrainPalette))
|
||||||
bool.TryParse(terrainPalette, out useTerrainPalette);
|
bool.TryParse(terrainPalette, out useTerrainPalette);
|
||||||
|
|||||||
Reference in New Issue
Block a user