Skip to content

Commit

Permalink
Fixing build failures due to missing campaign parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Windchild292 committed Jan 26, 2022
1 parent a1c436f commit 2944fdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MekHQ/src/mekhq/campaign/mission/AtBScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ private void setStandardMissionForces(Campaign campaign) {

// aaand for fun, run everyone through the crew upgrader
if (campaign.getCampaignOptions().useAbilities()) {
AtBDynamicScenarioFactory.upgradeBotCrews(this);
AtBDynamicScenarioFactory.upgradeBotCrews(this, campaign);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static void postAddForce(Campaign campaign, AtBDynamicScenario scenario,
// the most recently added bot force is the one we just generated
BotForce generatedBotForce = scenario.getBotForce(scenario.getNumBots() - 1);
generatedBotForce.setStart(deploymentZone);
AtBDynamicScenarioFactory.setDeploymentTurns(generatedBotForce, templateToApply, scenario);
AtBDynamicScenarioFactory.setDeploymentTurns(generatedBotForce, templateToApply, scenario, campaign);
AtBDynamicScenarioFactory.setDestinationZone(generatedBotForce, templateToApply);

// at this point, we have to re-translate the scenario objectives
Expand Down Expand Up @@ -340,8 +340,7 @@ public static void applyObjective(AtBDynamicScenario scenario, Campaign campaign
* Applies an additional event, selected from only modifiers that benefit the player or do not benefit the player
*/
public static void applyExtraEvent(AtBDynamicScenario scenario, boolean goodEvent) {
scenario.addScenarioModifier(AtBScenarioModifier.getRandomBattleModifier(scenario.getTemplate().mapParameters.getMapLocation(),
(Boolean) goodEvent));
scenario.addScenarioModifier(AtBScenarioModifier.getRandomBattleModifier(scenario.getTemplate().mapParameters.getMapLocation(), goodEvent));
}

/**
Expand Down

0 comments on commit 2944fdd

Please sign in to comment.