Improves the JobSpecial system. (#4626)

* Improves the JobSpecial system.

* clean up code
This commit is contained in:
Vera Aguilera Puerto
2021-09-16 15:17:19 +02:00
committed by GitHub
parent 4fffb3c582
commit 078a62762f
11 changed files with 79 additions and 84 deletions

View File

@@ -50,8 +50,8 @@ namespace Content.Shared.Roles
[DataField("icon")] public string Icon { get; } = string.Empty;
[DataField("special")]
public JobSpecial? Special { get; private set; }
[DataField("special", serverOnly:true)]
public JobSpecial[] Special { get; private set; } = Array.Empty<JobSpecial>();
[DataField("departments")]
public IReadOnlyCollection<string> Departments { get; } = Array.Empty<string>();