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

Pintle turret and flags (MML #1741) #6601

Merged
merged 7 commits into from
Feb 24, 2025

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Feb 23, 2025

See MegaMek/megameklab#1741 for more info (merge together)
This PR has a few unit updates as well as the described flag check changes. The description for pintle mounts now contain the weight if it has a fixed weight.

Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.10%. Comparing base (1cc15a2) to head (7657d93).
Report is 83 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6601      +/-   ##
============================================
+ Coverage     29.04%   29.10%   +0.05%     
- Complexity    15180    15287     +107     
============================================
  Files          2837     2837              
  Lines        279411   279716     +305     
  Branches      49188    49279      +91     
============================================
+ Hits          81145    81399     +254     
+ Misses       192886   192861      -25     
- Partials       5380     5456      +76     

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

Copy link
Collaborator

@Scoppio Scoppio left a comment

Choose a reason for hiding this comment

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

Seems pretty good, I hope we can find a better solution in the EquipmentBitSet.

@@ -24,6 +25,8 @@

public class AmmoType extends EquipmentType {

private static final MMLogger LOGGER = MMLogger.create(AmmoType.class);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick, the standard for logger in the project is logger lowecase.

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 noticed :)
The very widely adopted convention for constants (static final) however is ALL_CAPS. When Tex reworked the logger thing, he made another million changes and I didnt want to pick on that minuscule issue. But I'd really like to stay with our style guide and common styles unless there's good reason. Is there one?

Copy link
Member Author

Choose a reason for hiding this comment

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

@rjhancock This kinda involves you :)

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 case of when I did the mass changes I was less worried about style guide and more worried about ensuring legal compliance.

Style guide says upper case (which is a best practice I ignored in this case due to a 2 week marathon run of more important issues), then it should be upper case.

@HammerGS HammerGS merged commit 64f8f24 into MegaMek:master Feb 24, 2025
7 checks passed
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.

4 participants