Skip to content

Commit

Permalink
Fix U21 matches not being recognised for xp calc
Browse files Browse the repository at this point in the history
The updated code in function getGameType wasn't catching U21 continental cup
matches. Adding the relevant icon names to the CONT_CUPS list fixes this.
  • Loading branch information
unnecessarydave committed Mar 24, 2024
1 parent 10158d1 commit 5af9630
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/information-aggregation/player-stats-experience.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ Foxtrick.modules.PlayerStatsExperience = {
'nt_cup_americas',
'nt_cup_africa',
'nt_cup_asia',
'nt_cup_europe_u21',
'nt_cup_americas_u21',
'nt_cup_africa_u21',
'nt_cup_asia_u21'
];
if (CONT_CUPS.includes(gameIcon)) {
// weeks 11-12 are KO
Expand Down

0 comments on commit 5af9630

Please sign in to comment.