add some achievements
This commit is contained in:
parent
9d367882fb
commit
2b377a3dc5
5 changed files with 56 additions and 6 deletions
|
@ -346,10 +346,11 @@ import { claimAchievement, claimedAchievements } from './scripts/achievements';
|
|||
});
|
||||
}
|
||||
|
||||
const now = new Date();
|
||||
const m = now.getMonth() + 1;
|
||||
const d = now.getDate();
|
||||
|
||||
if ($i.birthday) {
|
||||
const now = new Date();
|
||||
const m = now.getMonth() + 1;
|
||||
const d = now.getDate();
|
||||
const bm = parseInt($i.birthday.split('-')[1]);
|
||||
const bd = parseInt($i.birthday.split('-')[2]);
|
||||
if (m === bm && d === bd) {
|
||||
|
@ -357,6 +358,10 @@ import { claimAchievement, claimedAchievements } from './scripts/achievements';
|
|||
}
|
||||
}
|
||||
|
||||
if (m === 1 && d === 1) {
|
||||
claimAchievement('loggedInOnNewYearsDay');
|
||||
}
|
||||
|
||||
if ($i.loggedInDays >= 3) claimAchievement('login3');
|
||||
if ($i.loggedInDays >= 7) claimAchievement('login7');
|
||||
if ($i.loggedInDays >= 15) claimAchievement('login15');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue