Skip to content

feat(contract_scores): Implement new buff time value and teamwork calculations#1583

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-2
Sep 26, 2025
Merged

feat(contract_scores): Implement new buff time value and teamwork calculations#1583
mkmccarty merged 1 commit intomainfrom
mm-branch-2

Conversation

@mkmccarty
Copy link
Owner

This commit introduces changes to the contract score calculation logic:

  1. Adds a new calculateBuffTimeValue function to compute the buff time value based on the contract version, segment duration, SIAB percentage, and Deflector percentage.
  2. Introduces a new calculateTeamworkB function to compute the teamwork B score based on the contract version and buff time value.
  3. Modifies the calculateChickenRunTeamwork function to handle the contract version-specific logic.
  4. Updates the calculateContractScore function to use the new getPredictedTeamwork function, which considers the contract version when calculating the teamwork score.
  5. Removes the cap on SIAB and Deflector percentages for CXP version 1 contracts, as they no longer have buff time value requirements.

These changes aim to improve the accuracy and flexibility of the contract score calculation, especially for newer contract versions.

…culations

This commit introduces changes to the contract score calculation logic:

1. Adds a new `calculateBuffTimeValue` function to compute the buff time value based on the contract version, segment duration, SIAB percentage, and Deflector percentage.
2. Introduces a new `calculateTeamworkB` function to compute the teamwork B score based on the contract version and buff time value.
3. Modifies the `calculateChickenRunTeamwork` function to handle the contract version-specific logic.
4. Updates the `calculateContractScore` function to use the new `getPredictedTeamwork` function, which considers the contract version when calculating the teamwork score.
5. Removes the cap on SIAB and Deflector percentages for CXP version 1 contracts, as they no longer have buff time value requirements.

These changes aim to improve the accuracy and flexibility of the contract score calculation, especially for newer contract versions.
@mkmccarty mkmccarty merged commit cd44572 into main Sep 26, 2025
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-2 branch September 26, 2025 07:30
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.

1 participant