Choose when you eat between fights

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-24 14:02:24 +01:00
parent 8afcba79fc
commit bc99a1e0c5
5 changed files with 43 additions and 5 deletions

2
app.py
View file

@ -454,6 +454,8 @@ class Handler(BaseHTTPRequestHandler):
if path == "/api/prayers":
ids = body.get("ids")
return game.set_prayers(player, ids) if isinstance(ids, list) else "Bad request"
if path == "/api/eat":
return game.set_eat_below(player, body.get("below"))
if path == "/api/food":
food = body.get("item")
if food is not None and "heal" not in game.ITEMS.get(str(food), {}):