fish-station/Content.Client/Vampire/VampireSystem.cs
Rinary b3aaa580ec
Vampire Faction + Status Icon (#589)
* hotfix

* biger mutations menu

* upd

* fix missing using

* fix

* fix hypnotise

* fix

* fix event

* upd

* fix hypnotise popup

* some popups, xd

* fix

* Vampire Faction,  Status Icon work

* upd
2024-11-01 07:20:18 +03:00

25 lines
No EOL
710 B
C#

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