diff --git a/Content.Server/Strip/StrippableSystem.cs b/Content.Server/Strip/StrippableSystem.cs index 21a03e8e6f..b4727b77b4 100644 --- a/Content.Server/Strip/StrippableSystem.cs +++ b/Content.Server/Strip/StrippableSystem.cs @@ -38,6 +38,7 @@ namespace Content.Server.Strip base.Initialize(); SubscribeLocalEvent>(AddStripVerb); + SubscribeLocalEvent>(AddExamineVerb); SubscribeLocalEvent(OnDidEquip); SubscribeLocalEvent(OnDidUnequip); SubscribeLocalEvent(OnCompInit); @@ -239,6 +240,24 @@ namespace Content.Server.Strip bui.SetState(new StrippingBoundUserInterfaceState(inventory, hands, cuffs, ensnare)); } + private void AddExamineVerb(EntityUid uid, StrippableComponent component, GetVerbsEvent args) + { + if (args.Hands == null || !args.CanAccess || !args.CanInteract || args.Target == args.User) + return; + + if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor)) + 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); + } + private void AddStripVerb(EntityUid uid, StrippableComponent component, GetVerbsEvent args) { if (args.Hands == null || !args.CanAccess || !args.CanInteract || args.Target == args.User)