MultipleTraitorsRequirementComponent.cs 558 B

12345678910111213141516
  1. using Content.Server.Objectives.Systems;
  2. namespace Content.Server.Objectives.Components;
  3. /// <summary>
  4. /// Requires that there are a certain number of other traitors alive for this objective to be given.
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(MultipleTraitorsRequirementSystem))]
  7. public sealed partial class MultipleTraitorsRequirementComponent : Component
  8. {
  9. /// <summary>
  10. /// Number of traitors, excluding yourself, that have to exist.
  11. /// </summary>
  12. [DataField, ViewVariables(VVAccess.ReadWrite)]
  13. public int Traitors = 2;
  14. }