Forecast line gets its own tooltip

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-20 21:46:37 +01:00
parent 91a5263acf
commit 8d6d23261e
2 changed files with 7 additions and 2 deletions

View file

@ -3849,7 +3849,7 @@ def happenings_view(world: dict, now: float) -> dict:
"season": season(world, now),
"weather": {**{k: v for k, v in WEATHER[weather["kind"]].items()}, "kind": weather["kind"], "until": weather["until"],
"next": weather["next"], "next_name": WEATHER[weather["next"]]["name"],
"next_icon": WEATHER[weather["next"]]["icon"]},
"next_icon": WEATHER[weather["next"]]["icon"], "next_text": WEATHER[weather["next"]]["text"]},
"effects": [{k: e[k] for k in ("kind", "name", "icon", "text", "until", "speed", "yield", "xp") if k in e}
| {"offer": e.get("offer", False), "cost": e.get("cost")} for e in city["effects"]],
"problems": problems,