Skip to content

Commit ddc1c0b

Browse files
committed
Add rank multiplier for earned XP calculation
1 parent c35ce8a commit ddc1c0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/store/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,12 @@ export default createStore({
424424
repeatMultiplier *
425425
streakMultiplier *
426426
dailyStreakMultiplier *
427-
dayTasksMultiplier,
427+
dayTasksMultiplier *
428+
(1 + task.rank / 10),
428429
),
429430
1,
430431
); //get at least 1 XP when the task is completed
431-
state.user.xp += xpEarned; //get the amount of XP earned based on task difficulty, task priority, task due date, task repetition, task streak and daily streak multipliers
432+
state.user.xp += xpEarned; //get the amount of XP earned based on task difficulty, task priority, task due date, task repetition, task streak, daily streak and task rank multipliers
432433
const pointsEarned: number = Math.max(
433434
Math.floor(
434435
task.difficulty *

0 commit comments

Comments
 (0)