Work orders: gather straight into the order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-11-11 13:48:08 +00:00
parent 5809be59de
commit 450abc9be9
4 changed files with 79 additions and 19 deletions

2
app.py
View file

@ -451,7 +451,7 @@ class Handler(BaseHTTPRequestHandler):
if path == "/api/order/remove":
return game.remove_orders(world, player, body.get("id"))
if path == "/api/order/work":
return game.work_order(world, player, body.get("id"), now)
return game.work_order(world, player, body.get("id"), now, str(body["via"]) if body.get("via") else None)
if path == "/api/order/drop":
return game.drop_order(world, player, body.get("id"), now)
if path == "/api/order/deliver":