Skip to content

Commit

Permalink
Merge pull request #5889 from IllianiCBT/atbSpecialSecenarioRedux
Browse files Browse the repository at this point in the history
Replaced Internal Dissension Events in StratCon
  • Loading branch information
IllianiCBT authored Jan 28, 2025
2 parents bc1e101 + d12c62e commit 474f69e
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 474f69e

Please sign in to comment.