Fittings: Construction-made building upgrades from planks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-19 11:15:19 +01:00
parent fb4b8bf7c8
commit cdb109e554
7 changed files with 218 additions and 14 deletions

2
app.py
View file

@ -325,6 +325,8 @@ class Handler(BaseHTTPRequestHandler):
return game.fund(world, player, str(body.get("building")), str(body.get("item")),
qty if qty == "all" else (qty if isinstance(qty, int) else -1),
str(body.get("source")), now)
if path == "/api/install":
return game.install(world, player, str(body.get("fitting")), str(body.get("source")), now)
if path == "/api/garrison":
raid = game.upcoming_raid(world)
if body.get("join") and not raid: