harvest/game/resources/game_config.tres
Forrest d0bb1f4433 Task #3: pouch capacity rework (8 base, 16 upgraded)
Base pouch_capacity drops from a flat 16 to 8 (GameConfig). A new
"pouch_upgrade" (Bigger pouch, Scarecrow track, wood 10 + straw 8)
raises it to 16, bought once at the workbench like straw_stuffing.
Upgrades.buy() special-cases "pouch_capacity" the same way it already
does scarecrow_max_hp, writing straight to the live ResourceStore
value so it carries into the next morning, survives a save, and
comes back with a retry.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-05 14:50:15 -04:00

158 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",
"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",
"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"
}
}