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 Empty Jump Path Check UnableToAffordJumpNagDialog #5089

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Oct 21, 2024

Prevented the 'UnableToAffordJumpNagDialog' nag from appearing if jump path is empty, or the campaign is in transit to the final planet in the Jump Path.

Closes #4988

Prevented the 'UnableToAffordJumpNagDialog' nag from appearing if jump path is empty.
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.42%. Comparing base (a339462) to head (912bd3f).
Report is 145 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5089   +/-   ##
=========================================
  Coverage     10.42%   10.42%           
- Complexity     6028     6032    +4     
=========================================
  Files           953      953           
  Lines        134113   134129   +16     
  Branches      19435    19440    +5     
=========================================
+ Hits          13979    13987    +8     
- Misses       118785   118793    +8     
  Partials       1349     1349           

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

Added checks to handle scenarios where the jump cost is zero, preventing unnecessary dialogs. Ensured that the dialog does not display if the cost of the next jump is zero or if the current system is the last system on the jump path.
@HammerGS HammerGS merged commit 732f6fb into MegaMek:master Oct 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Erroneous lack-of-funds-for-next-jump nag
3 participants