diff --git a/Content.Server/GameObjects/Components/AnchorableComponent.cs b/Content.Server/GameObjects/Components/AnchorableComponent.cs index 0baa468426..4998438040 100644 --- a/Content.Server/GameObjects/Components/AnchorableComponent.cs +++ b/Content.Server/GameObjects/Components/AnchorableComponent.cs @@ -58,7 +58,7 @@ namespace Content.Server.GameObjects.Components if (attempt.Cancelled) return false; - return utilizing.TryGetComponent(out ToolComponent? tool) && await tool.UseTool(user, Owner, 0.5f, Tool); + return utilizing.TryGetComponent(out ToolComponent? tool) && await tool.UseTool(user, Owner, 0.5f + attempt.Delay, Tool); } /// @@ -154,6 +154,13 @@ namespace Content.Server.GameObjects.Components public IEntity User { get; } public IEntity Tool { get; } + /// + /// Extra delay to add to the do_after. + /// Add to this, don't replace it. + /// Output parameter. + /// + public float Delay { get; set; } = 0f; + protected BaseAnchoredAttemptEvent(IEntity user, IEntity tool) { User = user;