* 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
25 lines
No EOL
710 B
C#
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);
|
|
}
|
|
} |