Skip to content

Commit a76a55a

Browse files
committed
Fix task rank progress calculation
1 parent 599beb8 commit a76a55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ export default createStore({
595595
task.rank = rankLevel; //set task rank level
596596
task.rankProgress =
597597
((task.rankXp / 100 - Math.pow(task.rank === 1 ? 0 : task.rank, 4)) /
598-
(Math.pow(task.rank + 1, 3) -
598+
(Math.pow(task.rank + 1, 4) -
599599
Math.pow(task.rank === 1 ? 0 : task.rank, 4))) *
600600
100; //calculate rank level progress and if level is 1 set rank level at the start of level 1 to 0 XP
601601
const xpEarned: number = Math.max(

0 commit comments

Comments
 (0)