diff --git a/src/icons.ts b/src/icons.ts index d5d587a..67e6a14 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -25,12 +25,25 @@ Created by potrace 1.15, written by Peter Selinger 2001-2017 ` +const plusIcon = ` + + + + +`; export function getTropyIcon(rank = RANK.UNKNOWN) { let color = "currentColor" let backgroundIcon = ""; - if (rank == RANK.S) { + let optionRankIcon = ""; + if (rank == RANK.SP) { color = goldColor; backgroundIcon = leafIcon; + optionRankIcon = plusIcon; + }else if (rank == RANK.S) { + color = goldColor; + backgroundIcon = leafIcon; + } else if (rank == RANK.AP) { + color = silverColor; + backgroundIcon = leafIcon; + optionRankIcon = plusIcon; } else if (rank == RANK.A) { color = silverColor; backgroundIcon = leafIcon; @@ -44,7 +57,8 @@ export function getTropyIcon(rank = RANK.UNKNOWN) { - - ${rank} + + ${optionRankIcon} + ${rank.replace("+", "")} `; } diff --git a/src/trophies.ts b/src/trophies.ts index c7523a5..52e6476 100644 --- a/src/trophies.ts +++ b/src/trophies.ts @@ -116,9 +116,15 @@ export class TotalIssueTrophy extends Trophy { } setRank() { this.bottomMessage = abridgeScore(this.score); - if (this.score >= 100) { + if(this.score >= 300) { + this.rank = RANK.SP; + this.topMessage = "Deep Issuer"; + } else if (this.score >= 100) { this.rank = RANK.S; this.topMessage = "Super Issuer"; + } else if (this.score >= 50) { + this.rank = RANK.AP; + this.topMessage = "Heavy Issuer"; } else if (this.score >= 20) { this.rank = RANK.A; this.topMessage = "High Issuer"; @@ -143,6 +149,9 @@ export class TotalPullRequestTrophy extends Trophy { if (this.score >= 100) { this.rank = RANK.S; this.topMessage = "God PR User"; + } else if (this.score >= 50) { + this.rank = RANK.AP; + this.topMessage = "Heavy PR User"; } else if (this.score >= 20) { this.rank = RANK.A; this.topMessage = "High PR User";