Prayer: bury on the spot, retuned costs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-27 08:39:34 +00:00
parent 40e5274c4e
commit a7ff97815f
5 changed files with 106 additions and 32 deletions

3
app.py
View file

@ -499,6 +499,9 @@ class Handler(BaseHTTPRequestHandler):
if path == "/api/track":
return game.toggle_track(player, str(body.get("id")))
if path == "/api/settings":
if isinstance(body.get("bury"), bool):
player["bury"] = body["bury"]
return None
if body.get("overflow") not in ("city", "stop"):
return "Bad setting"
player["overflow"] = body["overflow"]