10000 Fix #6771: Loosened Government Force Command Rights Re-Roll Restrictions by IllianiBird · Pull Request #6774 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix #6771: Loosened Government Force Command Rights Re-Roll Restrictions #6774

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

Merged

Conversation

IllianiBird
Copy link
Collaborator
  • Removed restrictions for government forces when determining command clause reroll eligibility.

Fix #6771

- Removed restrictions for government forces when determining command clause reroll eligibility.
@IllianiBird IllianiBird added Bug AtB StratCon Bugs relating strictly to StratCon Severity: Medium Issues described as medium severity as per the new issue form labels Apr 26, 2025
@IllianiBird IllianiBird self-assigned this Apr 26, 2025
Copy link
codecov bot commented Apr 26, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 11.43%. Comparing base (c77b064) to head (26faa21).
Report is 63 commits behind head on master.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/gui/view/ContractSummaryPanel.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6774      +/-   ##
============================================
+ Coverage     11.40%   11.43%   +0.03%     
+ Complexity     6482     6479       -3     
============================================
  Files          1095     1094       -1     
  Lines        141048   140663     -385     
  Branches      21884    21805      -79     
============================================
+ Hits          16082    16091       +9     
+ Misses       123308   122914     -394     
  Partials       1658     1658              

☔ 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.

@HammerGS HammerGS requested a review from Copilot April 26, 2025 20:46
Copy link
Contributor
@Copilot 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.

Pull Request Overview

This PR loosens command clause reroll restrictions by allowing government forces to be eligible, removing prior checks that restricted rerolls to mercenaries and pirates.

  • Removed faction-based restrictions for command rerolls
  • Updated the logic in ContractSummaryPanel.java to reflect this behavioral change
Comments suppressed due to low confidence (1)

MekHQ/src/mekhq/gui/view/ContractSummaryPanel.java:560

  • The removal of the faction-specific checks (isMercenary and isPirate) now allows government forces to reroll commands. Please update the in 8000 line comment to clarify that this change in business logic is intentional and align it with the updated requirements.
private boolean hasCommandRerolls() {

@HammerGS HammerGS merged commit e7d8768 into MegaMek:master Apr 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AtB Bug Severity: Medium Issues described as medium severity as per the new issue form StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] Renegotiate command rights as a government force (non-merc)
2 participants
0