Skip to content

Commit

Permalink
Fixed a bug where the wrong quality color would show up in tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Kruhlmann committed May 5, 2019
1 parent c5952bc commit 8c2f78c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ export function get_large_icon_url(icon_name: string) {
*/
export function css_class_to_item_quality(class_name: string): ItemQuality {
switch (class_name) {
case "q1": return ItemQuality.POOR;
case "q2": return ItemQuality.COMMON;
case "q3": return ItemQuality.UNCOMMON;
case "q4": return ItemQuality.RARE;
case "q5": return ItemQuality.EPIC;
case "q6": return ItemQuality.LEGENDARY;
case "q7": return ItemQuality.ARTIFACT;
case "q8": return ItemQuality.BLIZZARD;
case "q0": return ItemQuality.POOR;
case "q1": return ItemQuality.COMMON;
case "q2": return ItemQuality.UNCOMMON;
case "q3": return ItemQuality.RARE;
case "q4": return ItemQuality.EPIC;
case "q5": return ItemQuality.LEGENDARY;
case "q6": return ItemQuality.ARTIFACT;
case "q7": return ItemQuality.BLIZZARD;
default: return ItemQuality.NOQUALITY;
}
}
Expand Down

0 comments on commit 8c2f78c

Please sign in to comment.