Skip to content

Commit

Permalink
Remove Clan Overconfidence modifier from AtB contracts
Browse files Browse the repository at this point in the history
The Clan Overconfidence modifier logic was removed from AtBContract.java, simplifying morale calculations. This change eliminates unused or unnecessary functionality to streamline the codebase and logging details. No other functionality was affected.
  • Loading branch information
IllianiCBT committed Jan 6, 2025
1 parent ea33133 commit 4f596a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Binary file modified MekHQ/docs/Stratcon and Against the Bot/MekHQ Morale.pdf
Binary file not shown.
13 changes: 0 additions & 13 deletions MekHQ/src/mekhq/campaign/mission/AtBContract.java
Original file line number Diff line number Diff line change
Expand Up @@ -478,19 +478,6 @@ public void checkMorale(Campaign campaign, LocalDate today) {
logger.info(String.format("Current Morale: %s (%s)",
getMoraleLevel().toString(), getMoraleLevel().ordinal()));

// Clan Overconfidence Modifier:
final LocalDate THE_GREAT_REFUSAL = LocalDate.of(3060, 4, 12);

int clanOverconfidenceModifier = 0;
if (campaign.getLocalDate().isBefore(THE_GREAT_REFUSAL)) {
if (getEnemy().isClan() && !getEmployerFaction().isClan()) {
clanOverconfidenceModifier++;
}
}

targetNumber.addModifier(clanOverconfidenceModifier, "clanOverconfidenceModifier");
logger.info(String.format("Confidence: +%s", clanOverconfidenceModifier));

// Reliability:
int reliability = getEnemyQuality();

Expand Down

0 comments on commit 4f596a2

Please sign in to comment.