Skip to content

Commit

Permalink
Fix Infinite Ascent level scaling for bonus levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudonian committed Jan 5, 2025
1 parent 53eb7ea commit e1f0948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Calculate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,11 @@ export const calculateMaxRunes = (i: number) => {

export const calculateEffectiveIALevel = () => {
const bonus = PCoinUpgradeEffects.INSTANT_UNLOCK_2 ? 6 : 0
const totalRawLevel = player.runelevels[5] + bonus
return (
player.runelevels[5]
+ Math.max(0, player.runelevels[5] - 74)
+ Math.max(0, player.runelevels[5] - 98)
+ bonus
totalRawLevel
+ Math.max(0, totalRawLevel - 74)
+ Math.max(0, totalRawLevel - 98)
)
}

Expand Down

0 comments on commit e1f0948

Please sign in to comment.