Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protomech armor validation #1509

Merged
merged 2 commits into from
Oct 5, 2019
Merged

Protomech armor validation #1509

merged 2 commits into from
Oct 5, 2019

Conversation

neoancient
Copy link
Member

Fixes MegaMek/megameklab#344

Remove tech base check from protmech armor enum lookup.

All protomech armor has a Clan tech base. Since standard uses the MiscType
corresponding to T_STANDARD, and it has an tech level of Intro, it can't make
the Clan/IS distinction and when the armor is set to standard in MML it is
treated as IS and fails to match. The tech base match was kept when the code
was copied from other unit types and modified, but is not necessary for
protomechs.

All protomech armor has a Clan tech base. Since standard uses the MiscType
corresponding to T_STANDARD, and it has an tech level of Intro, it can't make
the Clan/IS distinction and when the armor is set to standard in MML it is
treated as IS and fails to match. The tech base match was kept when the code
was copied from other unit types and modified, but is not necessary for
protomechs.
@neoancient neoancient merged commit 53c0c4d into master Oct 5, 2019
@neoancient neoancient deleted the protomech_armor_validation branch October 5, 2019 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants