Skip to content

Commit

Permalink
change cuffable system
Browse files Browse the repository at this point in the history
  • Loading branch information
pheenty committed Nov 2, 2024
1 parent 5ba2529 commit 8019140
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Shared/Cuffs/SharedCuffableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ public bool TryCuffing(EntityUid user, EntityUid target, EntityUid handcuff, Han

var cuffTime = handcuffComponent.CuffTime;

if (HasComp<StunnedComponent>(target))
cuffTime = MathF.Max(0.1f, cuffTime - handcuffComponent.StunBonus);

if (TryComp<CufferComponent>(user, out var cuffer)) // Stories - CuffingSpeed - start
{
if (cuffer.TimeModifier == null)
Expand All @@ -510,6 +507,9 @@ public bool TryCuffing(EntityUid user, EntityUid target, EntityUid handcuff, Han
cuffTime = cuffTime * (float)cuffer.TimeModifier;
} // Stories - CuffingSpeed - end

if (HasComp<StunnedComponent>(target))
cuffTime = MathF.Max(0.1f, cuffTime - handcuffComponent.StunBonus);

if (HasComp<DisarmProneComponent>(target))
cuffTime = 0.0f; // cuff them instantly.

Expand Down

0 comments on commit 8019140

Please sign in to comment.