File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/main/java/com/cmc/mercury/domain/timer/service Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ public class TimerService {
2828 private final HabitHistoryRepository habitHistoryRepository ;
2929 private final MyPageService myPageService ;
3030
31- private static final int MIN_EXP_MINUTES = 5 ;
32- private static final int MAX_EXP_MINUTES = 25 ;
33- private static final int DAILY_EXP_LIMIT = 120 ;
31+ private static final int MAX_EXP_SECONDS = 1800 ;
32+ private static final int DAILY_EXP_LIMIT = 180 ;
3433
3534
3635 @ Transactional
@@ -80,11 +79,10 @@ public TimerListResponse getTimerList(User user) {
8079
8180 // 타이머 기록 시간에 따라 경험치 계산
8281 private int calculateExp (int seconds ) {
83- int minutes = seconds / 60 ;
82+ int exp = seconds / 10 ;
8483
85- if (minutes < MIN_EXP_MINUTES ) return 0 ;
86- if (minutes > MAX_EXP_MINUTES ) return 25 ;
87- return minutes ;
84+ if (exp > MAX_EXP_SECONDS ) return DAILY_EXP_LIMIT ;
85+ return exp ;
8886 }
8987
9088 // 오늘 획득한 총 경험치 계산
You can’t perform that action at this time.
0 commit comments