Skip to content

Commit 4aab202

Browse files
committed
Another nicety :)
1 parent d0258ea commit 4aab202

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/card.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,16 @@ export class Card {
4646
const isAllSRank =
4747
trophyList.every((trophy) => trophy.rank.slice(0, 1) == RANK.S) ? 1 : 0;
4848

49-
// ? Configure these to choose which secret trophies you want automatically.
49+
// Configure these to choose which secret trophies you want automatically.
5050
let wantAllSuperRank = true;
51-
let wantMultipleLang = true;
5251
let wantLongTimeAccount = false;
5352
let wantAncientAccount = false;
5453
let wantJoined2020 = false;
5554

5655
if (wantAllSuperRank) { trophyList.push(new AllSuperRankTrophy(1)); }
5756
else { trophyList.push(new AllSuperRankTrophy(isAllSRank)); }
58-
if (wantMultipleLang) { trophyList.push(new MultipleLangTrophy(10)); }
59-
else { trophyList.push(new MultipleLangTrophy(userInfo.languageCount)); }
57+
// ? There is no if statement for multiple lang here, check out trophies.ts
58+
trophyList.push(new MultipleLangTrophy(userInfo.languageCount));
6059
if (wantLongTimeAccount) { trophyList.push(new LongTimeAccountTrophy(10)); }
6160
else { new LongTimeAccountTrophy(userInfo.durationYear); }
6261
if (wantAncientAccount) { trophyList.push(new AncientAccountTrophy(1)); }

src/trophies.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,16 @@ export class Trophy {
102102

103103
export class MultipleLangTrophy extends Trophy{
104104
constructor(score: number){
105+
// Change wantMultipleLang to false to stop the trophy from showing automatically
106+
let wantMultipleLang = true;
107+
// Or, if you want, you could chang minLang, but why would you do that
108+
let minLang = 10;
109+
if (wantMultipleLang) { minLang = 0; }
105110
const rankConditions = [
106111
new RankCondition(
107112
RANK.SECRET,
108113
"Rainbow Lang User",
109-
10,
114+
minLang,
110115
),
111116
];
112117
super(score, rankConditions);

0 commit comments

Comments
 (0)