Compact lobby top bar, scrollable initiative cards, hidden NPC names, resizable panels
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJhXuLD2Z6hv3Wqeq9UL9K
This commit is contained in:
@@ -58,6 +58,8 @@ def install(api, db, current_user, lobby_for, dm_only, hub, event, load_rules):
|
||||
continue
|
||||
if toks[e["token"]] and not is_dm:
|
||||
continue
|
||||
if e["kind"] == "npc" and not is_dm and e["id"] != c.get("current"):
|
||||
e = {**e, "name": ""} # players only learn an NPC's name when it is its turn
|
||||
out.append({k: e[k] for k in ("id", "kind", "name", "init", "base", "roll") if k in e} | {k: e[k] for k in ("user", "token") if k in e})
|
||||
cur = c.get("current")
|
||||
return {"round": c["round"], "current": cur if any(e["id"] == cur for e in out) else None, "entries": out}
|
||||
|
||||
Reference in New Issue
Block a user