using Content.Shared.Corvax.Events.Components; using Content.Shared.StatusIcon.Components; using Robust.Shared.Prototypes; namespace Content.Client.Corvax.Events { public sealed partial class ShowEventIconSystem : EntitySystem { [Dependency] private IPrototypeManager _prototype = default!; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(GetEventIcons); } private void GetEventIcons(Entity ent, ref GetStatusIconsEvent args) { var iconPrototype = _prototype.Index(ent.Comp.StatusIcon); args.StatusIcons.Add(iconPrototype); } } }