Player12
An open source football management simulator
Loading...
Searching...
No Matches
TransferTuning::Valuation Struct Referencefinal

#include <transfer_tuning.h>

Static Public Attributes

static constexpr float KEY_PLAYER_PREMIUM = 1.40f
 
static constexpr float FIRST_TEAM_PREMIUM = 1.25f
 
static constexpr float ROTATION_PREMIUM = 1.15f
 
static constexpr float BACKUP_PREMIUM = 1.12f
 
static constexpr float FRINGE_PREMIUM = 1.08f
 
static constexpr std::uint8_t LONG_CONTRACT_BASE_YEARS = 2
 
static constexpr float LONG_CONTRACT_PREMIUM_PER_YEAR = 0.05f
 
static constexpr float EXPIRING_CONTRACT_FACTOR = 0.90f
 
static constexpr float KEY_PLAYER_REFUSAL_SHARE = 0.30f
 
static constexpr std::uint8_t KEY_PLAYER_REFUSAL_MIN_YEARS = 2
 
static constexpr int KEY_PLAYER_REFUSAL_BUYER_GAP = 10
 
static constexpr float BUYER_REPUTATION_SLOPE = 0.01f
 
static constexpr int BUYER_REPUTATION_GAP_MIN = -20
 
static constexpr int BUYER_REPUTATION_GAP_MAX = 30
 
static constexpr int RIVAL_REPUTATION_GAP = 8
 
static constexpr float RIVAL_PREMIUM = 1.25f
 
static constexpr float MID_SEASON_PREMIUM = 1.20f
 
static constexpr int LATE_WINDOW_DAYS = 3
 
static constexpr float LATE_WINDOW_PREMIUM = 1.10f
 
static constexpr int NOT_FOR_SALE_REPUTATION_GAP = 10
 
static constexpr std::uint8_t NOT_FOR_SALE_MIN_CONTRACT_YEARS = 3
 

Detailed Description

Selling club's valuation of its player.

Member Data Documentation

◆ BACKUP_PREMIUM

constexpr float TransferTuning::Valuation::BACKUP_PREMIUM = 1.12f
staticconstexpr

◆ BUYER_REPUTATION_GAP_MAX

constexpr int TransferTuning::Valuation::BUYER_REPUTATION_GAP_MAX = 30
staticconstexpr

◆ BUYER_REPUTATION_GAP_MIN

constexpr int TransferTuning::Valuation::BUYER_REPUTATION_GAP_MIN = -20
staticconstexpr

◆ BUYER_REPUTATION_SLOPE

constexpr float TransferTuning::Valuation::BUYER_REPUTATION_SLOPE = 0.01f
staticconstexpr

Richer buyers pay more (CIES; psi ~0.2-0.3): +1% per reputation point above the seller, clamped. [P]

◆ EXPIRING_CONTRACT_FACTOR

constexpr float TransferTuning::Valuation::EXPIRING_CONTRACT_FACTOR = 0.90f
staticconstexpr

◆ FIRST_TEAM_PREMIUM

constexpr float TransferTuning::Valuation::FIRST_TEAM_PREMIUM = 1.25f
staticconstexpr

◆ FRINGE_PREMIUM

constexpr float TransferTuning::Valuation::FRINGE_PREMIUM = 1.08f
staticconstexpr

◆ KEY_PLAYER_PREMIUM

constexpr float TransferTuning::Valuation::KEY_PLAYER_PREMIUM = 1.40f
staticconstexpr

Asking premium by playing-time role: nobody sells at market value, key players cost most (10-40% above value). [P]

◆ KEY_PLAYER_REFUSAL_BUYER_GAP

constexpr int TransferTuning::Valuation::KEY_PLAYER_REFUSAL_BUYER_GAP = 10
staticconstexpr

A clearly bigger buyer can still prise a key player away.

◆ KEY_PLAYER_REFUSAL_MIN_YEARS

constexpr std::uint8_t TransferTuning::Valuation::KEY_PLAYER_REFUSAL_MIN_YEARS = 2
staticconstexpr

◆ KEY_PLAYER_REFUSAL_SHARE

constexpr float TransferTuning::Valuation::KEY_PLAYER_REFUSAL_SHARE = 0.30f
staticconstexpr

Share of key players on multi-year deals whose club refuses any bid in a given window (drawn per player and window). [P]

◆ LATE_WINDOW_DAYS

constexpr int TransferTuning::Valuation::LATE_WINDOW_DAYS = 3
staticconstexpr

Last days of a window: no time to find a replacement. [P]

◆ LATE_WINDOW_PREMIUM

constexpr float TransferTuning::Valuation::LATE_WINDOW_PREMIUM = 1.10f
staticconstexpr

◆ LONG_CONTRACT_BASE_YEARS

constexpr std::uint8_t TransferTuning::Valuation::LONG_CONTRACT_BASE_YEARS = 2
staticconstexpr

Contract length: each year beyond LONG_CONTRACT_BASE_YEARS adds a premium (no need to sell); a final-year player is cheaper (CIES: expiring contracts are the strongest discount). [P]

◆ LONG_CONTRACT_PREMIUM_PER_YEAR

constexpr float TransferTuning::Valuation::LONG_CONTRACT_PREMIUM_PER_YEAR = 0.05f
staticconstexpr

◆ MID_SEASON_PREMIUM

constexpr float TransferTuning::Valuation::MID_SEASON_PREMIUM = 1.20f
staticconstexpr

Mid-season (winter window) reluctance for regular starters. [P]

◆ NOT_FOR_SALE_MIN_CONTRACT_YEARS

constexpr std::uint8_t TransferTuning::Valuation::NOT_FOR_SALE_MIN_CONTRACT_YEARS = 3
staticconstexpr

◆ NOT_FOR_SALE_REPUTATION_GAP

constexpr int TransferTuning::Valuation::NOT_FOR_SALE_REPUTATION_GAP = 10
staticconstexpr

A key player on a long deal is not sold to a clearly smaller club.

◆ RIVAL_PREMIUM

constexpr float TransferTuning::Valuation::RIVAL_PREMIUM = 1.25f
staticconstexpr

◆ RIVAL_REPUTATION_GAP

constexpr int TransferTuning::Valuation::RIVAL_REPUTATION_GAP = 8
staticconstexpr

Rival: same league and reputation within this gap. [P]

◆ ROTATION_PREMIUM

constexpr float TransferTuning::Valuation::ROTATION_PREMIUM = 1.15f
staticconstexpr

The documentation for this struct was generated from the following file: