Choose when you eat between fights
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8afcba79fc
commit
bc99a1e0c5
5 changed files with 43 additions and 5 deletions
2
app.py
2
app.py
|
|
@ -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), {}):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue