Comment out invalid access tags (#5619)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.Access.Systems;
|
||||
using Content.Shared.Access;
|
||||
using Robust.Shared.Analyzers;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Access.Components
|
||||
@@ -16,7 +18,7 @@ namespace Content.Server.Access.Components
|
||||
{
|
||||
public override string Name => "Access";
|
||||
|
||||
[DataField("tags")]
|
||||
[DataField("tags", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<AccessLevelPrototype>))]
|
||||
[ViewVariables]
|
||||
public HashSet<string> Tags = new();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.Access;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Shared.Roles
|
||||
@@ -54,7 +56,7 @@ namespace Content.Shared.Roles
|
||||
[DataField("departments")]
|
||||
public IReadOnlyCollection<string> Departments { get; } = Array.Empty<string>();
|
||||
|
||||
[DataField("access")]
|
||||
[DataField("access", customTypeSerializer: typeof(PrototypeIdListSerializer<AccessLevelPrototype>))]
|
||||
public IReadOnlyCollection<string> Access { get; } = Array.Empty<string>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -312,23 +312,23 @@
|
||||
tags:
|
||||
- Maintenance
|
||||
- Cargo
|
||||
- Quartermaster
|
||||
# - Quartermaster
|
||||
- Engineering
|
||||
- ChiefEngineer
|
||||
# - ChiefEngineer
|
||||
- Medical
|
||||
- ChiefMedicalOfficer
|
||||
# - ChiefMedicalOfficer
|
||||
- Research
|
||||
- ResearchDirector
|
||||
# - ResearchDirector
|
||||
- Security
|
||||
- Service
|
||||
- Captain
|
||||
- Command
|
||||
- External
|
||||
- HeadOfSecurity
|
||||
#- HeadOfSecurity
|
||||
- HeadOfPersonnel
|
||||
- Bar
|
||||
- Hydroponics
|
||||
- Kitchen
|
||||
#- Hydroponics
|
||||
#- Kitchen
|
||||
- Janitor
|
||||
- Theatre
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
supervisors: "the head of personnel"
|
||||
access:
|
||||
- Cargo
|
||||
- Quartermaster
|
||||
# - Quartermaster
|
||||
- Maintenance
|
||||
|
||||
- type: startingGear
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
icon: "Chaplain"
|
||||
supervisors: "the head of personnel"
|
||||
access:
|
||||
- Chapel
|
||||
# - Chapel
|
||||
- Maintenance
|
||||
- type: startingGear
|
||||
id: ChaplainGear
|
||||
|
||||
@@ -19,11 +19,11 @@
|
||||
- HeadOfPersonnel
|
||||
- Command
|
||||
- Security
|
||||
- Brig
|
||||
# - Brig
|
||||
- Engineering
|
||||
- Medical
|
||||
- Cargo
|
||||
- ResearchDirector
|
||||
# - ResearchDirector
|
||||
- Research
|
||||
- Service
|
||||
- Maintenance
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
supervisors: "the head of security"
|
||||
access:
|
||||
- Command
|
||||
- Maintenence
|
||||
- Maintenance
|
||||
|
||||
- type: startingGear
|
||||
id: CentcomGear
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
canBeAntag: false
|
||||
access:
|
||||
- Command
|
||||
- Brig
|
||||
# - Brig
|
||||
- Security
|
||||
- Maintenance
|
||||
- Service
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
supervisors: "the head of security"
|
||||
access:
|
||||
- Security
|
||||
- Brig
|
||||
# - Brig
|
||||
- Maintenance
|
||||
- Service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user