Skip to content

Commit

Permalink
Merge pull request #254 from Modagbul/MNG-18
Browse files Browse the repository at this point in the history
MNG-18 fix : 목표보드 레벨과 미션보드 레벨이 다른 버그 수정
  • Loading branch information
seungueonn authored Feb 20, 2024
2 parents 72eff9b + 03ed130 commit 255606c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void deleteTeamMember(){
numOfMember--;
}

public void updateLevelOfFire() {
levelOfFire++;
public void updateLevelOfFire(Integer level) {
this.levelOfFire = level;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ public void updateLevel(ScoreStatus sign) {
final int[] steps = {1, 2, 26, 46, 71, 121};

this.level += sign.getValue();
this.team.updateLevelOfFire(this.level.intValue());

for (int i = 5; i > 0; i--) {
if (steps[i-1] <= this.level && this.level <= steps[i]) {
if ((40 + ((i-1) * 20)) <= score || score < 0) {
this.score -= sign.getValue() * (40 + ((i-1) * 20));
this.team.updateLevelOfFire();
return;
}
}
Expand Down

0 comments on commit 255606c

Please sign in to comment.