Skip to content

Commit

Permalink
Update GameResultService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Duyguoe committed Jun 4, 2024
1 parent e11c4a1 commit 0b9d19a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ private int calculateResultScore(final Boolean isCompleted) {
*/
private int calculateRewards(final int resultScore) {
if (resultScore == 100 && flagFirstTimeFinished == 0) {
flagFirstTimeFinished += 1;
flagFirstTimeFinished++;
return 10;
} else if (resultScore == 100 && flagFirstTimeFinished == 1) {
flagFirstTimeFinished += 1;
flagFirstTimeFinished++;
return 5;
} else if (resultScore == 100 && flagFirstTimeFinished == 2) {
return 2;
} else {
return 0;
}

return 0;
}
}

0 comments on commit 0b9d19a

Please sign in to comment.