]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add popup message for activating trigger with hand (#24858)
authorKevin Zheng <kevinz5000@gmail.com>
Fri, 2 Feb 2024 08:00:06 +0000 (00:00 -0800)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2024 08:00:06 +0000 (19:00 +1100)
Content.Server/Explosion/EntitySystems/TriggerSystem.OnUse.cs
Resources/Locale/en-US/weapons/grenades/timer-trigger.ftl

index 373cd1a9956f14851f0f339c590e0c707f946ffb..786d29d94a96f7d0805a5abdef9a83897792565d 100644 (file)
@@ -171,6 +171,8 @@ public sealed partial class TriggerSystem
         if (args.Handled || HasComp<AutomatedTimerComponent>(uid) || component.UseVerbInstead)
             return;
 
+        _popupSystem.PopupEntity(Loc.GetString("trigger-activated", ("device", uid)), args.User, args.User);
+
         HandleTimerTrigger(
             uid,
             args.User,
index 77e2dd938d6e00c6ff3b4bdb9095e627ca9a2ae6..9a10e9ef044e6210639c1013ae7b6d624db03d72 100644 (file)
@@ -12,3 +12,5 @@ verb-start-detonation = Start detonation
 verb-toggle-start-on-stick = Toggle auto-activation
 popup-start-on-stick-off = The device will no longer activate automatically when planted
 popup-start-on-stick-on = The device will now activate automatically when planted
+
+trigger-activated = You activate {THE($device)}.