Count days and seasons by calendar day
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
75327f30e0
commit
70246f78ea
3 changed files with 23 additions and 4 deletions
2
app.py
2
app.py
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue