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

#5811 Some validation rules and illegal design quirk #5828

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Jul 30, 2024

  • adds a few tests to unit validation
  • adds a check for the Illegal Design quirk which will make validation pass even when there are errors; the heavy gameplay penalties of this quirk are not implemented currently
  • adds missing quirks to some units of XTRO Caveat Emptor
  • updates the mechview to show errors with a different header when the illegal design quirk is present
  • removes a redundant override from the various TestXYZ classes

Fixes #5811

image

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.05%. Comparing base (36da675) to head (083f37f).
Report is 28 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5828      +/-   ##
============================================
- Coverage     29.06%   29.05%   -0.01%     
+ Complexity    13911    13895      -16     
============================================
  Files          2507     2507              
  Lines        266343   266380      +37     
  Branches      47612    47628      +16     
============================================
- Hits          77400    77394       -6     
- Misses       185021   185045      +24     
- Partials       3922     3941      +19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavelbraginskiy
Copy link
Collaborator

pavelbraginskiy commented Jul 30, 2024

As mentioned in #5811 (comment), the RISC Hyper Laser is another piece of equipment that should require a nuclear engine. Could you add a check for that as well?

IO:AE p87

Copy link
Member

@NickAragua NickAragua left a comment

Choose a reason for hiding this comment

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

Do we have the horrific drawbacks that come with the Illegal Design quirk?

@pavelbraginskiy
Copy link
Collaborator

Do we have the horrific drawbacks that come with the Illegal Design quirk?

the heavy gameplay penalties of this quirk are not implemented currently

@SJuliez
Copy link
Member Author

SJuliez commented Jul 30, 2024

As mentioned in #5811 (comment), the RISC Hyper Laser is another piece of equipment that should require a nuclear engine. Could you add a check for that as well?

IO:AE p87

TestMech already contains a test for the RHL. I didn't try it out. I suppose you tried it and it validated?

@pavelbraginskiy
Copy link
Collaborator

As mentioned in #5811 (comment), the RISC Hyper Laser is another piece of equipment that should require a nuclear engine. Could you add a check for that as well?
IO:AE p87

TestMech already contains a test for the RHL. I didn't try it out. I suppose you tried it and it validated?

I tried it with an ICE vehicle and MML said it was valid. Maybe it only checks it on mechs or something like that?

@IllianiCBT IllianiCBT merged commit b1b389f into MegaMek:master Jul 31, 2024
6 checks passed
@SJuliez SJuliez deleted the 5811-illegal-design-quirk branch August 1, 2024 11:09
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.

Validation accepts Heavy Gauss Rifle with ICE
5 participants