mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-09-15 23:02:22 +02:00
* 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>
27 lines
836 B
C#
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();
|
|
}
|