Skip to content

Commit

Permalink
thick-fingers
Browse files Browse the repository at this point in the history
  • Loading branch information
pheenty committed Oct 30, 2024
1 parent da29c68 commit 80af0e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Content.Shared/Cuffs/SharedCuffableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,11 @@ public bool TryCuffing(EntityUid user, EntityUid target, EntityUid handcuff, Han

if (TryComp<CuffingSpeedComponent>(user, out var speed)) // Stories - CuffingSpeed - start
{
if (speed.Modifier == 0) return false;
if (speed.Modifier == 0)
{
_popup.PopupClient(Loc.GetString("handcuff-component-cannot-use-cuffs"), user, user);
return false;
}
cuffTime = cuffTime / speed.Modifier;
} // Stories - CuffingSpeed - end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ handcuff-component-cuff-interrupt-other-message = Вы помешали { $other
handcuff-component-cuff-interrupt-buckled-message = Вы не можете пристегнуться в наручниках!
handcuff-component-cuff-interrupt-unbuckled-message = Вы не можете отстегнуться в наручниках!
handcuff-component-cannot-drop-cuffs = Вы не можете надеть наручники на { $target }
handcuff-component-cannot-use-cuffs = Ваши пальцы слишком толстые, чтобы использовать наручники!

0 comments on commit 80af0e2

Please sign in to comment.