Add popup for owner when inserting item in hand (#28032)

This commit is contained in:
lzk
2024-05-28 02:46:54 +02:00
committed by GitHub
parent a57b4ff520
commit 0a0c0f37a1
2 changed files with 5 additions and 1 deletions

View File

@@ -413,6 +413,9 @@ namespace Content.Server.Strip
var (time, stealth) = GetStripTimeModifiers(user, target, targetStrippable.HandStripDelay);
if (!stealth)
_popupSystem.PopupEntity(Loc.GetString("strippable-component-alert-owner-insert-hand", ("user", Identity.Entity(user, EntityManager)), ("item", user.Comp.ActiveHandEntity!.Value)), target, target, PopupType.Large);
var prefix = stealth ? "stealthily " : "";
_adminLogger.Add(LogType.Stripping, LogImpact.Low, $"{ToPrettyString(user):actor} is trying to {prefix}place the item {ToPrettyString(held):item} in {ToPrettyString(target):target}'s hands");