Skip to content

Commit

Permalink
Refine performance modifier logic in AtBContract
Browse files Browse the repository at this point in the history
Adjusted performance modifier calculation to include tightened conditions for victory and defeat ratios. Modified the decrease and increase values to better reflect performance variability.
  • Loading branch information
IllianiCBT committed Nov 24, 2024
1 parent 125841b commit 0a8c48f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified MekHQ/docs/Stratcon and Against the Bot/MekHQ Morale.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions MekHQ/src/mekhq/campaign/mission/AtBContract.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,14 +566,14 @@ public void checkMorale(Campaign campaign, LocalDate today) {

int performanceModifier = 0;

if (victories > (defeats * 2)) {
performanceModifier -= 2;
if (victories >= (defeats * 2)) {
performanceModifier -= 4;
} else if (victories > defeats) {
performanceModifier--;
} else if (defeats > (victories * 2)) {
performanceModifier -= 2;
} else if (defeats >= (victories * 2)) {
performanceModifier += 4;
} else if (defeats > victories) {
performanceModifier += 2;
} else {
performanceModifier++;
}

targetNumber.addModifier(performanceModifier, "performanceModifier");
Expand Down

0 comments on commit 0a8c48f

Please sign in to comment.