This commit is contained in:
Pancake
2021-12-19 07:36:16 -08:00
committed by GitHub
parent 4ae0e91dbe
commit a87507e822
3 changed files with 6 additions and 0 deletions

View File

@@ -324,6 +324,8 @@ namespace Content.Client.Preferences.UI
foreach (var job in prototypeManager.EnumeratePrototypes<JobPrototype>().OrderBy(j => j.Name)) foreach (var job in prototypeManager.EnumeratePrototypes<JobPrototype>().OrderBy(j => j.Name))
{ {
if(!job.SetPreference) { continue; }
foreach (var department in job.Departments) foreach (var department in job.Departments)
{ {
if (!_jobCategories.TryGetValue(department, out var category)) if (!_jobCategories.TryGetValue(department, out var category))

View File

@@ -35,6 +35,9 @@ namespace Content.Shared.Roles
[DataField("requireAdminNotify")] [DataField("requireAdminNotify")]
public bool RequireAdminNotify { get; } = false; public bool RequireAdminNotify { get; } = false;
[DataField("setPreference")]
public bool SetPreference { get; } = true;
[DataField("canBeAntag")] [DataField("canBeAntag")]
public bool CanBeAntag { get; } = true; public bool CanBeAntag { get; } = true;

View File

@@ -1,6 +1,7 @@
- type: job - type: job
id: CentralCommandOffical id: CentralCommandOffical
name: "centcom official" name: "centcom official"
setPreference: false
startingGear: CentcomGear startingGear: CentcomGear
departments: departments:
- Command - Command