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

Revised CamOps Reputation Derived AtB Modifier, Renamed getUnitRatingMod Method #4691

Merged
merged 4 commits into from
Sep 13, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Consolidated ELITE, HEROIC, and LEGENDARY levels into a single rating value. This more closely matches the values expected by AtB and will prevent unexpected behavior.

This PR also renames the getUnitRatingMod to getAtBUnitRatingMod to more closely match its' use. This touches a lot of Classes, making this PR look a lot scarier than it actually is.

Consolidated ELITE, HEROIC, and LEGENDARY levels into a single rating value. This change simplified the experience rating scale and ensured a more streamlined progression logic.
Changed all occurrences of the method `getUnitRatingMod()` to `getAtBUnitRatingMod()` across multiple classes. This was done to improve code clarity and consistency in handling unit rating modifications specific to the Against the Bot (AtB) functionality.
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.07%. Comparing base (2dbc50b) to head (323e437).
Report is 36 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4691      +/-   ##
============================================
- Coverage     10.76%   10.07%   -0.70%     
+ Complexity     5668     5656      -12     
============================================
  Files           948      948              
  Lines        132553   132551       -2     
  Branches      19048    19048              
============================================
- Hits          14272    13353     -919     
- Misses       117041   117962     +921     
+ Partials       1240     1236       -4     

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

# Conflicts:
#	MekHQ/src/mekhq/campaign/Campaign.java
#	MekHQ/src/mekhq/campaign/againstTheBot/AtBConfiguration.java
#	MekHQ/src/mekhq/campaign/market/ContractMarket.java
@IllianiCBT
Copy link
Collaborator Author

This PR has been updated to include name changes.

@IllianiCBT IllianiCBT merged commit f4b5e83 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants