From 03484d831ac5b04c992de4d2c83a6f5559992686 Mon Sep 17 00:00:00 2001 From: Mervill Date: Mon, 26 Sep 2022 12:42:49 -0700 Subject: [PATCH] User feedback for when you miss throwing something in disposals (#11426) * user feedback for when you miss throwing something in disposals * Update missed message Co-authored-by: theashtronaut <112137107+theashtronaut@users.noreply.github.com> * Update Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs Co-authored-by: Kara * missing nullable check Co-authored-by: theashtronaut <112137107+theashtronaut@users.noreply.github.com> Co-authored-by: Kara --- .../Disposal/Unit/EntitySystems/DisposalUnitSystem.cs | 2 ++ .../en-US/disposal/unit/components/disposal-unit-component.ftl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs b/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs index 40f3e6cac2..5533c5db87 100644 --- a/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs +++ b/Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs @@ -285,6 +285,8 @@ namespace Content.Server.Disposal.Unit.EntitySystems _robustRandom.NextDouble() > 0.75 || !component.Container.Insert(args.Thrown)) { + if (args.User.HasValue) + _popupSystem.PopupEntity(Loc.GetString("disposal-unit-thrown-missed"), args.Thrown, Filter.Pvs(args.User.Value)); return; } diff --git a/Resources/Locale/en-US/disposal/unit/components/disposal-unit-component.ftl b/Resources/Locale/en-US/disposal/unit/components/disposal-unit-component.ftl index 9f44c31f24..51cf695201 100644 --- a/Resources/Locale/en-US/disposal/unit/components/disposal-unit-component.ftl +++ b/Resources/Locale/en-US/disposal/unit/components/disposal-unit-component.ftl @@ -17,3 +17,6 @@ disposal-eject-verb-get-data-text = Eject contents ## No hands disposal-unit-no-hands = You don't have hands! + +## missed +disposal-unit-thrown-missed = Missed! \ No newline at end of file