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 173 forks source link

Refactored `getCurrentPrisoners` to use `getActivePersonnel` #5215

Closed IllianiCBT closed 2 days ago

IllianiCBT commented 1 week ago

Replaced getPersonnel with getActivePersonnel in getCurrentPrisoners method. This change ensures only active personnel are checked for prisoner status.

Closes #5182

codecov-commenter commented 1 week ago

Codecov Report

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

Project coverage is 10.50%. Comparing base (bce5f63) to head (cde4590). Report is 22 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #5215 +/- ## ============================================ - Coverage 10.52% 10.50% -0.02% + Complexity 6047 6036 -11 ============================================ Files 957 957 Lines 134523 134523 Branches 19545 19545 ============================================ - Hits 14154 14134 -20 - Misses 119018 119035 +17 - Partials 1351 1354 +3 ```

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


🚨 Try these New Features: