From e06c4770772eb9d91b5def92fcef9d841d6c80e5 Mon Sep 17 00:00:00 2001 From: FaDeOkno Date: Thu, 8 Aug 2024 09:27:47 +0400 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B1=D1=8B=D0=BB=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Shared/ADT/Quirks/EntitySystems/SharedQuirksSystem.cs | 4 ++-- Resources/Locale/ru-RU/ADT/Interaction/fast-hide-popups.ftl | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 Resources/Locale/ru-RU/ADT/Interaction/fast-hide-popups.ftl diff --git a/Content.Shared/ADT/Quirks/EntitySystems/SharedQuirksSystem.cs b/Content.Shared/ADT/Quirks/EntitySystems/SharedQuirksSystem.cs index eeac04ec23..3b17ab3e4b 100644 --- a/Content.Shared/ADT/Quirks/EntitySystems/SharedQuirksSystem.cs +++ b/Content.Shared/ADT/Quirks/EntitySystems/SharedQuirksSystem.cs @@ -18,8 +18,6 @@ public abstract class SharedQuirksSystem : EntitySystem { [Dependency] private readonly SharedEntityStorageSystem _storage = default!; [Dependency] protected readonly IRobustRandom _random = default!; - [Dependency] private readonly IPrototypeManager _proto = default!; - [Dependency] private readonly INetManager _netMan = default!; [Dependency] private readonly MovementSpeedModifierSystem _movementSpeed = default!; [Dependency] private readonly SharedPopupSystem _popup = default!; [Dependency] private readonly TagSystem _tag = default!; @@ -62,7 +60,9 @@ public override void Initialize() public void TryHide(EntityUid uid, EntityUid closet) { if (_storage.Insert(uid, closet)) + { _popup.PopupClient(Loc.GetString("quirk-fast-locker-hide-success"), uid); + } else _popup.PopupCursor(Loc.GetString("quirk-fast-locker-hide-fail"), uid); } diff --git a/Resources/Locale/ru-RU/ADT/Interaction/fast-hide-popups.ftl b/Resources/Locale/ru-RU/ADT/Interaction/fast-hide-popups.ftl new file mode 100644 index 0000000000..01b7f99125 --- /dev/null +++ b/Resources/Locale/ru-RU/ADT/Interaction/fast-hide-popups.ftl @@ -0,0 +1,3 @@ +quirk-fast-locker-hide-success = Вы успешно спрятались. +quirk-fast-locker-hide-fail = Вы не можете забраться сюда. +quirk-fast-locker-hide-verb = Спрятаться