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

Fixed Skill Level Retrieval Method in AtBDynamicScenario #4703

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Aug 25, 2024

Changed the skill retrieval method from getLevel() to getTotalSkillLevel() to ensure skill level plus bonus is retrieved for commanders.

This bug affected things like the speed of deployment when the scenario calls for staggered deployment, the number of scenario re-rolls, the number of hidden units during an ambush scenario, reinforcement speed, and the number of leadership units.

Closes #3769

Changed the method from getLevel() to getTotalSkillLevel() to ensure the correct skill level plus bonus is retrieved for commanders.
@IllianiCBT IllianiCBT added Bug StratCon Bugs relating strictly to StratCon labels Aug 25, 2024
@IllianiCBT IllianiCBT self-assigned this Aug 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.80%. Comparing base (20ea3a7) to head (3a663c8).
Report is 19 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4703      +/-   ##
============================================
+ Coverage     10.68%   10.80%   +0.12%     
- Complexity     5709     5715       +6     
============================================
  Files           950      950              
  Lines        131268   131267       -1     
  Branches      19136    19135       -1     
============================================
+ Hits          14021    14189     +168     
+ Misses       116022   115853     -169     
  Partials       1225     1225              

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

@IllianiCBT IllianiCBT merged commit 0549c57 into MegaMek:master Aug 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skills for leadership reinforcements/tactical support not using ranks but not bonuses
3 participants