From 80af0e2af415f9f15aca447ae32550ace5e09aac Mon Sep 17 00:00:00 2001 From: pheenty Date: Thu, 31 Oct 2024 04:05:32 +0700 Subject: [PATCH] thick-fingers --- Content.Shared/Cuffs/SharedCuffableSystem.cs | 6 +++++- .../Locale/ru-RU/cuffs/components/handcuff-component.ftl | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Cuffs/SharedCuffableSystem.cs b/Content.Shared/Cuffs/SharedCuffableSystem.cs index 090bae64de..7ead5b503b 100644 --- a/Content.Shared/Cuffs/SharedCuffableSystem.cs +++ b/Content.Shared/Cuffs/SharedCuffableSystem.cs @@ -504,7 +504,11 @@ public bool TryCuffing(EntityUid user, EntityUid target, EntityUid handcuff, Han if (TryComp(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 diff --git a/Resources/Locale/ru-RU/cuffs/components/handcuff-component.ftl b/Resources/Locale/ru-RU/cuffs/components/handcuff-component.ftl index 9dc0a949fe..8d679077ea 100644 --- a/Resources/Locale/ru-RU/cuffs/components/handcuff-component.ftl +++ b/Resources/Locale/ru-RU/cuffs/components/handcuff-component.ftl @@ -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 = Ваши пальцы слишком толстые, чтобы использовать наручники!