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

Adjusted Support Points Negotiation Logic #5283

Merged

Conversation

IllianiCBT
Copy link
Collaborator

Adjusted the logic for calculating negotiated support points.

Each month personnel in the Admin/Transport role use their administration skill to generate Support Points. Previously the number of Support Points that could be generated was capped at the number of Sectors assigned to the contract.

This PR changes this so that the maximum number of Support Points that can be generated, per month, is equal to the number of combat forces required by the contract.

Furthermore, for every 4 points a character exceeds their Admin skill check, that character will generate an extra Support Point. This should allow Elite personnel to carry less skilled characters.

Adjusted the logic for calculating negotiated support points to reflect contract force requirements. Also implemented additional points calculation based on the margin of success in negotiations.
Corrected a logic error where the negotiated support points could exceed the maximum allowable value. Ensured that the negotiated support points are capped at the maximum support points negotiated, preventing any overlap.
@IllianiCBT IllianiCBT added the StratCon Bugs relating strictly to StratCon label Dec 3, 2024
@IllianiCBT IllianiCBT self-assigned this Dec 3, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.46%. Comparing base (d333f62) to head (09bb266).
Report is 42 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5283      +/-   ##
============================================
- Coverage     10.47%   10.46%   -0.01%     
+ Complexity     6049     6043       -6     
============================================
  Files           959      959              
  Lines        135202   135205       +3     
  Branches      19674    19674              
============================================
- Hits          14165    14154      -11     
- Misses       119686   119697      +11     
- Partials       1351     1354       +3     

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

Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

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

Co-Pilot sees no issues.

@HammerGS HammerGS merged commit 471a28f into MegaMek:master Dec 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants