When fixing another bug I discovered that ArtilleryBayWeapons wont work while on ground map. It detected as being always out of range.
WIP: I've partially fixed this by fixing the missing ranges. However, it now NPEs due to a bad getLinked() check. I've added a FIXME to the code since I'm not sure how to fix this just yet because I don't know if more than a single autocannon type can be in each bay.
Ok, so I fixed that, but this continues to be a WIP because there are NPEs in the ArtilleryBay<Direct Indirect=""><Homing Normal="">Handlers.
The problem is that there are no rules for using artillery as a bay weapon. Does it work if the unofficial option to use dropship weapons individually when on the ground is checked? If so, then I think we should just disable any functionality for artillery bay weapons unless the user has that checked, for sanity. There are just too many rules holes to try to fill with the whole bay weapons on grounded dropships stuff.
Works fine with individual weapons. I just left this open in case I (or anyone else) could think of a sane way to fix the bayweapon version and felt like doing it.
Should we mark this as post stable?
Good idea, and done.
Duplicated by [#4482]
There's a duplicate issue for this reported on GitHub: https://github.com/MegaMek/megamek/issues/205
Since there is a newer ticket for this on GitHub this should be closed and the GH ticket reopened.
This bug is also open on GitHub here. In light of some recent information closing this and using the ticket on the Github tracker.