Skip to content

Commit

Permalink
Add chronicled wish banner
Browse files Browse the repository at this point in the history
  • Loading branch information
MadeBaruna committed Mar 13, 2024
1 parent 7cbdb83 commit dff4022
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
67 changes: 66 additions & 1 deletion src/data/banners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,72 @@ export const banners: { [key: number]: Banner } = {
end: '2024-04-02 17:59:00',
color: '#ffb169',
featured: ['uraku_misugiri', 'redhorn_stonethresher'],
featuredRare: ['the_alley_flash', 'alley_hunter', 'the_bell', 'dragons_bane', 'favonius_codex'],
featuredRare: ['the_alley_flash', 'alley_hunter', 'the_`bell`', 'dragons_bane', 'favonius_codex'],
timezoneDependent: true,
},

500001: {
name: 'Ode to the Dawn Breeze',
image: 61,
shortName: 'Mondstadt',
start: '2024-03-13 06:00:00',
end: '2024-04-02 17:59:00',
color: '#eee8e1',
featured: [
'eula',
'mona',
'albedo',
'klee',
'diluc',
'jean',
'skyward_blade',
'aquila_favonia',
'beacon_of_the_reed_sea',
'song_of_broken_pines',
'wolfs_gravestone',
'skyward_pride',
'skyward_spine',
'lost_prayer_to_the_sacred_winds',
'skyward_atlas',
'hunters_path',
'skyward_harp',
],
featuredRare: [
'mika',
'rosaria',
'sucrose',
'diona',
'noelle',
'bennett',
'fischl',
'amber',
'razor',
'kaeya',
'barbara',
'lisa',
'the_alley_flash',
'lions_roar',
'sacrificial_sword',
'the_flute',
'favonius_sword',
'rainslasher',
'sacrificial_greatsword',
'the_bell',
'favonius_greatsword',
'favonius_lance',
'dragons_bane',
'wine_and_song',
'eye_of_perception',
'sacrificial_fragments',
'the_widsith',
'favonius_codex',
'mitternachts_waltz',
'alley_hunter',
'rust',
'sacrificial_bow',
'the_stringless',
'favonius_warbow',
],
timezoneDependent: true,
},
};
3 changes: 3 additions & 0 deletions src/queue/tally.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ async function calculateWishTally(job: Job<number>): Promise<void> {

const LATEST_CHARACTER_BANNER = 300062;
const LATEST_WEAPON_BANNER = 400061;
const LATEST_CHRONICLED_BANNER = 500001;
const TOTAL_BANNER = LATEST_CHARACTER_BANNER - 300009;

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand All @@ -316,13 +317,15 @@ async function checkWishTally(job: Job<number>): Promise<void> {
void queue.add('wish-tally-calculate', LATEST_CHARACTER_BANNER - i);
void queue.add('wish-tally-calculate', LATEST_WEAPON_BANNER - i);
}
void queue.add('wish-tally-calculate', LATEST_CHRONICLED_BANNER);
}

void queue.process('wish-tally-check', 0, checkWishTally);
void queue.process('wish-tally-calculate', 1, calculateWishTally);

void queue.add('wish-tally-calculate', LATEST_CHARACTER_BANNER);
void queue.add('wish-tally-calculate', LATEST_WEAPON_BANNER);
void queue.add('wish-tally-calculate', LATEST_CHRONICLED_BANNER);
for (let i = 0; i <= TOTAL_BANNER; i++) {
void queue.add('wish-tally-calculate', LATEST_CHARACTER_BANNER - i);
void queue.add('wish-tally-calculate', LATEST_WEAPON_BANNER - i);
Expand Down

0 comments on commit dff4022

Please sign in to comment.