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

Refactored Crew Assignment Event Handling #5682

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

IllianiCBT
Copy link
Collaborator

  • Updated PersonCrewAssignmentEvent to update the commander data of any associated forces.
  • Replaced instances of single letter variables in affected methods.

Fix #5681

Standardized variable naming for clarity, improved `PersonCrewAssignmentEvent` to include context of associated campaigns, and ensured force commander updates during crew assignments. Enhanced readability and maintainability across related methods.
@IllianiCBT IllianiCBT added the Bug label Jan 7, 2025
@IllianiCBT IllianiCBT self-assigned this Jan 7, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.04%. Comparing base (4cf3be1) to head (0d62b4d).
Report is 52 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5682      +/-   ##
============================================
+ Coverage     10.02%   10.04%   +0.01%     
- Complexity     6068     6075       +7     
============================================
  Files          1074     1074              
  Lines        141641   141646       +5     
  Branches      20645    20647       +2     
============================================
+ Hits          14206    14225      +19     
+ Misses       126063   126051      -12     
+ Partials       1372     1370       -2     

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

Updated copyright notices in Unit.java and PersonCrewAssignmentEvent.java to reflect the new year. This ensures compliance with licensing and accurate attribution.
Copy link
Collaborator

@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

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

LGTM

@Sleet01 Sleet01 merged commit 00cc051 into MegaMek:master Jan 9, 2025
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
Development

Successfully merging this pull request may close these issues.

[Issue] NPE on random new day, screen blinked for unknown reason.
3 participants