mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
* Cleanup datafields with matching autogenerated tag [RA0027] * Remove unused dependencies [CS0414] * Swap to AddMarkupOrThrow over PushMarkup [CS0618] * Fix namespacing [CA1050] * Prefer the generic overload [CA2263] * Fix exception throwing [CA2208] * Mark RoundStartCaptain as static [CA1822] * Don't use string literal [RA0033] * Remove un-needed null check [CS8073] * Explicitly set webhookData to null [CS0649] * Use protoId over bare string * Prefer HasComp over TryComp with no usage of the actual comp
19 lines
690 B
C#
19 lines
690 B
C#
using Content.Server._DV.Objectives.Systems;
|
|
using Content.Shared.Roles;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Server._DV.Objectives.Components;
|
|
|
|
/// <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();
|
|
}
|