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

Unmaintained Unit Nag Dialog Suppressed for Units set to Salvage #3943

Merged
merged 3 commits into from
Apr 6, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Current Implementation

When users trigger Advance Day, while there are unmaintained units in their hanger, they are presented with a nag dialog asking for confirmation.

Problem

This triggers even for units set to salvage.

Solution

The nag now only triggers if there are unmaintained units that are not set to salvage.

Closes

Closes #646 (only 6 years old! :D)

@IllianiCBT IllianiCBT self-assigned this Mar 31, 2024
@IllianiCBT IllianiCBT added the GUI label Mar 31, 2024
Copy link

codecov bot commented Mar 31, 2024

Codecov Report

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

Project coverage is 10.65%. Comparing base (2676968) to head (bf3cc5f).
Report is 74 commits behind head on master.

Files Patch % Lines
.../dialog/nagDialogs/UnmaintainedUnitsNagDialog.java 0.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3943      +/-   ##
============================================
- Coverage     10.65%   10.65%   -0.01%     
- Complexity     5528     5530       +2     
============================================
  Files           836      838       +2     
  Lines        114275   114323      +48     
  Branches      17185    17195      +10     
============================================
+ Hits          12176    12178       +2     
- Misses       100871   100917      +46     
  Partials       1228     1228              

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

@AaronGullickson AaronGullickson self-requested a review April 2, 2024 00:17
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.
I dunno, though, seems like jumping the gun on a fix... 6 years isn't that long! ^_^

@AaronGullickson
Copy link
Member

Looks good.

@HammerGS HammerGS merged commit 54ec53e 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: Units marked for salvage should not cause Advance Day dialogue
4 participants