Skip to content

Blocked Maternity Leave for Personnel with Infirmary Assignments#8978

Open
IllianiBird wants to merge 3 commits into
MegaMek:mainfrom
IllianiBird:infirmaryMaturnityLeaveFix
Open

Blocked Maternity Leave for Personnel with Infirmary Assignments#8978
IllianiBird wants to merge 3 commits into
MegaMek:mainfrom
IllianiBird:infirmaryMaturnityLeaveFix

Conversation

@IllianiBird
Copy link
Copy Markdown
Collaborator

Characters who are eligible for Maternity Leave, who also had an injury, were being removed from the infirmary and placed in a state (Maternity Leave) where they couldn't be healed.

Now a character with non-permanent injuries will be blocked from going on Maternity Leave until healed.

@IllianiBird IllianiBird self-assigned this May 15, 2026
@IllianiBird IllianiBird requested a review from a team as a code owner May 15, 2026 18:50
@IllianiBird IllianiBird added Personnel Personnel-related Issues UX User experience labels May 15, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.09%. Comparing base (8155c9a) to head (c68b818).
⚠️ Report is 39 commits behind head on main.

Files with missing lines Patch % Lines
...ign/personnel/procreation/AbstractProcreation.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8978      +/-   ##
============================================
+ Coverage     14.00%   14.09%   +0.08%     
- Complexity     8318     8341      +23     
============================================
  Files          1285     1285              
  Lines        167949   168054     +105     
  Branches      25416    25430      +14     
============================================
+ Hits          23526    23683     +157     
+ Misses       141948   141883      -65     
- Partials       2475     2488      +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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread MekHQ/src/mekhq/campaign/personnel/procreation/AbstractProcreation.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Personnel Personnel-related Issues UX User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants