Skip to content

Commit

Permalink
fix(player-info): fix combat level calc mistake (swapped prayer and r…
Browse files Browse the repository at this point in the history
…anged)
  • Loading branch information
FreekMencke committed Jan 12, 2024
1 parent 352f059 commit 08efffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda/osrs-tracker_player-info/src/utils/player.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ function getCombatLevel(sourceString: string): number {
const defence = Math.max(1, parseInt(hiscoreLines[2].split(',')[1]));
const strength = Math.max(1, parseInt(hiscoreLines[3].split(',')[1]));
const hitpoints = Math.max(1, parseInt(hiscoreLines[4].split(',')[1]));
const ranged = Math.max(1, parseInt(hiscoreLines[6].split(',')[1]));
const prayer = Math.max(1, parseInt(hiscoreLines[5].split(',')[1]));
const ranged = Math.max(1, parseInt(hiscoreLines[5].split(',')[1]));
const prayer = Math.max(1, parseInt(hiscoreLines[6].split(',')[1]));
const magic = Math.max(1, parseInt(hiscoreLines[7].split(',')[1]));

const base = 0.25 * (defence + hitpoints + Math.floor(prayer / 2));
Expand Down

0 comments on commit 08efffc

Please sign in to comment.