From d28af07fce7764bce34d0946fbad9fbf2ff6e899 Mon Sep 17 00:00:00 2001 From: zumorica Date: Mon, 30 Mar 2020 01:18:28 +0200 Subject: [PATCH] Ghost component implements IActionBlocker --- Content.Server/Observer/GhostComponent.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Content.Server/Observer/GhostComponent.cs b/Content.Server/Observer/GhostComponent.cs index d3ea271c52..029e7814ed 100644 --- a/Content.Server/Observer/GhostComponent.cs +++ b/Content.Server/Observer/GhostComponent.cs @@ -1,4 +1,5 @@ using System.Threading; +using Content.Server.GameObjects.EntitySystems; using Content.Server.Players; using Content.Shared.Observer; using Robust.Server.GameObjects; @@ -14,7 +15,7 @@ using Timer = Robust.Shared.Timers.Timer; namespace Content.Server.Observer { [RegisterComponent] - public class GhostComponent : SharedGhostComponent + public class GhostComponent : SharedGhostComponent, IActionBlocker { private bool _canReturnToBody = true; @@ -52,5 +53,14 @@ namespace Content.Server.Observer break; } } + + + public bool CanInteract() => false; + public bool CanUse() => false; + public bool CanThrow() => false; + public bool CanDrop() => false; + public bool CanPickup() => false; + public bool CanEmote() => false; + public bool CanAttack() => false; } }