Read the referee pool from the world (M5, data format F9)
Referees are staff rows with role referee. Imported ones keep their original property byte; added ones (attributes strictness and the new perception, 0-3 each) follow the 49 originals in table order, up to 255. The matchday draw uses the pool size; a second match per day remains the fallback when the pool runs out. The season sim gains MODERN_EXTRA_REFEREES=N for testing before data revision 1.4 exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28b59d9890
commit
57d75ab2f5
8 files changed
+100
-12
No files matched your search
@@ -21,6 +21,7 @@ namespace bmh::modern {
|
||||
struct ExpandReport {
|
||||
int league_clubs = 0, added_clubs = 0, added_players = 0, free_agents = 0;
|
||||
int fallback_nationalities = 0; // players whose nation has no Classic code
|
||||
int added_referees = 0; // referees behind the 49 Classic ones (data format F9)
|
||||
std::vector<std::string> notes; // moved league dates and similar remarks
|
||||
};
|
||||
|
||||
@@ -37,6 +38,11 @@ void install_world_dimensions(const World& world);
|
||||
// (docs/new_engine/trainingslager.md). Classic data keeps the eight original resorts.
|
||||
void install_training_camps(ModernState& g, const World& world);
|
||||
|
||||
// Adds the property bytes of the referees the world added to the referee properties of the
|
||||
// Classic database (indexed by referee; the turn driver draws from them). Needed for a new
|
||||
// career after expand_to_world and for a loaded one; the names live in the game state.
|
||||
void install_world_referees(std::vector<uint8_t>& properties, const World& world);
|
||||
|
||||
// The UTF-8 text of a name in the single-byte encoding of the engine texts (ISO 646-DE;
|
||||
// letters outside it lose their accents, other characters become '?').
|
||||
std::string legacy_encoding(const std::string& utf8);
|
||||
|
||||
Reference in new issue
Block a user