You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/store/index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ export default createStore({
34
34
Number(newDate().setHours(23,59,59,999)))/
35
35
(1000*60*60*24);//calculate number of days until the task is due
36
36
constdateMultiplier: number=
37
-
daysToDue<0 ? -3/(daysToDue-1) : 1+1/(daysToDue+1);//if task is overdue, XP multiplier is less than 1 that decreases over time when task is overdue, else XP multiplier bonus increases (more than 1) when task gets closer to due date
37
+
daysToDue<0 ? -2/(daysToDue-1) : 1+1/(daysToDue+1);//if task is overdue, XP multiplier is less than 1 that decreases over time when task is overdue, else XP multiplier bonus increases (more than 1) when task gets closer to due date
38
38
letstreakMultiplier: number;//calculate task streak XP multiplier based on task streak, if task is completed before the due date then the streak increases else if the task is completed overdue (after the due date) reset task streak to 0
39
39
letrepeatMultiplier: number;//calculate task repetition XP multiplier based on task repetition occurrence and task repetition frequency
40
40
letdailyStreakMultiplier: number;//calculate daily streak XP multiplier based on daily streak
0 commit comments