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

@ -6,7 +6,7 @@ extends Control
## recharging); plus a red screen tint when the scarecrow is hit. Bottom-right, the weapons:
## the main ones by number, the one in hand marked, and how to switch; under them the off-hand
## (pumpkin bombs, marked when one is ready, else its recharge) and its button. The ones not
## bought yet are greyed out (from the workbench).
## bought yet are greyed out (with where to buy them: Upgrades.shop_of).
const PIP := Vector2(22.0, 16.0)
const PIP_GAP := 5.0
@ -156,7 +156,8 @@ func _update_weapons() -> void:
func _weapon_row(l: Label, text: String, w: int, lit: bool) -> void:
var color := Color(0.95, 0.95, 0.95)
if not combat.owns(w):
text += " (workbench)"
var shop := Upgrades.shop_of(campaign.config, ScarecrowCombat.WEAPON_IDS[w]) if campaign != null else "workbench"
text += " (%s)" % ("supply shed" if shop == "shed" else "workbench")
color = Color(0.55, 0.55, 0.55)
elif lit:
color = Color(1.0, 0.85, 0.3)