From: themias <89101928+themias@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:01:51 +0000 (-0500) Subject: Fix construction graph ghost examine message (#22424) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=9257703ef92cd4551f941daec6aab14b24a8c521;p=space-station-14.git Fix construction graph ghost examine message (#22424) --- diff --git a/Content.Client/Construction/ConstructionSystem.cs b/Content.Client/Construction/ConstructionSystem.cs index d0a14860f1..4035c68cc7 100644 --- a/Content.Client/Construction/ConstructionSystem.cs +++ b/Content.Client/Construction/ConstructionSystem.cs @@ -2,6 +2,7 @@ using System.Diagnostics.CodeAnalysis; using Content.Client.Popups; using Content.Shared.Construction; using Content.Shared.Construction.Prototypes; +using Content.Shared.Construction.Steps; using Content.Shared.Examine; using Content.Shared.Input; using Content.Shared.Interaction; @@ -97,7 +98,11 @@ namespace Content.Client.Construction return; } - edge.Steps[0].DoExamine(args); + foreach (ConstructionGraphStep step in edge.Steps) + { + args.Message.PushNewline(); + step.DoExamine(args); + } } public event EventHandler? CraftingAvailabilityChanged; diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/secretdoor.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/secretdoor.yml index 336933a36b..2c5a0db2b8 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/structures/secretdoor.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/structures/secretdoor.yml @@ -12,7 +12,6 @@ - material: Steel amount: 4 doAfter: 4 - - material: MetalRod amount: 4 doAfter: 4