diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 6e3f38cecb..7240cc8964 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -324,6 +324,8 @@ namespace Content.Client.Preferences.UI foreach (var job in prototypeManager.EnumeratePrototypes().OrderBy(j => j.Name)) { + if(!job.SetPreference) { continue; } + foreach (var department in job.Departments) { if (!_jobCategories.TryGetValue(department, out var category)) diff --git a/Content.Shared/Roles/JobPrototype.cs b/Content.Shared/Roles/JobPrototype.cs index d33b52a1dd..45e10237ee 100644 --- a/Content.Shared/Roles/JobPrototype.cs +++ b/Content.Shared/Roles/JobPrototype.cs @@ -35,6 +35,9 @@ namespace Content.Shared.Roles [DataField("requireAdminNotify")] public bool RequireAdminNotify { get; } = false; + [DataField("setPreference")] + public bool SetPreference { get; } = true; + [DataField("canBeAntag")] public bool CanBeAntag { get; } = true; diff --git a/Resources/Prototypes/Roles/Jobs/Command/centcom_official.yml b/Resources/Prototypes/Roles/Jobs/Command/centcom_official.yml index cba73dee3c..39c58e7d13 100644 --- a/Resources/Prototypes/Roles/Jobs/Command/centcom_official.yml +++ b/Resources/Prototypes/Roles/Jobs/Command/centcom_official.yml @@ -1,6 +1,7 @@ - type: job id: CentralCommandOffical name: "centcom official" + setPreference: false startingGear: CentcomGear departments: - Command