-
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
various StratCon fixes #2651
various StratCon fixes #2651
Conversation
NickAragua
commented
May 29, 2021
•
edited
Loading
edited
- 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
… deployment; relax deployment rules
…kAragua/MekHQ into small_unit_contract_init_fix
This pull request fixes 1 alert when merging d5144e3 into 4c2b9e7 - view on LGTM.com fixed alerts:
|
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.
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> |
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.
<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> |
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.
automatically completed upon routing?
<additionalDetails> | ||
<additionalDetail></additionalDetail> | ||
</additionalDetails> |
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.
Why the addition of this?
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.
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, |
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.
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)) { |
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.
switch(StratconRulesManager.getReinforcementType(forceID, currentTrackState, campaign, currentCampaignState)) { | |
switch (StratconRulesManager.getReinforcementType(forceID, currentTrackState, campaign, currentCampaignState)) { |
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
This pull request fixes 1 alert when merging 666e99e into 2fa74ec - view on LGTM.com fixed alerts:
|