8000 Feature: Added Tracking of Heroic and Legendary Skill Levels by IllianiBird · Pull Request #6904 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature: Added Tracking of Heroic and Legendary Skill Levels #6904

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 6 commits into from
May 19, 2025

Conversation

IllianiBird
Copy link
Collaborator

This feature was originally added to 50.06 but later removed due to the reduced scope of 50.06. Now it's back, ready for 50.07. For those unaware of the original PR, this just improves tracking of experience levels so that they can go above 'Elite'. The steps above that being 'Heroic' and 'Legendary'.

@IllianiBird IllianiBird self-assigned this May 7, 2025
@IllianiBird IllianiBird added Personnel Personnel-related Issues For New Dev Cycle Improvement to Existing Feature Used with the RFE tag to indicate an improvement to an existing feature Implementation of Missing Official Rule Used with the RFE tag for the implementation of missing official rule labels May 7, 2025
Copy link
codecov bot commented May 7, 2025

Codecov Report

Attention: Patch coverage is 30.34483% with 303 lines in your changes missing coverage. Please review.

Project coverage is 12.09%. Comparing base (ece5695) to head (11a50c8).
Report is 144 commits behind head on master.

Files with missing lines Patch % Lines
...q/gui/campaignOptions/contents/AdvancementTab.java 0.00% 62 Missing ⚠️
MekHQ/src/mekhq/campaign/parts/PodSpace.java 0.00% 41 Missing ⚠️
...kHQ/src/mekhq/campaign/parts/ProtoMekLocation.java 14.89% 40 Missing ⚠️
MekHQ/src/mekhq/campaign/parts/MissingPart.java 16.66% 28 Missing and 7 partials ⚠️
MekHQ/src/mekhq/service/mrms/MRMSService.java 46.03% 21 Missing and 13 partials ⚠️
...src/mekhq/campaign/personnel/skills/SkillType.java 44.44% 26 Missing and 4 partials ⚠️
MekHQ/src/mekhq/campaign/parts/MekLocation.java 81.42% 7 Missing and 6 partials ⚠️
MekHQ/src/mekhq/campaign/parts/OmniPod.java 0.00% 13 Missing ⚠️
MekHQ/src/mekhq/gui/sorter/LevelSorter.java 0.00% 8 Missing ⚠️
MekHQ/src/mekhq/module/atb/PersonnelMarketAtB.java 0.00% 6 Missing ⚠️
... and 10 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6904      +/-   ##
============================================
+ Coverage     12.03%   12.09%   +0.06%     
- Complexity     6889     6958      +69     
============================================
  Files          1103     1105       +2     
  Lines        142332   142503     +171     
  Branches      22004    22064      +60     
============================================
+ Hits          17133    17240     +107     
- Misses       123364   123410      +46     
- Partials       1835     1853      +18     

☔ 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.
< 10000 /div>

@HammerGS HammerGS requested a review from Copilot May 7, 2025 23:51
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR reintroduces and enhances experience tracking beyond "Elite" by incorporating new skill levels – Heroic and Legendary – throughout the codebase. The key changes include:

  • Updating logic comparisons from EXP_ELITE to EXP_LEGENDARY where parts or skills surpass Elite.
  • Adding new constants and UI components for EXP_HEROIC and EXP_LEGENDARY in SkillType and related dialogs.
  • Adjusting property files and personnel generator logic to account for the new experience thresholds.

Reviewed Changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated no comments.

Show a summary per file
File Description
MekHQ/src/mekhq/gui/dialog/MRMSDialog.java Modified filtering logic to use EXP_LEGENDARY for part eligibility.
MekHQ/src/mekhq/gui/campaignOptions/contents/AdvancementTab.java Introduced new UI labels and spinners for Heroic and Legendary skill levels (with a potential duplication issue).
MekHQ/src/mekhq/campaign/personnel/skills/SkillType.java Added EXP_HEROIC and EXP_LEGENDARY constants with updated mappings for level names and colors.
MekHQ/src/mekhq/campaign/Campaign.java, AtBDynamicScenarioFactory.java, Utilities.java, etc. Updated various logic comparisons and thresholds to incorporate the new skill levels.
Resource property files Updated labels/tooltips to reflect the new Heroic and Legendary settings.

# Conflicts:
#	MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties
#	MekHQ/src/mekhq/campaign/personnel/skills/SkillType.java
#	MekHQ/src/mekhq/gui/campaignOptions/contents/AdvancementTab.java
: adminHR.getSkill(SkillType.S_ADMIN).getExperienceLevel();
int adminHRExp = (adminHR == null) ?
SkillType.EXP_ULTRA_GREEN :
adminHR.getSkill(SkillType.S_ADMIN).getExperienceLevel();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Skill.getExperienceLevel
should be avoided because it has been deprecated.
# Conflicts:
#	MekHQ/src/mekhq/service/mrms/MRMSService.java
# Conflicts:
#	MekHQ/src/mekhq/campaign/parts/MissingPart.java
#	MekHQ/src/mekhq/campaign/parts/OmniPod.java
#	MekHQ/src/mekhq/campaign/parts/PodSpace.java
#	MekHQ/src/mekhq/service/mrms/MRMSService.java
@IllianiBird IllianiBird marked this pull request as ready for review May 19, 2025 23:27
@IllianiBird IllianiBird requested a review from a team as a code owner May 19, 2025 23:27
@IllianiBird IllianiBird merged commit 7cc8c03 into MegaMek:master May 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Implementation of Missing Official Rule Used with the RFE tag for the implementation of missing official rule Improvement to Existing Feature Used with the RFE tag to indicate an improvement to an existing feature Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0