Bind native statistics to recorded careers and correct cup winners (by Codex)
This commit is contained in:
1 parent
e3ea03a05d
commit
eb140cdb1c
24 files changed
+296
-33
No files matched your search
@@ -625,11 +625,16 @@ void winners_by_season(O& out, const std::vector<AlmanacSeason>& seasons, int ca
|
||||
std::vector<Title> titles;
|
||||
if (category == 0) {
|
||||
const Country& c = kCountries[country];
|
||||
titles.push_back({"Meisterschaft", c.league == 0 ? "championship" : "", 0, c.league, 0});
|
||||
if (c.league == 0) titles.push_back({"DFB-Pokal", "dfb-cup", 1, -1, 0});
|
||||
static constexpr const char* trophies[]{"championship","es-la-liga","it-serie-a","fr-ligue-1","en-premier-league"};
|
||||
titles.push_back({"Meisterschaft", trophies[country], 0, c.league, 0});
|
||||
if (c.league == 0) {
|
||||
titles.push_back({"DFB-Pokal", "dfb-cup", 1, -1, 0});
|
||||
titles.push_back({"Supercup", "supercup", 9, -1, 0}); // cup-table index 8 + 1
|
||||
}
|
||||
out["note"] = std::string(c.name) + " · Titelträger im Saisonvergleich";
|
||||
} else if (category == 1) {
|
||||
titles = {{"Champions League", "champions-league", 2, -1, 0}, {"Pokalsieger", "cup-winners", 3, -1, 0}, {"UEFA-Cup", "uefa-cup", 4, -1, 0}};
|
||||
// Almanac types are cup-table index + 1: UEFA=1, Champions=2, Winners=3.
|
||||
titles = {{"Champions League", "champions-league", 3, -1, 0}, {"Pokalsieger", "cup-winners", 4, -1, 0}, {"UEFA-Cup", "uefa-cup", 2, -1, 0}};
|
||||
out["note"] = "Europäische Titelträger im Saisonvergleich";
|
||||
} else {
|
||||
titles = {{"Sieger", "indoor-masters", 12, -1, 1}, {"Finalist", "", 12, -1, 2}};
|
||||
|
||||
Reference in new issue
Block a user