Hide Jobs (#5832)
This commit is contained in:
parent
4ae0e91dbe
commit
a87507e822
|
|
@ -324,6 +324,8 @@ namespace Content.Client.Preferences.UI
|
|||
|
||||
foreach (var job in prototypeManager.EnumeratePrototypes<JobPrototype>().OrderBy(j => j.Name))
|
||||
{
|
||||
if(!job.SetPreference) { continue; }
|
||||
|
||||
foreach (var department in job.Departments)
|
||||
{
|
||||
if (!_jobCategories.TryGetValue(department, out var category))
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
- type: job
|
||||
id: CentralCommandOffical
|
||||
name: "centcom official"
|
||||
setPreference: false
|
||||
startingGear: CentcomGear
|
||||
departments:
|
||||
- Command
|
||||
|
|
|
|||
Loading…
Reference in New Issue