#include <transfer_tuning.h>
|
| static constexpr int | perDay (std::size_t clubs, float share, float weight=1.0f) |
| |
◆ perDay()
| static constexpr int TransferTuning::Market::perDay |
( |
std::size_t |
clubs, |
|
|
float |
share, |
|
|
float |
weight = 1.0f |
|
) |
| |
|
inlinestaticconstexpr |
Count for clubs clubs at share (at least one).
◆ AI_BUY_ATTEMPTS
| constexpr std::size_t TransferTuning::Market::AI_BUY_ATTEMPTS = 6 |
|
staticconstexpr |
◆ AI_BUY_SAMPLE
| constexpr std::size_t TransferTuning::Market::AI_BUY_SAMPLE = 120 |
|
staticconstexpr |
Fee route: players sampled beyond the list, offers tried, and the most an AI club pays relative to market value. [P]
◆ AI_MAX_SQUAD
| constexpr std::size_t TransferTuning::Market::AI_MAX_SQUAD = 30 |
|
staticconstexpr |
◆ AI_MAX_VALUE_MULTIPLE
| constexpr double TransferTuning::Market::AI_MAX_VALUE_MULTIPLE = 1.6 |
|
staticconstexpr |
◆ AI_TARGET_SQUAD
| constexpr std::size_t TransferTuning::Market::AI_TARGET_SQUAD = 26 |
|
staticconstexpr |
Squad size AI clubs aim for; above it they loan-list prospects, two above it they release veterans, and they stop buying at AI_MAX_SQUAD + 2. [P]
◆ CLOSED_WINDOW_SIGNING_SHARE
| constexpr float TransferTuning::Market::CLOSED_WINDOW_SIGNING_SHARE = 0.017f |
|
staticconstexpr |
Share of clubs signing a free agent per day while the window is shut, and pre-contract approaches per club and day from 1 January.
◆ DAILY_DEAL_SHARE
| constexpr float TransferTuning::Market::DAILY_DEAL_SHARE = 0.24f |
|
staticconstexpr |
◆ DAILY_EVALUATION_SHARE
| constexpr float TransferTuning::Market::DAILY_EVALUATION_SHARE = 0.24f |
|
staticconstexpr |
Shares of the world's clubs evaluated per window day and the cap on completed deals per day (scaled by the window's activity weight), so activity per club does not depend on the size of the world. Tuned for ~10-15 moves per club and season with 15-25% of them paying a fee. The deadline-day spike carries ~10-15% of window spend. [S/P]
◆ DAILY_PRE_CONTRACT_SHARE
| constexpr float TransferTuning::Market::DAILY_PRE_CONTRACT_SHARE = 0.0125f |
|
staticconstexpr |
◆ DEADLINE_DAY_WEIGHT
| constexpr float TransferTuning::Market::DEADLINE_DAY_WEIGHT = 6.0f |
|
staticconstexpr |
◆ DEADLINE_EVE_WEIGHT
| constexpr float TransferTuning::Market::DEADLINE_EVE_WEIGHT = 3.0f |
|
staticconstexpr |
◆ DEPTH_LEVEL_MARGIN
| constexpr float TransferTuning::Market::DEPTH_LEVEL_MARGIN = 6.0f |
|
staticconstexpr |
A club below AI_TARGET_SQUAD with no position need signs cover for its thinnest group down to this far below its level. [P]
◆ FEE_ROUTE_CHANCE
| constexpr double TransferTuning::Market::FEE_ROUTE_CHANCE = 0.6 |
|
staticconstexpr |
◆ FREE_AGENT_MONTHLY_WAGE_FACTOR
| constexpr float TransferTuning::Market::FREE_AGENT_MONTHLY_WAGE_FACTOR = 0.90f |
|
staticconstexpr |
Unsigned free agents lower their wage expectations each month. [P]
◆ JULY_FREE_AGENT_WEIGHT
| constexpr float TransferTuning::Market::JULY_FREE_AGENT_WEIGHT = 2.0f |
|
staticconstexpr |
Clubs between windows in countries that register free agents any day (the Americas) sign them at the open-window pace times this weight in July, when the 30 June expiries fill the pool. [P]
◆ LATE_WINDOW_DAYS
| constexpr int TransferTuning::Market::LATE_WINDOW_DAYS = 7 |
|
staticconstexpr |
◆ LATE_WINDOW_WEIGHT
| constexpr float TransferTuning::Market::LATE_WINDOW_WEIGHT = 1.8f |
|
staticconstexpr |
◆ LIST_ACTIVITY_CHANCE
| constexpr double TransferTuning::Market::LIST_ACTIVITY_CHANCE = 0.35 |
|
staticconstexpr |
Share of visits without a structured move on which a club also works the transfer list (bids for its targets, lists its surplus): most moves are free or loans, few carry a fee. [P]
◆ LOAN_BEFORE_FEE_CHANCE
| constexpr double TransferTuning::Market::LOAN_BEFORE_FEE_CHANCE = 0.9 |
|
staticconstexpr |
Share of needs a club first tries to fill with a loan, and share of the needs left over that it pays a fee for. [P]
◆ LOAN_LEVEL_SLACK
| constexpr float TransferTuning::Market::LOAN_LEVEL_SLACK = 4.0f |
|
staticconstexpr |
A loanee may be this far below the level asked of a signing. [P]
◆ LOAN_OUT_MIN_RANK
| constexpr std::size_t TransferTuning::Market::LOAN_OUT_MIN_RANK = 16 |
|
staticconstexpr |
AI clubs loan out prospects ranked beyond the matchday squad.
◆ LOAN_PLACEMENT_SQUAD
| constexpr std::size_t TransferTuning::Market::LOAN_PLACEMENT_SQUAD = 28 |
|
staticconstexpr |
Above AI_TARGET_SQUAD a club loan-lists its prospects for borrowers to find; above this size it places them itself. Loans are a minority of moves (FIFA: ~15-20%). [S/P]
◆ LOAN_PLACEMENT_TRIES
| constexpr int TransferTuning::Market::LOAN_PLACEMENT_TRIES = 8 |
|
staticconstexpr |
Clubs sounded out when placing a loan-listed prospect.
◆ MANAGED_APPROACH_CHANCE
| constexpr float TransferTuning::Market::MANAGED_APPROACH_CHANCE = 0.0035f |
|
staticconstexpr |
Chance per evaluated club that an AI club approaches one of the managed club's players. [P]
◆ MANAGED_MAX_SQUAD
| constexpr std::size_t TransferTuning::Market::MANAGED_MAX_SQUAD = 36 |
|
staticconstexpr |
The managed club registers at most this many senior players (loanees and agreed pre-contracts included, the academy not): a full starting squad of AI_MAX_SQUAD plus room for a few signings. [P]
◆ MAX_LOAN_LISTED_PER_CLUB
| constexpr int TransferTuning::Market::MAX_LOAN_LISTED_PER_CLUB = 8 |
|
staticconstexpr |
◆ MAX_SINGLE_WAGE_SHARE
| constexpr float TransferTuning::Market::MAX_SINGLE_WAGE_SHARE = 0.15f |
|
staticconstexpr |
No AI signing pays one player more than this share of the club's weekly wage budget: a top earner takes ~10-15% of a wage bill, i.e. ~6-9% of revenue, so wage demands stay at the club's level. [P]
◆ MIN_AI_SENIOR_KEEPERS
| constexpr int TransferTuning::Market::MIN_AI_SENIOR_KEEPERS = 2 |
|
staticconstexpr |
Computer-managed clubs never sell, loan or release a goalkeeper below this many senior goalkeepers. [P]
◆ NEWS_DIGEST_DAYS
| constexpr int TransferTuning::Market::NEWS_DIGEST_DAYS = 14 |
|
staticconstexpr |
◆ NEWS_DIGEST_LIMIT
| constexpr std::size_t TransferTuning::Market::NEWS_DIGEST_LIMIT = 5 |
|
staticconstexpr |
Transfer news kept for the feed, posted every NEWS_DIGEST_DAYS while a window is open (and when it closes). [P]
◆ OPENING_EXPIRY_MIN_AGE
| constexpr int TransferTuning::Market::OPENING_EXPIRY_MIN_AGE = 21 |
|
staticconstexpr |
◆ OPENING_EXPIRY_MIN_RANK
| constexpr std::size_t TransferTuning::Market::OPENING_EXPIRY_MIN_RANK = 18 |
|
staticconstexpr |
A new world starts on 1 July, the day after the summer's contract expiries: of every club's players outside its matchday squad (rank OPENING_EXPIRY_MIN_RANK and beyond, aged OPENING_EXPIRY_MIN_AGE or more, goalkeepers apart) this share has just become a free agent. Most summer moves are out-of-contract players changing clubs (FIFA: ~2/3 of men's professional transfers carry no fee). [S/P]
◆ OPENING_EXPIRY_SHARE
| constexpr double TransferTuning::Market::OPENING_EXPIRY_SHARE = 0.5 |
|
staticconstexpr |
◆ PRE_CONTRACT_MAX_ABOVE_LEVEL
| constexpr float TransferTuning::Market::PRE_CONTRACT_MAX_ABOVE_LEVEL = 6.0f |
|
staticconstexpr |
Pre-contract targets more than this above the club's level do not drop down to it. [P]
◆ PROMOTED_LEVEL_BOOST
| constexpr float TransferTuning::Market::PROMOTED_LEVEL_BOOST = 3.0f |
|
staticconstexpr |
◆ RELEASE_MIN_AGE
| constexpr int TransferTuning::Market::RELEASE_MIN_AGE = 30 |
|
staticconstexpr |
◆ RELEASE_MIN_RANK
| constexpr std::size_t TransferTuning::Market::RELEASE_MIN_RANK = 22 |
|
staticconstexpr |
Veterans beyond this rank and age are released by AI clubs.
◆ RELEGATION_CLAUSE_MAX_AGE
| constexpr int TransferTuning::Market::RELEGATION_CLAUSE_MAX_AGE = 31 |
|
staticconstexpr |
◆ RELEGATION_CLAUSE_MAX_EXITS
| constexpr int TransferTuning::Market::RELEGATION_CLAUSE_MAX_EXITS = 3 |
|
staticconstexpr |
◆ RELEGATION_CLAUSE_SHARE
| constexpr float TransferTuning::Market::RELEGATION_CLAUSE_SHARE = 0.25f |
|
staticconstexpr |
Relegation: this share of a relegated club's first-team players have a clause that lets them leave for free, at most this many per club. In the summer after promotion a club measures its starters against its level plus PROMOTED_LEVEL_BOOST. [P]
◆ SHORTAGE_LEVEL_MARGIN
| constexpr float TransferTuning::Market::SHORTAGE_LEVEL_MARGIN = 12.0f |
|
staticconstexpr |
◆ SURPLUS_RELEASE_MIN_AGE
| constexpr int TransferTuning::Market::SURPLUS_RELEASE_MIN_AGE = 24 |
|
staticconstexpr |
Above AI_MAX_SQUAD any surplus player past prospect age may go.
◆ UPGRADE_CASH_RESERVE_WEEKS
| constexpr std::int64_t TransferTuning::Market::UPGRADE_CASH_RESERVE_WEEKS = 8 |
|
staticconstexpr |
A club with less cash than this many weeks of payroll only signs players for a missing position. [P]
◆ UPGRADE_DEFICIT
| constexpr float TransferTuning::Market::UPGRADE_DEFICIT = 2.0f |
|
staticconstexpr |
A weakest starter this far below the squad level is an upgrade need; a signing must beat him by UPGRADE_MARGIN. A missing position accepts players down to SHORTAGE_LEVEL_MARGIN below the level. [P]
◆ UPGRADE_MARGIN
| constexpr float TransferTuning::Market::UPGRADE_MARGIN = 1.0f |
|
staticconstexpr |
The documentation for this struct was generated from the following file: