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:
parent
3bb835f7c3
commit
ab1443325a
36 changed files with 2956 additions and 136 deletions
|
|
@ -10,7 +10,7 @@ sunrise retreat, and the end of the dawn grace (`FarmSim`, `ThiefBehavior`, `Loo
|
|||
`AnimalSystem`, `ShedStock`; Steps 3 and 8); the scarecrow, gathering, and building (Steps 4–6);
|
||||
the night plans, dusk warnings, morning review, and lighting (Step 7: `WaveDirector`,
|
||||
`ReviewPanel`, `PhaseHud`, `DayNight`); the enemy roster and the alerts (Step 9: `EnemySystem`,
|
||||
`ThiefBehavior`, `EnemyCharacters`, `AlertManager`); the five nights and the upgrades (Step 10:
|
||||
`ThiefBehavior`, `EnemyCharacters`, `AlertManager`); the nights and the upgrades (Step 10:
|
||||
`NightPlan`, `Upgrades`, `UpgradePanel`); the menus, saving, settings, results, endings, tips, and
|
||||
sound (Step 11: `Main`, `SaveGame`, `GameSettings`, `ReviewPanel`, `EndPanel`, `Assessment`,
|
||||
`FarmersReturn`, `Tutorial`, `FarmAudio`). Rules for later steps are written here first and
|
||||
|
|
@ -18,8 +18,10 @@ marked with the step that implements them.
|
|||
|
||||
## The vacation
|
||||
|
||||
- The farmers are away for **five nights**. The scarecrow protects the farm until they return.
|
||||
- Each night is one cycle: **Morning → Day → Dusk → Night → Dawn**. After the fifth dawn the
|
||||
- The farmers are away for **thirty nights** (`GameConfig.campaign_nights`). The scarecrow
|
||||
protects the farm until they return. At the phase lengths below, the whole vacation is about
|
||||
3¼ hours of play, plus the mornings.
|
||||
- Each night is one cycle: **Morning → Day → Dusk → Night → Dawn**. After the thirtieth dawn the
|
||||
farmers return, which ends the game, and the farm is assessed on what remains.
|
||||
- Losses carry over. Stolen crops don't regrow, lost animals don't come back, and stolen supplies
|
||||
are gone. Damaged structures stay damaged until repaired.
|
||||
|
|
@ -31,7 +33,7 @@ marked with the step that implements them.
|
|||
| Morning | Untimed | The morning screen: last night's results (taken, recovered, and lost per category; enemies defeated; damage; materials gathered and spent); what's left; what needs repair (and whether the pen is open); materials; tonight. Autosaved. The day starts when the player presses "Start the day". | Now |
|
||||
| Day | 180 s | Safe. Gather, build, repair, upgrade. | Now (timer) |
|
||||
| Dusk | 30 s | Still safe. The banner names tonight ("Dusk: Breakers at the fences"), with tonight's hint under it. The phase HUD lists what tonight brings ("Tonight, from every side: crows and supply thieves"), not where: they arrive anywhere along the farm's edge. Nothing is marked on the farm itself. Last chance to prepare. | Now |
|
||||
| Night | 150 s (the last night 180 s) | Enemies attack to steal farm assets or damage defenses. They arrive as the night's plan says (below). The HUD list and the hint stay up for the first 12 s of the night. | Now |
|
||||
| Night | 150 s (night 30, the last, 180 s) | Enemies attack to steal farm assets or damage defenses. They arrive as the night's plan says (below). The HUD list and the hint stay up for the first 12 s of the night. | Now |
|
||||
| Dawn | 20 s | Sunrise: no more enemies arrive and all of them retreat (D4). Carriers can still be stopped. Then remaining enemies leave, any still carrying loot take it with them (lost), and the night's losses are recorded. | Now |
|
||||
|
||||
**Night plans.** Each night has a plan (`NightPlan`, `game/resources/nights/`). A plan is a list of
|
||||
|
|
@ -50,20 +52,49 @@ in through its gaps (or around its ends).
|
|||
A plan also has a title, a dusk hint, and optionally its own night length and scales (below).
|
||||
Nothing arrives by day, at dusk, or after sunrise.
|
||||
|
||||
**The five nights** (Step 10). Each one tests something new. The plans are the nights' designs.
|
||||
From night 2 on, every group plays at **7 times its size, about 3.3 times as often**
|
||||
(`GameConfig.wave_count_scale` 7, `wave_spacing_scale` 0.3): each group's enemies come in a
|
||||
stream twice as long, and the quiet stretches between groups are short. **Night 1 plays as
|
||||
designed** (its plan's own `count_scale` and `spacing_scale` are 1): with only the pitchfork, it
|
||||
is a few crows at a time to learn the stab on. The counts below are as played:
|
||||
**The thirty nights** (Step 10, #27). The plans are the nights' designs. Nights 1–5 are the
|
||||
introduction, each bringing something new: crows, aliens, robots, both sides at once, then UFOs.
|
||||
Nights 6–29 escalate, and night 30, the last, is the longest. From night 2 on, every group plays
|
||||
at **7 times its size, about 3.3 times as often** (`GameConfig.wave_count_scale` 7,
|
||||
`wave_spacing_scale` 0.3): each group's enemies come in a stream twice as long, and the quiet
|
||||
stretches between groups are short. **Night 1 plays as designed** (its plan's own `count_scale`
|
||||
and `spacing_scale` are 1): with only the pitchfork, it is a few crows at a time to learn the
|
||||
stab on.
|
||||
|
||||
**Nights 6–29** are ordinary plan files written by `game/tools/make_nights.gd` (seed 30), so each
|
||||
stays editable in the inspector. Their titles and dusk hints are drafts to rewrite. The recipe:
|
||||
- **Size:** the plan's base total grows by 6.5% of night 5's 24 a night, to 61 on night 29.
|
||||
Every fifth night (10, 15, 20, 25) is a **siege**: 30% heavier, at the normal 150 s.
|
||||
- **Mix:** from 45% crows, 35% thieves, 12% fence breakers, and 8% UFOs on night 6, to
|
||||
30/35/20/15 on night 29, with at least one group of each.
|
||||
- **Waves:** 3 up to night 11, 4 up to 21, then 5, from 5 s to 30 s before sunrise. Each wave is
|
||||
2–4 groups of different types arriving within 6 s of each other. The sieges of nights 10 and 20
|
||||
have more groups of a type than there are waves (crows on 10, crows and thieves on 20), so one
|
||||
wave gets two of that type.
|
||||
- **Targets:** crows go for the crops, breakers and UFOs for anything, thieves for the animals,
|
||||
the supplies, then anything, in turn.
|
||||
- **Faster and tougher:** after night 5 each night's enemies get 1% more speed and 2.5% more HP
|
||||
(the per-night scales, The enemies): ×1.25 and ×1.625 on night 30. HP rounds down, so a crow
|
||||
stays one hit. A thief has 4 HP from night 19; a breaker has 7 from night 12, 8 from night 19,
|
||||
and 9 from night 25; a UFO has 3 from night 25.
|
||||
|
||||
The tool never overwrites a night unless given `--force`, and it checks every plan as played.
|
||||
|
||||
The counts below are as played (the rows for 6–29 give each stretch's range, up to its siege):
|
||||
|
||||
| Night | Title | What it tests | Who comes |
|
||||
|---|---|---|---|
|
||||
| 1 | Crows at the crops | Intercepting crop thieves | 11 crows: one at a time at first, then pairs, a group of three at 86 s |
|
||||
| 2 | Thieves in the yard | Protecting a second target | 77 crows, plus 35 thieves after the shed and the pen |
|
||||
| 3 | Breakers at the fences | Responding to damage and breaches | 14 fence breakers with 35 thieves behind them, 42 crows |
|
||||
| 2 | Aliens in the yard | Protecting a second target | 77 crows, plus 35 thieves after the shed and the pen |
|
||||
| 3 | Alien robots at the fences | Responding to damage and breaches | 14 fence breakers with 35 thieves behind them, 42 crows |
|
||||
| 4 | From both sides | Dividing attention | 3 moments when two groups arrive at once: 77 crows, 42 thieves, 14 breakers |
|
||||
| 5 | The last night | The whole farm layout | 3 announced waves over a 180 s night: 84 crows, 56 thieves, 21 breakers |
|
||||
| 5 | Lights in the sky | Enemies from above | Night 4's three moments, plus the first UFOs on their own at 30 s and 80 s: 84 crows, 49 thieves, 21 breakers, 14 UFOs |
|
||||
| 6–10 | Drafts; 10 is "Siege: the fences" | Holding on as it grows | 182–210 a night (crows 84–91, thieves 63–70, breakers 21–28, UFOs 14–21) in 3 waves; the siege 294 (126, 105, 35, 28). Speed ×1.01–1.05, HP ×1.025–1.125 |
|
||||
| 11–15 | Drafts; 15 is "Siege: the pen" | More waves | 231–266 (crows 98–105, thieves 84–91, breakers 28–42, UFOs 21–28), 4 waves from night 12; the siege 364 (140, 126, 56, 42). Speed ×1.06–1.10, HP ×1.15–1.25 |
|
||||
| 16–20 | Drafts; 20 is "Siege: the shed" | Tougher thieves and robots | 287–322 (crows 112–119, thieves 98–112, breakers 42–56, UFOs 35) in 4 waves; the siege 427 (154, 147, 70, 56). Speed ×1.11–1.15, HP ×1.275–1.375 |
|
||||
| 21–25 | Drafts; 25 is "Siege: the whole farm" | Five waves a night | 343–378 (crows 119–126, thieves 119–133, breakers 63–70, UFOs 42–49), 5 waves from night 22; the siege 504 (168, 175, 91, 70). Speed ×1.16–1.20, HP ×1.4–1.5 |
|
||||
| 26–29 | Drafts | The run-up to the end | 399–427 (crows 126, thieves 140–154, breakers 77–84, UFOs 56–63) in 5 waves. Speed ×1.21–1.24, HP ×1.525–1.6 |
|
||||
| 30 | The last night | The whole farm, for longer | 3 waves over a 180 s night: 168 crows, 182 thieves, 91 breakers, 70 UFOs (511). Speed ×1.25, HP ×1.625 |
|
||||
|
||||
Up to 160 enemies can be on the farm at once (`enemy_capacity`): 48 thieves and 20 fence
|
||||
breakers on foot (the character pool), and the rest in the air.
|
||||
|
|
@ -413,7 +444,7 @@ Implemented in Step 6. The numbers are in `GameConfig`.
|
|||
|---|---|---|
|
||||
| Scarecrow destroyed | Scarecrow HP reaches 0, in any phase | Game Over |
|
||||
| Farm stripped (D2) | **Every** kind of asset in play is gone: crops, animals, and stored supplies all at zero. Losing one kind isn't enough. Supplies only count as gone when thieves emptied the shed (and no sack is still on the farm). Spending the last materials doesn't strip the farm. | Game Over |
|
||||
| Vacation complete | The fifth night's dawn ends | The farmers return; final assessment |
|
||||
| Vacation complete | The thirtieth night's dawn ends | The farmers return; final assessment |
|
||||
|
||||
- **The failure screen** names the cause and the night it happened on (with its plan's title),
|
||||
then what was kept, what's left, what the night had cost so far, and the vacation's totals.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue