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

@ -114,6 +114,12 @@ func morning_snapshot() -> Dictionary:
return _morning_snapshot.duplicate(true)
## The farm as it is now becomes this morning's snapshot, the one a retry goes back to (debug: F8
## in the morning review, so a retry keeps what it unlocked). Nothing is saved.
func retake_morning_snapshot() -> void:
_morning_snapshot = state.to_dict()
## D9: restarts the current night from its morning (the autosave point).
func retry_night() -> bool:
if remote_request.is_valid():