using Content.Shared.Inventory; namespace Content.Shared.Contraband; public sealed partial class ShowContrabandSystem : EntitySystem { public override void Initialize() { base.Initialize(); Subs.SubscribeWithRelay(OnGetContrabandDetails); } private void OnGetContrabandDetails(Entity ent, ref GetContrabandDetailsEvent args) { args.CanShowContraband = true; } } /// /// Raised on an entity and its inventory to determine if it can see contraband information in the examination window. /// [ByRefEvent] public record struct GetContrabandDetailsEvent(bool CanShowContraband = false) : IInventoryRelayEvent { SlotFlags IInventoryRelayEvent.TargetSlots => SlotFlags.EYES; }