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

Fix #3111: Added Heroic and Legendary Skill Levels #6623

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

IllianiBird
Copy link
Collaborator

@IllianiBird IllianiBird commented Apr 10, 2025

  • Introduced new skill levels: Heroic and Legendary, with corresponding experience values and level definitions.
  • Updated LevelSorter to handle skill level comparisons using the new SkillLevel enums.
  • Added logic for parsing, getting, and setting Heroic and Legendary levels in SkillType.
  • Modified XML serialization and deserialization to include Heroic and Legendary levels.
  • Adjusted color handling for Heroic and Legendary to reuse Elite color settings.

Fix #3111

Requirements

Requires MegaMek/megamek#6864

Dev Notes

So most of the work was already done and implemented, we just hadn't 'turned on' these skill levels. I checked with both new and existing campaigns and found no issues making these available.

- Introduced new skill levels: Heroic and Legendary, with corresponding experience values and level definitions.
- Updated `LevelSorter` to handle skill level comparisons using the new `SkillLevel` enums.
- Added logic for parsing, getting, and setting Heroic and Legendary levels in `SkillType`.
- Modified XML serialization and deserialization to include Heroic and Legendary levels.
- Adjusted color handling for Heroic and Legendary to reuse Elite color settings.
@IllianiBird IllianiBird added Personnel Personnel-related Issues Implementation of Missing Official Rule Used with the RFE tag for the implementation of missing official rule labels Apr 10, 2025
@IllianiBird IllianiBird self-assigned this Apr 10, 2025
@IllianiBird IllianiBird marked this pull request as draft April 10, 2025 20:11
@IllianiBird IllianiBird marked this pull request as ready for review April 10, 2025 20:53
@IllianiBird IllianiBird marked this pull request as draft April 10, 2025 20:53
@IllianiBird
Copy link
Collaborator Author

Keeping this on draft as I don't think it should be included in 50.05

Copy link

codecov bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 8.87949% with 862 lines in your changes missing coverage. Please review.

Project coverage is 11.42%. Comparing base (2fef8ef) to head (f389488).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...HQ/src/mekhq/gui/menus/AssignUnitToPersonMenu.java 0.00% 171 Missing ⚠️
MekHQ/src/mekhq/Utilities.java 0.64% 146 Missing and 8 partials ⚠️
MekHQ/src/mekhq/service/mrms/MRMSService.java 0.00% 92 Missing ⚠️
MekHQ/src/mekhq/gui/dialog/MRMSDialog.java 0.00% 84 Missing ⚠️
...q/gui/campaignOptions/contents/AdvancementTab.java 0.00% 83 Missing ⚠️
MekHQ/src/mekhq/campaign/parts/MissingPart.java 12.28% 43 Missing and 7 partials ⚠️
MekHQ/src/mekhq/campaign/parts/PodSpace.java 0.00% 49 Missing ⚠️
...kHQ/src/mekhq/campaign/parts/ProtoMekLocation.java 14.89% 40 Missing ⚠️
...src/mekhq/campaign/personnel/skills/SkillType.java 8.10% 29 Missing and 5 partials ⚠️
...ekHQ/src/mekhq/gui/menus/AssignUnitToTechMenu.java 0.00% 27 Missing ⚠️
... and 12 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6623      +/-   ##
============================================
- Coverage     11.43%   11.42%   -0.01%     
- Complexity     6451     6454       +3     
============================================
  Files          1086     1086              
  Lines        139459   139532      +73     
  Branches      21571    21583      +12     
============================================
- Hits          15948    15943       -5     
- Misses       121914   121986      +72     
- Partials       1597     1603       +6     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For New Dev Cycle Implementation of Missing Official Rule Used with the RFE tag for the implementation of missing official rule Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE - Add 'Heroic' and 'Legendary' pilot skill brackets above Elite in MekHQ.
1 participant