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

Refactored Difficulty Multiplier Calculation #4722

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

IllianiCBT
Copy link
Collaborator

This should not be merged into 50.0

Revised the getDifficultyMultiplier method to use a switch expression based on skill levels. I also went ahead and adjusted the multipliers based on Discord feedback this means the difficulty campaign option will have a far larger impact on OpFor generation, especially when combined with my other two OpFor PRs.

Below, I've included the percentage of the player's BV that will be used as base BV allowance when generating OpFors. The old values are in parentheses. As you can see, the impact of each difficulty is substantially larger than the old values. This should give players far better control over their experience and will mean that newer players won't get the pants kicked out of them as often, while veteran players will be able to enjoy the challenge they desire.

Ultra-Green: 50% (80%)
Green: 75% (90%)
Regular: 100% (100%)
Veteran: 125% (110%)
Elite: 150% (120%)
Heroic: 175% (130%)
Legendary: 200% (140%)

Revised the `getDifficultyMultiplier` method to use a switch expression based on skill levels. This change improves readability and allows for more granular control over the difficulty multipliers.
@IllianiCBT IllianiCBT added UX User experience For New Dev Cycle labels Aug 27, 2024
@IllianiCBT IllianiCBT self-assigned this Aug 27, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.20%. Comparing base (2dbc50b) to head (b431b9a).
Report is 48 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4722      +/-   ##
============================================
- Coverage     10.76%   10.20%   -0.57%     
+ Complexity     5668     5662       -6     
============================================
  Files           948      948              
  Lines        132553   132560       +7     
  Branches      19048    19048              
============================================
- Hits          14272    13525     -747     
- Misses       117041   117795     +754     
  Partials       1240     1240              

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

@IllianiCBT IllianiCBT marked this pull request as ready for review September 5, 2024 04:03
@IllianiCBT
Copy link
Collaborator Author

Flipping this to live.

@Thom293 when this gets merged you'll need to update your StratCon guide

# Conflicts:
#	MekHQ/src/mekhq/campaign/mission/AtBDynamicScenarioFactory.java
@IllianiCBT
Copy link
Collaborator Author

Updated to account for the recent name change project

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

Successfully merging this pull request may close these issues.

2 participants