Task #27: the thirty nights

- campaign_nights 5 -> 30. The old night 5 ("The last night") is now night 30, keeping its
  uid, title, hint, and 180 s. It grew to 73 base / 511 played in its three waves, with UFO
  groups added, at speed x1.25 and HP x1.625.
- New hand-authored night 5, "Lights in the sky": night 4's shape plus the first UFOs (two
  single-UFO groups, 14 as played), 24 base.
- New game/tools/make_nights.gd writes nights 6-29 by the plan's recipe (seed 30, sieges on
  10/15/20/25, mix, waves, scales, draft titles and hints) as .tres text with fresh uids. It
  skips existing files unless --force (which keeps their uids), refuses ranges outside 6..29,
  and checks every plan with NightPlan.problems() at the played scales (non-zero exit on any
  problem). Generated nights 6-29 are committed.
- test_nights: the arc (30 plans, breakers from night 3 and UFOs from night 5, no non-siege drop
  over 15% from night 3 on, sieges, last night longest), the per-night scales, the new night 5
  and night 30 designs. The back-to-back run plays nights 1-5, 10, and 30, skipping the rest
  with CampaignDebug.jump_morning.
- test_campaign, test_cycle, test_flow read campaign_nights instead of a hard-coded 5.
- RULES (the vacation, the Night row, the thirty nights and their table, the vacation's end),
  README, and a dated PLAYTEST section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-06 16:38:07 -04:00
parent 3bb835f7c3
commit ab1443325a
36 changed files with 2956 additions and 136 deletions

View file

@ -5,9 +5,10 @@ extends Resource
## starting value to tune during balancing.
@export_group("Campaign")
## Nights the scarecrow must survive before the farmers return. Night n plays the plan in
## game/resources/nights/night_<n>.tres (FarmSim.night_plan_path), so there must be one per night.
@export_range(1, 60) var campaign_nights: int = 5
## Nights the scarecrow must survive before the farmers return: thirty. Night n plays the plan in
## game/resources/nights/night_<n>.tres (FarmSim.night_plan_path), so there must be one per night
## (1-5 and 30 are hand-made; game/tools/make_nights.gd writes 6-29).
@export_range(1, 60) var campaign_nights: int = 30
@export_group("Waves")
## Every night plan's groups are scaled when played: this many times the enemies, arriving this