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

Issue 6264: Destroyed Infantry no longer have negative weight #6263

Merged
merged 4 commits into from
Dec 15, 2024

Conversation

psikomonkie
Copy link
Collaborator

@psikomonkie psikomonkie commented Dec 14, 2024

Fixes #6264

infantry.getInternal returns negative values for increasingly destroyed states for the infantry. But for determining weight it should just be 0 tons.

@psikomonkie psikomonkie marked this pull request as ready for review December 14, 2024 01:01
@psikomonkie psikomonkie changed the title Issue 5336: Destroyed Infantry no longer have negative weight Issue 6264: Destroyed Infantry no longer have negative weight Dec 14, 2024
@psikomonkie
Copy link
Collaborator Author

Made the change suggested by SJuliez.

Copy link

codecov bot commented Dec 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.96%. Comparing base (5fb42e0) to head (dfd83f9).
Report is 80 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6263      +/-   ##
============================================
- Coverage     28.99%   28.96%   -0.04%     
- Complexity    13985    14014      +29     
============================================
  Files          2652     2670      +18     
  Lines        268310   269128     +818     
  Branches      47767    47895     +128     
============================================
+ Hits          77805    77942     +137     
- Misses       186622   187286     +664     
- Partials       3883     3900      +17     

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

@HammerGS HammerGS merged commit 298902a into MegaMek:master Dec 15, 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.

Mechanized Tracked Platoon (Flamer) pays you for monthly spare parts and fuel instead of charging you
3 participants