Count days and seasons by calendar day

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-19 09:42:36 +01:00
parent 75327f30e0
commit 70246f78ea
3 changed files with 23 additions and 4 deletions

2
app.py
View file

@ -149,7 +149,7 @@ def city_view(world: dict, now: float) -> dict:
"merchant_until": city.get("merchant_until", 0),
"repelled": city["repelled"],
"defence": game.defence(world),
"day": int((now - world["created"]) * game.speed(world) // game.DAY) + 1,
"day": game.calendar_day(world, now) + 1,
}