* multi exclusion! * quick correction * migrate all job: fields to jobs fields to avoid test fails. breaking change!!!
20 lines
660 B
C#
20 lines
660 B
C#
using Content.Server.Objectives.Systems;
|
|
using Content.Shared.Roles;
|
|
using Content.Shared.Roles.Jobs;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
/// <summary>
|
|
/// Requires that the player not have a certain job to have this objective.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(NotJobRequirementSystem))]
|
|
public sealed partial class NotJobRequirementComponent : Component
|
|
{
|
|
|
|
/// <summary>
|
|
/// List of job prototype IDs to ban from having this objective.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<ProtoId<JobPrototype>> Jobs = new List<ProtoId<JobPrototype>>();
|
|
}
|