Exemplo n.º 1
0
 //TODO: Actually shows all items/clothing/etc.
 private void HandleExamined(EntityUid uid, HandsComponent component, ExaminedEvent args)
 {
     foreach (var inhand in component.GetAllHeldItems())
     {
         args.Message.AddText($"\n{Loc.GetString("comp-hands-examine", ("user", component.Owner), ("item", inhand.Owner))}");
     }
 }
Exemplo n.º 2
0
        //TODO: Actually shows all items/clothing/etc.
        private void HandleExamined(EntityUid uid, HandsComponent component, ExaminedEvent args)
        {
            foreach (var inhand in component.GetAllHeldItems())
            {
                if (EntityManager.HasComponent <HandVirtualItemComponent>(inhand.Owner))
                {
                    continue;
                }

                args.PushText(Loc.GetString("comp-hands-examine", ("user", component.Owner), ("item", inhand.Owner)));
            }
        }