Task #6: Supply Shed as its own weapon shop, separate from the Workbench

Adds a second UpgradePanel instance (shop "shed") at the Supply Shed's new
ShedCounter node, opened by interact like the Workbench. corn_shooter and
pumpkin_bomb move there ("shop": "shed" in GameConfig.upgrades); the
Workbench's panel (shop "workbench", the default) keeps rapid_fire,
heavy_seeds, and the rest, with "requires" still crossing shops. Co-op buys
go through the same ["buy", id] host gate; a shed_requested signal mirrors
workbench_requested so the partner's own shed panel opens. The shed's
walk-in pouch deposit is unaffected (no interact, not gated by the
counter's reach).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-05 15:13:48 -04:00
parent 1ccf825bbf
commit 308854d52c
17 changed files with 260 additions and 64 deletions

View file

@ -135,10 +135,12 @@ func _requests() -> void:
client.build.place_request.call("fence", 30.0, -30.0, 0)
_pump(20)
r.check(host.structures.count() == before + 1, "a placement out of the partner's reach is refused by the host")
client.upgrade_panel.buy_request.call("corn_shooter")
r.check(not host.upgrade_panel._rows.has("corn_shooter") and host.shed_panel._rows.has("corn_shooter"),
"the corn shooter is sold at the supply shed's menu, not the workbench's (also on the partner's replica)")
client.shed_panel.buy_request.call("corn_shooter")
_pump(20)
r.check(Upgrades.owned(host.campaign.state, "corn_shooter") and Upgrades.owned(client.campaign.state, "corn_shooter"),
"the partner buys an upgrade at the workbench (the host does it)")
"the partner buys a weapon at the supply shed (the host does it)")
## Standing still by day: the clock runs, nothing else changes.