8000 Fix: Fixed Skill Modifiers Not Being Factored into Profession Experience Level by IllianiBird · Pull Request #7014 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Fixed Skill Modifiers Not Being Factored into Profession Experience Level #7014

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 1 commit into from
May 16, 2025

Conversation

IllianiBird
Copy link
Collaborator

Experience level calculations for professions (green, regular, etc) were not correctly factoring in modifiers to that skill. This would have been something fixed by the 50.07 change to attribute scores, but might as well be corrected now as it's more obvious following my update to experience level calculations.

@IllianiBird IllianiBird self-assigned this May 15, 2025
@IllianiBird IllianiBird requested a review from a team as a code owner May 15, 2025 20:23
@IllianiBird IllianiBird added Bug Personnel Personnel-related Issues Severity: Medium Issues described as medium severity as per the new issue form labels May 15, 2025
@@ -3924,7 +3924,7 @@
return SkillType.EXP_NONE;
}

int individualSkillLevel = skill.getLevel();
int individualSkillLevel = skill.getTotalSkillLevel();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Skill.getTotalSkillLevel
should be avoided because it has been deprecated.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will be handled by the upcoming implementation of Attribute Score modifiers.

Copy link
codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.98%. Comparing base (4f3213e) to head (619a6a0).
Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7014   +/-   ##
=========================================
  Coverage     11.98%   11.98%           
+ Complexity     6860     6858    -2     
=========================================
  Files          1102     1102           
  Lines        142197   142142   -55     
  Branches      21989    21977   -12     
=========================================
- Hits          17039    17035    -4     
+ Misses       123333   123288   -45     
+ Partials       1825     1819    -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.

Copy link
Collaborator
@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

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

LGTM

@HammerGS HammerGS merged commit 78c3de7 into MegaMek:master May 16, 2025
6 checks passed
@IllianiBird IllianiBird deleted the professionExperienceLevel branch June 7, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Personnel Personnel-related Issues Severity: Medium Issues described as medium severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0