Skip to content

Close #8625, #8804: Added Options to Quick Train (Both Manual & Automatically Run) to Allow Players to Adjust What Skills are Trained and to What Level#9096

Merged
IllianiBird merged 13 commits into
MegaMek:mainfrom
IllianiBird:quickTrainImprovements
May 26, 2026

Conversation

@IllianiBird
Copy link
Copy Markdown
Collaborator

Close #8625
Close #8804

As per title. These changes have resulted in both changes to Quick Train run from the Personnel tab, and to MekHQ Client Options (New Day options).

@IllianiBird IllianiBird self-assigned this May 25, 2026
@IllianiBird IllianiBird requested a review from a team as a code owner May 25, 2026 20:29
@IllianiBird IllianiBird added Personnel Personnel-related Issues UX User experience labels May 25, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

❌ Patch coverage is 12.23404% with 165 lines in your changes missing coverage. Please review.
✅ Project coverage is 15.22%. Comparing base (a361ba0) to head (a63433a).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/gui/dialog/MHQOptionsDialog.java 0.00% 60 Missing ⚠️
MekHQ/src/mekhq/MHQOptions.java 38.59% 35 Missing ⚠️
...rc/mekhq/campaign/personnel/skills/QuickTrain.java 0.00% 33 Missing ⚠️
MekHQ/src/mekhq/gui/dialog/QuickTrainDialog.java 0.00% 29 Missing ⚠️
...ekHQ/src/mekhq/campaign/CampaignNewDayManager.java 0.00% 4 Missing ⚠️
MekHQ/src/mekhq/gui/PersonnelTab.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9096      +/-   ##
============================================
- Coverage     15.23%   15.22%   -0.01%     
- Complexity     9305     9319      +14     
============================================
  Files          1304     1304              
  Lines        172518   172662     +144     
  Branches      26063    26061       -2     
============================================
+ Hits          26277    26287      +10     
- Misses       143198   143328     +130     
- Partials       3043     3047       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +299 to +303
boolean isDoctorsUseAdministration, boolean isTechsUseAdministration, boolean isLevelArtillery,
boolean isUseSmallArmsOnly, boolean isLevelScoutingSkills, boolean isLevelEscapeSkills,
boolean isUseAppraisal, ProcurementPersonnelPick procurementPersonnel, boolean isLevelLeadership,
boolean isLevelTraining, boolean isLevelOtherCommandSkills, List<String> targetSkills,
SkillModifierData skillModifierData) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should probably consider a record or something, instead of continuing to expand this list.
Please take a look the next time we touch this function.

Copy link
Copy Markdown
Collaborator

@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

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

LGTM

@IllianiBird IllianiBird merged commit a1fd638 into MegaMek:main May 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Personnel Personnel-related Issues UX User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFE] Settings for Quick Train [RFE] Add option to limit skill types in Quick Train

2 participants