MegaMek / mekhq

MekHQ is a java helper program for the MegaMek game that allows users to load a list of entities from an XML file, perform repairs and customizations, and then save the new entities to another XML file that can be loaded into MegaMek.
http://megamek.org
134 stars 171 forks source link

Added the Tracking of Hits Obtained Prior to the Completion of a Scenario #4864

Closed IllianiCBT closed 1 month ago

IllianiCBT commented 2 months ago

Added a new field hitsPrior in the Person class to capture hits sustained before the last completed scenario. Modified relevant methods and XML serialization/deserialization to handle this new field, ensuring accurate injury tracking. This resolves an issue present in autoAwards where new hits would not be properly tracked whenever Advanced Medical is disabled.

Closes #4785

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 10.29%. Comparing base (752cc96) to head (b6eacd7). Report is 114 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4864 +/- ## ============================================ - Coverage 10.30% 10.29% -0.01% + Complexity 5871 5863 -8 ============================================ Files 944 944 Lines 131394 131412 +18 Branches 19063 19066 +3 ============================================ - Hits 13545 13534 -11 - Misses 116532 116558 +26 - Partials 1317 1320 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.