Skip to content

Commit

Permalink
fix: 팝콘 먼저 뺀 후 레벨업하게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjungL committed Jul 6, 2024
1 parent b51b1ed commit 1dc005d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ public LevelUpResult levelUp(PlatformMashongLevel goalLevel) {
return LevelUpResult.FAIL;
}

level = goalLevel;
accumulatedPopcorn -= level.getGoalPopcorn();
level = goalLevel;

return LevelUpResult.SUCCESS;
}

Expand Down

0 comments on commit 1dc005d

Please sign in to comment.