Prayer: bury on the spot, retuned costs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
40e5274c4e
commit
a7ff97815f
5 changed files with 106 additions and 32 deletions
3
app.py
3
app.py
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue