1
0

IsDeadICSystem.cs 569 B

123456789101112131415161718192021
  1. using Content.Shared.Mind.Components;
  2. namespace Content.Shared.Mind;
  3. /// <summary>
  4. /// This marks any entity with the component as dead
  5. /// for stuff like objectives & round-end
  6. /// used for nymphs & reformed diona.
  7. /// </summary>
  8. public sealed class IsDeadICSystem : EntitySystem
  9. {
  10. public override void Initialize()
  11. {
  12. SubscribeLocalEvent<IsDeadICComponent, GetCharactedDeadIcEvent>(OnGetDeadIC);
  13. }
  14. private void OnGetDeadIC(EntityUid uid, IsDeadICComponent component, ref GetCharactedDeadIcEvent args)
  15. {
  16. args.Dead = true;
  17. }
  18. }