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

various StratCon fixes #2651

Merged
merged 11 commits into from
May 31, 2021

Conversation

NickAragua
Copy link
Member

@NickAragua NickAragua commented May 29, 2021

  • Updated arrival altitude for aerospace fighter reinforcement modifiers (they were showing up on the ground)
  • Standardized "recon" type scenarios to have the same criteria as Tukayyid scenarios
  • Various briefing text clarifications
  • Store artillery offboard status between campaign saves
  • On Integrated command, don't immediately and incorrectly undeploy lances after generating scenarios
  • Adjusted manual force deployment rules (unlimited stacking on allied facilities, one per hex otherwise, no manual deployment under integrated command)
  • Tighten up reinforcement restrictions (can't deploy units that can't actually deploy; can't double deploy units; can now only deploy fight lances or have to use a support point/VP)
  • VTOLs no longer start on the ground

@lgtm-com
Copy link

lgtm-com bot commented May 29, 2021

This pull request fixes 1 alert when merging d5144e3 into 4c2b9e7 - view on LGTM.com

fixed alerts:

  • 1 for Dereferenced variable may be null

@MegaMek MegaMek deleted a comment from codecov bot May 30, 2021
Copy link
Contributor

@Windchild292 Windchild292 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few comments

@@ -32,14 +32,15 @@
<additionalDetails>
<additionalDetail>Extraction can be carried out by a unit with at least one free hand actuator, infantry or battle armor.</additionalDetail>
<additionalDetail>Extraction cannot be performed from destroyed buildings.</additionalDetail>
<additionalDetail>The extracting units may flee the battlefield, or the objective is automatically complete if routing the oppossing force.</additionalDetail>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<additionalDetail>The extracting units may flee the battlefield, or the objective is automatically complete if routing the oppossing force.</additionalDetail>
<additionalDetail>The extracting units may flee the battlefield, or the objective is automatically complete if routing the opposing force.</additionalDetail>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

automatically completed upon routing?

Comment on lines +172 to +174
<additionalDetails>
<additionalDetail></additionalDetail>
</additionalDetails>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the addition of this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a function of how the code is saved, there's probably a "don't serialize empty lists" flag somewhere.

/**
* Can the given force be manually deployed to the given coordinates on the given track
*/
public static boolean canManuallyDeployForce(StratconCoords coords,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving it in, but unused, for now?

@@ -418,7 +417,7 @@ private String buildForceCost(int forceID) {
StringBuilder costBuilder = new StringBuilder();
costBuilder.append("(");

switch(StratconRulesManager.getReinforcementType(forceID, currentTrackState, campaign)) {
switch(StratconRulesManager.getReinforcementType(forceID, currentTrackState, campaign, currentCampaignState)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
switch(StratconRulesManager.getReinforcementType(forceID, currentTrackState, campaign, currentCampaignState)) {
switch (StratconRulesManager.getReinforcementType(forceID, currentTrackState, campaign, currentCampaignState)) {

@codecov
Copy link

codecov bot commented May 31, 2021

Codecov Report

Merging #2651 (d5144e3) into master (4c2b9e7) will increase coverage by 0.00%.
The diff coverage is 10.46%.

❗ Current head d5144e3 differs from pull request most recent head 666e99e. Consider uploading reports for the commit 666e99e to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2651   +/-   ##
=========================================
  Coverage     10.76%   10.76%           
- Complexity     3807     3809    +2     
=========================================
  Files           703      703           
  Lines         97876    97897   +21     
  Branches      16269    16277    +8     
=========================================
+ Hits          10534    10538    +4     
- Misses        85965    85982   +17     
  Partials       1377     1377           
Impacted Files Coverage Δ
...hq/campaign/mission/AtBDynamicScenarioFactory.java 1.72% <ø> (+<0.01%) ⬆️
.../mekhq/campaign/stratcon/StratconRulesManager.java 0.00% <0.00%> (ø)
.../src/mekhq/campaign/stratcon/StratconScenario.java 0.00% <0.00%> (ø)
MekHQ/src/mekhq/gui/StratconPanel.java 0.00% <0.00%> (ø)
...src/mekhq/gui/stratcon/StratconScenarioWizard.java 0.00% <0.00%> (ø)
...src/mekhq/gui/stratcon/TrackForceAssignmentUI.java 0.00% <0.00%> (ø)
MekHQ/src/mekhq/gui/view/AtBScenarioViewPanel.java 0.00% <0.00%> (ø)
MekHQ/src/mekhq/MekHqXmlUtil.java 15.23% <17.30%> (-1.60%) ⬇️
MekHQ/src/mekhq/campaign/mission/AtBContract.java 19.19% <0.00%> (+0.11%) ⬆️
...ekHQ/src/mekhq/campaign/market/ContractMarket.java 60.00% <0.00%> (+0.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c2b9e7...666e99e. Read the comment docs.

@NickAragua NickAragua merged commit 5b0b4e0 into MegaMek:master May 31, 2021
@lgtm-com
Copy link

lgtm-com bot commented May 31, 2021

This pull request fixes 1 alert when merging 666e99e into 2fa74ec - view on LGTM.com

fixed alerts:

  • 1 for Dereferenced variable may be null

@HammerGS HammerGS added the StratCon Bugs relating strictly to StratCon label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants