Fix remnants of IAfterAttack
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Content.Server.GameObjects.Components
|
||||
public bool InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
{
|
||||
if (!Owner.TryGetComponent(out PhysicsComponent physics)
|
||||
|| !eventArgs.AttackWith.TryGetComponent(out ToolComponent tool))
|
||||
|| !eventArgs.Using.TryGetComponent(out ToolComponent tool))
|
||||
return false;
|
||||
|
||||
if (!tool.UseTool(eventArgs.User, Owner, ToolQuality.Anchoring))
|
||||
|
||||
@@ -202,7 +202,7 @@ namespace Content.Server.GameObjects.Components.Doors
|
||||
|
||||
public bool InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
{
|
||||
if (!eventArgs.AttackWith.TryGetComponent<ToolComponent>(out var tool))
|
||||
if (!eventArgs.Using.TryGetComponent<ToolComponent>(out var tool))
|
||||
return false;
|
||||
|
||||
if (!tool.UseTool(eventArgs.User, Owner, ToolQuality.Prying)) return false;
|
||||
|
||||
@@ -13,7 +13,7 @@ using Robust.Shared.Serialization;
|
||||
namespace Content.Server.GameObjects.Components.Interactable
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class TilePryingComponent : Component, IAfterAttack
|
||||
public class TilePryingComponent : Component, IAfterInteract
|
||||
{
|
||||
#pragma warning disable 649
|
||||
[Dependency] private IEntitySystemManager _entitySystemManager;
|
||||
@@ -26,7 +26,7 @@ namespace Content.Server.GameObjects.Components.Interactable
|
||||
public override string Name => "TilePrying";
|
||||
private bool _toolComponentNeeded = true;
|
||||
|
||||
public void AfterAttack(AfterAttackEventArgs eventArgs)
|
||||
public void AfterInteract(AfterInteractEventArgs eventArgs)
|
||||
{
|
||||
TryPryTile(eventArgs.User, eventArgs.ClickLocation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user