Exclusive sponsor from training camp stays (Modern)
The Middle East camps share their grades but differ in price; a stay
can now bring an exclusive sponsor: 15 / 30 / 45 % per stay (Doha /
Abu Dhabi / Dubai), a shirt (about every third offer) or four boards at
twice the club's best regular offer for 12 months. Accepted on a free
place it starts at once, otherwise it is queued and starts at a month
change once the place is free. The offer goes through the regular
advertising acceptance.
Camp fields sponsor_chance / sponsor_bonus / sponsor_months (data
format F4, editable; built-in values for the Middle East camps), state
saved in state/modern.json, read query {kind: "sponsor"}, session action
dispatch_exclusive_sponsor, tests in modern_camp_tests, SIM_SPONSOR=1.
Sponsor artwork does not exist yet (asset: null, documented).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44a7a77915
commit
77d1f93e8f
20 files changed
+333
-13
No files matched your search
@@ -63,6 +63,20 @@ struct ModernState : GameState {
|
||||
bool operator==(const PoolsColumns&) const = default;
|
||||
};
|
||||
std::vector<PoolsColumns> pools;
|
||||
// Exclusive sponsor from a training camp stay (docs/new_engine/trainingslager.md), per manager.
|
||||
struct ExclusiveSponsor {
|
||||
bool offered = false; // an offer waits for the manager's answer
|
||||
bool queued = false; // accepted while the place was taken: starts when it is free
|
||||
uint8_t kind = 0; // 0 boards, 1 shirt
|
||||
uint8_t units = 0; // boards of a board offer
|
||||
uint8_t months = 0; // contract months
|
||||
uint8_t sponsor = 0; // sponsor name index of the advertising list
|
||||
uint32_t monthly = 0; // per board / for the shirt, per month
|
||||
uint16_t score = 0; // the club's advertising score when offered (offer byte +8)
|
||||
std::string camp; // the camp that brought it
|
||||
bool operator==(const ExclusiveSponsor&) const = default;
|
||||
};
|
||||
std::vector<ExclusiveSponsor> exclusive_sponsors;
|
||||
// Players whose age the data set gives (birth date); the others carry a placeholder the
|
||||
// career start replaces as in the original. Needed only while a career starts (not saved).
|
||||
std::vector<bool> world_age_known;
|
||||
|
||||
Reference in new issue
Block a user