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>
This commit is contained in:
parent
0124020167
commit
d0bb1f4433
4 changed files with 54 additions and 5 deletions
|
|
@ -32,6 +32,10 @@ costs = {
|
|||
"patch": {
|
||||
"straw": 2
|
||||
},
|
||||
"pouch_upgrade": {
|
||||
"straw": 8,
|
||||
"wood": 10
|
||||
},
|
||||
"pumpkin_bomb": {
|
||||
"scrap": 6,
|
||||
"straw": 12
|
||||
|
|
@ -91,6 +95,13 @@ upgrades = {
|
|||
"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)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue