This commit is contained in:
Clyybber
2020-05-23 17:23:25 +02:00
committed by GitHub
parent 05b910d9db
commit 1ad9a10050
40 changed files with 200 additions and 199 deletions

View File

@@ -20,7 +20,7 @@ namespace Content.Server.GameObjects.Components.Doors
[RegisterComponent]
[ComponentReference(typeof(IActivate))]
[ComponentReference(typeof(ServerDoorComponent))]
public class AirlockComponent : ServerDoorComponent, IWires, IAttackBy
public class AirlockComponent : ServerDoorComponent, IWires, IInteractUsing
{
public override string Name => "Airlock";
@@ -199,9 +199,9 @@ namespace Content.Server.GameObjects.Components.Doors
return _powerDevice.Powered;
}
public bool AttackBy(AttackByEventArgs eventArgs)
public bool InteractUsing(InteractUsingEventArgs eventArgs)
{
if (eventArgs.AttackWith.HasComponent<CrowbarComponent>())
if (eventArgs.Using.HasComponent<CrowbarComponent>())
{
if (IsPowered())
{