Pin skills to the top of the sidebar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-20 20:06:16 +01:00
parent fb237cb686
commit be478f3b2e
5 changed files with 55 additions and 4 deletions

2
app.py
View file

@ -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"