Adds tag support to construction (#3386)

This commit is contained in:
Vera Aguilera Puerto
2021-02-24 16:26:56 +01:00
committed by GitHub
parent 2ec0304072
commit 436d406585
11 changed files with 110 additions and 62 deletions

View File

@@ -186,8 +186,7 @@ namespace Content.Server.GameObjects.Components.Construction
{
case MaterialConstructionGraphStep _:
case ToolConstructionGraphStep _:
case PrototypeConstructionGraphStep _:
case ComponentConstructionGraphStep _:
case ArbitraryInsertConstructionGraphStep _:
if (await HandleStep(eventArgs, edge, firstStep))
{
if(edge.Steps.Count > 1)
@@ -258,17 +257,8 @@ namespace Content.Server.GameObjects.Components.Construction
switch (insertStep)
{
case PrototypeConstructionGraphStep prototypeStep:
if (prototypeStep.EntityValid(eventArgs.Using)
&& await doAfterSystem.DoAfter(doAfterArgs) == DoAfterStatus.Finished)
{
valid = true;
}
break;
case ComponentConstructionGraphStep componentStep:
if (componentStep.EntityValid(eventArgs.Using)
case ArbitraryInsertConstructionGraphStep arbitraryStep:
if (arbitraryStep.EntityValid(eventArgs.Using)
&& await doAfterSystem.DoAfter(doAfterArgs) == DoAfterStatus.Finished)
{
valid = true;