Refactor a bunch of stuff.

This commit is contained in:
zumorica
2020-05-19 13:55:52 +02:00
parent 06c7030514
commit 06d2cc74ed
17 changed files with 153 additions and 347 deletions

View File

@@ -139,7 +139,7 @@ namespace Content.Shared.Construction
if (step.TryGetNode("tool", out node))
{
return new ConstructionStepTool(
node.AsEnum<Tool>(),
node.AsEnum<ToolQuality>(),
amount
);
}
@@ -191,11 +191,11 @@ namespace Content.Shared.Construction
public class ConstructionStepTool : ConstructionStep
{
public readonly Tool Tool;
public readonly ToolQuality ToolQuality;
public ConstructionStepTool(Tool tool, int amount) : base(amount)
public ConstructionStepTool(ToolQuality toolQuality, int amount) : base(amount)
{
Tool = tool;
ToolQuality = toolQuality;
}
}