Task #27: the thirty nights
- campaign_nights 5 -> 30. The old night 5 ("The last night") is now night 30, keeping its
uid, title, hint, and 180 s. It grew to 73 base / 511 played in its three waves, with UFO
groups added, at speed x1.25 and HP x1.625.
- New hand-authored night 5, "Lights in the sky": night 4's shape plus the first UFOs (two
single-UFO groups, 14 as played), 24 base.
- New game/tools/make_nights.gd writes nights 6-29 by the plan's recipe (seed 30, sieges on
10/15/20/25, mix, waves, scales, draft titles and hints) as .tres text with fresh uids. It
skips existing files unless --force (which keeps their uids), refuses ranges outside 6..29,
and checks every plan with NightPlan.problems() at the played scales (non-zero exit on any
problem). Generated nights 6-29 are committed.
- test_nights: the arc (30 plans, breakers from night 3 and UFOs from night 5, no non-siege drop
over 15% from night 3 on, sieges, last night longest), the per-night scales, the new night 5
and night 30 designs. The back-to-back run plays nights 1-5, 10, and 30, skipping the rest
with CampaignDebug.jump_morning.
- test_campaign, test_cycle, test_flow read campaign_nights instead of a hard-coded 5.
- RULES (the vacation, the Night row, the thirty nights and their table, the vacation's end),
README, and a dated PLAYTEST section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3bb835f7c3
commit
ab1443325a
36 changed files with 2956 additions and 136 deletions
|
|
@ -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",
|
||||
"the first morning shows the review panel with the introduction")
|
||||
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()
|
||||
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")
|
||||
|
|
@ -59,7 +59,7 @@ func _day(r: GameTestRunner, sim: FarmSim, player: PlayerCharacter, hud: PhaseHu
|
|||
var c := sim.campaign
|
||||
var s := c.state
|
||||
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()
|
||||
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.
|
||||
|
|
@ -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,
|
||||
"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(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"),
|
||||
"the morning screen shows last night's results and what needs repair")
|
||||
var rows := ReviewPanel.category_counts(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue