An item definition in GameConfig.upgrades can set "hidden": true (optionally its own "reveal_goop", else the new config-tunable hidden_reveal_goop) so the workbench shows only a bare "?" (no name, text, or cost), disabled, until the player has collected that much Alien Goop in total. Upgrades.goop_collected()/revealed() derive this from FarmState.totals() (completed nights) plus night_events (the current cycle), so it persists through save and retry without any new stored state. blocker() and buy() both gate on it (covering the co-op buy-request path too), and UpgradePanel.refresh() shows the "?" row. No real upgrade ships hidden yet; #7/#8 (Alien Ray, Radar) will use this mechanism. Test flags a duplicated long_range/sticky_tar hidden to exercise it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| resources | ||
| scenes | ||
| scripts | ||
| tests | ||
| tools | ||
| COOP.md | ||
| LAYOUT.md | ||
| PLAYTEST.md | ||
| RULES.md | ||