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>
160 lines
2.6 KiB
Text
160 lines
2.6 KiB
Text
[gd_resource type="Resource" script_class="GameConfig" format=3 uid="uid://cqvl4hhgydj86"]
|
|
|
|
[ext_resource type="Script" uid="uid://bow5a4dimtdto" path="res://game/scripts/game_config.gd" id="1_cfg"]
|
|
|
|
[resource]
|
|
script = ExtResource("1_cfg")
|
|
costs = {
|
|
"automated_defense": {
|
|
"scrap": 6,
|
|
"straw": 2,
|
|
"wood": 2
|
|
},
|
|
"corn_shooter": {
|
|
"scrap": 10,
|
|
"wood": 4
|
|
},
|
|
"fence": {
|
|
"wood": 2
|
|
},
|
|
"gate": {
|
|
"scrap": 1,
|
|
"wood": 4
|
|
},
|
|
"heavy_seeds": {
|
|
"scrap": 14,
|
|
"straw": 10
|
|
},
|
|
"long_range": {
|
|
"scrap": 14,
|
|
"wood": 10
|
|
},
|
|
"patch": {
|
|
"straw": 2
|
|
},
|
|
"pouch_upgrade": {
|
|
"straw": 8,
|
|
"wood": 10
|
|
},
|
|
"pumpkin_bomb": {
|
|
"scrap": 6,
|
|
"straw": 12
|
|
},
|
|
"quick_fear": {
|
|
"scrap": 6,
|
|
"straw": 16
|
|
},
|
|
"rapid_fire": {
|
|
"scrap": 12,
|
|
"straw": 12,
|
|
"wood": 8
|
|
},
|
|
"reinforced_fences": {
|
|
"scrap": 6,
|
|
"wood": 20
|
|
},
|
|
"slowing_trap": {
|
|
"scrap": 3,
|
|
"wood": 1
|
|
},
|
|
"sprint": {
|
|
"straw": 6,
|
|
"wood": 8
|
|
},
|
|
"sticky_tar": {
|
|
"scrap": 6,
|
|
"straw": 14
|
|
},
|
|
"straw_stuffing": {
|
|
"straw": 12,
|
|
"wood": 4
|
|
},
|
|
"wide_fear": {
|
|
"straw": 20,
|
|
"wood": 4
|
|
}
|
|
}
|
|
upgrades = {
|
|
"corn_shooter": {
|
|
"name": "Corn shooter",
|
|
"shop": "shed",
|
|
"text": "A gun that fires corn kernels, from afar",
|
|
"track": "Weapon"
|
|
},
|
|
"heavy_seeds": {
|
|
"add": 1,
|
|
"name": "Heavy seeds",
|
|
"requires": "corn_shooter",
|
|
"stat": "shot_damage",
|
|
"text": "Each kernel does 2 damage",
|
|
"track": "Weapon"
|
|
},
|
|
"long_range": {
|
|
"mult": 1.3,
|
|
"name": "Long-range defenses",
|
|
"stat": "turret_range",
|
|
"text": "Turrets reach 30% farther",
|
|
"track": "Defenses"
|
|
},
|
|
"pouch_upgrade": {
|
|
"add": 8,
|
|
"name": "Bigger pouch",
|
|
"stat": "pouch_capacity",
|
|
"text": "+8 pouch capacity (16 total)",
|
|
"track": "Scarecrow"
|
|
},
|
|
"pumpkin_bomb": {
|
|
"name": "Pumpkin bombs",
|
|
"shop": "shed",
|
|
"text": "Throw a pumpkin that bursts, hurting everything within 3 m (one every 4 s)",
|
|
"track": "Weapon"
|
|
},
|
|
"quick_fear": {
|
|
"mult": 0.8,
|
|
"name": "Quick fear",
|
|
"stat": "fear_cooldown",
|
|
"text": "Fear recharges 20% faster",
|
|
"track": "Fear"
|
|
},
|
|
"rapid_fire": {
|
|
"mult": 3.0,
|
|
"name": "Rapid fire",
|
|
"requires": "corn_shooter",
|
|
"stat": "fire_rate",
|
|
"text": "The corn shooter fires 3x faster!!!!!",
|
|
"track": "Weapon"
|
|
},
|
|
"reinforced_fences": {
|
|
"mult": 1.5,
|
|
"name": "Reinforced fences",
|
|
"stat": "barrier_hp",
|
|
"text": "Fences and gates +50% health",
|
|
"track": "Defenses"
|
|
},
|
|
"sprint": {
|
|
"name": "Sprint",
|
|
"text": "Sprint 80% faster for 4 s at a time, every 10 s",
|
|
"track": "Scarecrow"
|
|
},
|
|
"sticky_tar": {
|
|
"mult": 1.5,
|
|
"name": "Sticky tar",
|
|
"stat": "trap_slow_time",
|
|
"text": "Tar patches hold 50% longer",
|
|
"track": "Defenses"
|
|
},
|
|
"straw_stuffing": {
|
|
"add": 2,
|
|
"name": "Straw stuffing",
|
|
"stat": "scarecrow_max_hp",
|
|
"text": "+2 max health",
|
|
"track": "Scarecrow"
|
|
},
|
|
"wide_fear": {
|
|
"mult": 1.3,
|
|
"name": "Wide fear",
|
|
"stat": "fear_radius",
|
|
"text": "Fear reaches 30% farther",
|
|
"track": "Fear"
|
|
}
|
|
}
|