Skip to content

Commit

Permalink
Merge pull request #255 from Modagbul/main
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu20 authored Feb 21, 2024
2 parents 0e6faf4 + 255606c commit 813df65
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 813df65

Please sign in to comment.