Skip to content

Commit

Permalink
Merge pull request MegaMek#4538 from IllianiCBT/autoAwards_supportPer…
Browse files Browse the repository at this point in the history
…sonOfTheYearBug

Fixed Support Score Calculation
  • Loading branch information
IllianiCBT authored Aug 2, 2024
2 parents 500adcc + 6d48cba commit 696a6cd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -3503,12 +3503,22 @@ public void processNewDayPersonnel() {
int score = 0;

if (p.getPrimaryRole().isSupport(true)) {
score = Compute.d6(p.getExperienceLevel(this, false));
int dice = p.getExperienceLevel(this, false);

if (dice > 0) {
score = Compute.d6(dice);
}

multiplier += 0.5;
}

if (p.getSecondaryRole().isSupport(true)) {
score += Compute.d6(p.getExperienceLevel(this, false));
int dice = p.getExperienceLevel(this, true);

if (dice > 0) {
score += Compute.d6(dice);
}

multiplier += 0.5;
} else if (p.getSecondaryRole().isNone()) {
multiplier += 0.5;
Expand Down

0 comments on commit 696a6cd

Please sign in to comment.