Skip to content

Commit

Permalink
fix : 모든 score 값 100 넘지 않도록
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Apr 17, 2024
1 parent f707f7e commit 66dc5b7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ public TeamScoreRes getTeamScoreInfo(Long teamId) {
Long level = teamScore.getLevel();
Long score = teamScore.getScore();

// 70 레벨 이상은 경험치 120 되어야 레벨업 가능. level을 각 레벨 별 필요한 경험치 수에 따르 퍼센트로 계산
if (level > 70) {
score = ( score / 120 ) * 100;
}

return TeamScoreRes.builder()
.score(score)
.score(score%100)
.level(level)
.build();

Expand Down

0 comments on commit 66dc5b7

Please sign in to comment.