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 Faction Restriction Checks in Academy Class #4384

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Redundant checks in the process of determining faction restrictions were simplified in the Academy class. The code was refactored to clarify the if conditions checks for faction restriction while also bundling the checks for origin and campaign factions together.

This resolves a bug, reported on the forums, where faction restriction wasn't working correctly due to faulty logic.

Redundant checks in the process of determining faction restrictions were simplified in the Academy class. The code was refactored to clarify the if conditions checks for faction restriction while also bundling the checks for origin and campaign factions together.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.27%. Comparing base (5a68170) to head (490cd26).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4384   +/-   ##
=========================================
  Coverage     10.27%   10.27%           
  Complexity     5810     5810           
=========================================
  Files           925      925           
  Lines        125985   125983    -2     
  Branches      18626    18625    -1     
=========================================
  Hits          12941    12941           
+ Misses       111769   111767    -2     
  Partials       1275     1275           

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

@IllianiCBT IllianiCBT merged commit d0634c0 into MegaMek:master Jul 12, 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.

3 participants