From: tgrkzus Date: Wed, 13 Dec 2023 00:07:04 +0000 (+1100) Subject: improve deconstruction text (#22404) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b968dea47886fd8a111fa3b2e5cf66aeede6c9a8;p=space-station-14.git improve deconstruction text (#22404) --- 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...