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
|
|
@ -72,6 +72,7 @@
|
|||
[ext_resource type="Script" uid="uid://dc3i7w50plvjs" path="res://game/scripts/resource_hud.gd" id="107_resource_hud"]
|
||||
[ext_resource type="Script" uid="uid://cj88bbt6nct61" path="res://game/scripts/gather_node.gd" id="108_gather"]
|
||||
[ext_resource type="Script" uid="uid://dr1dglq0p05hu" path="res://game/scripts/workbench.gd" id="109_workbench"]
|
||||
[ext_resource type="Script" uid="uid://bxd4bqbbuwrw2" path="res://game/scripts/shed_counter.gd" id="237_shed_counter"]
|
||||
[ext_resource type="Script" uid="uid://kmuyj86rfjj2" path="res://game/scripts/build_hud.gd" id="110_build_hud"]
|
||||
[ext_resource type="Script" uid="uid://bp7dq566avk2v" path="res://game/scripts/phase_hud.gd" id="111_phase_hud"]
|
||||
[ext_resource type="Script" uid="uid://cwll33writ0hq" path="res://game/scripts/review_panel.gd" id="112_review"]
|
||||
|
|
@ -2281,6 +2282,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.8, 0, 2.4)
|
|||
[node name="barrel_010_1" parent="Zones/SupplyShed" unique_id=306653999 instance=ExtResource("210_barrel_010")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.7, 0, 2.9)
|
||||
|
||||
[node name="ShedCounter" type="Node3D" parent="Zones/SupplyShed"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3.5)
|
||||
script = ExtResource("237_shed_counter")
|
||||
|
||||
[node name="WorkArea" type="Node3D" parent="Zones" unique_id=1622333960]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 28.599358, 0, -25.317692)
|
||||
script = ExtResource("201_farm_zone")
|
||||
|
|
@ -3046,7 +3051,16 @@ grow_vertical = 2
|
|||
mouse_filter = 2
|
||||
script = ExtResource("114_upgrades")
|
||||
|
||||
[node name="FarmSim" type="Node" parent="." unique_id=117307361 node_paths=PackedStringArray("campaign", "zones", "player", "camera", "toasts", "alerts", "hud", "end_panel", "resource_hud", "build_hud", "phase_hud", "asset_hud", "review_panel", "upgrade_panel", "sun", "world_environment")]
|
||||
[node name="ShedPanel" type="CenterContainer" parent="Hud"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("114_upgrades")
|
||||
|
||||
[node name="FarmSim" type="Node" parent="." unique_id=117307361 node_paths=PackedStringArray("campaign", "zones", "player", "camera", "toasts", "alerts", "hud", "end_panel", "resource_hud", "build_hud", "phase_hud", "asset_hud", "review_panel", "upgrade_panel", "shed_panel", "sun", "world_environment")]
|
||||
script = ExtResource("102_farm_sim")
|
||||
campaign = NodePath("../Campaign")
|
||||
zones = NodePath("../Zones")
|
||||
|
|
@ -3062,5 +3076,6 @@ phase_hud = NodePath("../Hud/PhaseHud")
|
|||
asset_hud = NodePath("../Hud/AssetHud")
|
||||
review_panel = NodePath("../Hud/ReviewPanel")
|
||||
upgrade_panel = NodePath("../Hud/UpgradePanel")
|
||||
shed_panel = NodePath("../Hud/ShedPanel")
|
||||
sun = NodePath("../Sun")
|
||||
world_environment = NodePath("../WorldEnvironment")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue