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

Fix #6867: Excluded Infantry Attack From Edit Unit Damage Dialog #6868

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IllianiBird
Copy link
Collaborator

  • Prevented InfantryAttack equipment types from being processed in the equipment loop within UnitEditorDialog.
  • Refactored variable names for better code clarity (e.g., m to mounted).

Fix #6867

Dev Notes

I double-checked that infantry attacks, such as swarm and its' ilk, are the only attacks affected by this change.

- Prevented `InfantryAttack` equipment types from being processed in the equipment loop within `UnitEditorDialog`.
- Refactored variable names for better code clarity (e.g., `m` to `mounted`).
@IllianiBird IllianiBird added Bug Severity: Low Issues described as low severity as per the new issue form labels Apr 11, 2025
@IllianiBird IllianiBird self-assigned this Apr 11, 2025
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 0% with 133 lines in your changes missing coverage. Please review.

Project coverage is 30.05%. Comparing base (40cff80) to head (cff4615).
Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
.../src/megamek/client/ui/swing/UnitEditorDialog.java 0.00% 133 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6868      +/-   ##
============================================
- Coverage     30.06%   30.05%   -0.01%     
+ Complexity    15604    15588      -16     
============================================
  Files          2875     2875              
  Lines        282752   282753       +1     
  Branches      49309    49304       -5     
============================================
- Hits          85016    84989      -27     
- Misses       192173   192214      +41     
+ Partials       5563     5550      -13     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines -60 to +72
/* system crits */
CheckCritPanel engineCrit;
/* system crits */ CheckCritPanel engineCrit;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a nitpick, replace the comment with a // and bring the variable down a level.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We might need to look at why EC made this change, as it'll just be undone the moment I save

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, ignore me, I missed the first part of your comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Severity: Low Issues described as low severity as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can GM Edit Damage Battle Armor Anti-Mech Attacks
2 participants