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

Corrected Experience Rating Calculation in Reputation #4804

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Simplified the calculation of regular entity experience by removing redundant skill handling logic and using more consistent variable names. Ensured that personnel count increments only if the total experience is greater than zero (to exclude support personnel). Corrected experience rating calculation to use derived target numbers and not skill levels.

Closes #4803 & #4802

Simplified the calculation of regular entity experience by removing redundant skill handling logic and using more consistent variable names. Ensured that personnel count increments only if the total experience is greater than zero (to exclude support personnel). Corrected experience rating calculation to use derived target numbers and not skill levels.
@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.76%. Comparing base (454a4ea) to head (77e0978).
Report is 83 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4804      +/-   ##
============================================
+ Coverage     10.61%   10.76%   +0.14%     
- Complexity     5655     5664       +9     
============================================
  Files           948      948              
  Lines        132553   132549       -4     
  Branches      19048    19044       -4     
============================================
+ Hits          14072    14264     +192     
+ Misses       117246   117048     -198     
- Partials       1235     1237       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# Conflicts:
#	MekHQ/src/mekhq/campaign/rating/CamOpsReputation/AverageExperienceRating.java
@IllianiCBT
Copy link
Collaborator Author

Updated to account for the recent name change project

@IllianiCBT IllianiCBT merged commit 34f0e11 into MegaMek:master Sep 13, 2024
3 checks passed
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.

Unit Rating - DropShip crews not accounted for correctly in Average Unit Experience calculations.
2 participants