-
Notifications
You must be signed in to change notification settings - Fork 290
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
Fix 6240: era-illegal asf bombs [Note: breaks MHQ] #6254
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6254 +/- ##
============================================
+ Coverage 28.99% 29.03% +0.04%
- Complexity 13982 14008 +26
============================================
Files 2652 2653 +1
Lines 268296 268377 +81
Branches 47764 47770 +6
============================================
+ Hits 77799 77934 +135
+ Misses 186615 186543 -72
- Partials 3882 3900 +18 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am always nervous reviewing MM content, but this looks fine to my eyes. I would prefer a second opinion before it gets merged.
Fixes the long-standing issue where automatically-generated ASF munitions ignore era restrictions, leading to e.g. early CI enemy forces with Thunder bombs.
The implementation re-uses existing era legality checks from the non-ASF munitions generation code.
Auto-generated ASF munitions should now all be restricted to era-appropriate options in both MM and MHQ.
As a sop to Princess, however, this also implements Rocket Launcher (Prototype), or RL-P, bomb pods.
This will allow Clan ASFs to be equipped with RL-P pods through 2823, and IS ASFs from the Early Spaceflight period on.
Testing:
NOTE: MegaMek/mekhq#5337 needs to be pulled in close conjunction with this PR.
Close #6240