Pin skills to the top of the sidebar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fb237cb686
commit
be478f3b2e
5 changed files with 55 additions and 4 deletions
2
app.py
2
app.py
|
|
@ -409,6 +409,8 @@ class Handler(BaseHTTPRequestHandler):
|
|||
return game.plant_second_plot(world, player, body.get("id") or None)
|
||||
if path == "/api/perk":
|
||||
return game.buy_perk(player, str(body.get("perk")))
|
||||
if path == "/api/pin":
|
||||
return game.toggle_pin(player, str(body.get("skill")))
|
||||
if path == "/api/settings":
|
||||
if body.get("overflow") not in ("city", "stop"):
|
||||
return "Bad setting"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue