Skip to content

Commit

Permalink
Hiscore fix maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Apr 6, 2024
1 parent ddab2fa commit c75eac4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = {
Expand All @@ -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]),
Expand All @@ -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;
Expand Down

0 comments on commit c75eac4

Please sign in to comment.