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:
parent
1ccf825bbf
commit
308854d52c
17 changed files with 260 additions and 64 deletions
|
|
@ -245,6 +245,9 @@ func setup(p_sim: FarmSim) -> void:
|
|||
if sim.upgrade_panel != null:
|
||||
sim.upgrade_panel.bought.connect(func(_id: String) -> void: play("upgrade"))
|
||||
wire_buttons(sim.upgrade_panel)
|
||||
if sim.shed_panel != null:
|
||||
sim.shed_panel.bought.connect(func(_id: String) -> void: play("upgrade"))
|
||||
wire_buttons(sim.shed_panel)
|
||||
if sim.review_panel != null:
|
||||
wire_buttons(sim.review_panel)
|
||||
if sim.end_panel != null:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue