Fix trophy condition

This commit is contained in:
ryo-ma 2020-08-26 01:56:05 +09:00
parent f6347f3d95
commit 166c58bbbb
2 changed files with 7 additions and 7 deletions

View file

@ -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}

View file

@ -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,