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

Check equipment compatibility with motive type when validating vehicles #1690

Merged
merged 3 commits into from
Feb 18, 2020

Conversation

neoancient
Copy link
Member

This is part of the fix for MegaMek/megameklab#440. The bug report only mentions combat vehicle flotation hull, but I have included the amphibious and dune buggy CV mods, as well as industrial equipment and a few other equipment types I noticed. The logic is in a public static method in TestTank where it can be used by TestSupportVehicle, as well as MML in equipment filtering.

if (((WeaponType) eq).getAmmoType() == AmmoType.T_BPOD) {
return !isNaval;
}
if (((WeaponType) eq).getAmmoType() == AmmoType.T_NAIL_RIVET_GUN) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What? VTOLs can't mount rivet guns? That's BS, I demand a refund! ::monocle::

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a total crock that submarines can't have combines. Hello? Kelp forests?

@neoancient neoancient merged commit a819bbd into master Feb 18, 2020
@neoancient neoancient deleted the flotation_hull branch February 18, 2020 17: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
Development

Successfully merging this pull request may close these issues.

2 participants