Remove IActionBlocker.CanMove (#4449)
* Remove IActionBlocker.CanMove Ported the remainders over to using MovementAttemptEvent which should also help make mob movement a bit faster. * Make that check faster
This commit is contained in:
@@ -14,8 +14,6 @@ namespace Content.Shared.Cuffs.Components
|
||||
{
|
||||
public override string Name => "Cuffable";
|
||||
|
||||
[ComponentDependency] private readonly SharedPullableComponent? _pullable = default!;
|
||||
|
||||
[ViewVariables]
|
||||
public bool CanStillInteract { get; set; } = true;
|
||||
|
||||
@@ -28,8 +26,6 @@ namespace Content.Shared.Cuffs.Components
|
||||
bool IActionBlocker.CanAttack() => CanStillInteract;
|
||||
bool IActionBlocker.CanEquip() => CanStillInteract;
|
||||
bool IActionBlocker.CanUnequip() => CanStillInteract;
|
||||
bool IActionBlocker.CanMove() => _pullable == null || !_pullable.BeingPulled || CanStillInteract;
|
||||
|
||||
#endregion
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
Reference in New Issue
Block a user