RoleplayObjectiveSystem.cs 948 B

12345678910111213141516171819202122232425262728
  1. // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
  2. // SPDX-FileCopyrightText: 2025 Piras314 <p1r4s@proton.me>
  3. // SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
  4. //
  5. // SPDX-License-Identifier: AGPL-3.0-or-later
  6. using Content.Server._Shitmed.Objectives.Components;
  7. using Content.Shared.Mind;
  8. using Content.Shared.Objectives.Components;
  9. namespace Content.Server._Shitmed.Objectives.Systems;
  10. public sealed class RoleplayObjectiveSystem : EntitySystem
  11. {
  12. [Dependency] private readonly SharedMindSystem _mind = default!;
  13. public override void Initialize()
  14. {
  15. base.Initialize();
  16. SubscribeLocalEvent<RoleplayObjectiveComponent, ObjectiveGetProgressEvent>(OnRoleplayGetProgress);
  17. }
  18. private void OnRoleplayGetProgress(EntityUid uid, RoleplayObjectiveComponent comp, ref ObjectiveGetProgressEvent args)
  19. {
  20. args.Progress = 1f;
  21. }
  22. }