Skip to content

Commit

Permalink
Apply mvn formatting to MercyRule min changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Roach committed Aug 26, 2022
1 parent 585b604 commit f1ce1c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/tc/oc/pgm/score/MercyRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public class MercyRule {
private Map.Entry<Competitor, Double> leader;
private Map.Entry<Competitor, Double> trailer;

public MercyRule(ScoreMatchModule scoreMatchModule, int scoreLimit, int mercyLimit, int mercyLimitMin) {
public MercyRule(
ScoreMatchModule scoreMatchModule, int scoreLimit, int mercyLimit, int mercyLimitMin) {
this.scoreMatchModule = scoreMatchModule;
this.scoreLimit = scoreLimit;
this.mercyLimit = mercyLimit;
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/tc/oc/pgm/score/ScoreMatchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public ScoreMatchModule(Match match, ScoreConfig config, Set<ScoreBox> scoreBoxe
this.match.getCompetitors().forEach(competitor -> this.scores.put(competitor, 0.0));

if (this.config.mercyLimit > 0) {
this.mercyRule = new MercyRule(this, config.scoreLimit, config.mercyLimit, config.mercyLimitMin);
this.mercyRule =
new MercyRule(this, config.scoreLimit, config.mercyLimit, config.mercyLimitMin);
}
}

Expand Down

0 comments on commit f1ce1c7

Please sign in to comment.