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

Refactored Award Drawing Methods #4883

Closed IllianiCBT closed 1 month ago

IllianiCBT commented 1 month ago

Replaced stream-based award filtering and sorting with explicit loops for clearer logic. Adjusted image scaling to maintain aspect ratios using getScaledInstance instead of ImageHelpers. This change enhances code readability and ensures consistent image scaling.

Closes #4748

codecov-commenter commented 1 month ago

Codecov Report

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

Project coverage is 10.30%. Comparing base (2ef3222) to head (259ff5a). Report is 54 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4883 +/- ## ============================================ - Coverage 10.31% 10.30% -0.01% - Complexity 5872 5874 +2 ============================================ Files 944 944 Lines 131403 131413 +10 Branches 19064 19070 +6 ============================================ Hits 13548 13548 - Misses 116539 116556 +17 + Partials 1316 1309 -7 ```

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