Merge task #27: the thirty nights
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
ddb3cb0568
36 changed files with 2956 additions and 136 deletions
50
README.md
50
README.md
|
|
@ -102,9 +102,9 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
|
||||||
the bombs sit in the off-hand, thrown with right mouse / LT. The models are the user's (`assets/weapons/`, posed on
|
the bombs sit in the off-hand, thrown with right mouse / LT. The models are the user's (`assets/weapons/`, posed on
|
||||||
the scarecrow by `WeaponModels`); the HUD's weapon panel (bottom right) shows them. Shots, the
|
the scarecrow by `WeaponModels`); the HUD's weapon panel (bottom right) shows them. Shots, the
|
||||||
corn shooter, and enemy hit proxies sit at 1.8 m, above the sunflowers and the pen fence.
|
corn shooter, and enemy hit proxies sit at 1.8 m, above the sunflowers and the pen fence.
|
||||||
* **Campaign** — `CampaignController` (`game/scripts/campaign_controller.gd`) runs the five-night
|
* **Campaign** — `CampaignController` (`game/scripts/campaign_controller.gd`) runs the thirty-night
|
||||||
vacation: Morning → Day → Dusk → Night → Dawn per night, then the farmers' return, with Game
|
vacation (`GameConfig.campaign_nights`): Morning → Day → Dusk → Night → Dawn per night, then
|
||||||
Over from any phase. `FarmState` (`farm_state.gd`) is the single source of truth for what
|
the farmers' return, with Game Over from any phase. `FarmState` (`farm_state.gd`) is the single source of truth for what
|
||||||
persists; settings are in `game/resources/game_config.tres` (`GameConfig`). The rules are in
|
persists; settings are in `game/resources/game_config.tres` (`GameConfig`). The rules are in
|
||||||
[`game/RULES.md`](game/RULES.md) and the development plan in
|
[`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
|
[`first-game-plan.md`](first-game-plan.md). `CampaignDebug` is a debug readout of the phase and
|
||||||
|
|
@ -112,8 +112,10 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
|
||||||
speed, F9 sets the scarecrow to 0 HP, F10 strips the farm (every category), R retries after a
|
speed, 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
|
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
|
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. N starts the night early
|
a time (crows, thieves, fence breakers), then pairs, then all three. In the morning review,
|
||||||
(only when `allow_early_night` is on).
|
F3 / Shift+F3 jump to the next / previous day's morning with the farm as it is (no autosave;
|
||||||
|
`CampaignDebug.jump_morning`), to try a late night without playing up to it. N starts the night
|
||||||
|
early (only when `allow_early_night` is on).
|
||||||
On the farm the scarecrow moves with WASD / left stick, aims with the mouse / right stick, and
|
On the farm the scarecrow moves with WASD / left stick, aims with the mouse / right stick, and
|
||||||
fires with the left mouse button / right trigger.
|
fires with the left mouse button / right trigger.
|
||||||
* **Scarecrow kit** — `Scarecrow` (`game/scripts/scarecrow.gd`): health in `FarmState` with 1 s
|
* **Scarecrow kit** — `Scarecrow` (`game/scripts/scarecrow.gd`): health in `FarmState` with 1 s
|
||||||
|
|
@ -128,7 +130,7 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
|
||||||
`--mode=cycle --cycles=N` plays whole days and nights (gather, rebuild the pen's gate, build a
|
`--mode=cycle --cycles=N` plays whole days and nights (gather, rebuild the pen's gate, build a
|
||||||
fixed defense plan, buy upgrades with what's left, guard all three targets and lead loose
|
fixed defense plan, buy upgrades with what's left, guard all three targets and lead loose
|
||||||
animals home; `--build=0` / `--guard=0` / `--upgrades=0` turn parts off), reports each night's
|
animals home; `--build=0` / `--guard=0` / `--upgrades=0` turn parts off), reports each night's
|
||||||
losses per target, and checks what carries over. `--cycles=5` plays the whole vacation.
|
losses per target, and checks what carries over. `--cycles=30` plays the whole vacation.
|
||||||
|
|
||||||
* **Economy** — wood, scrap, and straw (`ResourceStore` in `FarmState`): shed stock plus the
|
* **Economy** — wood, scrap, and straw (`ResourceStore` in `FarmState`): shed stock plus the
|
||||||
scarecrow's 15-unit pouch, which empties into the shed when it walks into the Supply Shed zone.
|
scarecrow's 15-unit pouch, which empties into the shed when it walks into the Supply Shed zone.
|
||||||
|
|
@ -167,13 +169,19 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
|
||||||
and hotbar; `Interactions` repairs. Rules and numbers: `game/RULES.md`.
|
and hotbar; `Interactions` repairs. Rules and numbers: `game/RULES.md`.
|
||||||
|
|
||||||
* **Day and night** — `WaveDirector` (`game/scripts/wave_director.gd`) plays each night's
|
* **Day and night** — `WaveDirector` (`game/scripts/wave_director.gd`) plays each night's
|
||||||
`NightPlan` (`game/resources/nights/night_1..5.tres`).
|
`NightPlan` (`game/resources/nights/night_1..30.tres`, by count: `FarmSim.night_plan_path`).
|
||||||
- A plan has a title, a dusk hint, an optional night length and scales, and groups of enemies by type,
|
- A plan has a title, a dusk hint, an optional night length and scales, and groups of enemies by type,
|
||||||
time, count, spacing, and target. Where isn't planned: each enemy arrives at its own random
|
time, count, spacing, and target. Where isn't planned: each enemy arrives at its own random
|
||||||
point along the farm's edge (on foot `GameConfig.spawn_margin` out, wherever there's a route
|
point along the farm's edge (on foot `GameConfig.spawn_margin` out, wherever there's a route
|
||||||
in; crows `flyer_spawn_margin` out).
|
in; crows `flyer_spawn_margin` out).
|
||||||
- The five nights each test something new: crows only; a second target; breakers; groups at
|
- Thirty nights. The first five each bring something new: crows only; a second target;
|
||||||
once; three waves. From night 2, every group is played at seven times its size, about three
|
breakers; groups at once; UFOs. Nights 6–29 are generated by `game/tools/make_nights.gd`
|
||||||
|
(seed 30; it never overwrites a night without `--force`, and checks each plan as played):
|
||||||
|
they grow from 182 to 427 enemies as played, in 3 to 5 waves. Every fifth night
|
||||||
|
(10, 15, 20, 25) is a 30% heavier siege, and each night's enemies are a little faster and
|
||||||
|
tougher (`NightPlan.enemy_speed_scale` / `enemy_hp_scale`, up to ×1.25 / ×1.625). Their titles
|
||||||
|
and dusk hints are drafts. Night 30, "The last night", is the finale: 511 enemies in three
|
||||||
|
waves over 180 s. From night 2, every group is played at seven times its size, about three
|
||||||
times as often (`GameConfig.wave_count_scale` 7, `wave_spacing_scale` 0.3). Night 1 sets its
|
times as often (`GameConfig.wave_count_scale` 7, `wave_spacing_scale` 0.3). Night 1 sets its
|
||||||
own scales to 1 (`NightPlan.count_scale` / `spacing_scale`), so it plays as designed: 11 crows.
|
own scales to 1 (`NightPlan.count_scale` / `spacing_scale`), so it plays as designed: 11 crows.
|
||||||
- `NightPlan.problems()` checks a plan against the farm.
|
- `NightPlan.problems()` checks a plan against the farm.
|
||||||
|
|
@ -181,7 +189,7 @@ pack (`assets/farm/ithappy/farm/prefabs/assets/`).
|
||||||
farm itself). `DayNight` (`day_night.gd`) eases the sun, sky,
|
farm itself). `DayNight` (`day_night.gd`) eases the sun, sky,
|
||||||
ambient light, and a whole-picture brightness / saturation between day, sunset, night (moonlight),
|
ambient light, and a whole-picture brightness / saturation between day, sunset, night (moonlight),
|
||||||
and sunrise; the scarecrow carries a lantern that lights up as it gets dark, and thieves glow
|
and sunrise; the scarecrow carries a lantern that lights up as it gets dark, and thieves glow
|
||||||
faintly at night. `PhaseHud` (top left) is the sun / moon dial with "Night N of 5", the phase and
|
faintly at night. `PhaseHud` (top left) is the sun / moon dial with "Night N of 30", the phase and
|
||||||
its time left, a hint line (what tonight brings, enemies on the farm), and a banner at each phase
|
its time left, a hint line (what tonight brings, enemies on the farm), and a banner at each phase
|
||||||
change ("Night 3: Breakers at the fences"), with the dusk hint under it from dusk into the
|
change ("Night 3: Breakers at the fences"), with the dusk hint under it from dusk into the
|
||||||
night. `ReviewPanel` is the morning review: last night's losses per category, what's left, what
|
night. `ReviewPanel` is the morning review: last night's losses per category, what's left, what
|
||||||
|
|
@ -310,10 +318,11 @@ game/
|
||||||
nights/ (night plans), scenarios/ (debug plans), thief (crow) / enemy overlay /
|
nights/ (night plans), scenarios/ (debug plans), thief (crow) / enemy overlay /
|
||||||
steal ring / loot icon / fear burst / HP bar shaders
|
steal ring / loot icon / fear burst / HP bar shaders
|
||||||
tests/ headless test runner and suites (campaign rules, farm layout, theft, scarecrow,
|
tests/ headless test runner and suites (campaign rules, farm layout, theft, scarecrow,
|
||||||
economy, structures, all three targets, the enemy roster, the five nights, full
|
economy, structures, all three targets, the enemy roster, the thirty nights, full
|
||||||
cycle, saving and settings, the whole game through its menus, co-op)
|
cycle, saving and settings, the whole game through its menus, co-op)
|
||||||
tools/ build_player_animations.gd, build_prop_collision.gd, render_overview.gd,
|
tools/ build_player_animations.gd, build_prop_collision.gd, render_overview.gd,
|
||||||
configure_input.gd, soak_night.gd, synth_audio.gd, build_ui_theme.gd, coop_smoke.gd
|
configure_input.gd, soak_night.gd, synth_audio.gd, build_ui_theme.gd, coop_smoke.gd,
|
||||||
|
make_nights.gd
|
||||||
prototype/
|
prototype/
|
||||||
scenes/ main.tscn (round), player.tscn, hud.tscn
|
scenes/ main.tscn (round), player.tscn, hud.tscn
|
||||||
scripts/ gameplay systems (one class per file, see Architecture)
|
scripts/ gameplay systems (one class per file, see Architecture)
|
||||||
|
|
@ -494,7 +503,7 @@ godot --headless --path . --fixed-fps 60 --script res://prototype/tests/run_test
|
||||||
Game: 908 checks, about 80 s. Covers `FarmState` round trips (also through JSON) and rejection
|
Game: 908 checks, about 80 s. Covers `FarmState` round trips (also through JSON) and rejection
|
||||||
of invalid data, every outcome rule including the loss-before-completion tie on the final dawn
|
of invalid data, every outcome rule including the loss-before-completion tie on the final dawn
|
||||||
and a stripped farm across all three categories (spent supplies don't count),
|
and a stripped farm across all three categories (spent supplies don't count),
|
||||||
failure in every phase, the untimed morning, phase order and lengths, exactly five nights,
|
failure in every phase, the untimed morning, phase order and lengths, exactly `campaign_nights` (30) nights,
|
||||||
starting the night early (off by default), per-night loss records, and retrying a failed night
|
starting the night early (off by default), per-night loss records, and retrying a failed night
|
||||||
from its morning. The farm layout suite checks one non-overlapping zone per kind inside the
|
from its morning. The farm layout suite checks one non-overlapping zone per kind inside the
|
||||||
60 × 60 m map, zone lookup, the 30 crop units, the farm's edge and its side names, the remaining
|
60 × 60 m map, zone lookup, the 30 crop units, the farm's edge and its side names, the remaining
|
||||||
|
|
@ -534,11 +543,16 @@ the scarecrow, turning on it when shot, six hits to stop), the character pool (o
|
||||||
enemy, spawns skipped past it, corpses taken over), the alert manager (grouping, escape priority
|
enemy, spawns skipped past it, corpses taken over), the alert manager (grouping, escape priority
|
||||||
and escalation, breaches before thefts, the cap), and the debug scenarios. The nights suite checks
|
and escalation, breaches before thefts, the cap), and the debug scenarios. The nights suite checks
|
||||||
every night plan and debug scenario against the farm (and that broken plans are caught), what
|
every night plan and debug scenario against the farm (and that broken plans are caught), what
|
||||||
each of the five nights tests, every upgrade's effect on the real systems (fire rate, damage,
|
each of the first five nights and the last tests, and the thirty nights' arc: breakers from
|
||||||
fear, max health, fence health, defense range, trap time), that upgrades can't be bought twice or
|
night 3 and UFOs from night 5, no night more than 15% lighter than the non-siege night before it,
|
||||||
at night and persist (next morning, JSON, retry, not into a new vacation), and all five nights
|
sieges on every fifth night, each night's enemy speed and HP scales, and the last night the
|
||||||
played back to back to the farmers' return. Each night brings its own plan's enemies under its
|
longest. It also checks every upgrade's effect on the real systems (fire rate, damage, fear, max
|
||||||
own banner, each morning is its night's snapshot, and the last night is longer.
|
health, fence health, defense range, trap time), that upgrades can't be bought twice or at night
|
||||||
|
and persist (next morning, JSON, retry, not into a new vacation), the F3 night jump, and a sample
|
||||||
|
of the vacation played back to back to the farmers' return: nights 1–5, the night-10 siege, and
|
||||||
|
night 30, with the nights between skipped by F3's morning path. Each played night brings its own
|
||||||
|
plan's enemies under its own banner, each morning is its night's snapshot, and the last night is
|
||||||
|
longer.
|
||||||
The cycle suite plays one whole day and night on the real farm: the morning review, the phase
|
The cycle suite plays one whole day and night on the real farm: the morning review, the phase
|
||||||
HUD, a day's gathering and building, no thieves by day, the dusk warnings, the lighting of each
|
HUD, a day's gathering and building, no thieves by day, the dusk warnings, the lighting of each
|
||||||
phase, the night plan's arrival times and targets at random points all along the edge, the dawn retreat, everything carrying
|
phase, the night plan's arrival times and targets at random points all along the edge, the dawn retreat, everything carrying
|
||||||
|
|
|
||||||
|
|
@ -362,3 +362,37 @@ Nights 2–5 still use the config's 7x / 0.3. `--mode=cycle --cycles=1 --build=0
|
||||||
- Is night 1 now a fair place to learn the stab, or too quiet over 150 s?
|
- Is night 1 now a fair place to learn the stab, or too quiet over 150 s?
|
||||||
- Night 2 is the cliff: 112 enemies, about ten times night 1. Does it need its own scale too, given
|
- Night 2 is the cliff: 112 enemies, about ten times night 1. Does it need its own scale too, given
|
||||||
the corn shooter costs 10 scrap and 4 wood from day 2?
|
the corn shooter costs 10 scrap and 4 wood from day 2?
|
||||||
|
|
||||||
|
## Thirty nights (2026-10-06)
|
||||||
|
|
||||||
|
The vacation is now 30 nights (`GameConfig.campaign_nights`). The phase lengths stay the same,
|
||||||
|
so a whole vacation is about 3¼ hours, and losses still carry over. The nights, as played
|
||||||
|
(RULES, The thirty nights):
|
||||||
|
- **1–4:** unchanged.
|
||||||
|
- **5, "Lights in the sky" (new):** night 4's three moments plus the first UFOs, a group of 7 at
|
||||||
|
30 s and another at 80 s, arriving on their own. 168 enemies.
|
||||||
|
- **6–29:** written by `game/tools/make_nights.gd` (seed 30). They grow from 182 to 427 enemies
|
||||||
|
a night, in 3 to 5 waves. Every fifth night (10, 15, 20, 25) is a siege, 30% heavier: 294,
|
||||||
|
364, 427, and 504. Enemy speed rises 1% a night and HP 2.5% (a thief has 4 HP from night 19,
|
||||||
|
a breaker 9 from night 25). The titles and dusk hints are drafts.
|
||||||
|
- **30, "The last night":** the old night 5, with its title, hint, 180 s, and three-wave shape.
|
||||||
|
It's grown to 511 enemies (168 crows, 182 thieves, 91 breakers, 70 UFOs), at speed ×1.25 and
|
||||||
|
HP ×1.625.
|
||||||
|
|
||||||
|
**Measured** (`test_nights`, defenses only, the scarecrow away and unhurt; nights 1–5, 10, and
|
||||||
|
30 played, the rest skipped with F3):
|
||||||
|
- **Breakers stop at 20 a night.** That's the size of the breakers' character pool. Night 5 plans
|
||||||
|
21, night 10 plans 35, and night 30 plans 91, but exactly 20 arrive each time: in this setup no
|
||||||
|
breaker's character frees up during the night. #25 makes the extra breakers wait instead of
|
||||||
|
vanishing, and #28 sizes the pools.
|
||||||
|
- **Losses** (two runs): night 10 lost 95–105 supplies and night 30 lost 125–135, and neither
|
||||||
|
lost crops or animals. The test restocks the shed to 99 of each material every night.
|
||||||
|
|
||||||
|
**For the playtest:**
|
||||||
|
- Does night 5 read as "UFOs now"? Do the lone UFO groups give the player time to learn them
|
||||||
|
before the next wave?
|
||||||
|
- Do the sieges feel like an event, or just a longer night? Is 30% the right bump?
|
||||||
|
- Can the player feel the speed and HP rising, and when? Thieves at 4 HP from night 19 is the
|
||||||
|
biggest step.
|
||||||
|
- Rewrite the draft titles and hints of nights 6–29 (in the files, or in `make_nights.gd`'s lists
|
||||||
|
followed by `--force`).
|
||||||
|
|
|
||||||
|
|
@ -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);
|
`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`,
|
the night plans, dusk warnings, morning review, and lighting (Step 7: `WaveDirector`,
|
||||||
`ReviewPanel`, `PhaseHud`, `DayNight`); the enemy roster and the alerts (Step 9: `EnemySystem`,
|
`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
|
`NightPlan`, `Upgrades`, `UpgradePanel`); the menus, saving, settings, results, endings, tips, and
|
||||||
sound (Step 11: `Main`, `SaveGame`, `GameSettings`, `ReviewPanel`, `EndPanel`, `Assessment`,
|
sound (Step 11: `Main`, `SaveGame`, `GameSettings`, `ReviewPanel`, `EndPanel`, `Assessment`,
|
||||||
`FarmersReturn`, `Tutorial`, `FarmAudio`). Rules for later steps are written here first and
|
`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 vacation
|
||||||
|
|
||||||
- The farmers are away for **five nights**. The scarecrow protects the farm until they return.
|
- The farmers are away for **thirty nights** (`GameConfig.campaign_nights`). The scarecrow
|
||||||
- Each night is one cycle: **Morning → Day → Dusk → Night → Dawn**. After the fifth dawn the
|
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.
|
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
|
- 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.
|
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 |
|
| 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) |
|
| 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 |
|
| 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 |
|
| 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
|
**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).
|
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.
|
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.
|
**The thirty nights** (Step 10, #27). The plans are the nights' designs. Nights 1–5 are the
|
||||||
From night 2 on, every group plays at **7 times its size, about 3.3 times as often**
|
introduction, each bringing something new: crows, aliens, robots, both sides at once, then UFOs.
|
||||||
(`GameConfig.wave_count_scale` 7, `wave_spacing_scale` 0.3): each group's enemies come in a
|
Nights 6–29 escalate, and night 30, the last, is the longest. From night 2 on, every group plays
|
||||||
stream twice as long, and the quiet stretches between groups are short. **Night 1 plays as
|
at **7 times its size, about 3.3 times as often** (`GameConfig.wave_count_scale` 7,
|
||||||
designed** (its plan's own `count_scale` and `spacing_scale` are 1): with only the pitchfork, it
|
`wave_spacing_scale` 0.3): each group's enemies come in a stream twice as long, and the quiet
|
||||||
is a few crows at a time to learn the stab on. The counts below are as played:
|
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 |
|
| 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 |
|
| 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 |
|
| 2 | Aliens 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 |
|
| 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 |
|
| 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 |
|
||||||
|
|
||||||
**How many at once.** Up to 800 enemies can be on the farm at once, all types together
|
**How many at once.** Up to 800 enemies can be on the farm at once, all types together
|
||||||
(`enemy_capacity`). Enemies on foot are also limited by their characters (`character_pool`): at
|
(`enemy_capacity`). Enemies on foot are also limited by their characters (`character_pool`): at
|
||||||
|
|
@ -445,7 +476,7 @@ Implemented in Step 6. The numbers are in `GameConfig`.
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| Scarecrow destroyed | Scarecrow HP reaches 0, in any phase | Game Over |
|
| 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 |
|
| 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),
|
- **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.
|
then what was kept, what's left, what the night had cost so far, and the vacation's totals.
|
||||||
|
|
|
||||||
83
game/resources/nights/night_10.tres
Normal file
83
game/resources/nights/night_10.tres
Normal file
|
|
@ -0,0 +1,83 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://bkbcya5tu5gh6"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Siege: the fences"
|
||||||
|
dusk_hint = "Every fence, every gate..... they want it all tonight."
|
||||||
|
enemy_speed_scale = 1.05
|
||||||
|
enemy_hp_scale = 1.125
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 7.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
71
game/resources/nights/night_11.tres
Normal file
71
game/resources/nights/night_11.tres
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://2kkkjd3whd1m"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "They know the way in"
|
||||||
|
dusk_hint = "Hold on. The farmers will be back."
|
||||||
|
enemy_speed_scale = 1.06
|
||||||
|
enemy_hp_scale = 1.15
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 68.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 69.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 69.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}])
|
||||||
65
game/resources/nights/night_12.tres
Normal file
65
game/resources/nights/night_12.tres
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://bndk2x53eh1au"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Aliens at the pen"
|
||||||
|
dusk_hint = "Tougher than last night..... or is it just you?"
|
||||||
|
enemy_speed_scale = 1.07
|
||||||
|
enemy_hp_scale = 1.175
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 48.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 85.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 126.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
77
game/resources/nights/night_13.tres
Normal file
77
game/resources/nights/night_13.tres
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://c1477lvnkhfgn"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Robots at the gate"
|
||||||
|
dusk_hint = "Crows. Aliens. Robots. UFOs. You know the drill."
|
||||||
|
enemy_speed_scale = 1.08
|
||||||
|
enemy_hp_scale = 1.2
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 45.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 83.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 87.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
77
game/resources/nights/night_14.tres
Normal file
77
game/resources/nights/night_14.tres
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://b8hcuqcif3p5b"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Under the lights"
|
||||||
|
dusk_hint = "Patch up, stock up, and keep watch....."
|
||||||
|
enemy_speed_scale = 1.09
|
||||||
|
enemy_hp_scale = 1.225
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 84.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 85.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 126.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
101
game/resources/nights/night_15.tres
Normal file
101
game/resources/nights/night_15.tres
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://cv6yerretncwm"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Siege: the pen"
|
||||||
|
dusk_hint = "They're all coming at once tonight....."
|
||||||
|
enemy_speed_scale = 1.1
|
||||||
|
enemy_hp_scale = 1.25
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 7.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 48.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 85.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 87.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 87.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 121.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 126.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
89
game/resources/nights/night_16.tres
Normal file
89
game/resources/nights/night_16.tres
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://besqnucrfoswt"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "The long dark"
|
||||||
|
dusk_hint = "Another night, another crowd at the fence....."
|
||||||
|
enemy_speed_scale = 1.11
|
||||||
|
enemy_hp_scale = 1.275
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 9.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 10.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 83.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 124.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}])
|
||||||
89
game/resources/nights/night_17.tres
Normal file
89
game/resources/nights/night_17.tres
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://banh4ghh64y8u"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "No quiet nights"
|
||||||
|
dusk_hint = "Lights in the sky again..... here they come."
|
||||||
|
enemy_speed_scale = 1.12
|
||||||
|
enemy_hp_scale = 1.3
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 7.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 46.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 88.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 123.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
89
game/resources/nights/night_18.tres
Normal file
89
game/resources/nights/night_18.tres
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://5fj4ataafmsf"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Busy skies"
|
||||||
|
dusk_hint = "The robots go for the fences first..... fix what you can."
|
||||||
|
enemy_speed_scale = 1.13
|
||||||
|
enemy_hp_scale = 1.325
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 10.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 46.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 83.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 88.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 121.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
77
game/resources/nights/night_19.tres
Normal file
77
game/resources/nights/night_19.tres
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://xktkcoft1j7k"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Short on sleep"
|
||||||
|
dusk_hint = "They came from every side last night. Tonight too."
|
||||||
|
enemy_speed_scale = 1.14
|
||||||
|
enemy_hp_scale = 1.35
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 49.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 86.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 86.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 123.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 124.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
107
game/resources/nights/night_20.tres
Normal file
107
game/resources/nights/night_20.tres
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://d4au3b600iqis"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Siege: the shed"
|
||||||
|
dusk_hint = "That's a lot of lights out there..... it's a siege."
|
||||||
|
enemy_speed_scale = 1.15
|
||||||
|
enemy_hp_scale = 1.375
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 10.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 47.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 48.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 48.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 83.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 85.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 88.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 121.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}])
|
||||||
95
game/resources/nights/night_21.tres
Normal file
95
game/resources/nights/night_21.tres
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://bo87mjqkmwk4m"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Hold the pen"
|
||||||
|
dusk_hint = "The crows don't sleep, and neither do you."
|
||||||
|
enemy_speed_scale = 1.16
|
||||||
|
enemy_hp_scale = 1.4
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 43.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 45.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 45.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 82.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 88.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}])
|
||||||
95
game/resources/nights/night_22.tres
Normal file
95
game/resources/nights/night_22.tres
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://cea87wsocfokq"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Thin fences"
|
||||||
|
dusk_hint = "Count the crops in the morning. Hopefully all of them."
|
||||||
|
enemy_speed_scale = 1.17
|
||||||
|
enemy_hp_scale = 1.425
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 10.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 40.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 97.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 121.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
101
game/resources/nights/night_23.tres
Normal file
101
game/resources/nights/night_23.tres
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://qkvvw7bv453t"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Back for more"
|
||||||
|
dusk_hint = "Something's moving out past the fence....."
|
||||||
|
enemy_speed_scale = 1.18
|
||||||
|
enemy_hp_scale = 1.45
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 36.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 39.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 64.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 69.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 94.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 123.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
113
game/resources/nights/night_24.tres
Normal file
113
game/resources/nights/night_24.tres
Normal file
|
|
@ -0,0 +1,113 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://c7k571lsegx7s"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "The shed again"
|
||||||
|
dusk_hint = "Watch the pen tonight. And the shed. And the crops....."
|
||||||
|
enemy_speed_scale = 1.19
|
||||||
|
enemy_hp_scale = 1.475
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 9.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 38.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 67.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 94.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 96.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 97.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 126.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
125
game/resources/nights/night_25.tres
Normal file
125
game/resources/nights/night_25.tres
Normal file
|
|
@ -0,0 +1,125 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://bskfxjgsmsp4"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Siege: the whole farm"
|
||||||
|
dusk_hint = "The biggest crowd yet..... hold the farm."
|
||||||
|
enemy_speed_scale = 1.2
|
||||||
|
enemy_hp_scale = 1.5
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 35.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 38.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 67.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 67.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 69.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 94.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 121.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 123.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
119
game/resources/nights/night_26.tres
Normal file
119
game/resources/nights/night_26.tres
Normal file
|
|
@ -0,0 +1,119 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://c3oo1cjphpeos"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "One more night"
|
||||||
|
dusk_hint = "It's quiet. Too quiet....."
|
||||||
|
enemy_speed_scale = 1.21
|
||||||
|
enemy_hp_scale = 1.525
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 9.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 35.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 37.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 40.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 64.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 92.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 95.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 124.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}])
|
||||||
95
game/resources/nights/night_27.tres
Normal file
95
game/resources/nights/night_27.tres
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://cky5vf0fkr0id"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Lights over the house"
|
||||||
|
dusk_hint = "Keep the lantern lit and the fences standing."
|
||||||
|
enemy_speed_scale = 1.22
|
||||||
|
enemy_hp_scale = 1.55
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 38.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 69.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 123.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "crow"
|
||||||
|
}])
|
||||||
113
game/resources/nights/night_28.tres
Normal file
113
game/resources/nights/night_28.tres
Normal file
|
|
@ -0,0 +1,113 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://cijyekfw63now"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Crows over the field"
|
||||||
|
dusk_hint = "The farmers would be proud..... if they were here."
|
||||||
|
enemy_speed_scale = 1.23
|
||||||
|
enemy_hp_scale = 1.575
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 7.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 7.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 9.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 37.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 37.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 39.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 68.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 92.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 126.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
107
game/resources/nights/night_29.tres
Normal file
107
game/resources/nights/night_29.tres
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://bby4er4s6p0c1"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Crows and robots"
|
||||||
|
dusk_hint = "They're getting faster..... aren't they?"
|
||||||
|
enemy_speed_scale = 1.24
|
||||||
|
enemy_hp_scale = 1.6
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 7.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 11.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 34.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 38.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 91.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 93.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 97.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 124.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}])
|
||||||
144
game/resources/nights/night_30.tres
Normal file
144
game/resources/nights/night_30.tres
Normal file
|
|
@ -0,0 +1,144 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://b27he0p0joyl0"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "The last night"
|
||||||
|
dusk_hint = "The farmers are back in the morning. It's gonna be a long night...."
|
||||||
|
night_length = 180.0
|
||||||
|
enemy_speed_scale = 1.25
|
||||||
|
enemy_hp_scale = 1.625
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 9.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 10.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 12.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 12.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 55.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 58.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 60.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 62.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 70.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 72.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 115.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 115.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 118.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 122.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 128.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 130.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 140.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}])
|
||||||
|
|
@ -1,82 +1,69 @@
|
||||||
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://b27he0p0joyl0"]
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://cs6fdt24jpeak"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_plan")
|
script = ExtResource("1_plan")
|
||||||
title = "The last night"
|
title = "Lights in the sky"
|
||||||
dusk_hint = "The farmers are back in the morning. It's gonna be a long night...."
|
dusk_hint = "Remember that something in the sky?..... Now it's coming down for a closer look."
|
||||||
night_length = 180.0
|
|
||||||
groups = Array[Dictionary]([{
|
groups = Array[Dictionary]([{
|
||||||
"count": 4,
|
"count": 4,
|
||||||
"every": 2.0,
|
"every": 1.5,
|
||||||
"target": "crops",
|
"target": "crops",
|
||||||
"time": 5.0,
|
"time": 10.0,
|
||||||
"type": "crow"
|
"type": "crow"
|
||||||
}, {
|
}, {
|
||||||
"count": 2,
|
"count": 2,
|
||||||
"every": 3.0,
|
"every": 3.0,
|
||||||
"target": "animals",
|
"target": "animals",
|
||||||
"time": 8.0,
|
"time": 10.0,
|
||||||
"type": "thief"
|
"type": "thief"
|
||||||
}, {
|
}, {
|
||||||
"count": 1,
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 30.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 55.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
"every": 2.0,
|
"every": 2.0,
|
||||||
"target": "any",
|
"target": "any",
|
||||||
"time": 55.0,
|
"time": 55.0,
|
||||||
"type": "breaker"
|
"type": "breaker"
|
||||||
}, {
|
}, {
|
||||||
"count": 1,
|
|
||||||
"every": 2.0,
|
|
||||||
"target": "any",
|
|
||||||
"time": 58.0,
|
|
||||||
"type": "breaker"
|
|
||||||
}, {
|
|
||||||
"count": 3,
|
"count": 3,
|
||||||
"every": 3.0,
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 57.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 80.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 100.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
"target": "supplies",
|
"target": "supplies",
|
||||||
"time": 65.0,
|
"time": 100.0,
|
||||||
"type": "thief"
|
"type": "thief"
|
||||||
}, {
|
}, {
|
||||||
"count": 3,
|
|
||||||
"every": 2.0,
|
|
||||||
"target": "crops",
|
|
||||||
"time": 70.0,
|
|
||||||
"type": "crow"
|
|
||||||
}, {
|
|
||||||
"count": 3,
|
|
||||||
"every": 1.5,
|
|
||||||
"target": "crops",
|
|
||||||
"time": 115.0,
|
|
||||||
"type": "crow"
|
|
||||||
}, {
|
|
||||||
"count": 2,
|
"count": 2,
|
||||||
"every": 1.5,
|
|
||||||
"target": "crops",
|
|
||||||
"time": 115.0,
|
|
||||||
"type": "crow"
|
|
||||||
}, {
|
|
||||||
"count": 2,
|
|
||||||
"every": 3.0,
|
|
||||||
"target": "any",
|
|
||||||
"time": 118.0,
|
|
||||||
"type": "thief"
|
|
||||||
}, {
|
|
||||||
"count": 1,
|
|
||||||
"every": 3.0,
|
|
||||||
"target": "any",
|
|
||||||
"time": 120.0,
|
|
||||||
"type": "thief"
|
|
||||||
}, {
|
|
||||||
"count": 1,
|
|
||||||
"every": 2.0,
|
"every": 2.0,
|
||||||
"target": "any",
|
"target": "any",
|
||||||
"time": 125.0,
|
"time": 102.0,
|
||||||
"type": "breaker"
|
"type": "breaker"
|
||||||
}, {
|
|
||||||
"count": 1,
|
|
||||||
"every": 3.0,
|
|
||||||
"target": "any",
|
|
||||||
"time": 140.0,
|
|
||||||
"type": "ufo"
|
|
||||||
}])
|
}])
|
||||||
|
|
|
||||||
65
game/resources/nights/night_6.tres
Normal file
65
game/resources/nights/night_6.tres
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://e0hdojmpcrum"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Keep the lantern lit"
|
||||||
|
dusk_hint = "The crows are back. They always come back."
|
||||||
|
enemy_speed_scale = 1.01
|
||||||
|
enemy_hp_scale = 1.025
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 69.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}])
|
||||||
53
game/resources/nights/night_7.tres
Normal file
53
game/resources/nights/night_7.tres
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://pfdt1sobyann"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Every side at once"
|
||||||
|
dusk_hint = "Is that the UFOs again?! ..... yep."
|
||||||
|
enemy_speed_scale = 1.02
|
||||||
|
enemy_hp_scale = 1.05
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 124.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
65
game/resources/nights/night_8.tres
Normal file
65
game/resources/nights/night_8.tres
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://bqrvudxmhe3nu"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Mind the shed"
|
||||||
|
dusk_hint = "More of them tonight..... keep the fences up."
|
||||||
|
enemy_speed_scale = 1.03
|
||||||
|
enemy_hp_scale = 1.075
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 67.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 68.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 125.0,
|
||||||
|
"type": "thief"
|
||||||
|
}])
|
||||||
71
game/resources/nights/night_9.tres
Normal file
71
game/resources/nights/night_9.tres
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://ds1tcprrugdlx"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_plan")
|
||||||
|
title = "Still standing"
|
||||||
|
dusk_hint = "Here they come again....."
|
||||||
|
enemy_speed_scale = 1.04
|
||||||
|
enemy_hp_scale = 1.1
|
||||||
|
groups = Array[Dictionary]([{
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "animals",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 5.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 6.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 8.0,
|
||||||
|
"type": "ufo"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.5,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 63.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 3,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "supplies",
|
||||||
|
"time": 65.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 2,
|
||||||
|
"every": 3.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 66.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}, {
|
||||||
|
"count": 5,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "crops",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "crow"
|
||||||
|
}, {
|
||||||
|
"count": 4,
|
||||||
|
"every": 2.0,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "thief"
|
||||||
|
}, {
|
||||||
|
"count": 1,
|
||||||
|
"every": 1.5,
|
||||||
|
"target": "any",
|
||||||
|
"time": 120.0,
|
||||||
|
"type": "breaker"
|
||||||
|
}])
|
||||||
|
|
@ -5,9 +5,10 @@ extends Resource
|
||||||
## starting value to tune during balancing.
|
## starting value to tune during balancing.
|
||||||
|
|
||||||
@export_group("Campaign")
|
@export_group("Campaign")
|
||||||
## Nights the scarecrow must survive before the farmers return. Night n plays the plan in
|
## 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.
|
## 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
|
## (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")
|
@export_group("Waves")
|
||||||
## Every night plan's groups are scaled when played: this many times the enemies, arriving this
|
## Every night plan's groups are scaled when played: this many times the enemies, arriving this
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
extends RefCounted
|
extends RefCounted
|
||||||
## Phase state machine: the untimed morning, phase order and lengths, five-night completion,
|
## Phase state machine: the untimed morning, phase order and lengths, completing the vacation
|
||||||
## the early-night option, night loss records, and retrying a failed night from its morning.
|
## (GameConfig.campaign_nights nights), the early-night option, night loss records, and retrying a
|
||||||
|
## failed night from its morning.
|
||||||
|
|
||||||
const O := CampaignController.Outcome
|
const O := CampaignController.Outcome
|
||||||
const P := CampaignController.Phase
|
const P := CampaignController.Phase
|
||||||
|
|
@ -8,7 +9,7 @@ const P := CampaignController.Phase
|
||||||
|
|
||||||
func run(r: GameTestRunner) -> void:
|
func run(r: GameTestRunner) -> void:
|
||||||
_order_and_timers(r)
|
_order_and_timers(r)
|
||||||
_five_nights(r)
|
_all_nights(r)
|
||||||
_early_night(r)
|
_early_night(r)
|
||||||
_night_log(r)
|
_night_log(r)
|
||||||
_retry(r)
|
_retry(r)
|
||||||
|
|
@ -45,8 +46,9 @@ func _order_and_timers(r: GameTestRunner) -> void:
|
||||||
r.check(c.state.phase == P.MORNING and c.state.night == 3, "advance_phase walks a whole cycle")
|
r.check(c.state.phase == P.MORNING and c.state.night == 3, "advance_phase walks a whole cycle")
|
||||||
|
|
||||||
|
|
||||||
func _five_nights(r: GameTestRunner) -> void:
|
func _all_nights(r: GameTestRunner) -> void:
|
||||||
var c := r.make_campaign()
|
var c := r.make_campaign()
|
||||||
|
var nights := c.config.campaign_nights
|
||||||
var ended: Array[CampaignController.Outcome] = []
|
var ended: Array[CampaignController.Outcome] = []
|
||||||
var mornings: Array[int] = []
|
var mornings: Array[int] = []
|
||||||
c.campaign_ended.connect(func(o: CampaignController.Outcome) -> void: ended.append(o))
|
c.campaign_ended.connect(func(o: CampaignController.Outcome) -> void: ended.append(o))
|
||||||
|
|
@ -55,10 +57,11 @@ func _five_nights(r: GameTestRunner) -> void:
|
||||||
mornings.append(c.state.night))
|
mornings.append(c.state.night))
|
||||||
GameTestRunner.run_until(c, P.FARMERS_RETURN)
|
GameTestRunner.run_until(c, P.FARMERS_RETURN)
|
||||||
r.check(c.state.phase == P.FARMERS_RETURN and c.outcome == O.VACATION_COMPLETE, "surviving every night brings the farmers back")
|
r.check(c.state.phase == P.FARMERS_RETURN and c.outcome == O.VACATION_COMPLETE, "surviving every night brings the farmers back")
|
||||||
r.check(c.state.nights_survived == 5 and c.state.night == 5, "the vacation is exactly five nights (night %d, survived %d)" % [c.state.night, c.state.nights_survived])
|
r.check(c.state.nights_survived == nights and c.state.night == nights,
|
||||||
r.check(mornings == [2, 3, 4, 5], "a morning follows each night except the last (got %s)" % [mornings])
|
"the vacation is exactly campaign_nights (%d) nights (night %d, survived %d)" % [nights, c.state.night, c.state.nights_survived])
|
||||||
|
r.check(mornings == range(2, nights + 1), "a morning follows each night except the last (got %s)" % [mornings])
|
||||||
r.check(ended == [O.VACATION_COMPLETE], "campaign_ended fires once")
|
r.check(ended == [O.VACATION_COMPLETE], "campaign_ended fires once")
|
||||||
r.check(c.state.night_log.size() == 5, "every night is recorded")
|
r.check(c.state.night_log.size() == nights, "every night is recorded")
|
||||||
c.tick(1000.0)
|
c.tick(1000.0)
|
||||||
c.advance_phase()
|
c.advance_phase()
|
||||||
r.check(c.state.phase == P.FARMERS_RETURN and ended.size() == 1, "the farmers' return is terminal")
|
r.check(c.state.phase == P.FARMERS_RETURN and ended.size() == 1, "the farmers' return is terminal")
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ func _morning(r: GameTestRunner, sim: FarmSim, review: ReviewPanel, hud: PhaseHu
|
||||||
r.check(sim.campaign.state.phase == P.MORNING and review.visible and review._title.text == "The farmers are away",
|
r.check(sim.campaign.state.phase == P.MORNING and review.visible and review._title.text == "The farmers are away",
|
||||||
"the first morning shows the review panel with the introduction")
|
"the first morning shows the review panel with the introduction")
|
||||||
hud._process(0.0)
|
hud._process(0.0)
|
||||||
r.check(hud.describe() == "Night 1 of 5 · Morning", "the phase HUD reads '%s'" % hud.describe())
|
r.check(hud.describe() == "Night 1 of %d · Morning" % sim.config.campaign_nights, "the phase HUD reads '%s'" % hud.describe())
|
||||||
sim.day_night.snap()
|
sim.day_night.snap()
|
||||||
var day_energy := sim.sun.light_energy
|
var day_energy := sim.sun.light_energy
|
||||||
r.check(sim.day_night.lantern.light_energy < 0.6 and day_energy > 0.8, "morning light: bright sun, lantern nearly off")
|
r.check(sim.day_night.lantern.light_energy < 0.6 and day_energy > 0.8, "morning light: bright sun, lantern nearly off")
|
||||||
|
|
@ -59,7 +59,7 @@ func _day(r: GameTestRunner, sim: FarmSim, player: PlayerCharacter, hud: PhaseHu
|
||||||
var c := sim.campaign
|
var c := sim.campaign
|
||||||
var s := c.state
|
var s := c.state
|
||||||
hud._process(0.0)
|
hud._process(0.0)
|
||||||
r.check(hud.describe() == "Night 1 of 5 · Day · 3:00 left", "the phase HUD reads '%s'" % hud.describe())
|
r.check(hud.describe() == "Night 1 of %d · Day · 3:00 left" % sim.config.campaign_nights, "the phase HUD reads '%s'" % hud.describe())
|
||||||
sim.day_night.snap()
|
sim.day_night.snap()
|
||||||
r.check(is_equal_approx(sim.day_night.lantern.light_energy, 0.0) and sim.sun.light_energy > 1.0, "daylight: full sun, no lantern")
|
r.check(is_equal_approx(sim.day_night.lantern.light_energy, 0.0) and sim.sun.light_energy > 1.0, "daylight: full sun, no lantern")
|
||||||
# A day's work: gather into the pouch, build, take some damage, patch up.
|
# A day's work: gather into the pouch, build, take some damage, patch up.
|
||||||
|
|
@ -183,7 +183,7 @@ func _dawn_and_morning(r: GameTestRunner, sim: FarmSim, review: ReviewPanel, bef
|
||||||
r.check(s.animals == s.animals_total - s.lost_animals.size() and e["animals_lost"] == s.lost_animals.size() and s.supplies_in_transit == 0,
|
r.check(s.animals == s.animals_total - s.lost_animals.size() and e["animals_lost"] == s.lost_animals.size() and s.supplies_in_transit == 0,
|
||||||
"animal losses are recorded and no sack is left in transit")
|
"animal losses are recorded and no sack is left in transit")
|
||||||
r.check(s.scarecrow_hp == 7, "the scarecrow's health carries over")
|
r.check(s.scarecrow_hp == 7, "the scarecrow's health carries over")
|
||||||
r.check(review.visible and review._title.text == "Morning of day 2 of 5" and review._last_head.visible
|
r.check(review.visible and review._title.text == "Morning of day 2 of %d" % sim.config.campaign_nights and review._last_head.visible
|
||||||
and review._last_head.text == "Night 1: Crows at the crops" and review._body.text.contains("Needs repair"),
|
and review._last_head.text == "Night 1: Crows at the crops" and review._body.text.contains("Needs repair"),
|
||||||
"the morning screen shows last night's results and what needs repair")
|
"the morning screen shows last night's results and what needs repair")
|
||||||
var rows := ReviewPanel.category_counts(e)
|
var rows := ReviewPanel.category_counts(e)
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ func _pause() -> void:
|
||||||
for i in 10:
|
for i in 10:
|
||||||
await r.physics_frame
|
await r.physics_frame
|
||||||
r.check(c.state.phase_time_left == t and sim.player.global_position == player, "pausing freezes the simulation tick")
|
r.check(c.state.phase_time_left == t and sim.player.global_position == player, "pausing freezes the simulation tick")
|
||||||
r.check(main.pause_menu._where.text == "Night 1 of 5 · Day" and main.pause_menu._note.text.contains("morning of day 1"),
|
r.check(main.pause_menu._where.text == "Night 1 of %d · Day" % c.config.campaign_nights and main.pause_menu._note.text.contains("morning of day 1"),
|
||||||
"the pause menu says where you are and what Continue picks up ('%s')" % main.pause_menu._where.text)
|
"the pause menu says where you are and what Continue picks up ('%s')" % main.pause_menu._where.text)
|
||||||
r.check(main.pause_menu.resume_button.has_focus(), "with Resume focused")
|
r.check(main.pause_menu.resume_button.has_focus(), "with Resume focused")
|
||||||
await _press("pause")
|
await _press("pause")
|
||||||
|
|
@ -166,7 +166,7 @@ func _restart_and_quit_to_menu() -> void:
|
||||||
and c.state.phase == P.MORNING and c.state.resources.pouch["scrap"] == 0,
|
and c.state.phase == P.MORNING and c.state.resources.pouch["scrap"] == 0,
|
||||||
"Save & quit to menu: back at the menu, the farm at the saved morning")
|
"Save & quit to menu: back at the menu, the farm at the saved morning")
|
||||||
r.check(FileAccess.get_file_as_string(SAVE) == file, "and the save itself is untouched")
|
r.check(FileAccess.get_file_as_string(SAVE) == file, "and the save itself is untouched")
|
||||||
r.check(not main.main_menu.continue_button.disabled and main.main_menu.save_note.text.begins_with("Morning of day 1 of 5"),
|
r.check(not main.main_menu.continue_button.disabled and main.main_menu.save_note.text.begins_with("Morning of day 1 of %d" % c.config.campaign_nights),
|
||||||
"Continue now offers that morning ('%s')" % main.main_menu.save_note.text)
|
"Continue now offers that morning ('%s')" % main.main_menu.save_note.text)
|
||||||
await r.process_frame
|
await r.process_frame
|
||||||
r.check(main.main_menu.continue_button.has_focus(), "and has the focus")
|
r.check(main.main_menu.continue_button.has_focus(), "and has the focus")
|
||||||
|
|
@ -283,7 +283,7 @@ func _failure() -> void:
|
||||||
c.tick(DT)
|
c.tick(DT)
|
||||||
panel._process(EndPanel.DELAY + 0.1)
|
panel._process(EndPanel.DELAY + 0.1)
|
||||||
r.check(c.state.phase == P.GAME_OVER and panel.is_visible_in_tree() and panel.mode == "failure" and panel._title.text == "The scarecrow has fallen"
|
r.check(c.state.phase == P.GAME_OVER and panel.is_visible_in_tree() and panel.mode == "failure" and panel._title.text == "The scarecrow has fallen"
|
||||||
and panel._rating.text.begins_with("Night 1 of 5: Crows at the crops"), "the failure screen gives the cause and the night ('%s')" % panel._rating.text)
|
and panel._rating.text.begins_with("Night 1 of %d: Crows at the crops" % c.config.campaign_nights), "the failure screen gives the cause and the night ('%s')" % panel._rating.text)
|
||||||
r.check(panel._detail.text.contains("You kept the farm for 0 nights.") and panel._detail.text.contains("Left: 30 of 30 crops")
|
r.check(panel._detail.text.contains("You kept the farm for 0 nights.") and panel._detail.text.contains("Left: 30 of 30 crops")
|
||||||
and panel._detail.text.contains("Tonight: "), "what was kept, what's left, and what tonight cost")
|
and panel._detail.text.contains("Tonight: "), "what was kept, what's left, and what tonight cost")
|
||||||
r.check(panel._retry.visible and panel._retry.has_focus() and panel._menu.visible and not panel._new.visible
|
r.check(panel._retry.visible and panel._retry.has_focus() and panel._menu.visible and not panel._new.visible
|
||||||
|
|
@ -352,8 +352,10 @@ func _ending() -> void:
|
||||||
and panel._rating.text.contains("points") and panel._bars.visible and panel._menu.visible and panel._menu.has_focus()
|
and panel._rating.text.contains("points") and panel._bars.visible and panel._menu.visible and panel._menu.has_focus()
|
||||||
and not panel._retry.visible, "then the final assessment ('%s')" % panel._rating.text)
|
and not panel._retry.visible, "then the final assessment ('%s')" % panel._rating.text)
|
||||||
var a := Assessment.of(c.state, cfg)
|
var a := Assessment.of(c.state, cfg)
|
||||||
r.check(panel._rating.text == "%s · %d points" % [a["tier"], a["score"]] and panel._stats.text.contains("Enemies defeated: 40 crows and 8 aliens")
|
var logged := cfg.campaign_nights - 1 # the night log built above: 10 crows, 2 thieves, 12 wood a night
|
||||||
and panel._stats.text.contains("Gathered 48 wood"), "with the rating, the shares kept, and the vacation's totals")
|
r.check(panel._rating.text == "%s · %d points" % [a["tier"], a["score"]]
|
||||||
|
and panel._stats.text.contains("Enemies defeated: %d crows and %d aliens" % [10 * logged, 2 * logged])
|
||||||
|
and panel._stats.text.contains("Gathered %d wood" % (12 * logged)), "with the rating, the shares kept, and the vacation's totals")
|
||||||
r.info("assessment: %s\n%s\n%s" % [panel._rating.text, panel._detail.text, panel._stats.text])
|
r.info("assessment: %s\n%s\n%s" % [panel._rating.text, panel._detail.text, panel._stats.text])
|
||||||
ending.clear()
|
ending.clear()
|
||||||
ending.start()
|
ending.start()
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,23 @@
|
||||||
extends RefCounted
|
extends RefCounted
|
||||||
## The five-night progression (Step 10): every night plan and debug scenario is valid (markers
|
## The thirty nights (Step 10, #27): every night plan and debug scenario is valid (types and
|
||||||
## exist and suit the enemy type, types and targets are known, arrivals fit the night), each night
|
## targets are known, arrivals fit the night as played), each of the first five nights and the last
|
||||||
## tests what the plan says it should, the upgrades apply to the systems they change and persist
|
## tests what its plan says it should, the arc holds (the robots from night 3, the UFOs from night 5,
|
||||||
## (next morning, JSON, retry), the plans load by count with each night's enemy speed and HP
|
## no night much lighter than the one before, sieges every fifth night, the last night the longest),
|
||||||
## scales, the debug F3 jump moves the morning, and the five nights play back to back to the
|
## the upgrades apply to the systems they change and persist (next morning, JSON, retry), the plans
|
||||||
## farmers' return, each with its own plan and morning snapshot, everything carrying over.
|
## load by count with each night's enemy speed and HP scales, the debug F3 jump moves the morning,
|
||||||
|
## and a sample of the nights (1-5, a siege, the last) plays back to back to the farmers' return,
|
||||||
|
## the rest skipped by the F3 morning path, each with its own plan and morning snapshot,
|
||||||
|
## everything carrying over.
|
||||||
|
|
||||||
const P := CampaignController.Phase
|
const P := CampaignController.Phase
|
||||||
const T := ThiefBehavior.State
|
const T := ThiefBehavior.State
|
||||||
const DT := 1.0 / 60.0
|
const DT := 1.0 / 60.0
|
||||||
const AWAY := Vector3(-11.0, 0.0, 13.0)
|
const AWAY := Vector3(-11.0, 0.0, 13.0)
|
||||||
const SCENARIOS := "res://game/resources/scenarios/"
|
const SCENARIOS := "res://game/resources/scenarios/"
|
||||||
|
## The nights the back-to-back run plays (_back_to_back); the others are skipped on F3's path.
|
||||||
|
const PLAYED := [1, 2, 3, 4, 5, 10, 30]
|
||||||
|
## Every fifth night before the last is a siege (game/tools/make_nights.gd).
|
||||||
|
const SIEGES := [10, 15, 20, 25]
|
||||||
|
|
||||||
|
|
||||||
func run(r: GameTestRunner) -> void:
|
func run(r: GameTestRunner) -> void:
|
||||||
|
|
@ -25,16 +32,17 @@ func run(r: GameTestRunner) -> void:
|
||||||
player.global_position = AWAY
|
player.global_position = AWAY
|
||||||
_validation(r, sim)
|
_validation(r, sim)
|
||||||
_designs(r, sim)
|
_designs(r, sim)
|
||||||
|
_arc(r, sim)
|
||||||
_upgrades(r, sim, player)
|
_upgrades(r, sim, player)
|
||||||
_plan_paths(r, sim)
|
_plan_paths(r, sim)
|
||||||
_enemy_scales(r, sim)
|
_enemy_scales(r, sim)
|
||||||
_night_jump(r, farm, sim)
|
_night_jump(r, farm, sim)
|
||||||
_five_nights(r, farm, sim, player)
|
_back_to_back(r, farm, sim, player)
|
||||||
farm.queue_free()
|
farm.queue_free()
|
||||||
await r.process_frame
|
await r.process_frame
|
||||||
|
|
||||||
|
|
||||||
## Every plan (the five nights and the debug scenarios) checks out against the farm.
|
## Every plan (the vacation's nights and the debug scenarios) checks out against the farm.
|
||||||
func _validation(r: GameTestRunner, sim: FarmSim) -> void:
|
func _validation(r: GameTestRunner, sim: FarmSim) -> void:
|
||||||
var plans: Array[NightPlan] = sim.waves.plans.duplicate()
|
var plans: Array[NightPlan] = sim.waves.plans.duplicate()
|
||||||
r.check(plans.size() == sim.config.campaign_nights, "a plan for each of the %d nights" % sim.config.campaign_nights)
|
r.check(plans.size() == sim.config.campaign_nights, "a plan for each of the %d nights" % sim.config.campaign_nights)
|
||||||
|
|
@ -57,13 +65,15 @@ func _validation(r: GameTestRunner, sim: FarmSim) -> void:
|
||||||
r.check(sim.waves.plans[k].dusk_hint.length() > 20, "night %d has a dusk hint" % (k + 1))
|
r.check(sim.waves.plans[k].dusk_hint.length() > 20, "night %d has a dusk hint" % (k + 1))
|
||||||
|
|
||||||
|
|
||||||
## Each night tests what it's meant to.
|
## Each of the first five nights, and the last, tests what it's meant to.
|
||||||
func _designs(r: GameTestRunner, sim: FarmSim) -> void:
|
func _designs(r: GameTestRunner, sim: FarmSim) -> void:
|
||||||
var w := sim.waves
|
var w := sim.waves
|
||||||
var n := w.plans
|
var n := w.plans
|
||||||
|
var cfg := sim.config
|
||||||
var crow := EnemySystem.TYPE_CROW
|
var crow := EnemySystem.TYPE_CROW
|
||||||
var thief := EnemySystem.TYPE_THIEF
|
var thief := EnemySystem.TYPE_THIEF
|
||||||
var breaker := EnemySystem.TYPE_BREAKER
|
var breaker := EnemySystem.TYPE_BREAKER
|
||||||
|
var ufo := EnemySystem.TYPE_UFO
|
||||||
r.check(n[0].type_counts().keys() == [crow], "night 1: crows only, at the crops (%s)" % [n[0].type_counts()])
|
r.check(n[0].type_counts().keys() == [crow], "night 1: crows only, at the crops (%s)" % [n[0].type_counts()])
|
||||||
var targets_2 := {}
|
var targets_2 := {}
|
||||||
for g in n[1].groups:
|
for g in n[1].groups:
|
||||||
|
|
@ -74,17 +84,68 @@ func _designs(r: GameTestRunner, sim: FarmSim) -> void:
|
||||||
r.check(int(n[2].type_counts().get(breaker, 0)) >= 2 and int(n[2].type_counts().get(thief, 0)) >= 3, "night 3: fence breakers, and thieves behind them (%s)" % [n[2].type_counts()])
|
r.check(int(n[2].type_counts().get(breaker, 0)) >= 2 and int(n[2].type_counts().get(thief, 0)) >= 3, "night 3: fence breakers, and thieves behind them (%s)" % [n[2].type_counts()])
|
||||||
var crowded := _crowded_moments(n[3])
|
var crowded := _crowded_moments(n[3])
|
||||||
r.check(crowded >= 3, "night 4: %d moments with two groups arriving at once" % crowded)
|
r.check(crowded >= 3, "night 4: %d moments with two groups arriving at once" % crowded)
|
||||||
var waves_5 := _waves(n[4])
|
var ufo_groups := n[4].groups.filter(func(g: Dictionary) -> bool: return g["type"] == "ufo")
|
||||||
r.check(n[4].type_counts().size() == 4 and waves_5 >= 3 and n[4].night_length > sim.config.night_length,
|
var ufos_5 := int(n[4].type_counts(n[4].count_scale_in(cfg)).get(ufo, 0))
|
||||||
"night 5: all four types (including UFOs) in %d waves, over a longer %.0f s night" % [waves_5, n[4].night_length])
|
r.check(n[4].type_counts().size() == 4 and ufo_groups.size() == 2 and ufo_groups.all(func(g: Dictionary) -> bool: return int(g["count"]) == 1)
|
||||||
|
and ufos_5 == 14 and _crowded_moments(n[4]) >= 3 and n[4].night_length == 0.0,
|
||||||
|
"night 5: all four types, the first UFOs in two single-UFO groups (%d as played), and night 4's moments at once" % ufos_5)
|
||||||
|
var last := n[n.size() - 1]
|
||||||
|
var waves_last := _waves(last)
|
||||||
|
r.check(last.type_counts().size() == 4 and waves_last >= 3 and last.night_length > cfg.night_length,
|
||||||
|
"the last night: all four types in %d waves, over a longer %.0f s night" % [waves_last, last.night_length])
|
||||||
var totals := []
|
var totals := []
|
||||||
for p in n:
|
for p in n:
|
||||||
totals.append(p.total(p.count_scale_in(sim.config)))
|
totals.append(p.total(p.count_scale_in(cfg)))
|
||||||
r.check(totals[4] == totals.max() and totals[0] == totals.min(), "the first night is the smallest, the last the biggest, as played (%s)" % [totals])
|
r.check(totals[n.size() - 1] == totals.max() and totals.count(totals.max()) == 1 and totals[0] == totals.min(),
|
||||||
r.check(is_equal_approx(n[0].count_scale_in(sim.config), 1.0) and is_equal_approx(n[0].spacing_scale_in(sim.config), 1.0)
|
"the first night is the smallest, the last the biggest, as played (%s)" % [totals])
|
||||||
|
r.check(is_equal_approx(n[0].count_scale_in(cfg), 1.0) and is_equal_approx(n[0].spacing_scale_in(cfg), 1.0)
|
||||||
and totals[0] <= 12 and n[1].count_scale == 0.0, "night 1 plays as designed, unscaled (%d crows); the later nights at the config's scale" % totals[0])
|
and totals[0] <= 12 and n[1].count_scale == 0.0, "night 1 plays as designed, unscaled (%d crows); the later nights at the config's scale" % totals[0])
|
||||||
|
|
||||||
|
|
||||||
|
## #27: the thirty nights' arc (_validation checks each plan as played). Thirty plans; the fence
|
||||||
|
## breakers come from night 3 and the UFOs from night 5; as played, no night is more than 15% lighter than the
|
||||||
|
## non-siege night before it (from night 3: night 2 -> 3 trades crows and thieves for the first
|
||||||
|
## robots); every fifth night is a siege, about 30% heavier at the normal length; and the last
|
||||||
|
## night is the longest.
|
||||||
|
func _arc(r: GameTestRunner, sim: FarmSim) -> void:
|
||||||
|
var cfg := sim.config
|
||||||
|
var n := sim.waves.plans
|
||||||
|
r.check(cfg.campaign_nights == 30 and n.size() == 30, "the vacation is thirty nights, with a plan for each (%d)" % n.size())
|
||||||
|
var first := {}
|
||||||
|
for k in n.size():
|
||||||
|
for t in n[k].type_counts():
|
||||||
|
if not first.has(t):
|
||||||
|
first[t] = k + 1
|
||||||
|
var robots := int(first.get(EnemySystem.TYPE_BREAKER, 0))
|
||||||
|
var ufos := int(first.get(EnemySystem.TYPE_UFO, 0))
|
||||||
|
r.check(robots >= 3 and ufos >= 5, "no fence breaker before night 3 (the first on night %d), no UFO before night 5 (night %d)" % [robots, ufos])
|
||||||
|
var drops := PackedStringArray()
|
||||||
|
var before := 0
|
||||||
|
var before_night := 0
|
||||||
|
for k in range(2, n.size()):
|
||||||
|
var night := k + 1
|
||||||
|
if SIEGES.has(night):
|
||||||
|
continue
|
||||||
|
var played := n[k].total(n[k].count_scale_in(cfg))
|
||||||
|
if before > 0 and played < before * 0.85:
|
||||||
|
drops.append("night %d -> %d: %d -> %d" % [before_night, night, before, played])
|
||||||
|
before = played
|
||||||
|
before_night = night
|
||||||
|
r.check(drops.is_empty(), "as played, no night from 3 on is more than 15%% lighter than the non-siege night before it%s"
|
||||||
|
% ("" if drops.is_empty() else ": %s" % [drops]))
|
||||||
|
var sieges := true
|
||||||
|
for night in SIEGES:
|
||||||
|
var p := n[night - 1]
|
||||||
|
var prev := n[night - 2]
|
||||||
|
sieges = sieges and p.title.begins_with("Siege: ") and p.night_length == 0.0 and p.total() >= roundi(prev.total() * 1.2)
|
||||||
|
r.check(sieges, "nights %s are sieges: 'Siege: ...', about 30%% heavier than the night before, at the normal %.0f s" % [SIEGES, cfg.night_length])
|
||||||
|
var longest := true
|
||||||
|
var last_length := n[n.size() - 1].night_length
|
||||||
|
for k in n.size() - 1:
|
||||||
|
longest = longest and (n[k].night_length if n[k].night_length > 0.0 else cfg.night_length) < last_length
|
||||||
|
r.check(longest, "the last night is the longest (%.0f s)" % last_length)
|
||||||
|
|
||||||
|
|
||||||
## Times when two groups start arriving within 3 s of each other.
|
## Times when two groups start arriving within 3 s of each other.
|
||||||
func _crowded_moments(plan: NightPlan) -> int:
|
func _crowded_moments(plan: NightPlan) -> int:
|
||||||
var moments := {}
|
var moments := {}
|
||||||
|
|
@ -236,10 +297,14 @@ func _enemy_scales(r: GameTestRunner, sim: FarmSim) -> void:
|
||||||
var fastest := 0.0
|
var fastest := 0.0
|
||||||
for v in es.t_speed:
|
for v in es.t_speed:
|
||||||
fastest = maxf(fastest, v)
|
fastest = maxf(fastest, v)
|
||||||
var unscaled := true
|
var as_planned := true
|
||||||
for p in w.plans:
|
for k in w.plans.size():
|
||||||
unscaled = unscaled and p.enemy_speed_scale == 1.0 and p.enemy_hp_scale == 1.0
|
var after_5 := maxi(k + 1 - 5, 0)
|
||||||
r.check(unscaled, "the vacation's %d nights keep the enemies' own speed and HP (scales 1)" % w.plans.size())
|
as_planned = (as_planned and is_equal_approx(w.plans[k].enemy_speed_scale, 1.0 + 0.01 * after_5)
|
||||||
|
and is_equal_approx(w.plans[k].enemy_hp_scale, 1.0 + 0.025 * after_5))
|
||||||
|
var last := w.plans[w.plans.size() - 1]
|
||||||
|
r.check(as_planned, "nights 1-5 keep the enemies' own speed and HP; from night 6 they rise 1%% and 2.5%% a night, to x%.2f and x%.3f on night %d"
|
||||||
|
% [last.enemy_speed_scale, last.enemy_hp_scale, w.plans.size()])
|
||||||
# A plan with the default scales: as before.
|
# A plan with the default scales: as before.
|
||||||
while c.state.phase != P.NIGHT:
|
while c.state.phase != P.NIGHT:
|
||||||
c.advance_phase()
|
c.advance_phase()
|
||||||
|
|
@ -354,11 +419,15 @@ func _night_jump(r: GameTestRunner, farm: Node3D, sim: FarmSim) -> void:
|
||||||
_step(sim, 1)
|
_step(sim, 1)
|
||||||
|
|
||||||
|
|
||||||
## All five nights back to back, each with its own plan and morning snapshot, to the farmers'
|
## The vacation back to back to the farmers' return: the PLAYED nights (1-5, a siege, the last),
|
||||||
## return. The farm is defended, and the scarecrow kept out of harm.
|
## each with its own plan and morning snapshot and its arrivals as planned; the nights between are
|
||||||
func _five_nights(r: GameTestRunner, farm: Node3D, sim: FarmSim, player: PlayerCharacter) -> void:
|
## skipped on F3's morning path (CampaignDebug.jump_morning: the next morning, the farm as it is).
|
||||||
|
## The farm is defended, and the scarecrow kept out of harm.
|
||||||
|
func _back_to_back(r: GameTestRunner, farm: Node3D, sim: FarmSim, player: PlayerCharacter) -> void:
|
||||||
var c := sim.campaign
|
var c := sim.campaign
|
||||||
var hud := farm.get_node("Hud/PhaseHud") as PhaseHud
|
var hud := farm.get_node("Hud/PhaseHud") as PhaseHud
|
||||||
|
var debug := farm.get_node("CampaignDebug") as CampaignDebug
|
||||||
|
var nights := c.config.campaign_nights
|
||||||
c.new_campaign()
|
c.new_campaign()
|
||||||
_step(sim, 1)
|
_step(sim, 1)
|
||||||
sim.structures.grant_workbench() # #9: granted once, up front, so the per-night structure
|
sim.structures.grant_workbench() # #9: granted once, up front, so the per-night structure
|
||||||
|
|
@ -373,9 +442,16 @@ func _five_nights(r: GameTestRunner, farm: Node3D, sim: FarmSim, player: PlayerC
|
||||||
var broken: Array[int] = []
|
var broken: Array[int] = []
|
||||||
sim.structures.destroyed.connect(func(id: int, _t: String, _at: Vector3) -> void: broken.append(id))
|
sim.structures.destroyed.connect(func(id: int, _t: String, _at: Vector3) -> void: broken.append(id))
|
||||||
var all_good := true
|
var all_good := true
|
||||||
var lengths: Array[float] = []
|
var skipped_ok := true
|
||||||
|
var lengths := {}
|
||||||
var t0 := Time.get_ticks_msec()
|
var t0 := Time.get_ticks_msec()
|
||||||
for night in range(1, c.config.campaign_nights + 1):
|
for night: int in PLAYED:
|
||||||
|
while c.state.night < night and c.state.phase == P.MORNING:
|
||||||
|
var from := c.state.night
|
||||||
|
if not debug.jump_morning(1):
|
||||||
|
skipped_ok = false
|
||||||
|
break
|
||||||
|
skipped_ok = skipped_ok and c.state.night == from + 1 and c.state.nights_survived == from
|
||||||
var s := c.state
|
var s := c.state
|
||||||
all_good = all_good and s.night == night and s.phase == P.MORNING and c._morning_snapshot == s.to_dict()
|
all_good = all_good and s.night == night and s.phase == P.MORNING and c._morning_snapshot == s.to_dict()
|
||||||
c.begin_day()
|
c.begin_day()
|
||||||
|
|
@ -384,26 +460,32 @@ func _five_nights(r: GameTestRunner, farm: Node3D, sim: FarmSim, player: PlayerC
|
||||||
s.resources.shed = {"wood": 99, "scrap": 99, "straw": 99}
|
s.resources.shed = {"wood": 99, "scrap": 99, "straw": 99}
|
||||||
while c.state.phase != P.NIGHT:
|
while c.state.phase != P.NIGHT:
|
||||||
c.advance_phase()
|
c.advance_phase()
|
||||||
lengths.append(c.state.phase_time_left)
|
lengths[night] = c.state.phase_time_left
|
||||||
hud._on_phase_changed(P.NIGHT, P.DUSK)
|
hud._on_phase_changed(P.NIGHT, P.DUSK)
|
||||||
var title_ok := hud._banner.text == "Night %d: %s" % [night, sim.waves.plan_for(night).title]
|
var plan := sim.waves.plan_for(night)
|
||||||
|
var title_ok := hud._banner.text == "Night %d: %s" % [night, plan.title]
|
||||||
arrivals.clear()
|
arrivals.clear()
|
||||||
var structures_at_night := c.state.structures.size()
|
var structures_at_night := c.state.structures.size()
|
||||||
broken.clear()
|
broken.clear()
|
||||||
|
var t_night := Time.get_ticks_msec()
|
||||||
while c.state.phase != P.MORNING and not c.is_over():
|
while c.state.phase != P.MORNING and not c.is_over():
|
||||||
sim.scarecrow.invulnerable_left = 1.0
|
sim.scarecrow.invulnerable_left = 1.0
|
||||||
sim.step(DT)
|
sim.step(DT)
|
||||||
var expect := sim.waves.plan_for(night).type_counts(sim.waves.plan_for(night).count_scale_in(c.config))
|
var expect := plan.type_counts(plan.count_scale_in(c.config))
|
||||||
r.check(arrivals == expect and title_ok, "night %d, '%s': the plan's %s arrived %s" % [night, sim.waves.plan_for(night).title, expect, arrivals])
|
r.check(arrivals == expect and title_ok, "night %d, '%s': the plan's %s arrived %s" % [night, plan.title, expect, arrivals])
|
||||||
var e: Dictionary = c.state.night_log[c.state.night_log.size() - 1]
|
var e: Dictionary = c.state.night_log[c.state.night_log.size() - 1]
|
||||||
r.info("night %d: %d crops, %d animals, %d supplies lost; %d structures broken" % [night, e["crops_lost"], e["animals_lost"], e["supplies_lost"], broken.size()])
|
r.info("night %d: %d crops, %d animals, %d supplies lost; %d structures broken (%.1f s)" % [night, e["crops_lost"],
|
||||||
if night < c.config.campaign_nights:
|
e["animals_lost"], e["supplies_lost"], broken.size(), (Time.get_ticks_msec() - t_night) / 1000.0])
|
||||||
|
if night < nights:
|
||||||
all_good = all_good and c.state.structures.size() == structures_at_night - broken.size() and c.state.supplies_in_transit == 0
|
all_good = all_good and c.state.structures.size() == structures_at_night - broken.size() and c.state.supplies_in_transit == 0
|
||||||
r.check(all_good, "every morning is its night's snapshot, and the farm carries over night to night")
|
r.check(all_good and skipped_ok, "every morning is its night's snapshot, the farm carries over night to night, and F3 skips the nights between")
|
||||||
r.check(c.state.phase == P.FARMERS_RETURN and c.state.nights_survived == 5 and c.state.night_log.size() == 5,
|
r.check(c.state.phase == P.FARMERS_RETURN and c.state.nights_survived == nights and c.state.night_log.size() == PLAYED.size(),
|
||||||
"all five nights played to the farmers' return (%.1f s)" % ((Time.get_ticks_msec() - t0) / 1000.0))
|
"nights %s played, the rest skipped, to the farmers' return after night %d (%.1f s)" % [PLAYED, nights, (Time.get_ticks_msec() - t0) / 1000.0])
|
||||||
r.check(is_equal_approx(lengths[4], sim.waves.plans[4].night_length) and is_equal_approx(lengths[0], c.config.night_length),
|
var others := true
|
||||||
"the last night is longer (%.0f s; the others %.0f s)" % [lengths[4], lengths[0]])
|
for night: int in PLAYED:
|
||||||
|
others = others and (night == nights or is_equal_approx(lengths[night], c.config.night_length))
|
||||||
|
r.check(is_equal_approx(lengths[nights], sim.waves.plans[nights - 1].night_length) and others,
|
||||||
|
"the last night is longer (%.0f s; the others %.0f s)" % [lengths[nights], lengths[1]])
|
||||||
sim.waves.enabled = false
|
sim.waves.enabled = false
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
379
game/tools/make_nights.gd
Normal file
379
game/tools/make_nights.gd
Normal file
|
|
@ -0,0 +1,379 @@
|
||||||
|
extends SceneTree
|
||||||
|
## Writes the vacation's middle nights (docs/plan.md #27) as ordinary NightPlan files,
|
||||||
|
## game/resources/nights/night_<n>.tres, so each stays editable in the inspector. Nights 1-5 and
|
||||||
|
## 30 are hand-authored; this makes 6-29 (and refuses any range beyond them) by a fixed recipe and
|
||||||
|
## a seeded RNG (the same seed writes the same nights):
|
||||||
|
## base total 24 x (1 + 0.065 x (n - 5)), rounded; every fifth night (n % 5 == 0) is a siege,
|
||||||
|
## x 1.3 at the normal length
|
||||||
|
## mix crows 0.45 -> 0.30, thieves 0.35, breakers 0.12 -> 0.20, UFOs 0.08 -> 0.15, from
|
||||||
|
## night 6 to 29; at least one group of each
|
||||||
|
## targets crows the crops, breakers and UFOs any, thieves animals -> supplies -> any in turn
|
||||||
|
## waves 3 below night 12, 4 to 21, then 5; evenly spaced from 5 s to length - 30 s, each
|
||||||
|
## 2-4 groups of different types arriving within 6 s of each other (a type with more
|
||||||
|
## groups than there are waves doubles up in the emptiest)
|
||||||
|
## groups 1-5 enemies (base), every 1.5-3.0 s (base), shortened so the last arrives by
|
||||||
|
## length - 5 s as played
|
||||||
|
## scales enemy_speed_scale 1 + 0.01 x (n - 5), enemy_hp_scale 1 + 0.025 x (n - 5)
|
||||||
|
## title, hint placeholder drafts from the lists below, for the user to rewrite; sieges are
|
||||||
|
## "Siege: ..."
|
||||||
|
## Counts are the plans' (base); played, each group is GameConfig.wave_count_scale times its size,
|
||||||
|
## wave_spacing_scale times its spacing. The text is written directly in the hand-made files'
|
||||||
|
## layout (a headless ResourceSaver drops uid lines), each new file with a fresh uid. Existing
|
||||||
|
## files are kept unless --force (which keeps their uid). Every night in the range, written or
|
||||||
|
## kept, is then loaded and checked with NightPlan.problems() at the played scales; any problem
|
||||||
|
## exits non-zero. Run (editor closed), then --import so the uid cache knows new files:
|
||||||
|
## godot --headless --path . --script res://game/tools/make_nights.gd [-- --from=6 --to=29 --seed=30 --force]
|
||||||
|
|
||||||
|
const DIR := "res://game/resources/nights/"
|
||||||
|
const CONFIG := "res://game/resources/game_config.tres"
|
||||||
|
const PLAN_SCRIPT := "res://game/scripts/night_plan.gd"
|
||||||
|
const FIRST := 6
|
||||||
|
const LAST := 29
|
||||||
|
const SEED := 30
|
||||||
|
## Night 5's base total, the start of the ramp, and its growth per night after it.
|
||||||
|
const BASE := 24.0
|
||||||
|
const GROWTH := 0.065
|
||||||
|
const SIEGE_EVERY := 5
|
||||||
|
const SIEGE_SCALE := 1.3
|
||||||
|
## Shares of the base total by type, at night FIRST and night LAST (linear between).
|
||||||
|
const TYPES: Array[String] = ["crow", "thief", "breaker", "ufo"]
|
||||||
|
const MIX_FROM := {"crow": 0.45, "thief": 0.35, "breaker": 0.12, "ufo": 0.08}
|
||||||
|
const MIX_TO := {"crow": 0.30, "thief": 0.35, "breaker": 0.20, "ufo": 0.15}
|
||||||
|
const THIEF_TARGETS: Array[String] = ["animals", "supplies", "any"]
|
||||||
|
const FIRST_WAVE := 5.0
|
||||||
|
## The last wave starts this long before sunrise, and its stream ends at least END_MARGIN before.
|
||||||
|
const LAST_WAVE_BEFORE_END := 30.0
|
||||||
|
const END_MARGIN := 5.0
|
||||||
|
const WAVE_SPREAD := 6
|
||||||
|
const MAX_GROUPS_PER_WAVE := 4
|
||||||
|
const MIN_GROUPS_PER_WAVE := 2
|
||||||
|
const MAX_COUNT := 5
|
||||||
|
const EVERY: Array[float] = [1.5, 2.0, 2.5, 3.0]
|
||||||
|
const SPEED_PER_NIGHT := 0.01
|
||||||
|
const HP_PER_NIGHT := 0.025
|
||||||
|
|
||||||
|
## Drafts: no lore beyond what nights 1-5 and 30 say (crows, aliens, alien robots, lights in the
|
||||||
|
## sky, the farmers coming back).
|
||||||
|
const TITLES: Array[String] = [
|
||||||
|
"Back for more", "Crows over the field", "Aliens at the pen", "Robots at the gate",
|
||||||
|
"The shed again", "Lights over the house", "Every side at once", "No quiet nights",
|
||||||
|
"Thin fences", "Busy skies", "One more night", "The long dark", "Hold the pen",
|
||||||
|
"Mind the shed", "Under the lights", "Crows and robots", "Short on sleep",
|
||||||
|
"They know the way in", "Keep the lantern lit", "Still standing",
|
||||||
|
]
|
||||||
|
const HINTS: Array[String] = [
|
||||||
|
"More of them tonight..... keep the fences up.",
|
||||||
|
"The crows are back. They always come back.",
|
||||||
|
"Something's moving out past the fence.....",
|
||||||
|
"Lights in the sky again..... here they come.",
|
||||||
|
"Watch the pen tonight. And the shed. And the crops.....",
|
||||||
|
"They came from every side last night. Tonight too.",
|
||||||
|
"The robots go for the fences first..... fix what you can.",
|
||||||
|
"It's quiet. Too quiet.....",
|
||||||
|
"Count the crops in the morning. Hopefully all of them.",
|
||||||
|
"Another night, another crowd at the fence.....",
|
||||||
|
"Is that the UFOs again?! ..... yep.",
|
||||||
|
"The crows don't sleep, and neither do you.",
|
||||||
|
"Keep the lantern lit and the fences standing.",
|
||||||
|
"The farmers would be proud..... if they were here.",
|
||||||
|
"Hold on. The farmers will be back.",
|
||||||
|
"Here they come again.....",
|
||||||
|
"Crows. Aliens. Robots. UFOs. You know the drill.",
|
||||||
|
"They're getting faster..... aren't they?",
|
||||||
|
"Tougher than last night..... or is it just you?",
|
||||||
|
"Patch up, stock up, and keep watch.....",
|
||||||
|
]
|
||||||
|
const SIEGE_TITLES: Array[String] = ["Siege: the fences", "Siege: the pen", "Siege: the shed", "Siege: the whole farm"]
|
||||||
|
const SIEGE_HINTS: Array[String] = [
|
||||||
|
"Every fence, every gate..... they want it all tonight.",
|
||||||
|
"They're all coming at once tonight.....",
|
||||||
|
"That's a lot of lights out there..... it's a siege.",
|
||||||
|
"The biggest crowd yet..... hold the farm.",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
func _initialize() -> void:
|
||||||
|
var from := FIRST
|
||||||
|
var to := LAST
|
||||||
|
var seed_value := SEED
|
||||||
|
var force := false
|
||||||
|
for a in OS.get_cmdline_user_args():
|
||||||
|
var arg := String(a)
|
||||||
|
if arg.begins_with("--from="):
|
||||||
|
from = int(arg.trim_prefix("--from="))
|
||||||
|
elif arg.begins_with("--to="):
|
||||||
|
to = int(arg.trim_prefix("--to="))
|
||||||
|
elif arg.begins_with("--seed="):
|
||||||
|
seed_value = int(arg.trim_prefix("--seed="))
|
||||||
|
elif arg == "--force":
|
||||||
|
force = true
|
||||||
|
quit(0 if _make(from, to, seed_value, force) else 1)
|
||||||
|
|
||||||
|
|
||||||
|
static func is_siege(n: int) -> bool:
|
||||||
|
return n % SIEGE_EVERY == 0
|
||||||
|
|
||||||
|
|
||||||
|
## Night n's planned enemies (before the played count scale).
|
||||||
|
static func base_total(n: int) -> int:
|
||||||
|
var base := roundi(BASE * (1.0 + GROWTH * (n - 5)))
|
||||||
|
return roundi(base * SIEGE_SCALE) if is_siege(n) else base
|
||||||
|
|
||||||
|
|
||||||
|
static func wave_count(n: int) -> int:
|
||||||
|
return 3 if n < 12 else (4 if n < 22 else 5)
|
||||||
|
|
||||||
|
|
||||||
|
func _make(from: int, to: int, seed_value: int, force: bool) -> bool:
|
||||||
|
var cfg := load(CONFIG) as GameConfig
|
||||||
|
if cfg == null or from < FIRST or to > LAST or to < from:
|
||||||
|
push_error("make_nights: bad config, or a range %d..%d outside %d..%d (the other nights are hand-made)" % [from, to, FIRST, LAST])
|
||||||
|
return false
|
||||||
|
var names := _drafts(seed_value)
|
||||||
|
var ok := true
|
||||||
|
for n in range(from, to + 1):
|
||||||
|
var path := DIR + "night_%d.tres" % n
|
||||||
|
var exists := FileAccess.file_exists(path)
|
||||||
|
var what := "kept"
|
||||||
|
if not exists or force:
|
||||||
|
var rng := RandomNumberGenerator.new()
|
||||||
|
rng.seed = seed_value * 1000 + n
|
||||||
|
var length := cfg.night_length
|
||||||
|
var groups := _groups(n, rng, length, cfg.wave_count_scale, cfg.wave_spacing_scale)
|
||||||
|
var draft: Array = names.get(n, ["Night %d" % n, "Here they come again....."])
|
||||||
|
var text := _text(n, draft[0], draft[1], groups, _uid_of(path) if exists else "")
|
||||||
|
var f := FileAccess.open(path, FileAccess.WRITE)
|
||||||
|
if f == null:
|
||||||
|
push_error("make_nights: can't write %s" % path)
|
||||||
|
ok = false
|
||||||
|
continue
|
||||||
|
f.store_string(text)
|
||||||
|
f.close()
|
||||||
|
what = "rewritten" if exists else "written"
|
||||||
|
ok = _check(n, path, cfg, what) and ok
|
||||||
|
return ok
|
||||||
|
|
||||||
|
|
||||||
|
## Night n's groups: the base total split by the mix into groups of 1-5, laid out in waves.
|
||||||
|
func _groups(n: int, rng: RandomNumberGenerator, length: float, count_scale: float, spacing_scale: float) -> Array[Dictionary]:
|
||||||
|
var waves := wave_count(n)
|
||||||
|
var counts := _type_counts(n)
|
||||||
|
# How many groups each type comes in: enough that none tops MAX_COUNT, at most one per wave
|
||||||
|
# unless that's not enough; then 2-4 groups per wave in all.
|
||||||
|
var parts := {}
|
||||||
|
var lowest := {}
|
||||||
|
for t in TYPES:
|
||||||
|
var c: int = counts[t]
|
||||||
|
lowest[t] = ceili(c / float(MAX_COUNT))
|
||||||
|
parts[t] = rng.randi_range(lowest[t], maxi(lowest[t], mini(c, waves)))
|
||||||
|
while _sum(parts) < MIN_GROUPS_PER_WAVE * waves:
|
||||||
|
var can := TYPES.filter(func(t: String) -> bool: return parts[t] < counts[t])
|
||||||
|
parts[can[rng.randi_range(0, can.size() - 1)]] += 1
|
||||||
|
while _sum(parts) > MAX_GROUPS_PER_WAVE * waves:
|
||||||
|
var can := TYPES.filter(func(t: String) -> bool: return parts[t] > lowest[t])
|
||||||
|
parts[can[rng.randi_range(0, can.size() - 1)]] -= 1
|
||||||
|
# Each type's groups to the emptiest waves that don't have that type yet (any emptiest one
|
||||||
|
# when every wave has it), the type with the most groups first: the waves stay within one
|
||||||
|
# group of each other.
|
||||||
|
var order := TYPES.duplicate()
|
||||||
|
order.sort_custom(func(a: String, b: String) -> bool: return parts[a] > parts[b] or (parts[a] == parts[b] and TYPES.find(a) < TYPES.find(b)))
|
||||||
|
var in_wave: Array = []
|
||||||
|
for w in waves:
|
||||||
|
in_wave.append([])
|
||||||
|
for t in order:
|
||||||
|
var sizes := _split(counts[t], parts[t], rng)
|
||||||
|
for size in sizes:
|
||||||
|
var w := _emptiest(in_wave, t, rng)
|
||||||
|
in_wave[w].append({"type": t, "count": size})
|
||||||
|
var out: Array[Dictionary] = []
|
||||||
|
var span := length - LAST_WAVE_BEFORE_END - FIRST_WAVE
|
||||||
|
for w in waves:
|
||||||
|
var start := roundi(FIRST_WAVE + span * w / float(waves - 1))
|
||||||
|
var wave: Array = in_wave[w]
|
||||||
|
_shuffle(wave, rng)
|
||||||
|
for k in wave.size():
|
||||||
|
var g: Dictionary = wave[k]
|
||||||
|
var time := float(start + (0 if k == 0 else rng.randi_range(0, WAVE_SPREAD)))
|
||||||
|
var every := EVERY[rng.randi_range(0, EVERY.size() - 1)]
|
||||||
|
var played := NightPlan.scaled_count(g, count_scale) - 1
|
||||||
|
# The last arrival by length - END_MARGIN, as played: closer together, else earlier.
|
||||||
|
while every > EVERY[0] and time + played * every * spacing_scale > length - END_MARGIN:
|
||||||
|
every -= 0.5
|
||||||
|
time = minf(time, floorf(length - END_MARGIN - played * every * spacing_scale))
|
||||||
|
out.append({"count": g["count"], "every": every, "target": "", "time": time, "type": g["type"]})
|
||||||
|
out.sort_custom(func(a: Dictionary, b: Dictionary) -> bool:
|
||||||
|
return a["time"] < b["time"] or (a["time"] == b["time"] and TYPES.find(a["type"]) < TYPES.find(b["type"])))
|
||||||
|
var thieves := 0
|
||||||
|
for g in out:
|
||||||
|
match String(g["type"]):
|
||||||
|
"crow":
|
||||||
|
g["target"] = "crops"
|
||||||
|
"thief":
|
||||||
|
g["target"] = THIEF_TARGETS[thieves % THIEF_TARGETS.size()]
|
||||||
|
thieves += 1
|
||||||
|
_:
|
||||||
|
g["target"] = "any"
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
## The base total by type: the night's mix, rounded by largest remainder, at least one of each.
|
||||||
|
static func _type_counts(n: int) -> Dictionary:
|
||||||
|
var total := base_total(n)
|
||||||
|
var at := clampf((n - FIRST) / float(LAST - FIRST), 0.0, 1.0)
|
||||||
|
var raw := {}
|
||||||
|
var out := {}
|
||||||
|
for t in TYPES:
|
||||||
|
raw[t] = total * lerpf(MIX_FROM[t], MIX_TO[t], at)
|
||||||
|
out[t] = maxi(floori(raw[t]), 1)
|
||||||
|
while _sum(out) < total:
|
||||||
|
var best := ""
|
||||||
|
for t in TYPES:
|
||||||
|
if best == "" or raw[t] - out[t] > raw[best] - out[best]:
|
||||||
|
best = t
|
||||||
|
out[best] += 1
|
||||||
|
while _sum(out) > total:
|
||||||
|
var worst := ""
|
||||||
|
for t in TYPES:
|
||||||
|
if out[t] > 1 and (worst == "" or raw[t] - out[t] < raw[worst] - out[worst]):
|
||||||
|
worst = t
|
||||||
|
out[worst] -= 1
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
## count split into parts groups of 1..MAX_COUNT.
|
||||||
|
static func _split(count: int, parts: int, rng: RandomNumberGenerator) -> Array[int]:
|
||||||
|
var sizes: Array[int] = []
|
||||||
|
for k in parts:
|
||||||
|
sizes.append(1)
|
||||||
|
for k in count - parts:
|
||||||
|
var room: Array[int] = []
|
||||||
|
for i in parts:
|
||||||
|
if sizes[i] < MAX_COUNT:
|
||||||
|
room.append(i)
|
||||||
|
sizes[room[rng.randi_range(0, room.size() - 1)]] += 1
|
||||||
|
return sizes
|
||||||
|
|
||||||
|
|
||||||
|
## The emptiest wave without a group of type (the emptiest of all when they all have one).
|
||||||
|
static func _emptiest(in_wave: Array, type: String, rng: RandomNumberGenerator) -> int:
|
||||||
|
var free: Array[int] = []
|
||||||
|
for w in in_wave.size():
|
||||||
|
if not (in_wave[w] as Array).any(func(g: Dictionary) -> bool: return g["type"] == type):
|
||||||
|
free.append(w)
|
||||||
|
if free.is_empty():
|
||||||
|
for w in in_wave.size():
|
||||||
|
free.append(w)
|
||||||
|
var least := 1 << 30
|
||||||
|
for w in free:
|
||||||
|
least = mini(least, (in_wave[w] as Array).size())
|
||||||
|
var best: Array[int] = []
|
||||||
|
for w in free:
|
||||||
|
if (in_wave[w] as Array).size() == least:
|
||||||
|
best.append(w)
|
||||||
|
return best[rng.randi_range(0, best.size() - 1)]
|
||||||
|
|
||||||
|
|
||||||
|
static func _shuffle(a: Array, rng: RandomNumberGenerator) -> void:
|
||||||
|
for i in range(a.size() - 1, 0, -1):
|
||||||
|
var j := rng.randi_range(0, i)
|
||||||
|
var keep: Variant = a[i]
|
||||||
|
a[i] = a[j]
|
||||||
|
a[j] = keep
|
||||||
|
|
||||||
|
|
||||||
|
static func _sum(d: Dictionary) -> int:
|
||||||
|
var n := 0
|
||||||
|
for k in d:
|
||||||
|
n += int(d[k])
|
||||||
|
return n
|
||||||
|
|
||||||
|
|
||||||
|
## Night -> [title, hint] for every night FIRST..LAST, from the draft lists in an order fixed by
|
||||||
|
## the seed (so one night's draft doesn't depend on which others are written).
|
||||||
|
static func _drafts(seed_value: int) -> Dictionary:
|
||||||
|
var rng := RandomNumberGenerator.new()
|
||||||
|
rng.seed = seed_value
|
||||||
|
var titles := TITLES.duplicate()
|
||||||
|
var hints := HINTS.duplicate()
|
||||||
|
_shuffle(titles, rng)
|
||||||
|
_shuffle(hints, rng)
|
||||||
|
var out := {}
|
||||||
|
var k := 0
|
||||||
|
var sieges := 0
|
||||||
|
for n in range(FIRST, LAST + 1):
|
||||||
|
if is_siege(n):
|
||||||
|
out[n] = [SIEGE_TITLES[sieges % SIEGE_TITLES.size()], SIEGE_HINTS[sieges % SIEGE_HINTS.size()]]
|
||||||
|
sieges += 1
|
||||||
|
else:
|
||||||
|
out[n] = [titles[k % titles.size()], hints[k % hints.size()]]
|
||||||
|
k += 1
|
||||||
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
## The .tres text, laid out as the hand-made night files are.
|
||||||
|
func _text(n: int, title: String, hint: String, groups: Array[Dictionary], uid: String) -> String:
|
||||||
|
if uid == "":
|
||||||
|
uid = ResourceUID.id_to_text(ResourceUID.create_id())
|
||||||
|
var script_uid := ResourceLoader.get_resource_uid(PLAN_SCRIPT)
|
||||||
|
var lines := PackedStringArray()
|
||||||
|
lines.append('[gd_resource type="Resource" script_class="NightPlan" format=3 uid="%s"]' % uid)
|
||||||
|
lines.append("")
|
||||||
|
if script_uid != ResourceUID.INVALID_ID:
|
||||||
|
lines.append('[ext_resource type="Script" uid="%s" path="%s" id="1_plan"]' % [ResourceUID.id_to_text(script_uid), PLAN_SCRIPT])
|
||||||
|
else:
|
||||||
|
lines.append('[ext_resource type="Script" path="%s" id="1_plan"]' % PLAN_SCRIPT)
|
||||||
|
lines.append("")
|
||||||
|
lines.append("[resource]")
|
||||||
|
lines.append('script = ExtResource("1_plan")')
|
||||||
|
lines.append("title = %s" % var_to_str(title))
|
||||||
|
lines.append("dusk_hint = %s" % var_to_str(hint))
|
||||||
|
lines.append("enemy_speed_scale = %s" % _num(1.0 + SPEED_PER_NIGHT * (n - 5)))
|
||||||
|
lines.append("enemy_hp_scale = %s" % _num(1.0 + HP_PER_NIGHT * (n - 5)))
|
||||||
|
var entries := PackedStringArray()
|
||||||
|
for g in groups:
|
||||||
|
var keys := ["count", "every", "target", "time", "type"]
|
||||||
|
var fields := PackedStringArray()
|
||||||
|
for key in keys:
|
||||||
|
fields.append('"%s": %s' % [key, var_to_str(g[key])])
|
||||||
|
entries.append("{\n" + ",\n".join(fields) + "\n}")
|
||||||
|
lines.append("groups = Array[Dictionary]([" + ", ".join(entries) + "])")
|
||||||
|
return "\n".join(lines) + "\n"
|
||||||
|
|
||||||
|
|
||||||
|
## A scale as the file shows it: 1.025, not 1.0250000000000001.
|
||||||
|
static func _num(x: float) -> String:
|
||||||
|
var text := String.num(x, 4)
|
||||||
|
return text if text.contains(".") else text + ".0"
|
||||||
|
|
||||||
|
|
||||||
|
## The uid in an existing file's header ("" if none).
|
||||||
|
static func _uid_of(path: String) -> String:
|
||||||
|
var f := FileAccess.open(path, FileAccess.READ)
|
||||||
|
if f == null:
|
||||||
|
return ""
|
||||||
|
var head := f.get_line()
|
||||||
|
var at := head.find('uid="')
|
||||||
|
if at < 0:
|
||||||
|
return ""
|
||||||
|
return head.substr(at + 5, head.find('"', at + 5) - at - 5)
|
||||||
|
|
||||||
|
|
||||||
|
## Loads night n back from disk and checks it at the played scales; prints a line about it.
|
||||||
|
func _check(n: int, path: String, cfg: GameConfig, what: String) -> bool:
|
||||||
|
var plan := ResourceLoader.load(path, "", ResourceLoader.CACHE_MODE_IGNORE) as NightPlan
|
||||||
|
if plan == null:
|
||||||
|
printerr("night %d: %s doesn't load as a NightPlan" % [n, path])
|
||||||
|
return false
|
||||||
|
var length := plan.night_length if plan.night_length > 0.0 else cfg.night_length
|
||||||
|
var count_scale := plan.count_scale_in(cfg)
|
||||||
|
var bad := plan.problems(length, count_scale, plan.spacing_scale_in(cfg))
|
||||||
|
if plan.title == "" or plan.dusk_hint.length() <= 20:
|
||||||
|
bad.append("needs a title and a dusk hint")
|
||||||
|
var types := plan.type_counts(count_scale)
|
||||||
|
var mix := PackedStringArray()
|
||||||
|
for t in TYPES:
|
||||||
|
mix.append("%s %d" % [t, int(types.get(EnemySystem.TYPE_NAMES.find(t), 0))])
|
||||||
|
print("night %d %s: '%s', %.0f s, %d base, %d played (%s), %d groups, speed %s, HP %s%s" % [n, what, plan.title,
|
||||||
|
length, plan.total(), plan.total(count_scale), ", ".join(mix), plan.groups.size(), plan.enemy_speed_scale,
|
||||||
|
plan.enemy_hp_scale, "" if bad.is_empty() else " PROBLEMS: %s" % [bad]])
|
||||||
|
return bad.is_empty()
|
||||||
1
game/tools/make_nights.gd.uid
Normal file
1
game/tools/make_nights.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
uid://ccvyfmsvfng8g
|
||||||
Loading…
Add table
Add a link
Reference in a new issue