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

Add disabled option for Personnel Market #3953

Merged

Conversation

AaronGullickson
Copy link
Member

For years, even aeons, MekHQ has included a personnel market that the user had no ability to disable, creating enormous frustration and breaking of immersion among those of who had no use for it. The unit market - you can disable it. The contract market - you can disable it. The personnel market - apparently it has been ordained by God.

But no longer! I bring good tidings. Despite an absolute byzantine coding scheme, I have managed against all odds in this PR to add a disabled option to the personnel market choices, without disrupting people's existing choices in saved games. Furthermore, if you choose disabled, you will not even be forced to look at the personnel market menu item. Hallelujah!

@AaronGullickson AaronGullickson added the (RFE) Enhancement Requests for Enhancement, new features or implementations label Apr 2, 2024
@AaronGullickson AaronGullickson self-assigned this Apr 2, 2024
Copy link

codecov bot commented Apr 2, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 10.65%. Comparing base (3e880db) to head (81d2d49).
Report is 6 commits behind head on master.

Files Patch % Lines
...mekhq/campaign/market/PersonnelMarketDisabled.java 25.00% 3 Missing ⚠️
MekHQ/src/mekhq/gui/CampaignGUI.java 0.00% 3 Missing ⚠️
...kHQ/src/mekhq/campaign/market/PersonnelMarket.java 50.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3953      +/-   ##
============================================
- Coverage     10.65%   10.65%   -0.01%     
  Complexity     5528     5528              
============================================
  Files           836      838       +2     
  Lines        114275   114302      +27     
  Branches      17185    17190       +5     
============================================
  Hits          12176    12176              
- Misses       100871   100898      +27     
  Partials       1228     1228              

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

Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

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

Tested and seems to work.

@AaronGullickson AaronGullickson merged commit 6c11d3e into MegaMek:master Apr 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(RFE) Enhancement Requests for Enhancement, new features or implementations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants