harvest/game/tools
Forrest 91b9e52e96 Task #26: upgrade tiers and timed shed stock
Workbench stat upgrades get 3 levels: level L costs costs[id] x
upgrade_cost_growth (1.8) ^ (L - 1), each material rounded up, and opens on
day upgrade_level_days[L - 1] ([1, 8, 16]). Each owned level's "mult"/"add"
entry stacks. Level 1 keeps the user's values and costs (rapid fire 3.0x).
Shed items arrive on set days ("from_day"): corn shooter 1, shurikens 2,
pumpkin bombs 3, potato cannon 6, radar 8, propane torch 10, alien ray 14.

- Upgrades: level(), max_level(), maxed(), cost(cfg, id, level),
  next_cost(), per_level(), text_at(), name_at() (roman numerals),
  from_day(), level_day(), arrived(). owned() stays "level >= 1". blocker()
  adds "Arrives on day N" and "Level N opens on day D"; buy() takes the next
  level and applies that level's side effect; upgrades_bought counts every
  level. FarmState.upgrades keeps id -> level, so saves don't change shape.
- UpgradePanel: "Rapid fire II" with the next level's text and cost, the
  blocker reason, "Max" at the last level; a shed item before its day shows
  its name greyed with "Arrives on day N" ("?" plus the day if hidden). The
  title counts items at their last level. Every level bought jingles.
- Co-op: the host sends "bought" for any level (no wire change; PROTOCOL
  stays 5).
- soak_night.gd buys the lowest next level first across UPGRADE_ORDER.
- Tests: level costs, day gates, stacking, from_day, save/morning/retry/co-op,
  an old {"rapid_fire": 1} save as level 1. Existing tests set the day where
  they buy stock that now arrives later.
- RULES.md Upgrades: per-level effects and costs, stock schedule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:20:05 -04:00
..
build_player_animations.gd updates 2026-10-04 12:07:36 -04:00
build_player_animations.gd.uid init 2026-10-03 12:14:28 -04:00
build_prop_collision.gd init 2026-10-03 12:14:28 -04:00
build_prop_collision.gd.uid init 2026-10-03 12:14:28 -04:00
build_ui_theme.gd updates 2026-10-04 12:07:36 -04:00
build_ui_theme.gd.uid updates 2026-10-04 12:07:36 -04:00
configure_input.gd updates 2026-10-04 17:30:48 -04:00
configure_input.gd.uid updates 2026-10-04 12:07:36 -04:00
coop_smoke.gd Task #22: the joining player can open the store 2026-10-06 13:47:52 -04:00
coop_smoke.gd.uid updates 2026-10-04 12:07:36 -04:00
net_budget.gd Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
net_budget.gd.uid Co-op voice/session work, config retune, net budget tool, overhaul plan 2026-10-05 13:35:53 -04:00
render_overview.gd init 2026-10-03 12:14:28 -04:00
render_overview.gd.uid init 2026-10-03 12:14:28 -04:00
soak_night.gd Task #26: upgrade tiers and timed shed stock 2026-10-06 16:20:05 -04:00
soak_night.gd.uid updates 2026-10-04 12:07:36 -04:00
synth_audio.gd Task #18: Alien Ray fires a beam 2026-10-06 13:39:00 -04:00
synth_audio.gd.uid updates 2026-10-04 12:07:36 -04:00