mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Fix trophy condition
This commit is contained in:
parent
f6347f3d95
commit
166c58bbbb
2 changed files with 7 additions and 7 deletions
|
|
@ -28,8 +28,8 @@ Created by potrace 1.15, written by Peter Selinger 2001-2017
|
|||
</svg>`;
|
||||
|
||||
function getSmallTrophyIcon(icon: string, color: string, count: number): string {
|
||||
const leftXPosition = 4;
|
||||
const rightXPosition = 71;
|
||||
const leftXPosition = 7;
|
||||
const rightXPosition = 68;
|
||||
const getIcon = (x: number) => {
|
||||
return `<svg x="${x}" y="35" width="65" height="65" viewBox="0 0 30 30" class="bi bi-trophy" fill="${color}" xmlns="http://www.w3.org/2000/svg">
|
||||
${icon}
|
||||
|
|
|
|||
|
|
@ -75,27 +75,27 @@ export class TotalStarTrophy extends Trophy {
|
|||
new RankCondition(
|
||||
RANK.SS,
|
||||
"High Stargazer",
|
||||
(s) => s >= 1000,
|
||||
(s) => s >= 700,
|
||||
),
|
||||
new RankCondition(
|
||||
RANK.S,
|
||||
"Stargazer",
|
||||
(s) => s >= 500,
|
||||
(s) => s >= 200,
|
||||
),
|
||||
new RankCondition(
|
||||
RANK.AAA,
|
||||
"Super Star",
|
||||
(s) => s >= 200,
|
||||
(s) => s >= 100,
|
||||
),
|
||||
new RankCondition(
|
||||
RANK.AA,
|
||||
"High Star",
|
||||
(s) => s >= 100,
|
||||
(s) => s >= 50,
|
||||
),
|
||||
new RankCondition(
|
||||
RANK.A,
|
||||
"You are Star",
|
||||
(s) => s >= 50,
|
||||
(s) => s >= 30,
|
||||
),
|
||||
new RankCondition(
|
||||
RANK.B,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue