Pitch photographs lie behind the match sheet; a managed ground shows how full it is
The stadium pictures give way to nine photographs of the pitch, used unscaled. The live read carries the capacity of a managed home ground. The manager's eleven stays on the team page after the final whistle, and the cards of two to four matches keep their grid. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
13f5b1e4d4
commit
20b8406763
42 files changed
+73
-213
No files matched your search
@@ -8793,6 +8793,12 @@ cli::Json ModernSession::read_live(const cli::Json& request) const {
|
||||
if (const int p = g_.squad_slots.at(range.first + s) & 0x0fff; p != 0x0fff) eleven.push_back(plain_name(p));
|
||||
starters[side ? "away" : "home"] = std::move(eleven);
|
||||
}
|
||||
cli::Json home_capacity(nullptr);
|
||||
if (hm >= 0 && !g_.indoor && g_.manager_records.size() >= size_t(hm) * 0xb0c + 0x54) {
|
||||
int64_t places = 0;
|
||||
for (size_t block = 0; block < 8; ++block) places += int64_t(g_.manager_records[size_t(hm) * 0xb0c + 0x4c + block]) * 1000;
|
||||
if (places > 0) home_capacity = cli::Json(places);
|
||||
}
|
||||
matches.push_back(O{{"events", std::move(events)}, {"lineups", std::move(starters)},
|
||||
{"home", O{{"id", modern::ui_team_id(g_, home)}, {"name", club_label(home)}}},
|
||||
{"away", O{{"id", modern::ui_team_id(g_, away)}, {"name", club_label(away)}}},
|
||||
@@ -8801,6 +8807,8 @@ cli::Json ModernSession::read_live(const cli::Json& request) const {
|
||||
// the crowd and the weather the kickoff set (descriptor +0x30 temperature,
|
||||
// +0x50 the weather picture 0-7)
|
||||
{"attendance", size_t(m) < grp.spectators.size() ? cli::Json(int64_t(grp.spectators[size_t(m)])) : cli::Json(nullptr)},
|
||||
// the places of a managed home ground: its eight stand blocks (record +0x4c.., thousands)
|
||||
{"capacity", home_capacity},
|
||||
{"weather", grp.desc.size() > 0x50 + size_t(m)
|
||||
? cli::Json(cli::Json::Object{{"temperature", int(int8_t(grp.desc[0x30 + size_t(m)]))}, {"rain", int(grp.desc[0x50 + size_t(m)])}})
|
||||
: cli::Json(nullptr)},
|
||||
|
||||
Reference in new issue
Block a user