diff --git a/Content.Server/Strip/StrippableSystem.cs b/Content.Server/Strip/StrippableSystem.cs index ccf8e5a6c2..69e1d67ddf 100644 --- a/Content.Server/Strip/StrippableSystem.cs +++ b/Content.Server/Strip/StrippableSystem.cs @@ -37,6 +37,7 @@ namespace Content.Server.Strip base.Initialize(); SubscribeLocalEvent>(AddStripVerb); + SubscribeLocalEvent>(AddStripExamineVerb); // BUI SubscribeLocalEvent(OnStripButtonPressed); @@ -132,6 +133,25 @@ namespace Content.Server.Strip args.Verbs.Add(verb); } + private void AddStripExamineVerb(EntityUid uid, StrippableComponent component, GetVerbsEvent args) + { + if (args.Hands == null || !args.CanAccess || !args.CanInteract || args.Target == args.User) + return; + + if (!HasComp(args.User)) + return; + + ExamineVerb verb = new() + { + Text = Loc.GetString("strip-verb-get-data-text"), + IconTexture = "/Textures/Interface/VerbIcons/outfit.svg.192dpi.png", + Act = () => StartOpeningStripper(args.User, component, true), + Category = VerbCategory.Examine, + }; + + args.Verbs.Add(verb); + } + /// /// Places item in user's active hand to an inventory slot. ///