Remove "Fake" tag.

This commit is contained in:
Paul Chote
2015-12-13 14:48:16 +00:00
parent 372bbaf7b6
commit ef2f9cbafa
7 changed files with 19 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Traits
{
// depends on the order of pips in TraitsInterfaces.cs!
static readonly string[] PipStrings = { "pip-empty", "pip-green", "pip-yellow", "pip-red", "pip-gray", "pip-blue", "pip-ammo", "pip-ammoempty" };
static readonly string[] TagStrings = { "", "tag-fake", "tag-primary" };
static readonly string[] TagStrings = { "", "tag-primary" };
public readonly SelectionDecorationsInfo Info;
readonly Actor self;

View File

@@ -2739,6 +2739,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
node.Value.Nodes.RemoveAll(n => n.Key == "ShowToAllies");
node.Value.Nodes.RemoveAll(n => n.Key == "ShowToEnemies");
}
if (depth == 1 && node.Key == "Fake")
{
node.Key = "WithDecoration@fake";
node.Value.Nodes.Add(new MiniYamlNode("RequiresSelection", "true"));
node.Value.Nodes.Add(new MiniYamlNode("Image", "pips"));
node.Value.Nodes.Add(new MiniYamlNode("Sequence", "tag-fake"));
node.Value.Nodes.Add(new MiniYamlNode("ReferencePoint", "Top"));
node.Value.Nodes.Add(new MiniYamlNode("ZOffset", "256"));
}
}
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);