-
Notifications
You must be signed in to change notification settings - Fork 176
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
Variable OperationalVP Added to CommonObjectiveFactory.java #3951
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3951 +/- ##
=========================================
Coverage 10.65% 10.65%
Complexity 5528 5528
=========================================
Files 836 836
Lines 114275 114275
Branches 17185 17185
=========================================
Hits 12176 12176
Misses 100871 100871
Partials 1228 1228 ☔ View full report in Codecov by Sentry. |
MekHQ/src/mekhq/campaign/mission/atb/scenario/AlliedTraitorsBuiltInScenario.java
Outdated
Show resolved
Hide resolved
MekHQ/src/mekhq/campaign/mission/atb/scenario/AceDuelBuiltInScenario.java
Outdated
Show resolved
Hide resolved
MekHQ/src/mekhq/campaign/mission/atb/scenario/BaseAttackBuiltInScenario.java
Outdated
Show resolved
Hide resolved
MekHQ/src/mekhq/campaign/mission/atb/scenario/ChaseBuiltInScenario.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs a few formatting fixes, then good to go.
Current Implementation
MekHQ/src/mekhq/campaign/mission/CommonObjectiveFactory.java
details the victory conditions (objectives) for the various built in AtB scenarios. All objectives have a fixed Operational Victory Point value of 1.Problem
This means that it is not possible to edit the value of objectives when compared to each other. For example, in one scenario you might have three objectives: 1 primary, 2 secondary. All objectives are valued identically, meaning completing both secondary objectives but losing the primary is still considered a victory.
Solution
I added the integer
OperationalVP
to objective functions, where applicable. I updated all calls from the various objectives to include this variable. All instances default to 1, so nothing has been changed insofar as rewarding Operational VPs. This isn't an update to Operation VP rewards, but preparatory work for a future review.Examples of Use
The below is an example of use.
OperationalVP
for the below is actually set to 1 in this PR (as per current implementation), not 99.A Note on StratCon
With the exception of the base attacks scenario (the one you get when the enemy is Invincible), StratCon doesn't appear to use AtB's scenarios and already has this functionality. The focus of this PR is to bring that functionality to AtB scenarios, as this allows a holistic review of Operational VPs, rather than restricting any review to StratCon only.