8000 Feature: Added 7 New Unofficial SPAs for Admin Characters by IllianiBird · Pull Request #6783 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature: Added 7 New Unofficial SPAs for Admin Characters #6783

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
merged 14 commits into from
May 19, 2025

Conversation

IllianiBird
Copy link
Collaborator
@IllianiBird IllianiBird commented Apr 26, 2025

Fix #6678
Fix #6679
Fix #6681
Fix #6686

Interstellar Negotiator

Cost: 100 xp
Requirements: Veteran Administration

No matter who's in charge, this character always has a way of bringing down the price.

If this character is the senior-most Admin/Transport character, the cost of interstellar travel is reduced by 15%.

Networker

Cost: 400 xp
Requirements: Elite Administration

This character knows people in high places.

If this character is the senior-most Admin/Command character, the number of contracts offered each month is increased by 1 (may still be 0).

Tetris Master

Cost: 100 xp
Requirements: Regular Administration

This character has mastered the subtle art of stacking boxes.

The campaign's cargo capacity is increased by 5% per character with this SPA.

Coordinator

Cost: 100 xp
Requirements: Veteran Administration

This character is exceptionally skilled at liaising with allied forces, ensuring reinforcements arrive where they're needed.

If this character is the senior Admin/Command character, the reinforcement target number is reduced by 1.

Logistician

Cost: 50 xp
Requirements: Veteran Administration

This character is an expert at managing interstellar supply lines.

Parts procured by this character have their delivery time reduced by 10%.

Mediator

Cost: 50 xp
Requirements: Regular Administration

Whether with a smoothing word or a calming presence, this character knows how to solve disputes.

This character's Administration skill is increased by 1 when calculating the campaign's Admin Capacity.

Scrounge

Cost: 200 xp
Requirements: Elite Administration

The character is adept at finding resources in places nobody else would think to look.

They can make one additional procurement attempt per day.

…` to `defaultspa.xml`.

  - Allows characters to make one additional procurement attempt per day.
  - Costs 200 XP with a weight of 1.
…ration by 1 for Admin Capacity calculations.
…y 1 when this character is the senior Admin/Command.

- **Logistician (Unofficial):** Reduces delivery time of parts procured by this character by 10%.
@IllianiBird IllianiBird added SPA Any issue relating to SPA's. Includes Bugs and RFE New Feature Used with the RFE tag to indicate a new feature 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 14.51613% with 53 lines in your changes missing coverage. Please review.

Project coverage is 12.03%. Comparing base (49d3af0) to head (ece5695).
Report is 153 commits behind head on master.

Files with missing lines Patch % Lines
MekHQ/src/mekhq/campaign/Campaign.java 0.00% 19 Missing ⚠️
...rnoverAndRetention/RetirementDefectionTracker.java 0.00% 11 Missing ⚠️
...arket/contractMarket/AtbMonthlyContractMarket.java 0.00% 7 Missing ⚠️
...gn/market/contractMarket/CamOpsContractMarket.java 0.00% 6 Missing ⚠️
MekHQ/src/mekhq/campaign/CampaignSummary.java 28.57% 4 Missing and 1 partial ⚠️
.../mekhq/campaign/stratcon/StratconRulesManager.java 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6783   +/-   ##
=========================================
  Coverage     12.03%   12.03%           
  Complexity     6889     6889           
=========================================
  Files          1103     1103           
  Lines        142284   142332   +48     
  Branches      21991    22004   +13     
=========================================
+ Hits          17121    17133   +12     
- Misses       123328   123364   +36     
  Partials       1835     1835           

☔ 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 fixes multiple issues and adds 7 new unofficial SPAs for Admin Characters by introducing new PersonnelOptions and integrating their effects into various campaign and market systems. Key changes include:

  • Adding new admin options (Scrounge, Mediator, Logistician, Coordinator, Tetris Master, Networker, and Interstellar Negotiator) to PersonnelOptions.
  • Adjusting calculations in reinforcement targeting, acquisition limits, cargo capacity, transit time, and negotiation modifiers to account for the new SPAs.
  • Updating contract market and campaign cost calculations to integrate SPA logic for improved operational dynamics.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java Added Coordinator SPA logic for liaison command rights.
MekHQ/src/mekhq/campaign/personnel/turnoverAndRetention/RetirementDefectionTracker.java Incorporated Mediator SPA bonus into combined skill calculations.
MekHQ/src/mekhq/campaign/personnel/PersonnelOptions.java Introduced new admin SPA constants and options.
MekHQ/src/mekhq/campaign/market/contractMarket/CamOpsContractMarket.java Applied Networker SPA modifier for contract offer generation.
MekHQ/src/mekhq/campaign/market/contractMarket/AtbMonthlyContractMarket.java Integrated Networker SPA modifier into contract generation.
MekHQ/src/mekhq/campaign/CampaignSummary.java Adjusted cargo capacity using Tetris Master SPA multiplier.
MekHQ/src/mekhq/campaign/Campaign.java Updated acquisition limits with Scrounge SPA, transit time with Logistician SPA, and travel cost reduction with Interstellar Negotiator SPA.
Files not reviewed (1)
  • MekHQ/data/universe/defaultspa.xml: Language not supported

IllianiBird and others added 2 commits April 26, 2025 15:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@HammerGS
Copy link
Member

@IllianiBird Co-pilot

@IllianiBird IllianiBird marked this pull request as draft April 27, 2025 19:45
@IllianiBird IllianiBird changed the title Fix #6678, #6679, #6681, #6686: Added 7 New Unofficial SPAs for Admin Characters Fix: Added 7 New Unofficial SPAs for Admin Characters Apr 30, 2025
@IllianiBird IllianiBird changed the title Fix: Added 7 New Unofficial SPAs for Admin Characters PR: Added 7 New Unofficial SPAs for Admin Characters Apr 30, 2025
@IllianiBird IllianiBird changed the title PR: Added 7 New Unofficial SPAs for Admin Characters Feature: Added 7 New Unofficial SPAs for Admin Characters May 1, 2025
# Conflicts:
#	MekHQ/src/mekhq/campaign/market/contractMarket/AtbMonthlyContractMarket.java
continue;
}

combinedSkillValues += skill.getTotalSkillLevel() + mediatorModifier;

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
Skill.getTotalSkillLevel
should be avoided because it has been deprecated.
@IllianiBird IllianiBird marked this pull request as ready for review May 19, 2025 23:18
@IllianiBird IllianiBird requested a review from a team as a code owner May 19, 2025 23:18
@IllianiBird IllianiBird merged commit fee0109 into MegaMek:master May 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature Used with the RFE tag to indicate a new feature SPA Any issue relating to SPA's. Includes Bugs and RFE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin SPA Networker[RFE] Admin SPA Logistician [RFE] Admin SPA Adept [RFE] Admin SPA Scrounge [RFE]
2 participants
0