Skip to content

Commit

Permalink
feat: Updated Guerilla Warfare XML and Dynamic scenario BV calculations
Browse files Browse the repository at this point in the history
- Adjusted formatting in `GuerillaWarfare.xml` for clarity
- Corrected `forceBVBudget` calculation in `AtBDynamicScenarioFactory.java` for accurate scenario BV adjustment
  • Loading branch information
IllianiCBT committed Jun 22, 2024
1 parent b96c09a commit 21bed1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MekHQ/data/stratconcontractdefinitions/GuerillaWarfare.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
<objectiveParameter>
<objectiveCount>-1</objectiveCount>
<objectiveType>AnyScenarioVictory</objectiveType>
<objectiveScenarioModifiers> <objectiveScenarioModifier>OverwhelmingEnemyGroundReinforcements.xml</objectiveScenarioModifier>
<objectiveScenarioModifiers>
<objectiveScenarioModifier>OverwhelmingEnemyGroundReinforcements.xml</objectiveScenarioModifier>
<objectiveScenarioModifier>OverwhelmingEnemyAirReinforcements.xml</objectiveScenarioModifier>
</objectiveScenarioModifiers>
</objectiveParameter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public static int generateForce(AtBDynamicScenario scenario, AtBContract contrac
int forceBVBudget = (int) (effectiveBV * forceTemplate.getForceMultiplier());

if (isScenarioModifier) {
forceBVBudget *= campaign.getCampaignOptions().getScenarioModBV();
forceBVBudget = (int) (forceBVBudget * ((double) campaign.getCampaignOptions().getScenarioModBV() / 100) * forceTemplate.getForceMultiplier());
}

int forceUnitBudget = 0;
Expand Down

0 comments on commit 21bed1c

Please sign in to comment.