Skip to content

Commit

Permalink
Add abbreviation to classes API
Browse files Browse the repository at this point in the history
  • Loading branch information
KazWolfe committed Jan 16, 2023
1 parent 9d97173 commit 134bad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FFXIVPlugin/Server/Types/SerializableGameClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static List<SerializableGameClass> GetCache() {

[JsonProperty("id")] public int Id { get; set; }
[JsonProperty("name")] public string Name { get; set; }
[JsonProperty("abbreviation")] public string Abbreviation { get; set; }

[JsonProperty("categoryName")] public string CategoryName { get; set; }
[JsonProperty("sortOrder")] public int SortOrder { get; }
Expand All @@ -53,6 +54,7 @@ public SerializableGameClass(int id) {
}

this.Name = classJob.Name.ToString();
this.Abbreviation = classJob.Abbreviation.ToString();
this.CategoryName = (classJob.UIPriority / 10) switch {
// This is *really* hacky, but eh.
0 => AddonTextLoc.JobCategory_Tank,
Expand Down

0 comments on commit 134bad0

Please sign in to comment.