Remove "Fake" tag.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user