8000 Refactored Experience Level Calculation for Personnel by IllianiBird · Pull Request #6440 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactored Experience Level Calculation for Personnel #6440

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

Merged
merged 2 commits into from
Mar 31, 2025

Conversation

IllianiBird
Copy link
Collaborator
  • Introduced local variables for CampaignOptions settings to improve readability and reduce repeated calls.
  • Added support for alternative quality averaging and administration skill checks for mechanics, technicians, vessel crew, aerospace techs, battle armor techs, and doctors.
  • Simplified conditional checks for skill-based experience calculations by leveraging the new variables.

Requirements
Requires #6436 && #6438

Dev Notes

This just updates our skill level (Green, Regular, etc) calculations to factor in Administration if the 'Doctors Have' and/or 'Techs Have' options are enabled.

- Introduced local variables for `CampaignOptions` settings to improve readability and reduce repeated calls.
- Added support for alternative quality averaging and administration skill checks for mechanics, technicians, vessel crew, aerospace techs, battle armor techs, and doctors.
- Simplified conditional checks for skill-based experience calculations by leveraging the new variables.
@IllianiBird IllianiBird self-assigned this Mar 26, 2025
Copy link
codecov bot commented Mar 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.27%. Comparing base (f13a563) to head (5d217ab).
Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6440      +/-   ##
============================================
- Coverage     11.28%   11.27%   -0.02%     
+ Complexity     6289     6285       -4     
============================================
  Files          1073     1073              
  Lines        136745   136818      +73     
  Branches      21151    21176      +25     
============================================
- Hits          15430    15422       -8     
- Misses       119766   119850      +84     
+ Partials       1549     1546       -3     

☔ 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.

@IllianiBird IllianiBird merged commit 1a9c4bb into MegaMek:master Mar 31, 2025
6 checks passed
@IllianiBird IllianiBird deleted the doctorsAndTechsHaveAdmin branch March 31, 2025 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0