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

Removed Ability to Assign AeroSpace Pilots to Conventional Aircraft #4822

Merged

Conversation

IllianiCBT
Copy link
Collaborator

Removed unnecessary isAerospaceGrouping call to correct logic in isConventionalAirGrouping method. This ensures that only conventional aircraft pilots are considered as suitable for flying conventional aircraft.

The ability for aerospace (and by extension LAM) pilots to fly conventional aircraft was a legacy decision and does not match current rules.

I opted to just remove the ability for aerospace pilots to be assigned to new conventional aircraft, rather than including any handler for personnel currently assigned to conventional aircraft, as this was the easiest solution and required the least additional new code. It has the added benefit of allowing existing campaigns to be grandfathered in and has the least likelihood of breaking things.

Closes #4649

Removed unnecessary isAerospaceGrouping call to correct logic in isConventionalAirGrouping method. This ensures that only conventional aircraft pilots are considered.
@IllianiCBT IllianiCBT added Personnel Personnel-related Issues Legacy Improvement Improves a legacy setup's handling. labels Sep 12, 2024
@IllianiCBT IllianiCBT self-assigned this Sep 12, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.19%. Comparing base (454a4ea) to head (194a17f).
Report is 83 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4822      +/-   ##
============================================
- Coverage     10.61%   10.19%   -0.42%     
- Complexity     5655     5657       +2     
============================================
  Files           948      948              
  Lines        132553   132553              
  Branches      19048    19048              
============================================
- Hits          14072    13518     -554     
- Misses       117246   117800     +554     
  Partials       1235     1235              

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

…ters

# Conflicts:
#	MekHQ/src/mekhq/campaign/personnel/enums/PersonnelRole.java
@IllianiCBT
Copy link
Collaborator Author

Updated to account for the recent name change project

@IllianiCBT IllianiCBT merged commit f2c597f into MegaMek:master Sep 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Legacy Improvement Improves a legacy setup's handling. Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.50.0 aerospace pilots in conventional aircraft
2 participants