From b968dea47886fd8a111fa3b2e5cf66aeede6c9a8 Mon Sep 17 00:00:00 2001 From: tgrkzus Date: Wed, 13 Dec 2023 11:07:04 +1100 Subject: [PATCH] improve deconstruction text (#22404) --- .../Construction/ConstructionSystem.Guided.cs | 13 ++++++++++--- .../components/construction-component.ftl | 3 ++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Content.Server/Construction/ConstructionSystem.Guided.cs b/Content.Server/Construction/ConstructionSystem.Guided.cs index 0877ec79ba..cf6ea4da51 100644 --- a/Content.Server/Construction/ConstructionSystem.Guided.cs +++ b/Content.Server/Construction/ConstructionSystem.Guided.cs @@ -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) diff --git a/Resources/Locale/en-US/construction/components/construction-component.ftl b/Resources/Locale/en-US/construction/components/construction-component.ftl index 85276a45aa..9c781e679a 100644 --- a/Resources/Locale/en-US/construction/components/construction-component.ftl +++ b/Resources/Locale/en-US/construction/components/construction-component.ftl @@ -1 +1,2 @@ -construction-component-to-create-header = To create {$targetName}... \ No newline at end of file +construction-component-to-create-header = To create {$targetName}... +deconstruction-header-text = To deconstruct... -- 2.51.2