What the game already states is shown: planned income, both clubs of a report, photos in the line-up, an opponent's place

Bilanz > Zukunft shows the expected income and the result of the plan beside
the planned costs. A match report in the inbox carries the crests of both
clubs. The line-up's rows begin with the player's photo. The stadium's
curves name their lowest, highest and latest figure. The friendly plan
states the place in the table and the games played of every league club,
and the opponent's tile shows them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-16 13:41:30 +01:00
1 parent 205e98973b
commit 11264ccdb5
9 files changed
+67 -7

No files matched your search

+8
View File
@@ -20,6 +20,14 @@ std::string App::render_news_art(const Json &message, double size) {
art = picture(renderer_.diagram("news-national-flag", ui_nation_flag_svg("de"), 176), size * .69, size * .46);
else if (kind == "club" || kind == "career")
art = crest(world_->find("clubs", message.value("scope", Json::object()).value("id", std::string())), size * .69);
// a report of a match shows both clubs: the one the report is about and its opponent
if (kind == "fixture" && message.contains("scope") && message.contains("article")) {
const auto &article = message.at("article");
const Json *data = article.is_object() && article.contains("event") && article.at("event").is_object() && article.at("event").contains("data") ? &article.at("event").at("data") : nullptr;
const auto *own = world_->find("clubs", message.at("scope").value("id", std::string()));
const auto *other = data && data->is_object() && data->contains("opponent") && data->at("opponent").is_object() ? world_->find("clubs", data->at("opponent").value("id", std::string())) : nullptr;
if (own && other) art = "<span class=\"news-art-pair\">" + crest(own, size * .46) + crest(other, size * .46) + "</span>";
}
if (art.empty()) {
// what a letter is about decides its sign: an injury, money, a report of a match
if (has({"verletz", "Verletz", "fällt", "Arzt", "Prellung", "prellung", "Zerrung", "riss"})) art = sign("doctor", doctor);