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({
9898 isCompleted: false , // task not completed if a task is created
9999 timesCompleted: 0 , // set default task times completed to 0
100100 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
102102 rankXp: 0 , // set default task rank XP to 0
103103 rankProgress: 0 , // set default rank progress to 0
104104 originalDueDate: currentLocalDate .toISOString ().split (" T" )[0 ], // set a default original task due date to today
@@ -127,7 +127,7 @@ export default defineComponent({
127127 this .isCompleted = false ;
128128 this .timesCompleted = 0 ;
129129 this .streak = 0 ;
130- this .rank = 0 ;
130+ this .rank = 1 ;
131131 this .rankXp = 0 ;
132132 this .rankProgress = 0 ;
133133 this .originalDueDate = currentLocalDate .toISOString ().split (" T" )[0 ];
Original file line number Diff line number Diff line change @@ -399,8 +399,9 @@ export default createStore({
399399 Math . floor (
400400 ( dateMultiplier - 1 ) ** 2 *
401401 100 *
402- task . rank *
403- Math . max ( task . streak , 1 ) ,
402+ Math . max ( task . rank , 1 ) *
403+ Math . max ( task . streak , 1 ) *
404+ repeatMultiplier ,
404405 ) ,
405406 1 ,
406407 ) ; //get at least 1 rank XP when the task is completed
You can’t perform that action at this time.
0 commit comments