Skip to content

Commit

Permalink
Handle StratCon scenarios for Internal Dissension events
Browse files Browse the repository at this point in the history
Adjusted the logic for Internal Dissension events to account for StratCon-enabled campaigns. Added a support point penalty if StratCon is active, while maintaining the original behavior for non-StratCon campaigns. This ensures compatibility with StratCon mechanics.
  • Loading branch information
IllianiCBT committed Jan 26, 2025
1 parent bc1e101 commit d12c62e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions MekHQ/src/mekhq/campaign/mission/AtBContract.java
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,17 @@ public void checkEvents(Campaign campaign) {
break;
case 2:
text += "Internal Dissension";
specialEventScenarioDate = getRandomDayOfMonth(campaign.getLocalDate());
specialEventScenarioType = AtBScenario.AMBUSH;
if (!campaign.getCampaignOptions().isUseStratCon()) {
specialEventScenarioDate = getRandomDayOfMonth(campaign.getLocalDate());
specialEventScenarioType = AtBScenario.AMBUSH;
} else {
StratconCampaignState campaignState = getStratconCampaignState();

if (campaignState != null) {
text += ": -1 Support Point";
campaignState.addSupportPoints(-1);
}
}
break;
case 3:
text += "ComStar Interdict: Base availability level decreases one level for the rest of the contract.";
Expand Down

0 comments on commit d12c62e

Please sign in to comment.