MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
86 stars 134 forks source link

Set techlevel of armor in specific location, not entire mek, when setting patchwork armor #1634

Closed pavelbraginskiy closed 1 month ago

pavelbraginskiy commented 1 month ago

Requires MegaMek/megamek#6078 to produce correct mixed-tech patchwork armor mtfs.

Currently, setting the armor in one location sets the armor tech level of every location, creating situations where we try to load a unit with Heavy Ferro-Fibrous (Clan) and other nonsense armors.

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 2.17%. Comparing base (24894d9) to head (148b93b). Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1634 +/- ## ======================================== Coverage 2.17% 2.17% Complexity 209 209 ======================================== Files 266 266 Lines 30760 30758 -2 Branches 5260 5259 -1 ======================================== Hits 669 669 + Misses 29934 29932 -2 Partials 157 157 ```

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