Files
Delta-v/Content.Server/Objectives/Components/PickRandomPersonComponent.cs
T
deltanedasanddeltanedas 60e72de6e6 kill objectives only target people with jobs (#2799)
* implement OnlyChoosableJobs for PickRandomPerson

* add onlyChoosableJobs to kill and teach lesson objectives

* fix the port

* :trollface:

* what

* :trollface:

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-02-06 13:22:55 +00:00

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;
}