Skip to content

Update Campaign.java to use Constant for Astech Team Size#7148

Merged
rjhancock merged 1 commit into
MegaMek:masterfrom
wildfire142:Astech-Constant-in-campaign-java
Jun 7, 2025
Merged

Update Campaign.java to use Constant for Astech Team Size#7148
rjhancock merged 1 commit into
MegaMek:masterfrom
wildfire142:Astech-Constant-in-campaign-java

Conversation

@wildfire142

Copy link
Copy Markdown
Contributor

I was working on my own fork and spotted a place in Campaign.java that had a hard coded value and didn't use the provide contast this changes from that value to use the constant, no other changes. I've tested locally and it works no issues.

@wildfire142 wildfire142 requested a review from a team as a code owner June 4, 2025 16:29

@Sleet01 Sleet01 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@HammerGS HammerGS requested a review from Copilot June 5, 2025 21:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

The purpose of this PR is to update Campaign.java to replace a hard-coded value with a constant for calculating the Astech team size.

  • Replaced the hard-coded multiplier (6) with MHQConstants.ASTECH_TEAM_SIZE in the getAstechNeed() method.

@codecov

codecov Bot commented Jun 6, 2025

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 12.49%. Comparing base (9a8cd3f) to head (9e0f192).
Report is 29 commits behind head on master.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/campaign/Campaign.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7148   +/-   ##
=========================================
  Coverage     12.49%   12.49%           
+ Complexity     7379     7374    -5     
=========================================
  Files          1138     1138           
  Lines        146450   146373   -77     
  Branches      22456    22443   -13     
=========================================
- Hits          18301    18295    -6     
+ Misses       126269   126197   -72     
- Partials       1880     1881    +1     

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

@rjhancock rjhancock merged commit 2d3293b into MegaMek:master Jun 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants