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
@@ -307,6 +307,18 @@ AdvertisingOfferList advertising_offers(const ModernState& g, int manager, int d
|
||||
AdvertisingOfferResult accept_advertising_offer(ModernState& g,
|
||||
const AdvertisingOfferRequest& request);
|
||||
|
||||
// Exclusive sponsor from a training camp stay (Modern; docs/new_engine/trainingslager.md).
|
||||
// book_training_camp rolls the camp's sponsor_chance; a hit offers a shirt (about every third
|
||||
// offer) or four boards at sponsor_bonus percent of the club's best regular offer for
|
||||
// sponsor_months months, and posts a message. One offer or queued contract per manager.
|
||||
void roll_exclusive_sponsor(ModernState& g, int manager, int resort, WatcomRandom& rand);
|
||||
enum class ExclusiveSponsorAnswer { declined, started, queued, invalid };
|
||||
// The manager's answer. Accepted: the contract starts now when its place is free (the shirt
|
||||
// without a running contract, enough free boards), else it waits for the place (queued).
|
||||
ExclusiveSponsorAnswer answer_exclusive_sponsor(ModernState& g, int manager, bool accept);
|
||||
// At the month change: a queued contract starts once its place is free.
|
||||
void start_queued_exclusive_sponsor(ModernState& g, int manager);
|
||||
|
||||
// CheckAdvertisingRenewal: a click on a contract whose months ran out (sponsor set, months 0 - the
|
||||
// month change posted "kann verlängert werden", Month_MonthChange_TextPointer). The sponsor's demand (word
|
||||
// +8, the club attraction it wants) is scaled by W(95, 105) % (WatcomRandom); if it stays
|
||||
|
||||
Reference in new issue
Block a user