20 lines
556 B
C#
20 lines
556 B
C#
using Content.Server._Harmony.Objectives.Components;
|
|
using Content.Shared.Objectives.Components;
|
|
|
|
namespace Content.Server._Harmony.Objectives.Systems;
|
|
|
|
public sealed class NoCompletionObjectiveSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<NoCompletionObjectiveComponent, ObjectiveGetProgressEvent>(OnGetProgress);
|
|
}
|
|
|
|
private void OnGetProgress(Entity<NoCompletionObjectiveComponent> entity, ref ObjectiveGetProgressEvent args)
|
|
{
|
|
args.Progress = 0f;
|
|
}
|
|
}
|