Debug F8 unlocks everything: every upgrade and shop item at its last level

CampaignDebug.unlock_all (debug builds, not on a co-op partner's machine,
until the vacation ends) grants every upgrade and shed item at its last
level for free through Upgrades.grant_all, which shares the new
Upgrades.level_up with buy(), so each level's effect (max health, pouch,
barrier health) applies as if bought. Not counted as bought in the night
record. In the morning review the retry snapshot is retaken
(CampaignController.retake_morning_snapshot) so a retry keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-06 16:54:34 -04:00
parent 3f32596034
commit 10390cf382
5 changed files with 101 additions and 5 deletions

View file

@ -109,7 +109,8 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
[`game/RULES.md`](game/RULES.md) and the development plan in
[`first-game-plan.md`](first-game-plan.md). `CampaignDebug` is a debug readout of the phase and
farm state, hidden until F1. Debug keys: F6 ends the current phase, F7 cycles 1× / 5× / 20×
speed, F9 sets the scarecrow to 0 HP, F10 strips the farm (every category), R retries after a
speed, F8 unlocks everything (every upgrade and shop item at its last level, free;
`CampaignDebug.unlock_all`), F9 sets the scarecrow to 0 HP, F10 strips the farm (every category), R retries after a
Game Over, and T / G / H send in a thief / a crow / a fence breaker. F2 cycles tonight's plan
through the debug scenarios (`game/resources/scenarios/`). They introduce the enemies one type at
a time (crows, thieves, fence breakers), then pairs, then all three. In the morning review,