diff --git a/src/util/util.ts b/src/util/util.ts index fcb8fbe75..957c872e6 100644 --- a/src/util/util.ts +++ b/src/util/util.ts @@ -38,14 +38,14 @@ export function resolvePlayerFromHiscores(csvData: string, accountType: keyof ty accumulativeIndex += SKILLS.length + 2; - for (let i = 0; i < 4; i++) { + for (let i = 0; i < 5; i++) { resolvedPlayer.minigames[MINIGAMES[i]] = { rank: Number(data[i + accumulativeIndex][0]), score: Number(data[i + accumulativeIndex][1]), }; } - accumulativeIndex += 4; + accumulativeIndex += 5; for (let i = 0; i < CLUES.length; i++) { resolvedPlayer.clues[CLUES[i]] = { @@ -56,7 +56,7 @@ export function resolvePlayerFromHiscores(csvData: string, accountType: keyof ty accumulativeIndex += CLUES.length; - for (let i = 0; i < 4; i++) { + for (let i = 0; i < 5; i++) { const minigameKey = MINIGAMES[i + 4]; const minigameData = { rank: Number(data[i + accumulativeIndex][0]), @@ -65,7 +65,7 @@ export function resolvePlayerFromHiscores(csvData: string, accountType: keyof ty resolvedPlayer.minigames[minigameKey] = minigameData; } - accumulativeIndex += 4; + accumulativeIndex += 5; for (let i = 0; i < mappedBossNames.length; i++) { if (!data[i + accumulativeIndex]) continue;