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

Improved StratConSkillGenerator #6021

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Sep 20, 2024

This PR is the mm half of MegaMek/mekhq#4865 and fixes an oversight in the implementation of the StratConSkillGenerator random skill generator. It now does all steps, with fewer reliances on TotalWarfareSkillGenerator methods that were previously causing issues.

Refactored the skill generation logic in StratConSkillGenerator to streamline skill level calculations and removed redundant bonus handling. Also cleaned up logging in AtBDynamicScenarioFactory and removed an unnecessary skill generator type setting.
A random dice roll was introduced to adjust the skill level in the StratConSkillGenerator class. A roll of 1 decreases the skill level while a roll of 6 increases it. This change aims to introduce more variability to skill level determination.
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.09%. Comparing base (33e67a8) to head (f076d31).
Report is 48 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6021      +/-   ##
============================================
- Coverage     29.10%   29.09%   -0.01%     
- Complexity    13960    13972      +12     
============================================
  Files          2576     2580       +4     
  Lines        267045   267170     +125     
  Branches      47698    47711      +13     
============================================
+ Hits          77722    77744      +22     
- Misses       185422   185528     +106     
+ Partials       3901     3898       -3     

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

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.

1 participant