Take welder into account.
This commit is contained in:
@@ -145,6 +145,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
if (!slapped.TryGetComponent<ToolComponent>(out var tool))
|
if (!slapped.TryGetComponent<ToolComponent>(out var tool))
|
||||||
return false;
|
return false;
|
||||||
if (toolStep.Tool != tool.Behavior) return false;
|
if (toolStep.Tool != tool.Behavior) return false;
|
||||||
|
if (toolStep.Tool == Tool.Welder && !tool.TryWeld(toolStep.Amount)) return false;
|
||||||
tool.PlayUseSound();
|
tool.PlayUseSound();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user