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

Added Nag Dialog for Pregnant Combatants #3944

Merged
merged 4 commits into from
Apr 6, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Mar 31, 2024

Current Implementation

None

Problem

This is a pretty minor problem, but from a role-play perspective some players may not want to risk their pregnant combat personnel.

Functionality requested via Discord:

image

Solution

On 'Advance Day' the system checks whether the user is in a contract. If so, whether they have any pregnant combat personnel assigned to units. If those checks all show true, then it spits out the dialog.

Initially, I wanted the system to check whether the personnel was assigned a position in the TOE, but I couldn't quite get that functionality to work.

image image

@IllianiCBT IllianiCBT self-assigned this Mar 31, 2024
@IllianiCBT IllianiCBT added Personnel Personnel-related Issues GUI labels Mar 31, 2024
Copy link

codecov bot commented Mar 31, 2024

Codecov Report

Attention: Patch coverage is 0% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 10.65%. Comparing base (53d13ae) to head (eca200a).

Files Patch % Lines
.../dialog/nagDialogs/PregnantCombatantNagDialog.java 0.00% 12 Missing ⚠️
MekHQ/src/mekhq/gui/dialog/MHQOptionsDialog.java 0.00% 7 Missing ⚠️
MekHQ/src/mekhq/gui/CampaignGUI.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3944      +/-   ##
============================================
- Coverage     10.65%   10.65%   -0.01%     
- Complexity     5529     5530       +1     
============================================
  Files           838      839       +1     
  Lines        114318   114340      +22     
  Branches      17194    17200       +6     
============================================
+ Hits          12176    12178       +2     
- Misses       100913   100934      +21     
+ Partials       1229     1228       -1     

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

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

@HammerGS HammerGS merged commit e3ac419 into MegaMek:master Apr 6, 2024
5 of 6 checks passed
HammerGS added a commit that referenced this pull request Apr 6, 2024
+ PR #3922: Add missing cockpit costs and weights
+ PR #3944: Added Nag Dialog for Pregnant Combatants
+ Fix #3943: Unmaintained Unit Nag Dialog Suppressed for Units set to
Salvage
+ PR #3933: Fixes for #3729,#3817,#3753: Clamped Unit Rating Mod for
CamOps (redux)
+ PR #3923: Hide Toughness When 0
+ PR #3915: Added Dialog to Confirm New Campaign (redux)
+ PR #3908: Adjusted Default Tech Counts
+ PR #3967: Adjusted Zoom Speed on Interstellar Map Panel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants