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

#include <transfer_tuning.h>

Static Public Attributes

static constexpr float DEFERRED_DISCOUNT_PER_YEAR = 0.09f
 
static constexpr float APPEARANCE_ODDS_BASE = 0.90f
 
static constexpr float APPEARANCE_ODDS_PER_MATCH = 0.012f
 
static constexpr float GOAL_ODDS_BASE = 0.70f
 
static constexpr float GOAL_ODDS_PER_GOAL = 0.025f
 
static constexpr float MIN_ADD_ON_ODDS = 0.15f
 
static constexpr float MAX_ADD_ON_ODDS = 0.85f
 
static constexpr int SELL_ON_YOUNG_AGE = 21
 
static constexpr int SELL_ON_PRIME_AGE = 24
 
static constexpr int SELL_ON_SETTLED_AGE = 27
 
static constexpr float SELL_ON_COST_YOUNG = 0.45f
 
static constexpr float SELL_ON_COST_PRIME = 0.35f
 
static constexpr float SELL_ON_COST_SETTLED = 0.20f
 
static constexpr float SELL_ON_COST_VETERAN = 0.08f
 
static constexpr float OPENING_SHARE_MIN = 0.75f
 
static constexpr float OPENING_SHARE_MAX = 0.92f
 
static constexpr float OPENING_RIVAL_BONUS = 0.05f
 
static constexpr float OPENING_ADD_ON_CHANCE = 0.35f
 
static constexpr float ADD_ON_SHARE = 0.15f
 
static constexpr float MAX_ADD_ON_SHARE = 0.30f
 
static constexpr std::uint16_t ADD_ON_APPEARANCES = 30
 
static constexpr std::uint16_t ADD_ON_GOALS = 10
 
static constexpr std::uint8_t MIN_PATIENCE = 2
 
static constexpr std::uint8_t MAX_PATIENCE = 4
 
static constexpr std::uint8_t DEFAULT_PATIENCE = 3
 
static constexpr float FIRST_CONCESSION = 0.45f
 
static constexpr float CONCESSION_STEP = 0.15f
 
static constexpr float INSULT_MULTIPLE = 1.6f
 
static constexpr float WALK_OUT_MULTIPLE = 2.5f
 
static constexpr std::uint8_t MAX_INSULTS = 2
 
static constexpr float RIVAL_CEILING_BONUS = 0.07f
 
static constexpr float MAX_RIVAL_CEILING_BONUS = 0.20f
 
static constexpr float RIVAL_CONCESSION_BONUS = 0.10f
 
static constexpr int DEADLINE_DAYS = 2
 
static constexpr float DEADLINE_CEILING_BONUS = 0.06f
 
static constexpr float DEADLINE_CONCESSION_BONUS = 0.25f
 
static constexpr float DEADLINE_APPROACH_MULTIPLIER = 3.0f
 
static constexpr float WAGE_PRESSURE_SHARE = 0.5f
 
static constexpr float WAGE_CEILING_CUT = 0.25f
 
static constexpr int MIN_REPLY_DAYS = 1
 
static constexpr int MAX_REPLY_DAYS = 2
 
static constexpr int ANSWER_DAYS = 4
 
static constexpr int TALKS_COOLDOWN_DAYS = 30
 
static constexpr float RIVAL_APPROACH_CHANCE = 0.5f
 
static constexpr float TERMS_REFUSAL_OPEN = 0.05f
 
static constexpr float TERMS_REFUSAL_HAPPY = 0.15f
 
static constexpr float TERMS_REFUSAL_RELUCTANT = 0.60f
 
static constexpr std::uint8_t KEEN_AMBITION = 55
 
static constexpr int KEEN_REPUTATION_GAP = 5
 
static constexpr std::uint8_t HAPPY_LOYALTY = 75
 
static constexpr float HAPPY_MORALE = 60.0f
 
static constexpr float BIG_BID_VALUE_SHARE = 0.9f
 
static constexpr float REJECTED_KEEN_MORALE = 10.0f
 
static constexpr float REJECTED_ASKED_MORALE = 12.0f
 
static constexpr float REJECTED_SMALL_BID_MORALE = 3.0f
 
static constexpr float REJECTED_OPEN_MORALE = 3.0f
 
static constexpr float REJECTED_TRUST = 6.0f
 
static constexpr std::uint8_t REQUEST_AMBITION = 70
 

Detailed Description

An AI club negotiating for one of the managed club's players. Real deals are structured: add-ons are typically 10-30% of the headline fee, sell-on clauses 10-20%, and big fees are spread over 2-4 years. The buyer reads a structure by its present cost: deferred money is cheaper for it than cash (it discounts faster than a seller, which is why instalments help both sides), add-ons cost their odds of being paid and a sell-on costs the expected share of a future sale. [P]

Member Data Documentation

◆ ADD_ON_APPEARANCES

constexpr std::uint16_t TransferTuning::Buyer::ADD_ON_APPEARANCES = 30
staticconstexpr

◆ ADD_ON_GOALS

constexpr std::uint16_t TransferTuning::Buyer::ADD_ON_GOALS = 10
staticconstexpr

◆ ADD_ON_SHARE

constexpr float TransferTuning::Buyer::ADD_ON_SHARE = 0.15f
staticconstexpr

Add-ons offered instead of cash, as a share of the fee.

◆ ANSWER_DAYS

constexpr int TransferTuning::Buyer::ANSWER_DAYS = 4
staticconstexpr

◆ APPEARANCE_ODDS_BASE

constexpr float TransferTuning::Buyer::APPEARANCE_ODDS_BASE = 0.90f
staticconstexpr

Odds of paying an add-on: appearance targets are likelier than goal targets; both fall with the target.

◆ APPEARANCE_ODDS_PER_MATCH

constexpr float TransferTuning::Buyer::APPEARANCE_ODDS_PER_MATCH = 0.012f
staticconstexpr

◆ BIG_BID_VALUE_SHARE

constexpr float TransferTuning::Buyer::BIG_BID_VALUE_SHARE = 0.9f
staticconstexpr

A bid worth this share of the market value is a big bid: turning it down upsets a player who wants the move.

◆ CONCESSION_STEP

constexpr float TransferTuning::Buyer::CONCESSION_STEP = 0.15f
staticconstexpr

◆ DEADLINE_APPROACH_MULTIPLIER

constexpr float TransferTuning::Buyer::DEADLINE_APPROACH_MULTIPLIER = 3.0f
staticconstexpr

Clubs approach the managed club's players this much more often in the deadline days.

◆ DEADLINE_CEILING_BONUS

constexpr float TransferTuning::Buyer::DEADLINE_CEILING_BONUS = 0.06f
staticconstexpr

◆ DEADLINE_CONCESSION_BONUS

constexpr float TransferTuning::Buyer::DEADLINE_CONCESSION_BONUS = 0.25f
staticconstexpr

◆ DEADLINE_DAYS

constexpr int TransferTuning::Buyer::DEADLINE_DAYS = 2
staticconstexpr

Deadline pressure: in the last days of a window the buyer stretches its ceiling, concedes faster and answers the same day.

◆ DEFAULT_PATIENCE

constexpr std::uint8_t TransferTuning::Buyer::DEFAULT_PATIENCE = 3
staticconstexpr

Patience of offers made before talks were drawn (older saves).

◆ DEFERRED_DISCOUNT_PER_YEAR

constexpr float TransferTuning::Buyer::DEFERRED_DISCOUNT_PER_YEAR = 0.09f
staticconstexpr

Buyer's discount of deferred money per year of delay.

◆ FIRST_CONCESSION

constexpr float TransferTuning::Buyer::FIRST_CONCESSION = 0.45f
staticconstexpr

Share of the gap to the seller's ask (capped by the ceiling) the buyer closes on each answer; the last answer is its final offer.

◆ GOAL_ODDS_BASE

constexpr float TransferTuning::Buyer::GOAL_ODDS_BASE = 0.70f
staticconstexpr

◆ GOAL_ODDS_PER_GOAL

constexpr float TransferTuning::Buyer::GOAL_ODDS_PER_GOAL = 0.025f
staticconstexpr

◆ HAPPY_LOYALTY

constexpr std::uint8_t TransferTuning::Buyer::HAPPY_LOYALTY = 75
staticconstexpr

◆ HAPPY_MORALE

constexpr float TransferTuning::Buyer::HAPPY_MORALE = 60.0f
staticconstexpr

◆ INSULT_MULTIPLE

constexpr float TransferTuning::Buyer::INSULT_MULTIPLE = 1.6f
staticconstexpr

A counter worth more than this multiple of the ceiling insults the buyer; a second insult, or one beyond WALK_OUT_MULTIPLE, ends the talks.

◆ KEEN_AMBITION

constexpr std::uint8_t TransferTuning::Buyer::KEEN_AMBITION = 55
staticconstexpr

Stance: ambitious players want a clearly bigger club.

◆ KEEN_REPUTATION_GAP

constexpr int TransferTuning::Buyer::KEEN_REPUTATION_GAP = 5
staticconstexpr

◆ MAX_ADD_ON_ODDS

constexpr float TransferTuning::Buyer::MAX_ADD_ON_ODDS = 0.85f
staticconstexpr

◆ MAX_ADD_ON_SHARE

constexpr float TransferTuning::Buyer::MAX_ADD_ON_SHARE = 0.30f
staticconstexpr

◆ MAX_INSULTS

constexpr std::uint8_t TransferTuning::Buyer::MAX_INSULTS = 2
staticconstexpr

◆ MAX_PATIENCE

constexpr std::uint8_t TransferTuning::Buyer::MAX_PATIENCE = 4
staticconstexpr

◆ MAX_REPLY_DAYS

constexpr int TransferTuning::Buyer::MAX_REPLY_DAYS = 2
staticconstexpr

◆ MAX_RIVAL_CEILING_BONUS

constexpr float TransferTuning::Buyer::MAX_RIVAL_CEILING_BONUS = 0.20f
staticconstexpr

◆ MIN_ADD_ON_ODDS

constexpr float TransferTuning::Buyer::MIN_ADD_ON_ODDS = 0.15f
staticconstexpr

◆ MIN_PATIENCE

constexpr std::uint8_t TransferTuning::Buyer::MIN_PATIENCE = 2
staticconstexpr

Counters the buyer answers before it stops (drawn per offer).

◆ MIN_REPLY_DAYS

constexpr int TransferTuning::Buyer::MIN_REPLY_DAYS = 1
staticconstexpr

Days the buyer takes to answer a counter (outside the deadline), and days it leaves the club to answer its own proposal.

◆ OPENING_ADD_ON_CHANCE

constexpr float TransferTuning::Buyer::OPENING_ADD_ON_CHANCE = 0.35f
staticconstexpr

Share of opening bids that carry an appearance add-on.

◆ OPENING_RIVAL_BONUS

constexpr float TransferTuning::Buyer::OPENING_RIVAL_BONUS = 0.05f
staticconstexpr

◆ OPENING_SHARE_MAX

constexpr float TransferTuning::Buyer::OPENING_SHARE_MAX = 0.92f
staticconstexpr

◆ OPENING_SHARE_MIN

constexpr float TransferTuning::Buyer::OPENING_SHARE_MIN = 0.75f
staticconstexpr

Opening bid as a share of the ceiling (more with rivals).

◆ REJECTED_ASKED_MORALE

constexpr float TransferTuning::Buyer::REJECTED_ASKED_MORALE = 12.0f
staticconstexpr

◆ REJECTED_KEEN_MORALE

constexpr float TransferTuning::Buyer::REJECTED_KEEN_MORALE = 10.0f
staticconstexpr

◆ REJECTED_OPEN_MORALE

constexpr float TransferTuning::Buyer::REJECTED_OPEN_MORALE = 3.0f
staticconstexpr

◆ REJECTED_SMALL_BID_MORALE

constexpr float TransferTuning::Buyer::REJECTED_SMALL_BID_MORALE = 3.0f
staticconstexpr

◆ REJECTED_TRUST

constexpr float TransferTuning::Buyer::REJECTED_TRUST = 6.0f
staticconstexpr

◆ REQUEST_AMBITION

constexpr std::uint8_t TransferTuning::Buyer::REQUEST_AMBITION = 70
staticconstexpr

Ambition from which a keen player asks to leave after a big bid is turned down.

◆ RIVAL_APPROACH_CHANCE

constexpr float TransferTuning::Buyer::RIVAL_APPROACH_CHANCE = 0.5f
staticconstexpr

A second club bids for a player who already has an offer on this share of its approaches.

◆ RIVAL_CEILING_BONUS

constexpr float TransferTuning::Buyer::RIVAL_CEILING_BONUS = 0.07f
staticconstexpr

Auction effect: each rival bidder lifts the ceiling and speeds up concessions, capped.

◆ RIVAL_CONCESSION_BONUS

constexpr float TransferTuning::Buyer::RIVAL_CONCESSION_BONUS = 0.10f
staticconstexpr

◆ SELL_ON_COST_PRIME

constexpr float TransferTuning::Buyer::SELL_ON_COST_PRIME = 0.35f
staticconstexpr

◆ SELL_ON_COST_SETTLED

constexpr float TransferTuning::Buyer::SELL_ON_COST_SETTLED = 0.20f
staticconstexpr

◆ SELL_ON_COST_VETERAN

constexpr float TransferTuning::Buyer::SELL_ON_COST_VETERAN = 0.08f
staticconstexpr

◆ SELL_ON_COST_YOUNG

constexpr float TransferTuning::Buyer::SELL_ON_COST_YOUNG = 0.45f
staticconstexpr

◆ SELL_ON_PRIME_AGE

constexpr int TransferTuning::Buyer::SELL_ON_PRIME_AGE = 24
staticconstexpr

◆ SELL_ON_SETTLED_AGE

constexpr int TransferTuning::Buyer::SELL_ON_SETTLED_AGE = 27
staticconstexpr

◆ SELL_ON_YOUNG_AGE

constexpr int TransferTuning::Buyer::SELL_ON_YOUNG_AGE = 21
staticconstexpr

Expected share of the fee a sell-on clause costs per percent point (resale odds times resale value), by age.

◆ TALKS_COOLDOWN_DAYS

constexpr int TransferTuning::Buyer::TALKS_COOLDOWN_DAYS = 30
staticconstexpr

A club whose talks ended (turned down, walked away, ignored) does not bid for the player again for this long, nor in the same window.

◆ TERMS_REFUSAL_HAPPY

constexpr float TransferTuning::Buyer::TERMS_REFUSAL_HAPPY = 0.15f
staticconstexpr

◆ TERMS_REFUSAL_OPEN

constexpr float TransferTuning::Buyer::TERMS_REFUSAL_OPEN = 0.05f
staticconstexpr

Chance the player fails to agree personal terms once the clubs agree, by his stance.

◆ TERMS_REFUSAL_RELUCTANT

constexpr float TransferTuning::Buyer::TERMS_REFUSAL_RELUCTANT = 0.60f
staticconstexpr

◆ WAGE_CEILING_CUT

constexpr float TransferTuning::Buyer::WAGE_CEILING_CUT = 0.25f
staticconstexpr

◆ WAGE_PRESSURE_SHARE

constexpr float TransferTuning::Buyer::WAGE_PRESSURE_SHARE = 0.5f
staticconstexpr

Wage budget: a club only bids for a player whose wage fits its wage room; a wage above WAGE_PRESSURE_SHARE of that room lowers its ceiling by up to WAGE_CEILING_CUT (all of the room).

◆ WALK_OUT_MULTIPLE

constexpr float TransferTuning::Buyer::WALK_OUT_MULTIPLE = 2.5f
staticconstexpr

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