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

Deleted StratConSkillGenerator.java #6046

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Sep 29, 2024

Removed StratConSkillGenerator.java as it is no longer needed. This file contained methods for generating random skills. I found I could achieve the same goal better using ModifiedConstantSkillGenerator.java.

Introduced skill level adjustments based on dice rolls and added a new method in SkillLevel to parse integer values to skill levels.

This is the MM half of #4937

Replaced `StratConSkillGenerator` with `ModifiedConstantSkillGenerator` in `AtBDynamicScenarioFactory`. Introduced skill level adjustments based on dice rolls and added a new method in `SkillLevel` to parse integer values to skill levels.
Removed `StratConSkillGenerator.java` as it is no longer needed. This file contained methods for generating random skills. I found I could achieve the same goal better using `ModifiedConstantSkillGenerator.java`.
Copy link

codecov bot commented Sep 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.10%. Comparing base (c9f257a) to head (c386a0e).
Report is 36 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6046      +/-   ##
============================================
- Coverage     29.10%   29.10%   -0.01%     
+ Complexity    13977    13975       -2     
============================================
  Files          2580     2579       -1     
  Lines        267165   267184      +19     
  Branches      47717    47723       +6     
============================================
- Hits          77756    77753       -3     
- Misses       185505   185529      +24     
+ Partials       3904     3902       -2     

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

Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

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

Tested and I think it works.

@HammerGS HammerGS merged commit c7f66e8 into MegaMek:master Oct 2, 2024
6 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.

2 participants