Queue: +Q from anything, After Q / Skip Q

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-27 20:01:00 +00:00
parent 54f703341e
commit 6e48c72d95
5 changed files with 93 additions and 15 deletions

4
app.py
View file

@ -364,7 +364,7 @@ class Handler(BaseHTTPRequestHandler):
once = body.get("once") or 0
if not isinstance(once, int) or not 0 <= once <= game.MAKE_MAX:
return f"1 to {game.MAKE_MAX:,}"
return game.start_action(world, player, str(body.get("id")), now, once=int(once))
return game.start_action(world, player, str(body.get("id")), now, once=int(once), skip=body.get("skip") is True)
if path == "/api/queue":
qty = body.get("qty")
if not isinstance(qty, int) or not 1 <= qty <= game.MAKE_MAX:
@ -384,6 +384,8 @@ class Handler(BaseHTTPRequestHandler):
if path == "/api/queue/clear":
player["queue"] = []
return None
if path == "/api/queue/then":
return game.set_then(player, None)
if path == "/api/queue/skip":
return game.skip_make(world, player, now)
if path == "/api/join":