From c75eac4b7616a9a4053f623ed00d1542c94cb104 Mon Sep 17 00:00:00 2001 From: TastyPumPum Date: Sat, 6 Apr 2024 19:12:01 +0100 Subject: [PATCH] Hiscore fix maybe --- src/util/util.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;