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 Intelligence XP Cost Calculations and Minor Logic Issues #4656

Merged

Conversation

IllianiCBT
Copy link
Collaborator

Rounded XP costs to nearest integer to improve accuracy and consistency. Corrected handling of zero intelligence scores to avoid division anomalies.

Closes #4653

Rounded XP costs to nearest integer to improve accuracy and consistency. Corrected handling of zero intelligence scores to avoid division anomalies and updated imports for cleaner code. These changes ensure more precise experience cost computations.
@IllianiCBT IllianiCBT added Bug Personnel Personnel-related Issues labels Aug 16, 2024
@IllianiCBT IllianiCBT self-assigned this Aug 16, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.67%. Comparing base (50ad0c2) to head (e3f24e1).
Report is 34 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4656      +/-   ##
============================================
+ Coverage     10.65%   10.67%   +0.01%     
- Complexity     5702     5706       +4     
============================================
  Files           950      950              
  Lines        131271   131274       +3     
  Branches      19134    19135       +1     
============================================
+ Hits          13988    14012      +24     
+ Misses       116059   116038      -21     
  Partials       1224     1224              

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

@repligator
Copy link
Collaborator

FWIW I've spent a couple hours testing this without seeing the old issues with XP, or any new ones.

Copy link
Member

@NickAragua NickAragua left a comment

Choose a reason for hiding this comment

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

You can't possibly be that dumb.
-- Drill instructor to new recruit

@IllianiCBT IllianiCBT merged commit c3c1e07 into MegaMek:master Aug 18, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v0.50.0-SNAPSHOT] Intelligence XP Modifiers prevent levelling or cause decimated skill costs.
4 participants