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 Skill Improvement Logic in EducationController #4416

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

IllianiCBT
Copy link
Collaborator

The code for improving skills in the EducationController was refactored to simplify and clean up the existing implementation.

Redundant code was removed, such as the calculation of the education level which is now performed in a single line.

These changes also resolve an infinite loop that could occur if a student is attending a doctorate while also having a skill bonus to the skill improved by that doctorate.

The code for improving skills in the EducationController was refactored to simplify and clean up the existing implementation. Redundant code was removed, such as the calculation of the education level which is now performed in a single line. These changes also resolve an infinite loop that could occur if a student is attending a doctorate while also having a skill bonus to the skill improved by that doctorate.
@IllianiCBT IllianiCBT added Bug Personnel Personnel-related Issues Refactoring labels Jul 15, 2024
@IllianiCBT IllianiCBT self-assigned this Jul 15, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.26%. Comparing base (c90c6d2) to head (b346ad3).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4416   +/-   ##
=========================================
  Coverage     10.26%   10.26%           
  Complexity     5809     5809           
=========================================
  Files           924      924           
  Lines        126223   126220    -3     
  Branches      18698    18694    -4     
=========================================
  Hits          12952    12952           
+ Misses       111996   111993    -3     
  Partials       1275     1275           

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

@IllianiCBT IllianiCBT merged commit be162a4 into MegaMek:master Jul 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Personnel Personnel-related Issues Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants