Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tied StratCon Force Generation BV Allowance to AtB Difficulty Option #4137

Merged
merged 16 commits into from
Jun 6, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Jun 3, 2024

As per the title, this PR multiplies the BV allowance, granted to opposition OpFors, to the AtB Difficulty campaign option using the below formula.

1 + ((skill level - 2) / 10)

There are also a couple of whitespace removals in files I changed in #4104 (which this PR is branched from). I could have moved those to a separate PR, but it didn't seem worth it.

Closes

Partially closes #4011

IllianiCBT and others added 16 commits April 24, 2024 17:04
I have no idea why these changes weren't in the original Push
…sers to adjust their maximum number, appearance chance, and BV Cap values.
The function `setScenarioModifiers` and the method `generateForce` were updated. The former was adjusted to use a random number within a provided range, instead of a hardcoded value, when setting scenario modifiers. The latter was altered to use a boolean parameter, `isScenarioModifier`, allowing the method to distinguish if the force generation is triggered by a scenario modifier or not.
Changes mainly involve modifying whether a component contributes to the map size or battle value (BV), and also includes the addition of an override BV cap in some scenarios.
The BV Cap override check has been inverted in AtBDynamicScenarioFactory to handle cases where the scenario modifier is present. Now, when the override is true, a log message is printed and the BV budget is modified accordingly. This is intended to provide better logging and managing of BV Cap overrides.
This commit eliminates the possibility of an infinite loop when adding modifiers in the AtBDynamicScenarioFactory class. This is achieved by setting the 'addMods' flag to false when the conditional statement isn't met.
- Increased acceptable forceBV to 125% of forceBVBudget from 110%
@IllianiCBT IllianiCBT self-assigned this Jun 3, 2024
@IllianiCBT IllianiCBT added AtB StratCon Bugs relating strictly to StratCon UX User experience labels Jun 3, 2024
@SJuliez SJuliez merged commit 3d3f173 into MegaMek:master Jun 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AtB StratCon Bugs relating strictly to StratCon UX User experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE / 49.18 : Stratcon Difficulty Controls / Situation
2 participants