Files
Dreierpack-Manager/src/modern/game/training_camps.hpp
T
ClaudeandClaude Opus 5.5 0cace5a984 Lower the exclusive sponsor to 1.5 times the best regular offer
Measured with twice the offer, four boards brought a top club about 5 million a year and the dearest camp paid off clearly on average; at 150 % it is about 3.8-4 million, roughly break-even for Dubai with luck on top. Default sponsor_bonus is now 150 (data format F4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 09:25:17 +01:00

46 lines
1.8 KiB
C++

// SPDX-License-Identifier: GPL-3.0-only
#pragma once
// Training camp catalogue of the Modern season core (docs/new_engine/trainingslager.md, M4).
//
// Classic has eight resorts with four quality grades 1-5 read from the executable. Modern
// worlds list their camps in rule:training-camps: map (Germany, Europe, Middle East, ...),
// position on that map, place, country, base price and the four grades 0-6 (pitch, fitness,
// catering, lodging). A world without such a catalogue gets the built-in, fictional
// catalogue of 18 camps the Modern interface was designed with.
#include <array>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
namespace bmh::modern {
struct CampMap {
std::string id; // map:de, map:eu, map:me
std::string name;
std::optional<int> width, height; // coordinate system, once the interface defines it
};
struct TrainingCamp {
std::string id; // resort:<n>
std::string map; // CampMap id
std::optional<int> x, y; // position on the map, null until the interface sets it
std::string name, place, country;
int32_t base_price = 0; // the price is base_price + 5000 per squad player
std::array<uint8_t, 4> quality{}; // pitch, fitness, catering, lodging (0-6)
// Exclusive sponsor (docs/new_engine/trainingslager.md): chance per stay in percent (0 = none),
// the offer's amount in percent of the best regular offer, its contract months.
int sponsor_chance = 0, sponsor_bonus = 150, sponsor_months = 12;
};
struct CampCatalogue {
std::vector<CampMap> maps;
std::vector<TrainingCamp> camps;
};
// The built-in catalogue: 18 fictional camps on three maps (Germany 6, Europe 9, Middle East 3).
const CampCatalogue& default_camp_catalogue();
} // namespace bmh::modern