Fixes #1076. Infantry armor panel now only shows custom armors if rules level set to Advanced or higher.#7970
Merged
HammerGS merged 5 commits intoMegaMek:mainfrom Feb 15, 2026
Conversation
… if rules level set to Advanced or higher.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7970 +/- ##
=========================================
Coverage 29.85% 29.85%
- Complexity 16880 16882 +2
=========================================
Files 3144 3144
Lines 303517 303518 +1
Branches 53035 53036 +1
=========================================
+ Hits 90612 90615 +3
+ Misses 203523 203514 -9
- Partials 9382 9389 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes #1076 by restricting the Infantry Armor UI so that custom armor kits/options are only available when the game rules tech level is Advanced or higher, preventing Advanced-only armor options from appearing under Standard tech settings.
Changes:
- Conditionally renders/populates the infantry armor kit + related advanced armor controls based on
SimpleTechLevel. - Moves specialization checkbox rendering to occur regardless of tech level.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
megamek/src/megamek/client/ui/dialogs/customMek/InfantryArmorPanel.java
Outdated
Show resolved
Hide resolved
megamek/src/megamek/client/ui/dialogs/customMek/InfantryArmorPanel.java
Outdated
Show resolved
Hide resolved
HammerGS
approved these changes
Feb 15, 2026
HammerGS
approved these changes
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a very old bug report, but it was still valid, and this implements the fix. Fixes #1076