Delta-v/Content.Server/_DV/Objectives/Components/PickRandomTraitorComponent.cs

24 lines
742 B
C#

using Content.Server._DV.Objectives.Systems;
namespace Content.Server._DV.Objectives.Components;
/// <summary>
/// Sets the target for <see cref="TargetObjectiveComponent"/> to a random traitor who has enough reputation.
/// </summary>
[RegisterComponent, Access(typeof(PickRandomTraitorSystem))]
public sealed partial class PickRandomTraitorComponent : Component
{
/// <summary>
/// Minimum reputation to require, or 0 for no requirement.
/// </summary>
[DataField]
public int MinReputation;
/// <summary>
/// Minimum number of active contracts a traitor needs to have.
/// By necessity requires a traitor to have a PDA that isn't deleted.
/// </summary>
[DataField]
public int MinContracts;
}