-
Notifications
You must be signed in to change notification settings - Fork 188
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
Feature: Added Tracking of Heroic and Legendary Skill Levels #6904
Conversation
Codecov ReportAttention: Patch coverage is
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. 🚀 New features to boost your workflow:
|
There was a problem hiding this 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
Skill.getExperienceLevel
# 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
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'.