mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* first pass * second pass * reorganize * make the icon better (subjective) * self review * review --------- Co-authored-by: iaada <iaada@users.noreply.github.com>
20 lines
721 B
C#
20 lines
721 B
C#
using Content.Shared.Examine;
|
|
using Content.Shared.IdentityManagement;
|
|
using Content.Shared.StatusEffectNew.Components;
|
|
|
|
namespace Content.Shared.StatusEffectNew;
|
|
|
|
/// <summary>
|
|
/// Handler for <see cref="ExaminableStatusEffectComponent"/>.
|
|
/// </summary>
|
|
public sealed partial class ExaminableStatusEffectSystem : EntitySystem
|
|
{
|
|
[SubscribeLocalEvent]
|
|
private void OnExaminedEvent(Entity<ExaminableStatusEffectComponent> ent, ref StatusEffectRelayedEvent<ExaminedEvent> args)
|
|
{
|
|
using (args.Args.PushGroup(nameof(ExaminableStatusEffectSystem)))
|
|
{
|
|
args.Args.PushMarkup(Loc.GetString(ent.Comp.MessageId, ("target", Identity.Entity(args.AppliedTo, EntityManager))));
|
|
}
|
|
}
|
|
}
|