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

Issue 5256: Refactored MekHQ Unit's Gunners to be Set to ensure gunners are unique #5295

Conversation

psikomonkie
Copy link
Collaborator

@psikomonkie psikomonkie commented Dec 4, 2024

…rs are unique

Fixes #5256

@IllianiCBT
Copy link
Collaborator

Looks like we have some failing tests

@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.48%. Comparing base (fb4c627) to head (dc313ed).
Report is 18 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5295   +/-   ##
=========================================
  Coverage     10.48%   10.48%           
- Complexity     6067     6070    +3     
=========================================
  Files           959      959           
  Lines        135515   135562   +47     
  Branches      19743    19750    +7     
=========================================
+ Hits          14202    14207    +5     
- Misses       119957   120002   +45     
+ Partials       1356     1353    -3     

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

@psikomonkie psikomonkie changed the title DRAFT - Issue 5256: Refactored MekHQ Unit's Gunners to be Set to ensure gunne… Issue 5256: Refactored MekHQ Unit's Gunners to be Set to ensure gunne… Dec 4, 2024
@psikomonkie psikomonkie marked this pull request as ready for review December 4, 2024 21:11
@psikomonkie
Copy link
Collaborator Author

Fixes #5256

@psikomonkie psikomonkie added the Bug label Dec 4, 2024
@IllianiCBT IllianiCBT changed the title Issue 5256: Refactored MekHQ Unit's Gunners to be Set to ensure gunne… Issue 5256: Refactored MekHQ Unit's Gunners to be Set to ensure gunners are unique Dec 12, 2024
List<Person> gunners = Collections.nCopies(gunnerCount, crewMember);

Set<Person> gunners = new HashSet<>();
for(int i = 0; i < gunnerCount; i++){
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's pop a whitespace after for

@IllianiCBT IllianiCBT merged commit 0559fcc into MegaMek:master Dec 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants