harvest/game/resources
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
..
nights Task #15 follow-up: shrink night 5's UFO group to a modest 7 2026-10-05 14:46:55 -04:00
scenarios Task #15: UFO enemy, a fast flying fighter 2026-10-05 14:43:46 -04:00
audio_buses.tres updates 2026-10-04 12:07:36 -04:00
breaker_animations.res updates 2026-10-04 12:07:36 -04:00
enemy_overlay.gdshader updates 2026-10-04 12:07:36 -04:00
enemy_overlay.gdshader.uid updates 2026-10-04 12:07:36 -04:00
fear_burst.gdshader updates 2026-10-04 12:07:36 -04:00
fear_burst.gdshader.uid updates 2026-10-04 12:07:36 -04:00
game_config.tres Task #26: upgrade tiers and timed shed stock 2026-10-06 16:20:05 -04:00
hp_bar.gdshader updates 2026-10-04 12:07:36 -04:00
hp_bar.gdshader.uid updates 2026-10-04 12:07:36 -04:00
loot_icon.gdshader updates 2026-10-04 12:07:36 -04:00
loot_icon.gdshader.uid updates 2026-10-04 12:07:36 -04:00
player_animations.res updates 2026-10-04 12:07:36 -04:00
steal_ring.gdshader updates 2026-10-04 12:07:36 -04:00
steal_ring.gdshader.uid updates 2026-10-04 12:07:36 -04:00
thief.gdshader updates 2026-10-04 12:07:36 -04:00
thief.gdshader.uid updates 2026-10-04 12:07:36 -04:00
ufo.gdshader Task #19: UFO model built from primitives 2026-10-06 12:55:14 -04:00
ufo.gdshader.uid Task #19: UFO model built from primitives 2026-10-06 12:55:14 -04:00
ui_theme.tres updates 2026-10-04 12:07:36 -04:00