Files
ss14-wl/Content.Server/Objectives/Components/PickRandomPersonComponent.cs
6f83236c1d KILL THE AI [New Traitor Objective] (#43462)
* KILL THE AI

* cleanup and review

* fix :(

* Make it about as common as "KillRandomHead"

* me when I forget to fucking push

* remove AI dependency

* move to AI system

* whtiespace

* asfsaf

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2026-04-06 22:08:35 +00:00

27 lines
836 B
C#

using Content.Server.Objectives.Systems;
using Content.Shared.Mind.Filters;
namespace Content.Server.Objectives.Components;
/// <summary>
/// Sets the target for <see cref="TargetObjectiveComponent"/> to a random person from a pool and filters.
/// </summary>
/// <remarks>
/// Don't copy paste this for a new objective, if you need a new filter just make a new filter and set it in YAML.
/// </remarks>
[RegisterComponent, Access(typeof(PickObjectiveTargetSystem))]
public sealed partial class PickRandomPersonComponent : Component
{
/// <summary>
/// A pool to pick potential targets from.
/// </summary>
[DataField]
public MindPool Pool = new AliveHumansPool();
/// <summary>
/// Filters to apply to <see cref="Pool"/>.
/// </summary>
[DataField]
public List<MindFilter> Filters = new();
}