File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export default defineComponent({
98
98
isCompleted: false , // task not completed if a task is created
99
99
timesCompleted: 0 , // set default task times completed to 0
100
100
streak: 0 , // set default task streak to 0
101
- rank: 0 , // set default task rank to 0
101
+ rank: 1 , // set default task rank to 1
102
102
rankXp: 0 , // set default task rank XP to 0
103
103
rankProgress: 0 , // set default rank progress to 0
104
104
originalDueDate: currentLocalDate .toISOString ().split (" T" )[0 ], // set a default original task due date to today
@@ -127,7 +127,7 @@ export default defineComponent({
127
127
this .isCompleted = false ;
128
128
this .timesCompleted = 0 ;
129
129
this .streak = 0 ;
130
- this .rank = 0 ;
130
+ this .rank = 1 ;
131
131
this .rankXp = 0 ;
132
132
this .rankProgress = 0 ;
133
133
this .originalDueDate = currentLocalDate .toISOString ().split (" T" )[0 ];
Original file line number Diff line number Diff line change @@ -399,8 +399,9 @@ export default createStore({
399
399
Math . floor (
400
400
( dateMultiplier - 1 ) ** 2 *
401
401
100 *
402
- task . rank *
403
- Math . max ( task . streak , 1 ) ,
402
+ Math . max ( task . rank , 1 ) *
403
+ Math . max ( task . streak , 1 ) *
404
+ repeatMultiplier ,
404
405
) ,
405
406
1 ,
406
407
) ; //get at least 1 rank XP when the task is completed
You can’t perform that action at this time.
0 commit comments