Lower, readable table buttons; keep DM buttons in player view

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HJhXuLD2Z6hv3Wqeq9UL9K
This commit is contained in:
2026-10-24 19:50:56 +00:00
co-authored by Claude Sonnet 5.5
parent c1fdb7cc76
commit 779978ad02
3 changed files with 15 additions and 7 deletions
+1
View File
@@ -618,6 +618,7 @@ def install(api, db, current_user, lobby_for, dm_only, hub, event, store_dir: Pa
"vision": {"los": ctx["los"], "empty": ctx["empty"], "rev": ctx["rev"], "fog": ctx.get("fog")}}
if ctx["is_dm"]:
res["los_on"] = bool(lobby["los"])
res["wall_count"] = len(ctx["walls"])
res["sight"] = lobby["sight"] if lobby["sight"] is not None else m["sight"]
res["sight_map"] = m["sight"]
res["fog_on"] = bool(lobby["fog"])