Files
wwdpublic/Content.Server/DeltaV/Objectives/Components/NotJobsRequirementComponent.cs
JJ 4996db833f Adds Psionic-related Antag Objectives. (#345)
* Adds Psionic-related Antag Objectives.

Look at them.

* Adds NotJobsRequirement, which should probably replace NotJob
2023-10-28 21:06:51 +02:00

17 lines
633 B
C#

using Content.Server.Objectives.Systems;
using Content.Shared.Roles;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
/// <summary>
/// Requires that the player not have a certain job to have this objective.
/// </summary>
[RegisterComponent, Access(typeof(NotJobsRequirementSystem))]
public sealed partial class NotJobsRequirementComponent : Component
{
/// <summary>
/// ID of the job to ban from having this objective.
/// </summary>
[DataField(required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<JobPrototype>))]
public List<string> Jobs = new();
}