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

@ -17,7 +17,7 @@ const TEXT := {
"store": "Your pouch only holds so much: walk onto the barn's apron (the Supply Shed) to store what you carry.",
"build": "Press [B / d-pad up] to build. Pick a fence [1], place it with left mouse / RT. Aliens have to break through fences.",
"dusk": "Dusk: aliens come at nightfall, from every side of the farm.",
"shoot": "Aim with the mouse or the right stick and hold left mouse / RT to stab with your pitchfork. The workbench sells a corn shooter (switch with [Tab / 1-2]) and pumpkin bombs for your off-hand: throw them with [right mouse / LT].",
"shoot": "Aim with the mouse or the right stick and hold left mouse / RT to stab with your pitchfork. The supply shed sells a corn shooter (switch with [Tab / 1-2]) and pumpkin bombs for your off-hand: throw them with [right mouse / LT].",
"fear": "Crowded? [Q / LB] Fear scares off everything nearby, and they drop what they carry.",
"recover": "Something was dropped! Walk over it to bring it home. A dropped animal follows you back to the pen.",
"patch": "Hurt? Hold [F / Y] to patch up with straw. Health carries over to the next night.",
@ -92,8 +92,7 @@ func _process(delta: float) -> void:
if sim == null:
return
var s := sim.campaign.state
if not enabled or dismissed or s.night != 1 or sim.campaign.is_over() \
or (sim.upgrade_panel != null and sim.upgrade_panel.is_open):
if not enabled or dismissed or s.night != 1 or sim.campaign.is_over() or sim._menu_open():
_show("")
return
_check_done()