Delta-v/Content.Server/Objectives/Components/PickRandomPersonComponent.cs

17 lines
505 B
C#

using Content.Server.Objectives.Systems;
namespace Content.Server.Objectives.Components;
/// <summary>
/// Sets the target for <see cref="TargetObjectiveComponent"/> to a random person.
/// </summary>
[RegisterComponent, Access(typeof(KillPersonConditionSystem))]
public sealed partial class PickRandomPersonComponent : Component
{
/// <summary>
/// DeltaV: If true a target must have a job with SetPreference set to true.
/// </summary>
[DataField]
public bool OnlyChoosableJobs;
}