Roster shows who's online
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f735831a1e
commit
718e440e2b
4 changed files with 19 additions and 5 deletions
1
app.py
1
app.py
|
|
@ -217,6 +217,7 @@ def roster(world: dict, now: float) -> list[dict]:
|
|||
"party": (player["action"] or {}).get("party"),
|
||||
"garrison": player["garrison"], "donated": player["donated"],
|
||||
"look": game.look_view(player),
|
||||
"seen": int(player["last_active"]),
|
||||
})
|
||||
return sorted(people, key=lambda p: -p["donated"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue