Stun baton tweaks (#9225)

* Stun baton tweaks

* a

* sprotes
This commit is contained in:
metalgearsloth
2022-06-27 17:51:38 +10:00
committed by GitHub
parent 86f70994bf
commit c3a208234a
5 changed files with 74 additions and 49 deletions

View File

@@ -116,6 +116,11 @@ public sealed class UseDelaySystem : EntitySystem
cooldown.CooldownEnd = component.DelayEndTime;
}
public bool ActiveDelay(EntityUid uid, UseDelayComponent? component = null)
{
return Resolve(uid, ref component, false) && component.ActiveDelay;
}
public void Cancel(UseDelayComponent component)
{
component.CancellationTokenSource?.Cancel();