improve deconstruction text (#22404)

This commit is contained in:
tgrkzus
2023-12-13 11:07:04 +11:00
committed by GitHub
parent d72506d54b
commit b968dea478
2 changed files with 12 additions and 4 deletions

View File

@@ -69,9 +69,16 @@ namespace Content.Server.Construction
{
if (GetTargetNode(uid, component) is {} target)
{
args.PushMarkup(Loc.GetString(
"construction-component-to-create-header",
("targetName", target.Name)) + "\n");
if (target.Name == component.DeconstructionNode)
{
args.PushMarkup(Loc.GetString("deconstruction-header-text") + "\n");
}
else
{
args.PushMarkup(Loc.GetString(
"construction-component-to-create-header",
("targetName", target.Name)) + "\n");
}
}
if (component.EdgeIndex == null && GetTargetEdge(uid, component) is {} targetEdge)

View File

@@ -1 +1,2 @@
construction-component-to-create-header = To create {$targetName}...
construction-component-to-create-header = To create {$targetName}...
deconstruction-header-text = To deconstruct...