]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
improve deconstruction text (#22404)
authortgrkzus <tgrkzus@gmail.com>
Wed, 13 Dec 2023 00:07:04 +0000 (11:07 +1100)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 00:07:04 +0000 (17:07 -0700)
Content.Server/Construction/ConstructionSystem.Guided.cs
Resources/Locale/en-US/construction/components/construction-component.ftl

index 0877ec79ba0ce1a74f875c47c606099ddb1f3b9d..cf6ea4da5169cbb1636d50b2acf8ed226c55cd6e 100644 (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)
index 85276a45aa77f73effaa244959ee418fce5c9748..9c781e679a7753fabbb41487e3503bbc2c5564bc 100644 (file)
@@ -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...