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>`;
|
</svg>`;
|
||||||
|
|
||||||
function getSmallTrophyIcon(icon: string, color: string, count: number): string {
|
function getSmallTrophyIcon(icon: string, color: string, count: number): string {
|
||||||
const leftXPosition = 4;
|
const leftXPosition = 7;
|
||||||
const rightXPosition = 71;
|
const rightXPosition = 68;
|
||||||
const getIcon = (x: number) => {
|
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">
|
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}
|
${icon}
|
||||||
|
|
|
||||||
|
|
@ -75,27 +75,27 @@ export class TotalStarTrophy extends Trophy {
|
||||||
new RankCondition(
|
new RankCondition(
|
||||||
RANK.SS,
|
RANK.SS,
|
||||||
"High Stargazer",
|
"High Stargazer",
|
||||||
(s) => s >= 1000,
|
(s) => s >= 700,
|
||||||
),
|
),
|
||||||
new RankCondition(
|
new RankCondition(
|
||||||
RANK.S,
|
RANK.S,
|
||||||
"Stargazer",
|
"Stargazer",
|
||||||
(s) => s >= 500,
|
(s) => s >= 200,
|
||||||
),
|
),
|
||||||
new RankCondition(
|
new RankCondition(
|
||||||
RANK.AAA,
|
RANK.AAA,
|
||||||
"Super Star",
|
"Super Star",
|
||||||
(s) => s >= 200,
|
(s) => s >= 100,
|
||||||
),
|
),
|
||||||
new RankCondition(
|
new RankCondition(
|
||||||
RANK.AA,
|
RANK.AA,
|
||||||
"High Star",
|
"High Star",
|
||||||
(s) => s >= 100,
|
(s) => s >= 50,
|
||||||
),
|
),
|
||||||
new RankCondition(
|
new RankCondition(
|
||||||
RANK.A,
|
RANK.A,
|
||||||
"You are Star",
|
"You are Star",
|
||||||
(s) => s >= 50,
|
(s) => s >= 30,
|
||||||
),
|
),
|
||||||
new RankCondition(
|
new RankCondition(
|
||||||
RANK.B,
|
RANK.B,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue